2016 Aug 09 7:56 AM
Hello All,
In BAPI_MATERIAL_SAVEDATA i have a requirement to map
MARM > > BAPI_MARM and
MAKT > > BAPI_MAKT.
Are there any function modules to do this ?
I got FMs for converting MARA > BAPI_MARA and MARC > BAPI_MARC.
Thanks,
Suhas
2016 Aug 09 7:45 PM
"Where used" for the structure BAPI_MARM does not find any such FMs, so I guess unless such FM is programmed in some twisted way the answer is "no". Ditto for the second structure.
The FMs for the other two structures seem to be generated though, so I'm curious how that was done exactly and why for only two structures. Maybe there is something in the SAP notes?
2016 Aug 10 1:28 PM
Well, the Function module that you might have got are only assigning the import fields to export fields, nothing impressive about those function modules.
Also the structure BAPI_MARM & BAPI_MAKT have very few fields. you can easily create those before calling the BAPI.
data : it_makt type standard table of bapi_makt with empty key.
loop at it_data_makt into data(wa_data_makt).
it_makt = VALUE #( BASE it_makt ( langu = wa_data_makt-langu langu_iso = wa_data_makt-langu_iso .....) ).
endloop.