Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

updating EKKO table using E1BPPAREX

Former Member
0 Likes
740

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

2 REPLIES 2
Read only

Former Member
0 Likes
480

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.

Read only

Former Member
0 Likes
480

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