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: 

outbound interface using dataset

Former Member
0 Kudos

Hi,

Please send me example program for outbound interface to maintain file in application server.

Thanks

Ali

1 REPLY 1

Former Member
0 Kudos

Hi,

the code should look like below.

declare:

filepath_name TYPE rlgrap-filename,

internal table itab.

**Populate data to itab.

OPEN DATASET filepath_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc = 0.

LOOP AT itab.

TRANSFER itab TO filepath_name .

ENDLOOP.

ELSE.

MESSAGE i001(00) WITH 'Error writing to file in remote computer'.

ENDIF.

CLOSE DATASET filepath_name .