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

Problem when dispalying Sales document header text.

Former Member
0 Likes
388

Hi All,

I am facing problem when displaying header text of Sales document. my problem is that

when we got to VA02 -> give sales document number press enter

once afer going inside that sales document -> Goto Header text . In text tab, on left hand side we can find many text for whch corresponding text has written on Right hand side Text area.

i want that text to be print on script.

i tried even by pressing F1 but i could not find where that text stores in database.

can any one please explain it how to dispaly the text that is written manually in text area on Script.

regards

Prasadh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
367

Hi,

You must call function module 'READ_TEXT' with the following parameters:

ID = The technical text id number (see table TTXID for OBJECT = 'VBBK' for a list of valid values)

LANGUAGE = your local language

NAME = sales document number (all 10 digits with any leading zeros)

OBJECT = 'VBBK'

You will need to call the function module once per text type id (the list on the left hand side in VA02, header texts screen). The text from the right hand side will be in an internal table LINES after you call the 'READ_TEXT' function module.

If you just want to print directly from VA02, then choose the details button which takes you to another screen with Print functionality.

Regards,

Jamie

2 REPLIES 2
Read only

Former Member
0 Likes
368

Hi,

You must call function module 'READ_TEXT' with the following parameters:

ID = The technical text id number (see table TTXID for OBJECT = 'VBBK' for a list of valid values)

LANGUAGE = your local language

NAME = sales document number (all 10 digits with any leading zeros)

OBJECT = 'VBBK'

You will need to call the function module once per text type id (the list on the left hand side in VA02, header texts screen). The text from the right hand side will be in an internal table LINES after you call the 'READ_TEXT' function module.

If you just want to print directly from VA02, then choose the details button which takes you to another screen with Print functionality.

Regards,

Jamie

Read only

0 Likes
367

you can use command

/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l]

in sapscript window to print your text.. first you need to find out 'name' 'object' 'id' and 'language' which can be obtained from VA02 text by going to header information of that text.