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: 

Extract data from rz20 with rfc and XMI

Former Member
0 Kudos

Hi,

I'm trying to fetch some data from rz20 and using this code, When I try to use it without "DESTINATION" it works just fine. But when I add a destination, even internal rfc its returns just an empty table.

CALL FUNCTION 'BAPI_XMI_LOGON'

EXPORTING EXTPRODUCT = 'Product'

          EXTCOMPANY = 'Cmpany'

          INTERFACE = 'XAL'

          VERSION = '1.0'.

DATA : TID TYPE BAPITID.

CALL FUNCTION 'SALR_MTE_GET_TID_BY_NAME'

EXPORTING

  LONGNAME = '<system>\<instance>\R3Services\Dialog\ResponseTimeDialog'

IMPORTING

  TID = TID

EXCEPTIONS

    OTHERS = 1.

*IF sy-subrc NE 0.

*  EXIT.

*ENDIF.



DATA : PERF_ATT LIKE ALPERFVAL,

        str2 type string.

str2 = 1800.

CALL FUNCTION 'SALR_MTE_PERF_READ_CUR_VAL'

EXPORTING

  TID = TID

IMPORTING

  CURRENT_VALUE = PERF_ATT

EXCEPTIONS

  OTHERS = 3.
0 REPLIES 0