‎2010 Jul 12 7:28 AM
Hi all,
My requirement is to update ekko table using E1BPPAREX segement. I have gone through so many posts regarding this.
In my case, PO number is not yet created. I am using BAPI_PO_CREATE1 for creating this . From PI side, if they pass the custom field value in the appropriate postion of VALUEPART field of E1BPPAREX, will it get updated to the ekko table automatically.
Regards,
Sajith
‎2010 Jul 12 11:15 AM
Hi Sajith,
you have to do is populate structure extensionin. You'll have to implement the fm DDIF_NAMETAB_GET to look for the right place (offset) in order to add the field on the structure extension in.
Example:
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
tabname = c_ext_table --> ''BAPI_TE_MEPOHEADER
TABLES
dfies_tab = lt_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CLEAR l_offset.
LOOP AT lt_tab.
CASE lt_tab-fieldname.
WHEN c_yourfield.
w_extin-valuepart1+l_offset = p_yourfield.
ENDCASE.
ADD lt_tab-leng TO l_offset.
ENDLOOP.
MOVE c_ext_table TO w_extin-structure.
APPEND w_extin TO p_i_extin.
Regards,
Carlos.
‎2010 Jul 15 7:03 AM
HI,
My requirement is to update EKKO table while creating the PO number itself. So I dont want to do any coding in ABAP other than calling the BAPI 'BAPI_PO_CRATE1'. We have one value in PI side which we need to update into the EKKO table along with PO number. How to proceed?
Any pointers on this will be highly appreciated.
Regards,
Sajith