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

Issue with READ_TEXT .........

Former Member
0 Likes
653

Hi Experts,

i am using READ_TEXT to read the Sales Order Text, it is giving output as Table, in that table having more then 1row of text,

but i want to store that all rows of text into one TEXT FIELD, how to do that,

Thanks in Advance...

suma.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Hi,

Can you please little bit more elaborate or paste code.

If you want all text in one field the declare a string variable.

Now loop the internal table.

Concatenate w_string <wa-text> into w_string separated by space.

endloop.

If this is not what you require.

check this link it might help you.

Regards and best wishes.

3 REPLIES 3
Read only

Former Member
0 Likes
580

Hi,

Can you please little bit more elaborate or paste code.

If you want all text in one field the declare a string variable.

Now loop the internal table.

Concatenate w_string <wa-text> into w_string separated by space.

endloop.

If this is not what you require.

check this link it might help you.

Regards and best wishes.

Read only

Former Member
0 Likes
579

Hi,

Have you tried looping on the IT and concatinating it in a string or char of desired length.

You can seprate the texts of different lines in one string by comma or semi collan.

If you face any problem, let us know..

Read only

Former Member
0 Likes
579

Hai

This code is used to fetch header text . if more than 2 line , use concatenate Keyword .

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = '0002'

language = sy-langu

name = id

object = 'VBBK'

TABLES

lines = itab_h1

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

obje

ct = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

*

LOOP AT itab_h1 INTO g_text3h1.

MOVE : g_text3h1 TO g_text4h1 .

( Using CONCATENATE Used )

ENDIF .

APPEND g_text3h1 . append g_text4h1 .

Regards

Sarath P G