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

DB & BAPI Corresponding Fields

Former Member
0 Likes
670

hello,

im trying to find a function or a way to get the corresponding EKKO / EKPO fields for the PO_ITEM AND PO_HEADER parameters in the BAPI_PO_CHANGE bapi.

i need to get a list or something of the matching database field names that correspond to the fields in the PO_ITEM & PO_HEADER structures.

i tried a search CONVERTBAPI in function modules and i have found many similiar functions that look as if they were automatically generated or something.

is there any way to do this?

thanks in advance, UDI.

1 ACCEPTED SOLUTION
Read only

former_member195698
Active Contributor
0 Likes
586

Fetch the Data from the table EKKO and EKPO into corresponding fields of structure MEPOHEADER and MEPOITEM.

Then use the Function Modules MAP2E_HEADER_TO_BAPIHEADER and MAP2E_ITEM_TO_BAPIITEM.

Thanks & Regards,

Abhishek

3 REPLIES 3
Read only

former_member195698
Active Contributor
0 Likes
587

Fetch the Data from the table EKKO and EKPO into corresponding fields of structure MEPOHEADER and MEPOITEM.

Then use the Function Modules MAP2E_HEADER_TO_BAPIHEADER and MAP2E_ITEM_TO_BAPIITEM.

Thanks & Regards,

Abhishek

Read only

Former Member
0 Likes
586

this seems quite helpful but i need the corresponding field names in a table or something, i dont need to put the corresponding data from the BAPI into the DB.

what i need is the correspondign field names because i need to check if the field in the bapi has an entry in DB for the current item, and if so, to mark it the ITEM_X structure.

Read only

0 Likes
586

never mind , i think ill check if the returned field is null.

thanks very much.