Skip to Content
0

Extract data from rz20 with rfc and XMI

Sep 26, 2017 at 07:14 AM

20

avatar image
Former Member

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.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers