cancel
Showing results for 
Search instead for 
Did you mean: 

Include text in SAP Script

Former Member
0 Kudos

Hi Friends,

In my standard purchase order form contains statement like :

/: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE & EKKO-SPRAS& PARAGRAPH I4

In debugging I found it contains some text .

how to implement in my customized form, if I want ?

Could you guide me in this issue ?

I will reward every heplful responses.

pls treat it urgent.

Thx in Adv.

Bobby

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

This is the syntax to add text in the script, but you can read the text through the FM Read_Text not from so10

in the debugging mode it will return some values

you pass the below specified values in the FM.

NAME:

OBJECT:

ID:

Langugae:

you will get the text.

Regards

kumar

Former Member
0 Kudos

Hi,

In SAPscript, any text can be included at a certain position in the document. The text is defined as standard text using transaction SO10. This text is displayed in the document using INCLUDE command as follows.

Syntax :

INCLUDE name OBJECT object ID identifier PARAGRAPH paragraph LANGUAGE language.

Example :

INCLUDE &VBDPL-TDNAME& OBJECT VBBP ID 0001 PARAGRAPH IT

INCLUDE ‘SD_TEXT’ OBJECT TEXT ID SDVD PARAGRAPH HT

regards

Sandipan

Former Member
0 Kudos

Hi,

This statement is used to insert text elements in the sap script.

GOTO SO10 --> make a text element say ZABC and object as 'ST' and language as EN.

Then to incoperate this text element into ur customised script use:

/:INCLUDE ZABC OBJECT TEXT ID ST LANGUAGE EN

Hope it will solve ur problem

Thanks,

Parul