2010 Apr 24 5:01 AM
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.
2010 Apr 24 5:07 AM
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.
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.
2010 Apr 24 5:07 AM
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.
2010 Apr 24 6:29 AM
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..
2010 Apr 24 6:46 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |