Skip to Content
0
Jan 16, 2019 at 03:46 PM

Item text change not sent via ORDCHG message type

238 Views Last edit Jan 16, 2019 at 02:30 PM 2 rev

Hello Guys,

My requirement is that, while creating a Purchase order, the email address maintained in the delivery tab of the item details has to be sent via idoc to the partners.Currently there is not field in the standard segment E1EDKA1 to send the email address.Instead of going for a extension IDOC we went for an alternative approach of creating a new text field at item level and pass the email address to the text so that it can be sent via standard IDOC.

We created a new text field at item level and trying to pass the email ID to the text by writing the logic using READ_TEXT and SAVE_TEXT in the BADIs ( method posted of ME_PROCESS_PO_CUST,method POST of BADI ME_PROCESS_PO_CUST and method PROCESS_ITEM of BADI ME_PROCESS_PO_CUST ).We are able to update the email ID in newly created text field .The email ID is also sent via IDOC using ORDERS message type in segment E1EDPT2.

But when we are changing email ID in the delivery address tab via ME22N transaction, the email ID is updating correctly in the text field but the changed email ID is not sent in ORDCHG idoc.

If anyone experienced this issue or worked on similar requirement earlier. Please let me know. Your early response is highly appreciated and rewarded.