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

READ_TEXT

former_member799868
Participant
0 Likes
1,079

we are created text for delivery at item level.we need to modify the that text .in READ_TEXT Fm.we have the text id and object

but what will be tha name.

object:VBBP

ID:0008

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,048

Table STXH holds the text header and STXL the text lines.

A text is identiefied by the fields: TDOBJECT, TDNAME, TDID, TDSPRAS.

For a delivey item text:

TDOBJECT = 'VBBP'

TDNAME = VBELN + POSNR (Delivery number + delivery item number)

TDID = the ID of the item text, can be found in the delivery, display item text, goto header. Then Text ID shows the TDID for this delivery item text

TDSPRAS = the language the text is created

To get the lines of a text funtion module 'READ_TEXT' can be used.

6 REPLIES 6
Read only

Former Member
0 Likes
1,048

Hi

refer this link

http://www.sap-basis-abap.com/sapac002.htm

regards

Shiva

Read only

Former Member
0 Likes
1,049

Table STXH holds the text header and STXL the text lines.

A text is identiefied by the fields: TDOBJECT, TDNAME, TDID, TDSPRAS.

For a delivey item text:

TDOBJECT = 'VBBP'

TDNAME = VBELN + POSNR (Delivery number + delivery item number)

TDID = the ID of the item text, can be found in the delivery, display item text, goto header. Then Text ID shows the TDID for this delivery item text

TDSPRAS = the language the text is created

To get the lines of a text funtion module 'READ_TEXT' can be used.

Read only

Former Member
0 Likes
1,048

Hi,

The name of the object in such a case is normally a concatenation of the delivery number and line item.

To see the pattern of name, create a sample text from the online transaction for the delivery and then go to text header. There you shall get the pattern for the text object name.

Cheers.

Read only

Former Member
0 Likes
1,048

Hi ,

When displaying the text go to the header which will be under goto in the menu bar you can get the details of the standard text.

Regards,

Himanshu Verma

Read only

Former Member
0 Likes
1,048

Hi,

Double click on the text, then it will open one line editor screen then after follow the menu path GOTO->Header-> then it will give one popup with all the values in your case the name would be the VBELN+POSNR.

Cheers,

Bujji

Read only

Former Member
0 Likes
1,048

You need to concatenate the Delivery Number and Item Number with Leading zeros and pass as Name.


Say the delivery number is 12345 and item number is 1

delivery number = 0000012345 (12345)
Item number = 000001 (1)
So 
Name = 0000012345000001

Hope this helps.

Thanks,

Balaji