on 2018 Feb 26 8:00 PM
Experts,
I have created a table extension in header level of PO and it is getting displayed on PO screen as a new tab and I able to edit and save data in it.
Now the requirement is to replicate the same data to ECC when PO is replicated to ECC. I have created a Z table in ECC with the same fields which I have added in table extension in SRM.I want to save the table extension data into this Z table when PO gets replicated in ECC.
How can I achieve this ?
I debugged the FMs that create/change PO in ECC while replicating but unlike the custom fields at header level in SRM the table extensions were not found anywhere.
Dear Mehul,
During the transfer of extended PO, the Function B46B_DPO_TRANSFER will call the active implementations of ECS PO OUT BAdI. Your Z header table should be mapped to the lt_bapi_customer_fields structure in BBP_ECS_PO_OUT_BADI.
Then - when the transfer reaches ECC - you have to map the fields back to your ECC Z structure (I believe BBP_PO_INBOUND BAdI is the best way to achieve this).
The full Debugging Guide can be found on our Wiki: https://wiki.scn.sap.com/wiki/x/0ARIF
Best regards,
Imre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
The problem with your solution is that, by the time B46B_DPO_TRANSFER FM or BBP_ECS_PO_OUT_BADI gets called the Z header extension table data is not yet updated at DB level. So, I don't know what entries user has entered/deleted as a part of transaction. Also, B46B_DPO_TRANSFER doesn't have any parameter which contains the entries entered by user on the Z header extension table.
For your reference, I have created table extension using the following link.
https://blogs.sap.com/2012/05/25/table-extensions-in-srm-documents/
Regards,
Mehul
Hello,
Could you please read the information available in note 945335? Perhaps it helps you to find a place to debug the customer fields in PO transfer.
Regards,
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.