on 09-17-2007 9:59 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.