on 2020 Jan 24 8:38 PM
Urgent: Hello Gurus, We have a requirement to update 0cust_sales master data with latest buying group. Buying group is determined based on submission numbers and some other conditions. We have implemented an end routine and enabled semantic keys in DTP. The issue is End routine is not updating buying group correctly for few customers, but when I debug I can see the correct results in result_package but its not updating the P table. when I run the full dtp with a single customer in filter it works well, I am not sure why its not getting updated to P-table.
Can anyone help me. Please find the attached code.
Request clarification before answering.
Hi Koushik,
in Full DTP please set the semantic key as Cust Sales # and in End routine code sort Custsales as ascending and buying group as descending order and then pick it.
if you are not writing code than any core ABAPer will understand this easily. your side just set Cust Sales # as semantic key.
Thanks,
KD Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Koushik,
Could you let us know that the DTP Semantic key is set as 0CUST_SALES, as per KD Jain recommendation?
Given the way the code is doing its block processing, it is also just as crucial for the DTP Semantic key to not include the other compound objects (0DIVISION, 0SALES_ORG, 0DISTR_CHAN). It does need to be just 0CUST_SALES to ensure all records belonging to a single master data value of 0CUST_SALES (a single customer number with all of its divisions, sales organisations & distribution channels) get put into the same result_package for processing by the End Routine.
Looking forward to your confirmation of the DTP Semantic configuration.
Kind regards, John Lang.
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.