Skip to Content
avatar image
Former Member

Service Call via RFC

Hi all.

I am currently starting with WDA and facing some problems in calling BAPI via RFC.

We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.

When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).

Does anyone has experience in how to get this working?

What is the best practice here?

- Building wrapper on WAS which calls the FM via RFC on the other system?

- Installing missing modules on WAS ?

Any comment would be appreciated.

Cheers,

Sascha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Nov 01, 2006 at 02:19 PM

    Hi Sascha,

    Prerequisities for using service call wizard is that the function module or in your case BAPI has to exit in the system.

    Check SAP Help Docu for Serivce call.

    https://www.sdn.sap.com/irj/sdn/collaboration

    I hope that will help you to figure out your problem.

    Chandresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 01, 2006 at 01:39 PM

    Hello again.

    I forgot to remark that I tried generating the call with the WIZARD. I guess when I would have tried to implement the service call by hand, that this would work, but anyway the main question is how this is handled the best way. For example how to handle missing structures or how to handle upcomming updates on the backends so that eventually structures or FM parameters are changing.

    Cheers,

    Sascha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Sascha,

      I assume you refer to the Service Call Wizard in the WD Explorer of SE80. This wizard generates the pure invocation as you will do in your coding too. The only difference is that you get a (a little bit bulky) context definition granted for free.

      Maybe your rfc Destination or some other argument is not valid. Have you already tried to check the invocation within WD in the debugger and later use exact the same arguments in test mode within se37?

      Regards,

      Klaus

      the WD Service

  • avatar image
    Former Member
    Nov 02, 2006 at 05:33 AM

    Hi Sascha,

    <b>Problem:</b>

    You do not have RFC in the WAS in which you have WebDynPro ABAP. But you need to call a RFC which resides in the different WAS. Right?

    <b>

    Solution</b>

    You can call a RFC using the keyword "Destination". All you have to do is to create a RFC Destination where your RFC exists using TCode sm59. Then when you are calling the

    RFC just follow the below example...

    
    CALL FUNCTION func DESTINATION dest 
                         parameter_list.
    
    

    Hope it helps.

    Regards,

    Maheswaran.B

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi all and thanks for the answers.

      But my main question was what are the best practices to handle RFCs to an R/3 system when all the BAPIs and structures/tabels which are needed to call the BAPI are only available on the R/3.

      - Install missing packages on WAS?

      - Transport structures to WAS?

      - Define structures on WAS?

      Sorry if my first question was not so clear.

      Cheers,

      Sascha

  • Nov 02, 2006 at 02:29 PM

    Hi Sascha,

    First -

    Sorry for sending wrong link, here is again correct link for service call

    http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm

    Second -

    Answer to your Questions -

    If WAS doesn't have structure or BAPI, i am thinking best practices would be to check support package, if there is support package availble, which has all component you need, i would take this way.

    second would be transport to WAS, but not creating Object in WAS, because than you would be have difficulties to track on this.

    Let me know if you have more questions.

    Chandresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2006 at 08:47 AM

    Dear Sascha,

    As of now i dont think we can use RFC/BAPI on remote system.

    As of 2004s ,When you are creating Service call. the text clearly shows, that the RFC/BAPI shold exist only in exisitng system. it canont make a call located on different system.

    Regards

    chandra

    Add comment
    10|10000 characters needed characters exceeded