Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Regd PT_ARQ_ACCOUNTS_GET error...

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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