‎2013 Aug 15 8:14 AM
Hi Folks,
I have to use BAPI_SAVE_MATERIAL for creating/updating material. I get the data for the material from an old customer function which give me back the data in structure mara, marc .... So, is there a function which converts the data from mara to bapi_mara and so on? I know, i'm lazy 😉
Thanks for your help.
Juergen
‎2013 Aug 16 11:49 AM
Hi Jurgen,
You can Create your Custom FM based on "MAP2I_BAPI_MARA_TO_MARA_UEB" Standard FM.
Just Reverse to Making Custom One .
Regard's
Smruti
‎2013 Aug 15 9:24 PM
There is no BAPI_SAVE_MATERIAL in our system, did you mean BAPI_MATERIAL_SAVEDATA?
I'm lazy too, but I ran 'where used' for BAPI_MARA (took me less time than typing this) and found no such functions, sorry!
‎2013 Aug 16 6:51 AM
‎2013 Aug 16 7:38 AM
Can you explain briefly your requirement., so that I can try helping you.
‎2013 Aug 15 11:22 PM
Are you looking for this FM -BAPI_MATERIAL_UPLOAD_SAVE or BAPI_MATERIAL_SAVEDATA depending on your requirement, since both creates a material.
‎2013 Aug 16 8:59 AM
Hi Raja,
to provide compatibility I have to use an old customer function. This returns values for material in structures mara_ueb, marc_ueb .... With this values i want to create the material using BAPI_MATERIAL_SAVEDATA. Therefore i have to move the values of e.g. mara_ueb into the structure bapi_mara. My hope is that there is a function like MAP2E_MARA_TO_BAPIMATMRA doing this job for me.
Thanks in advance...
‎2013 Aug 16 11:24 AM
‎2013 Aug 16 11:49 AM
Hi Jurgen,
You can Create your Custom FM based on "MAP2I_BAPI_MARA_TO_MARA_UEB" Standard FM.
Just Reverse to Making Custom One .
Regard's
Smruti
‎2013 Aug 16 12:45 PM
Hi Smruti,
thanks, that was a good hint. I found the transaction BDBS which generates function modules for converting between int. und ext. structures.