Skip to Content

Extract data from rz20 with rfc and XMI

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.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers