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

SAP script : include Standard text, Urent please

Former Member
0 Likes
580

Dear All,

In Sap Script how to include a standard text. I have to prinnt Std Text 1 when Condition is 'X' and Stdtext2 when condition is 'Z'. Please help me in this regard.

This is Quite urgent.

Thanks for your inputs.

Regards

Venkat

4 REPLIES 4
Read only

Former Member
0 Likes
541

Hi Venkat,

To include a standard text in a form, use the INCLUDE command:

/: INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD

When formatting the standard text the PARAGRAPH parameter is used. To center the text use:

/: INCLUDE <name> <Parameter>

<parameter> = Object, ID, Language, Paragraph

<b>Example:</b>

/: INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD LANGUAGE EN PARAGRAPH C.

Name: Z_BC460_EX4_HF

Object: Text

Text id: SDVD (Text id from SO10)

Language: EN

Paragraph: C (Centered)

<b>Tip: You can use menu Insert->Text->Standard to make it easier to insert the text</b>

Read only

0 Likes
541

Phani,

yeah I have inserted 2 Std text, Can u kindly let me know, how to write a simple if statement there. Would be great help.

Thanks

Venkat

Read only

0 Likes
541

Hi Venkat,

You can use command line for that..

/: IF &matnr& = '0101'

/: INCLUDE ......

/: ENDIF

Read only

0 Likes
541

Thanks Phani,

I got it. Solved .

Closing Thread, Alloting points.

Regards

Venkat