Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Downloading pipe delimited text file from AL11 to an internal table with number of columns varying

$
0
0

Hello Jay,

 

 

Please follow below approach

 

Data : IT_FILE1 TYPE TABLE OF string,

          It_file2   type table of string,

         wa_file TYPE string,

 

DO.

      READ DATASET <file_name> INTO i_file.

      IF sy-subrc = 0.

       SPLIT i_file AT '|' INTO TABLE It_file1.

       APPEND LINES OF it_file1 TO it_file2.

       refresh it_file1[].

      *It_file can accomodate dynamic columns

      ENDIF.   

ENDDO.

 

Thanks


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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