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

what is the function of check statement in abap

$
0
0

Hi Gurus,

 

                I am downloading a file containing two records  from app. server to the internal table. For  this I used the following code.

 

If sy-subrc eq 0.

checksy-index gt1.

SPLIT l_data AT cl_abap_char_utilities=>horizontal_tab  INTO wa_zdsl-mandt

                               wa_zdsl-werks

                               wa_zdsl-pallet_id

                               wa_zdsl-matnr

                               s_test

                               wa_zdsl-uom

                               wa_zdsl-lgort

                               wa_zdsl-lot

                               wa_zdsl-prod_date

                               wa_zdsl-ebeln

                               wa_zdsl-erdat

                               wa_zdsl-erzet

                               wa_zdsl-ernam

                               wa_zdsl-aedat

                               wa_zdsl-username

                               wa_zdsl-floc.

       wa_zdsl-mandt = sy-mandt.

       wa_zdsl-erfmg = s_test.

       APPEND wa_zdsl TO it_zdsl.

       CLEAR wa_zdsl.

after the execution of above code it reads only one record from application server to internal table.If I remove the check then it is recording two records from file.what should i do to get two records into internal table without removing check statement

 

Thanks in advance,

Suneel kumar.


Viewing all articles
Browse latest Browse all 8379

Trending Articles



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