Skip to Content
avatar image
Former Member

Personas 3.0 passing parameters to a table

Hello I am trying to this BAPI_MATERIAL_SAVEDATA to create a material master record. I used the RFC tool in Personas 3 to generate the code to pass parameters and read the return structure. I am getting a runtime error when i try to pass parameters in the table "MATERIALDESCRIPTION" The full code below


The Runtime error

Error during script execution:
GuiRFC.getResult(): The RFC call ended with this exception: Function module BAPI_MATERIAL_SAVEDATA execution failed during processing of parameter MATERIALDESCRIPTION
Therefore, cannot return parameter 'RETURN'.

I cannot see what is wrong with the above code can someone help me with this please note I could not paste the entire code due to char limit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 06, 2018 at 12:19 PM

    Hi Dwarak,

    I would recommend first trying out the FM over SE37.
    Can you get the values you need?

    Check also this Wiki for the syntax on calling RFCs.

    If you still face issues, then let us know.


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2018 at 02:51 PM

    It looks like you have the values for fields "LANGU" and "LANGU_ISO" the wrong way around. "LANGU" is a 1 char field, so it should hav the value "E" and "LANGU_ISO" should be "EN". Does that make sense?

    The rest looks OK to me.

    Add comment
    10|10000 characters needed characters exceeded