08-17-2009 8:56 AM
Hi,
We are trying to execute the RFC PT_ARQ_ACCOUNTS_GET by passing the values for the below parameters . We were to able to execute for the first time in se37 tran but when we come back and again execute by changing the personnel number , we are getting the dump MESSAGE_TYPE_X (See the below source code extract where the dump occurs) . We are using ECC 6.0 system.We want to basically use this RFC in MSS >> Team viewer >> General Information page to display the leave quota for selected employee.
IM_COMMAND
IM_PERNR <Personnel Number>
IM_SEL_PERNR <Personnel Number>
IM_TEAM 00000000
IM_TIME_TYPE
IM_BEGDA <Current Date>
IM_ENDDA 31.12.9999
IM_SEL_BEGDA 01.01.1800
IM_SEL_ENDDA 31.12.9999
IM_MODUS R
IM_DEBUG
* Get application initiator pernr
* get reference to the application
application = cl_pt_arq_application=>get_instance( ).
CALL METHOD application->if_pt_req_application~get_initiator
IMPORTING
ex_initiator = initiator.
app_pernr = initiator->pernr.
CALL METHOD application->if_pt_req_application~get_modus
IMPORTING
ex_modus = app_modus.
IF app_pernr = pernr AND app_modus = modus.
* Application is Consistent
ELSE.
** Application is NOT Consistent, then DUMP* //Getting Dump in this line
*MESSAGE x999(53). "#EC **
ENDIF.
Thanks,
Vasu
08-18-2009 5:14 AM
Hi,
I was able to resolve this |RFC dump by passing the below values . Previously i was passing the employee number for both IM_PERNR and IM_SEL_PERNR and this is the reason i was getting the dump.
IM_PERNR - Manager personnel number
IM_SEL_PERNR - Employee personnel number
IM_MODUS - T
Regards
Vasu