{"id":21520,"date":"2020-12-31T10:22:58","date_gmt":"2020-12-31T10:22:58","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=21520"},"modified":"2020-12-31T10:23:48","modified_gmt":"2020-12-31T10:23:48","slug":"how-to-flow-custom-fields-from-customer-master-to-sales-order-screen","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/12\/31\/how-to-flow-custom-fields-from-customer-master-to-sales-order-screen\/","title":{"rendered":"How to flow custom fields from Customer master to Sales order screen"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\" rel=\"noreferrer noopener\">Sage X3<\/a>, in customer master user have provision to define multiple addresses with different address codes. So one of our client has requested to add some custom fields on address tab of customer master. And flow it to the Sales order depending on the address code selection on Sales order screen<\/p>\n\n\n\n<p>Suppose user wants to create custom fields say GST Reg. No and PAN No fields and flow it from customer master to sales order screen. To achieve this, we need to follow the below steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong><\/p>\n\n\n\n<p>Create custom fields in SORDER(Sales order) table as well as in Sales order screen and add After Change and After Field events in Delivery Address field as per the below screenshot:<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/12\/30\/how-to-restrict-automatic-signature-in-workflow\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/12\/30\/how-to-restrict-automatic-signature-in-workflow\/\" target=\"_blank\">How to restrict automatic signature in workflow<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/12\/Events.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/12\/Events.jpg\" alt=\"Events\"><\/a><\/center>\n<font size=\"2\"><center>Events<\/center><\/font>\n\n\n\n<p><strong>Step 2:<\/strong><\/p>\n\n\n\n<p>After adding fields in screen validate the Sales Order screen, global validate window and also validate all the transaction types from Setup.<\/p>\n\n\n\n<p>Setup -&gt; Sales -&gt; Orders<\/p>\n\n\n\n<p>Below screenshot is the output of Sales Order screen after field addition:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/12\/Sales-Order-Screen-1024x508.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/12\/Sales-Order-Screen-1024x508.jpg\" alt=\"Sales Order Screen\"><\/a><\/center>\n<font size=\"2\"><center>Sales Order Screen<\/center><\/font>\n\n\n\n<p><strong>Step 3:<\/strong><\/p>\n\n\n\n<p>To flow GST No and PAN No from Customer master to Sales order screen on the basis of Delivery address code we have to add below code in SPESOH script under APRES_MODIF &amp; AVANT_MOD Action:<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">#################################################################################<\/h6>\n\n\n\n<p>If !clalev([F:ZBPC]) Local File BPCUSTOMER[F:ZBPC] : Endif<br>For[F:ZBPC] where [F:ZBPC]BPCNUM=[M:SOH0]BPCORD<br>              [M:SOH1]ZPANNO=[F:ZBPC]XX1P4PANNO<br>              AFFZO[M:SOH1]ZPANNO<br>Next<\/p>\n\n\n\n<p>If !clalev([F:ZBPD]) Local File BPDLVCUST[F:ZBPD] : Endif<br>For[F:ZBPD] where [F:ZBPD]BPCNUM=[M:SOH0]BPCORD AND [F:ZBPD]BPAADD=[M:SOH1]BPAADD<br>              [M:SOH1]ZGSTNO=[F:ZBPD]XX1P4GSTNO<br>              AFFZO[M:SOH1]ZGSTNO<br>Next<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">#################################################################################<\/h6>\n\n\n\n<p>Similaraly, also assign the values of custom fields in AM_BPAADD &amp; AP_BPAADD actions<\/p>\n\n\n\n<p>In this way developer can add the &#8220;GST No&#8221; and &#8220;PAN No&#8221; fields in Sales Order screen and flow data from Customer master on the basis of Customer code and their Delivery address code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c5e1638fe0db781fd132d689b469078c\" style=\"color:#c71d22\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Sage X3, in customer master user have provision to define multiple addresses with different address codes. So one of our client has requested to add some custom fields on address tab of customer master. And flow it to the Sales order depending on the address code selection on Sales order screen Suppose user wants\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/12\/31\/how-to-flow-custom-fields-from-customer-master-to-sales-order-screen\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,8,2796],"tags":[20,2760,3188,3189,3190],"class_list":["post-21520","post","type-post","status-publish","format-standard","hentry","category-integration","category-sage-erp-x3","category-technical","tag-4gl","tag-customer-master","tag-field-addition","tag-gst-no","tag-pan-no"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/21520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=21520"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/21520\/revisions"}],"predecessor-version":[{"id":21529,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/21520\/revisions\/21529"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=21520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=21520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=21520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}