cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SRM PO Header Table Extension - Replicate to ECC

583

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

ImreMatyas
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

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

ricardo_cavedini
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

0 Kudos

Thanks but this note is for different issue.

What I need is step by step information on how I can replicate Table Extension done in PO Header to ECC.