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

READ_TEXT

Former Member
0 Likes
374

Hi All,

I am using READ_TEXT to read header text for RFQs. TC ME43.

But it reads text with tags like <H>DEAR PHIL,</>

I want to avoid printing of these extra tags and only display text.

Please provide solution.

Thanks,

Pratibha.

2 REPLIES 2
Read only

Former Member
0 Likes
348

Hi Pratibha,

While passing the parameters to that FM make sure with the internal table data what it have. Just debug and make sure from where that TAG is coming. Hope this helps you.

Regards,

Kumar.

Read only

Former Member
0 Likes
348

Hi,

Make sure u call the FM correctly as below.

CALL FUNCTION 'READ_TEXT' 
       EXPORTING 
          CLIENT              = SY-MANDT 
          ID                      = 'HR_G' 
          LANGUAGE       = 'E' 
          NAME                = 'ZSAM' 
          OBJECT                  = 'TEXT' 
*         ARCHIVE_HANDLE          = 0 
     IMPORTING 
          HEADER                  = HTEXT 
     TABLES 
          LINES                   = LTEXT 
     EXCEPTIONS 
          ID                      = 1 
          LANGUAGE                = 2 
          NAME                    = 3 
          NOT_FOUND               = 4 
          OBJECT                  = 5 
          REFERENCE_CHECK         = 6 
          WRONG_ACCESS_TO_ARCHIVE = 7 
          OTHERS                  = 8.

In this case it will not give u any extra characters..

Cheers,

Sam