Quantcast
Viewing all articles
Browse latest Browse all 8695

Re: pass string longer than 255 characters to a single line of internal table

hi sanjana,

 

     check this sample code.

 

REPORT  ZSCN_TEST3 LINE-SIZE 1023.

TYPES: begin of ty_tab,
        name TYPE string,
        END OF ty_tab.

  data : it_tab TYPE STANDARD TABLE OF ty_tab,
         wa_tab TYPE ty_tab.

      DATA : name TYPE string.


do 250 times.

concatenate 'A' 'B' 'C' 'D' name into name.

enddo.

wa_tab-name = name.
APPEND wa_tab to it_tab.

LOOP at it_tab INTO wa_tab.
   WRITE : / wa_tab-name.
   ENDLOOP.


In this 'name' field in internal table 'it_tab' stores 1000 character in single line .

 

Reward points if it's helpful.

 

Regards,

PRABHAKARAN

 

Moderator Message - Asking for points is against the forums' RoE. Please read the RoE before posting.

 

Message was edited by: Suhas Saha


Viewing all articles
Browse latest Browse all 8695

Trending Articles



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