Automate

 View Only
  • 1.  Requirements for making remote-enabled FM usable in studio?

    Posted 07-08-2024 04:03

    We have a custom FM that we want to use in winshuttle, so we made it remote enabled. It now shows up in the list, but I'm still unable to select it properly, studio is not pulling in the field list. Are there any requirements besides being remote enabled for a function module to be usable in studio?



    ------------------------------
    Christian Haklar
    Application Developer
    Celanese International Corporation
    Irving
    ------------------------------


  • 2.  RE: Requirements for making remote-enabled FM usable in studio?

    Employee
    Posted 07-08-2024 20:07
    Edited by Sigrid Kok 07-09-2024 10:27

    Hi Christian

    Not my area of expertise, but I do know we have remote enabled some FMs in our FM and we support custom BAPIs and rFM. 

    A search pulled up some recommendations - here's one:

    https://community.sap.com/t5/technology-q-a/rfc-enabling-a-function-module/qaq-p/962058

    Well you can do it through attributes tab. There is a radio button for this but keep in mind a few things about RFC function calls, as you may have to change the function code a little bit

    1: Certain abap statements are not allowed in RFC functions such as 'Leave'

    2: If the orignal function is throwing Exceptions, it is better to return the exceptions in a 'Return' table for your RFC enabled function.

    3: All your import and export parameters must be passed by value.

    I would double check with your Basis team and if everything checks out, open a support ticket.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------