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

BAPI_MATERIAL_SAVEDATA

suhas_gavas
Explorer
0 Likes
579

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

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
516

"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?

Read only

Former Member
0 Likes
516

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.