Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: RFC and read table in another destination

$
0
0

Hello Guillaume,

 

welcome in this forum.

 

I try RFC_GET_TABLE_ENTRIES, but I think it is better to use RFC_READ_TABLE. Try this to get the numbers of the transports from another system:

 

"-Begin-----------------------------------------------------------------  Program Z_TEST.    Data Fields Type Standard Table Of RFC_DB_FLD.    Data Field Type RFC_DB_FLD.    Data Data Type Standard Table Of TAB512.    Data Line Type TAB512.    Field-FIELDNAME = 'TRKORR'.    Append Field To Fields.    Call Function 'RFC_READ_TABLE' Destination 'NONE'      Exporting        QUERY_TABLE = 'TMSBUFTXT'      Tables        FIELDS = Fields        DATA = Data      Exceptions        TABLE_NOT_AVAILABLE = 1        TABLE_WITHOUT_DATA = 2        OPTION_NOT_VALID = 3        FIELD_NOT_VALID = 4        NOT_AUTHORIZED = 5        DATA_BUFFER_EXCEEDED = 6        Others = 7.    If sy-subrc <> 0.    Else.      Loop At Data Into Line.        Write: / Line.      EndLoop.    EndIf.

"-End-------------------------------------------------------------------

 

Let us know your results.

 

Cheers

Stefan


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>