02-28-2007 7:52 AM
Hi,
I have a Standard text to be inserted into an internal table.The internal table should be sorted on item category, at the end of each item category I have to insert Std text of item category
The field length of internal tables are 10,30 and 40
1)Suppose my Std text has a length of 50 , how can i split and insert that into the table from second column of internal table
2)How can we get Item category( Lips-PSTYV) Std text.is text ID is 200( Please let me know the Syntax of READ_TEXT
Regards
Avi
02-28-2007 7:57 AM
Itab-f1 = text+0(10).
itab-f2 = text+10(30).
itab-f3 = text+40(40).
Append itab.
This will autoamtically split the text.
refer ths lionk for READ_TEXT.
http://www.sapdevelopment.co.uk/fmodules/fms_readtext.htm
Reward if this helsp.
02-28-2007 7:57 AM
Itab-f1 = text+0(10).
itab-f2 = text+10(30).
itab-f3 = text+40(40).
Append itab.
This will autoamtically split the text.
refer ths lionk for READ_TEXT.
http://www.sapdevelopment.co.uk/fmodules/fms_readtext.htm
Reward if this helsp.
02-28-2007 7:58 AM
Hi,
In any transaction, if you double click on the Long Text, it will take you to the STD TEXT editor.
In that screen GOTO->HEADER
it gives the Text Name, Text ID , Language and OBJECT ( 4 things).
You have to pass this 4 fields to the fun module READ TEXT while fetching data into anywhere.
Text Name is important, some times it is the combination of more than 2 fields.
You can split the Text into different lengths by offsetting the Internal table line length.
Regards,
anji
02-28-2007 8:39 AM
u need to find the string lenght using the string lenght operator and do a condition if the lenght exceeds 50 do as required. For splitting the text use the offset command var 50(10).
i guess this logic would be helpful...
if u can send in the code i can add the necessary modifications