Hi Experts,
We have a requirement where we have to automatically populate a standard SAP screen field when the screen opens. The T-code is crmd_order and the field is present in the fast entry tab whenu201Dcreate support messageu2019 is clicked. Now I am trying to achieve this by implementing the BADI which this T code calls. There are no user exits to this as per my understanding. There are some 20 BADIs this Tcode calls before opening. I have tried implementing almost all of them but the value is not getting reflected on the screen field. List of BADIu2019s called are as below.
We are trying to automatically populate the sold to party field based upon the guid of the support message. Based upon this guid of the support message we are fetching list of partner function from u201CBAPI_ACTIVITYCRM_GETDETAILMULTu201D. Then we are taking the partner function value of u201CSLFN0002u201D. The BP number captured from this partner function will be passed to u201CBAPI_BUPA_ADDRESS_GETDETAILu201D to get the country of the super user. Based on this country the sold to party is to be determined.
We have made a Z table for fetching this sold to party/region based on the country derived from above logic:
Z Table
Country Region/Customer/sold to party
IN IN/BAN-C1
BD IN/BAN-C2
US US/CAN-C1
Now these unique (sold to party/region) values based on the country has to be populated automatically on the sold to party field of the screen (CRMD_ORDER).
The logic for deriving the same is correct and the main problem is to default it on the screen field.After getting the value of the required field I am trying to display it on the screen by using the standard FM u201CCRM_ORDER_MAINTAINu201D and passing the value in IT_PARTNER.The FM is getting executed but the value is not getting reflected on the screen. I donu2019t understand where it is going wrong I am not able to solve this.Kindly let me know if anyone can throw some light on this.
Regds,
vlp