﻿{"id":916,"date":"2024-09-19T09:29:53","date_gmt":"2024-09-19T03:59:53","guid":{"rendered":"https:\/\/blogs.infosys.com\/sap\/?p=916"},"modified":"2024-10-24T13:50:17","modified_gmt":"2024-10-24T08:20:17","slug":"campaign-determination-in-sap-s-4hana-sales-orders","status":"publish","type":"post","link":"https:\/\/blogs.infosys.com\/sap\/supply-chain-management\/campaign-determination-in-sap-s-4hana-sales-orders.html","title":{"rendered":"Campaign Determination in SAP S\/4HANA Sales Orders"},"content":{"rendered":"<p>This blog focuses on configuration aspects involved in determining the Campaign ID in SAP S\/4HANA sales orders. It is assumed that the reader has a basic knowledge of campaign management concepts, Trade Promotion Management (TPM) system setup, and its integration with SAP S\/4HANA. Before configuring S\/4HANA, ensure the following setup is in place (the list below is only representative and not exhaustive):<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Connection between S4 and TPM systems via middleware<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Necessary configurations for transferring master and transactional data between TPM and S\/4HANA<\/p>\n<p>\u00b7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Configurations for promotions in TPM<\/p>\n<p>Recommended Reading<br \/>\nFor more detailed information, please read the SAP Trade Promotion Management documentation on SAP Learning Hub or help.sap.com.<\/p>\n<p>Business Scenario<br \/>\nIn today\u2019s competitive retail market, promotional events are crucial to marketing efforts. Typically, Sales and Marketing teams predominantly use SAP Customer Relationship Management (CRM) or TPM solutions to plan promotions, while the Order-to-Cash process usually runs in S\/4HANA. Hence it is essential that promotions planned in TPM are accurately reflected in the relevant S\/4HANA sales orders.<\/p>\n<p>Given below is a typical example of a trade promotion created in the TPM system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-924\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-1-1.jpg\" alt=\"\" width=\"1186\" height=\"289\" \/><\/p>\n<p style=\"text-align: center\">Figure 1<\/p>\n<p>The table CMPB_MAP shows the mapping between the TK number (used in TPM) and the Campaign ID number (used in S\/4HANA).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-925\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-2.jpg\" alt=\"\" width=\"1158\" height=\"260\" \/><\/p>\n<p style=\"text-align: center\">Figure 2<\/p>\n<p>T-code: VK13. Pricing condition records are created in S\/4HANA from TPM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-926\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-3.jpg\" alt=\"\" width=\"584\" height=\"481\" \/><\/p>\n<p style=\"text-align: center\">Figure 3<\/p>\n<p>The pricing condition type ZO0A defined in TPM promotion appears in the sales order pricing in S\/4HANA.<\/p>\n<p>An SAP standard condition type can also be used in place of the custom condition type shown above.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-927\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-4.jpg\" alt=\"\" width=\"696\" height=\"448\" \/><\/p>\n<p style=\"text-align: center\">Figure 4<\/p>\n<p>To achieve this, one must carry out the configuration in S\/4HANA as detailed below:<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Maintain Field Catalog<\/p>\n<p>Here, the fields that are used in condition records are defined.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-928\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-5.jpg\" alt=\"\" width=\"471\" height=\"460\" \/><\/p>\n<p style=\"text-align: center\">Figure 5<\/p>\n<p>2.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Define condition tables<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-929\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-6.jpg\" alt=\"\" width=\"688\" height=\"475\" \/><\/p>\n<p style=\"text-align: center\">Figure 6<\/p>\n<p>3.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Define access sequences<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-930\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-7.jpg\" alt=\"\" width=\"1065\" height=\"324\" \/><\/p>\n<p style=\"text-align: center\">Figure 7<\/p>\n<p>4.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Maintain condition types<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-931\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-8.jpg\" alt=\"\" width=\"1044\" height=\"315\" \/><\/p>\n<p style=\"text-align: center\">Figure 8<\/p>\n<p>5.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Define campaign determination procedure<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-932\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-9.jpg\" alt=\"\" width=\"1078\" height=\"346\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">Figure 9<\/p>\n<p>6.\u00a0\u00a0\u00a0 SPRO \u2013 Integration with other SAP components \u2013 Customer Relationship Management \u2013 Basic Functions \u2013 Campaign Determination \u2013 Active campaign determination procedure<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-933\" src=\"https:\/\/blogs.infosys.com\/sap\/wp-content\/uploads\/2024\/09\/Figure-10.jpg\" alt=\"\" width=\"830\" height=\"363\" \/><\/p>\n<p style=\"text-align: center\">Figure 10<\/p>\n<p>Note: If you want only a single campaign to be determined on the sales order line item, leave the multiple promotions option unchecked. Otherwise, select option A (multiple campaign IDs determined are sorted by access sequence and B (simple sort), as shown above.<\/p>\n<p>When multiple campaigns are eligible for a sales order line item, the following sorting order determines how campaign IDs appear on the pricing analysis tab and\/or in the CMPB_MAP table:<\/p>\n<p>The campaigns are sorted and transferred to pricing according to these criteria and in this sequence:<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Manual assignment<\/p>\n<p>2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Priority assigned when the campaign or trade promotion was created<\/p>\n<p>3.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Campaign ID<\/p>\n<p>Manually assigned campaigns are always listed first in sorting. For automatically found campaigns, the system uses the priority of the campaign or trade promotion and its identification (name of the marketing project) as sorting characteristics. If campaigns or trade promotions have the same priority, the system uses the identification or campaign ID as a sorting criterion and sorts the campaigns in an alphabetical order.<\/p>\n<p>Campaigns or trade promotions at the top of the list according to these sorting rules count as the main marketing project.<\/p>\n<p>Sorting by access sequence<\/p>\n<p>If mobile sales are not used, you can sort campaigns or trade promotions based on the condition technique (please refer to the details above). The sorting order is as follows:<\/p>\n<p>1.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Manual assignment<\/p>\n<p>2.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Position in the campaign schema (level and counter)<\/p>\n<p>3.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Position in the access sequence<\/p>\n<p>4.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Priority assigned when the campaign or trade promotion was created<\/p>\n<p>5.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Identification or campaign ID<\/p>\n<p>Key Benefit<br \/>\nAfter maintaining the campaign management configuration in S\/4HANA, the campaign information (including rates) from TPM can seamlessly flow into S\/4HANA and be used in sales orders and invoices.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog focuses on configuration aspects involved in determining the Campaign ID in SAP [&hellip;]<\/p>\n","protected":false},"author":488,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"coauthors":[34],"class_list":["post-916","post","type-post","status-publish","format-standard","hentry","category-supply-chain-management"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/posts\/916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/users\/488"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/comments?post=916"}],"version-history":[{"count":4,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/posts\/916\/revisions"}],"predecessor-version":[{"id":968,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/posts\/916\/revisions\/968"}],"wp:attachment":[{"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/media?parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/categories?post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/tags?post=916"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.infosys.com\/sap\/wp-json\/wp\/v2\/coauthors?post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}