Skip to Content
author's profile photo Former Member
Former Member

calling RFC function

I am trying to call an RFC function in my bsp page. The RFC is to start a process chain. It gives me an error and I am not sure why. It tells me E_LOGID is not expected. Here is code:

if event->id = 'Update1' and event->event_type = 'click'.
      Call Function 'RSPC_API_CHAIN_START'
      DESTINATION 'NONE'
      importing
      I_CHAIN = 'NCNADMFULL'
      I_SYNCHRONOUS = ''
      I_SIMULATE = ''
      EXPORTING
      E_LOGID = 0.

      endif.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 17, 2007 at 10:18 PM

    Hi Uday,

    well it seems that the function module RSPC_API_CHAIN_START does not expect and exporting parameter called E_LOGID.

    Why dont you just use the templating options to insert sample code to call the RFC?

    When I did this I got this code generated.

    CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        i_chain             =
    *   I_T_VARIABLES       =
    *   I_SYNCHRONOUS       =
    *   I_SIMULATE          =
    *   I_NOPLAN            =
    * IMPORTING
    *   E_LOGID             =
    * EXCEPTIONS
    *   FAILED              = 1
    *   OTHERS              = 2
              .
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    So it seems you got your IMPORTING and EXPORTING options around the wrong way.

    Cheers

    Graham

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.