Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg: function Save_text

Hi All,

I have to Store some text at ITEM TEXT Level(VA02 screen -> GOTO -> ITEM -> TEXTS). I am using the function module SAVE_TEXT for this.

I have declared an structure:

DATA: ls_head TYPE thead.

And filled it as:

ls_head-tdid = 'ZCON'.

ls_head-tdobject = 'VBBP'.

ls_head-tdspras = sy-langu.

ls_head-tdname = "Activity number".

I am using SAVE_TEXT as shown below:



client = sy-mandt

header = ls_head

insert = 'X'

savemode_direct = 'X'


lines = lt_line.

But i have just one "Activity number" for whole order and i want this text to be created for all line items.

E.g. Order number: 1000; Activity number: 012345 and this order has 5 line items: 10,20,30,40,50. Now i want to call SAVE _TEXT 5 times but i have just 1 "Activity number" (for the whole order).

It is working fine if i am calling SAVE_TEXT only once, but i want texts for all line items.

Is there any solution? Can i use SAVE_TEXT by giving same Activity number and different line items?

Thanks in advance,




> ls_head-tdname = "Activity number".

This is wrong. You need to fill TDNAME with the key to your sales order line item, a concatenation of sales order number (length 10) and line item (length 6), e.g. 0000001000000010. You need to call SAVE_TEXT for each of the five line items in your example, changing TDNAME accordingly. The contents of LT_LINE can remain the same.

The text "Activity number" is fixed to the Text ID ZCON already, if you configured it that way.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question