on 02-14-2014 5:50 PM
Hi all,
My customer is asking to add a custom field in ECC table EKPO.
This field needs to be populated with the Catalog ID number form a PO creacred in SRM.
Im using BADI BBP_CREATE_BE_PO_NEW to trasnfer the SRM PO to ECC.
My question is how do I transfer the Catalog ID to the custom field in EKPO-CATALOGID?
Its IT_EXTENSIONOUT usefull for this?
Any example?
Thanks in advance.
Nico.-
Hello Nicolas,
In fact, we have to use table EXTENSIONOUT to transfer your customer fields.
You have explantions and an exemple here : BBP_CREATE_BE_PO_NEW - Create PO in backend - Supplier Relationship Management - SCN Wiki
Jonathan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thanks for the replay.
There are some things I still dont understand how they work.
The link says:
lh_item_account-po_item = lh_cs_item-po_item.
lh_item_account-serial_no = lh_cs_account-serial_no.
lh_item_account-yourcustomefieldname = 'XXX '.
lh_extensionin-valuepart1 = lh_item_account.
append lh_extensionin to <lt_extensionin>.
clear lh_extensionin.
lh_extensionin-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
lh_item_accountx-po_item = lh_cs_item-po_item.
lh_item_accountx-serial_no = lh_cs_account-serial_no.
lh_item_accountx-yourcustomefieldname = 'X'.
lh_extensionin-valuepart1 = lh_item_accountx.
append lh_extensionin to <lt_extensionin>.
If I need to move a value to a new custom field in EKPO do I still need to use 'BAPI_TE_MEPOACCOUNTINGX'.
What is this structure?
How will this should be to move a value to a custom field in ECC EKPO?
Thanks
Nico.-
For extends EKPO and use the table extensionin of the BAPI, you have to follow next steps :
1) Create a Z structure containing all the Z fields ( custom fields).
2) In EKPO's append structure, add the new Z structure using .include. All the custom Z fields should be inside this include. ( relevant for BAPI)
3) Similarly add this include in BAPI_TE_MEPOITEMX.
4) Then fill the BAPIextensionin parameters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.