2022 Oct 27 2:29 PM
Hi experts,
I have a functionmodule in which the functionmodule "BAPI_GOODSMVT_CREATE" is used. From this functionmodule I now want to use the table "lt_item". Is there a way to get the table without changing the other functionmodule?
Thanks in advance.
2022 Oct 27 2:58 PM
2022 Oct 27 3:20 PM
As Raymond mentioned it is not 100% clear what you are asking for.
Each function module has his own import and export parameters defined.
In the BAPI named above your table structure is based on structure BAPI2017_GM_ITEM_CREATE.
Therefore you need to map the table you get from BAPI_GOODSMVT_CREATE to your own format in different ways:
1) MOVE-CORRESPONDING for structure or table (if your own table uses the field names and DDIC elements
2) LOOP lt_item assigning <ls_item>.
ls_new-matnr = <ls_item>-material.
....
ENDLOOP.
There is no automatic mapping between FMs.
2022 Oct 28 12:37 PM
alexander.adam , actually you can create a mapping FM between two structures (using the data element) look at transaction BDBS - Converting Between Int. and Ext. Data Formats and Structures (in SAP Library - BAPI Programmi...