{"id":26778,"date":"2023-06-30T06:05:04","date_gmt":"2023-06-30T06:05:04","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=26778"},"modified":"2023-06-30T11:50:14","modified_gmt":"2023-06-30T11:50:14","slug":"how-to-add-signature-workflow-in-purchase-price-list","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/06\/30\/how-to-add-signature-workflow-in-purchase-price-list\/","title":{"rendered":"How to add Signature workflow in Purchase Price List"},"content":{"rendered":"\n<p class=\"has-text-align-left\">Signature workflow is a feature provided by Sage for Automatic signature for a record if it is modified or created by the first level user defined in the Assignment rule. Once the user sign\u2019s the record you will see \u201cSigned\u201d against the user and is processed to the next level of user for signature defined in the Assignment rule in <a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" rel=\"noreferrer noopener\">Sage X3<\/a>.<\/p>\n\n\n\n<p>For one of our clients there was a requirement to add the signature workflow for the such that the Gross Price\/ Price defined in the purchase price list doesn&#8217;t flow in any of the purchase transactions (Purchase Order, Receipt and Invoice) until the purchase price list has been approved.<\/p>\n\n\n\n<p>To disable the price list we have added 3 custom fields <strong>ZPLISTRDAT (Validity Start Date), ZPLIENDDAT (Validity End Date)<\/strong> field and <strong>ZAPPFLG (Signed)<\/strong> in the Purchase price list header screen and disabled the standard field <strong>PLISTRDAT (Validity Start Date)<\/strong> and <strong>PLIENDDAT (Validity End Date)<\/strong>.<\/p>\n\n\n\n<p>On creation\/ Modification of a purchase price list backdated value gets updated in the Std field PLISTRDAT and PLIENDDAT (01\/01\/1999) and the custom fields (ZPLISTRDAT (Validity Start Date) and ZPLIENDDAT (Validity End Date)) has the actual validity date range for the particular transaction. On approval the actual validity date in the custom fields (ZPLISTRDAT and ZPLIENDDAT) gets updated in the std field and the ZAPPFLG gets updated with the respective value from the <strong>local menu 280 (1: No, 2: In part, 3: In full)<\/strong> that makes the purchase price flow in the purchase transactions as intended.<\/p>\n\n\n\n<p><strong>Note: <\/strong>The Local Menu description may change based on the patch of X3.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/06\/29\/defaulting-screen-mask-fields-in-sage-x3\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/06\/29\/defaulting-screen-mask-fields-in-sage-x3\/\" rel=\"noreferrer noopener\">Defaulting Screen\/Mask fields in Sage X3<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig1-price-list.png\" 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\/2023\/06\/fig1-price-list.png\" alt=\"fig1 price list\"><\/a><\/center>\n<font size=\"2\"><center>fig1 price list<\/center><\/font>\n\n\n\n<p>&#8211;<strong>Create the main Workflow for Purchase price list management.<\/strong><\/p>\n\n\n\n<p><strong>Step 1:<\/strong><br>All -> Setup -> Workflow -> Workflow Rules<br>Create a Workflow rule with code <strong>ZPPLSIG<\/strong> (Create the duplicate of any standard workflow Ex: POHSIG and change required details) as below:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig2-header-1024x488.png\" 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\/2023\/06\/fig2-header-1024x488.png\" alt=\"fig2 header\"><\/a><\/center>\n<font size=\"2\"><center>fig2 header<\/center><\/font>\n\n\n\n<p><strong>Step 2:<\/strong><br>Create a Data Model with Template Code : <strong>ZPALPRI<\/strong> (Purchase Price list Data Model)<br>In the Links tab -> Main table as <strong>PPRICLIST<\/strong>.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig3-data-model.png\" 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\/2023\/06\/fig3-data-model.png\" alt=\"fig3 data model\"><\/a><\/center>\n<font size=\"2\"><center>fig3 data model<\/center><\/font>\n\n\n\n<p><strong>Step 3:<\/strong><br>Create an Assignment Rule with <strong>ZPALPRI<\/strong> (Purchase Price Assignment Rule) as below:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig4-assignment-rule.png\" 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\/2023\/06\/fig4-assignment-rule.png\" alt=\"fig4 assignment rule\"><\/a><\/center>\n<font size=\"2\"><center>fig4 assignment rule<\/center><\/font>\n\n\n\n<p>Click on values and assign the Assignment Rule as <strong>ZPALPRI<\/strong>.<br>In the Values section input the users codes.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong><br>Add the below header conditions for the workflow to be triggered.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig5-header-conditions.png\" 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\/2023\/06\/fig5-header-conditions.png\" alt=\"fig5 header conditions\"><\/a><\/center>\n<font size=\"2\"><center>fig5 header conditions<\/center><\/font>\n\n\n\n<p><strong>Step 5:<\/strong><br>Add Recipients in the Recipient tab and select &#8220;<strong>Yes<\/strong>&#8221; in Send mail field and &#8220;<strong>With signature<\/strong>&#8221; in Milestone field.<\/p>\n\n\n\n<p><strong>Step 6:<\/strong><br>Set below in the Message Tab:<br>-Select <strong>Any <\/strong>in Management section<br>-Check <strong>Return Icon<\/strong><br>&#8211;<strong>Enter return function as GESPPL<\/strong><\/p>\n\n\n\n<p><strong>Step 7:<\/strong><br>Add below in the Context field of <strong>Milestone<\/strong> Tab:<br>-[F:PPL]PLICRD<br>-[F:PPL]UPDUSR<\/p>\n\n\n\n<p>Add the below details in the Answers of Milestone:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig6-Milestone-ans1.png\" 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\/2023\/06\/fig6-Milestone-ans1.png\" alt=\"fig6 Milestone ans1\"><\/a><\/center>\n<font size=\"2\"><center>fig6 Milestone ans1<\/center><\/font>\n\n\n\n<p>&#8211;<strong>Create a workflow for Purchase Price No rule notification.<\/strong><br><strong>Step 1 :<\/strong><br>Create a Workflow rule with <strong>ZPPLSIGNCR <\/strong>(Create the duplicate of any standard workflow Ex: POHSIGNCR and change required details)<br>-Event code as ZPPLSIG<\/p>\n\n\n\n<p>Set the below conditions in the header:<br>-S_ABREV =&#8221;PPL&#8221;<br>-[F:PPL]ZAPPFLG=1<\/p>\n\n\n\n<p><strong>Step 2:<\/strong><br>Add Recipient in the Recipient tab and select &#8220;Yes&#8221; in Send mail field and &#8220;Yes&#8221; in Milestone field.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong><br>Set below in the Message Tab:<br>-Select <strong>Any <\/strong>in Management section<br>-Check <strong>Return Icon<\/strong><br>-Enter return function as <strong>GESPPL<\/strong><\/p>\n\n\n\n<p>&#8211;<strong>Similarly create a workflow for Purchase Price list signature.<\/strong><br><strong>Step 1:<\/strong><br>Create a Workflow rule with <strong>ZPPLSIGVAL <\/strong>(Create the duplicate of any standard workflow Ex: POHSIGVAL and change required details)<br>-Event code as ZPPLSIG<\/p>\n\n\n\n<p>Set the below conditions in the header:<br>-S_ABREV =&#8221;PPL&#8221;<br>-[F:PPL]ZAPPFLG=2 | [F:PPL]ZAPPFLG=3<\/p>\n\n\n\n<p><strong>Step 2:<\/strong><br>Add Recipient in the Recipient tab and select &#8220;<strong>Yes<\/strong>&#8221; in Send mail field and &#8220;<strong>With signature<\/strong>&#8221; in Milestone field.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong><br>Set below in the Message Tab:<br>-Select <strong>Any<\/strong> in Management section<br>-Check <strong>Return Icon<\/strong><br>-Enter return function as <strong>GESPPL<\/strong><br>-Enter link key as &#8220;<strong>[F:PPL]PLI;[F:PPL]PLICRD<\/strong>&#8220;<\/p>\n\n\n\n<p><strong>Step 4:<\/strong><br>Set the blow in the Answers:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig7-Answer1-ZPPLSIGVAL.png\" 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\/2023\/06\/fig7-Answer1-ZPPLSIGVAL.png\" alt=\"fig7 Answer1 ZPPLSIGVAL\"><\/a><\/center>\n<font size=\"2\"><center>fig7 Answer1 ZPPLSIGVAL<\/center><\/font>\n\n\n\n<p><strong>Step 5:<\/strong><br>Create an Action as follows :<br>Enter action code as &#8220;<strong>ZPPUPDFLG1<\/strong>&#8220;<br>Select template as &#8220;<strong>Outside model<\/strong>&#8220;<br>Select Type as &#8220;<strong>Miscellaneous<\/strong>&#8220;<br>Enter Standard script as <strong>SPEZPPUPDFLG1<\/strong> and Subprograms as <strong>ZFLGUPDATE<\/strong><\/p>\n\n\n\n<p><strong>Step 6:<\/strong><br>Add <strong>ZPPUPDFLG1 <\/strong>Action in Action tab.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/06\/fig8-Action-ZPPLSIGVAL.png\" 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\/2023\/06\/fig8-Action-ZPPLSIGVAL.png\" alt=\"fig8 Action ZPPLSIGVAL\"><\/a><\/center>\n<font size=\"2\"><center>fig8 Action ZPPLSIGVAL<\/center><\/font>\n\n\n\n<p><strong>Explanation :<\/strong> We have added a custom action in the <strong>ZPPLSIGVAL <\/strong>workflow, since we need to update the standard fields of the the validity start and end date based on the date given in the custom field in the sales price list once the Signed field is in \u201cIn full\u201d i.e ZAPPFLG is 3 or Signed is in \u201cIn part\u201d i.e <strong>ZAPPFLG is 2<\/strong>.<\/p>\n\n\n\n<p>We&#8217;ve added the 4GL code in <strong>SPEZPPPUDFLG1 <\/strong>and <strong>SPEPPL <\/strong>scripts to update the <strong>ZAPPFLG, PLISTRDAT<\/strong> and <strong>PLIENDDAT<\/strong> fields.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><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>Signature workflow is a feature provided by Sage for Automatic signature for a record if it is modified or created by the first level user defined in the Assignment rule. Once the user sign\u2019s the record you will see \u201cSigned\u201d against the user and is processed to the next level of user for signature defined\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/06\/30\/how-to-add-signature-workflow-in-purchase-price-list\/\">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":[8,13],"tags":[1511,1562,3759,2105,2432],"class_list":["post-26778","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-price-list","tag-purchase","tag-purchase-price-list","tag-signature","tag-workflow"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26778","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=26778"}],"version-history":[{"count":16,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26778\/revisions"}],"predecessor-version":[{"id":26800,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26778\/revisions\/26800"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=26778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=26778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=26778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}