Application Development and Automation 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: 
Read only

al11

Former Member
0 Likes
344

need to get file from AL11 to my sap screen

plz give suggestions.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
322

use the following code

OPEN DATASET gv_physical_name FOR INPUT IN TEXT MODE ENCODING DEFAULT.

DO.

READ DATASET gv_physical_name INTO gw_main.

IF sy-subrc NE 0.

*if sy-subrc failed come out of the do statement

EXIT.

ENDIF.

APPEND gw_main TO gt_main.

ENDDO. .

CLOSE DATASET p_datset.

use the following code

OPEN DATASET gv_physical_name FOR INPUT IN TEXT MODE ENCODING DEFAULT.

DO.

READ DATASET gv_physical_name INTO gw_main.

IF sy-subrc NE 0.

*if sy-subrc failed come out of the do statement

EXIT.

ENDIF.

APPEND gw_main TO gt_main.

ENDDO. .

CLOSE DATASET p_datset.

1 REPLY 1
Read only

Former Member
0 Likes
323

use the following code

OPEN DATASET gv_physical_name FOR INPUT IN TEXT MODE ENCODING DEFAULT.

DO.

READ DATASET gv_physical_name INTO gw_main.

IF sy-subrc NE 0.

*if sy-subrc failed come out of the do statement

EXIT.

ENDIF.

APPEND gw_main TO gt_main.

ENDDO. .

CLOSE DATASET p_datset.