Screen Personas:Scripting with RFC-Functionmodules: Problems with Import-Structure
I want to change master material data (plan price (field mbew-zplp1) in transaction MD04
with help of function module BAPI_MATERIAL_SAVEDATA.
The problem for me is the mapping of the import parameters with
when not only a single field is set but a structure.
please see attached Graphic1.png
I found an example which has also a structure as import parameter
Above Method JSON-stringify is used. I tried to reproduce it in our system.
But unfortunately it is not working because of 2 reasons.
- The function module is not working without a “COMMIT WORK” at the end.
I could simulate this writing a small ABAP-Programm which is calling the function module.
Without “COMMIT WORK”-Statement at the end of the program the FM is not updating.
How can I handle this in the script.
- Something seems to be wrong (syntax?) in the Method JSON-stringify.
What not logical is that the content of field FIRSTNAME is between ‘’ and the content of field LASTNAME is between “”.
Further I debugged (screenshot below) and found out that the script is also transferring the fieldnames not only
the data to the structure. So the function module is going to fail. Could you please help me with
Thanks a lot.
please see attached Graphic2.png