Passing the Function Module name and Parameters to SAp

Tagged:
  • Andreas
    Participant
      6 years ago #15874

      Hello group,
      can anybody give me a hint how to call a RFC function module and pass its parameters in SAP? Can I just define a string with the name of the RFC FM or do I have to add some more characters?
      “error”:”A failure happened during the execution of the provided operation! The failure was: {The repository could not be retrieved from the destination!}”,
      “parameters”:{
      “FB”:{
      “dataType”:”String”,
      “const”:”QIRF_SEND_INSP_REQUIRMENTS”
      }
      },

      Regards
      Andreas

      Mathieu Roll
      Keymaster
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
      6 years ago #15907
      Up
      0
      Down
      ::

      Hi,

      the function module name is build into the import parameter like here.

      If you don’t have a import parameter you have to set the parameter with a dummy constant value like this.

      Regards

      Mathieu

      Andreas
      Participant
        6 years ago #16339
        Up
        0
        Down
        ::

        This worked out fine. Thank you!
        Now the next step. How do I get the contents of the table in the table definition of the funcion module after the call? I tried to use the strings in the samples and the documentation. But nothing worked for me. I either get just a {} or a “cannot split JSON…” error.

        Regards
        Andreas

        Attachments:
        You must be logged in to view attached files.
        Kahn
        Moderator
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
        5 years, 11 months ago #16487
        Up
        0
        Down
        ::

        Hi,

        you will get the Contents of the Tables as follow:

        • Add the following parameter into your call configuration/operation/additionalReturnInformation[0]  and the value TABLE  to get the TABLES as output
        • Warning: By doing so you will get only the TABLES as OUTPUT, if you want to get your EXPORT or CHANGING, then please do the following
          • For EXPORT parameter: Add the following parameter into your call configuration/operation/additionalReturnInformation[1]  and the value EXPORT  to get the EXPORT as output
          • For CHANGIG parameter: Add the following parameter into your call configuration/operation/additionalReturnInformation[2]  and the value CHANGIG  to get the CHANGIG as output
        • You can also get the defined EXCEPTIONS as output if you desire so: Add the following Parameter into your call configuration/operation/additionalReturnInformation[3]  and the value EXCEPTION  to get the EXCEPTIONS as output

         

        The standard behavior is as follows:

        • You provide an IMPORT parameter as input, then you will get automatically all EXPORT parameters as output
        • You provide a CHANGING parameter as input, then you will get automatically all CHANGING parameters as output
        • (Will follow soon: You provide a TABLE parameter as input, then you will get automatically all TABLE parameters as output)

         

        I hope this helps you.

        Regards

        Kamil

      Viewing 4 posts - 1 through 4 (of 4 total)

      You must be logged in to reply to this topic.