Skip to Content
author's profile photo Former Member
Former Member

Std text

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 28, 2007 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2007 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.