Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: LCHR in table/View

$
0
0

You have a limitation of 255 characters on every alv that you use to show the results.

 

So you have to export the data from the database table.

 

Let's try to explain:

 

You have a database table with 2 fields (e.g.)

LENT TYPE INT2 (2 Byte Integer (Signed)), this field itis used for save the length of the LCHR field

ERROR_MESSAGE TYPE SMO_1500 LCHR (character 1500), this field it's used for save the string value with 1500 character.

 

You can't read this data with the TCODE SE16 or SE16N or SE11, because exist a limitation of 255 character on ALV tables.

 

Create a report like that to export the data to a file:

 

  SELECT *
     FROM zsrm_wlu_004
     INTO TABLE lt_zsrm_wlu_004
    WHERE wi IN s_wi AND
          ano IN s_ano AND
          wi_aagent IN s_agent .

 

CALL FUNCTION 'GUI_DOWNLOAD'
    
EXPORTING
       filename                       
= p_file_download
      filetype                       
= 'ASC'
     TABLES
       data_tab                       
= lt_zsrm_wlu_004


Viewing all articles
Browse latest Browse all 10425

Trending Articles