Application Development 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: 

scripts

Former Member
0 Kudos

Hi all,

How to display the standard text in Script which is having 5 pages at a time.

Where the standard text will be stored.

can i pass an internal table in print program.

Thanks in advance

Venkat

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Hello,

1. To include a text.

/: INCLUDE ZTEST1 OBJECT TEXT ID ST

For your req, use this in the main window.

2. Std text get stored in the STXH and STXL table.

3. Yes you can pass internal table to script.

Regards,

Naimesh

6 REPLIES 6

naimesh_patel
Active Contributor
0 Kudos

Hello,

1. To include a text.

/: INCLUDE ZTEST1 OBJECT TEXT ID ST

For your req, use this in the main window.

2. Std text get stored in the STXH and STXL table.

3. Yes you can pass internal table to script.

Regards,

Naimesh

Former Member
0 Kudos

Hi Venkat,

Standard texts are stored in the SAP Tables : <b>STXH and STXL.</b>

But we can not read them directly with select statement. We shpuld use the Function module : <b>'Read_Text'.</b>

For include a text, use following in main window:

<b>/: INCLUDE text_name OBJECT TEXT id ST</b>

We can pass internal table to script like other variables.

Regards,

pragya

Former Member
0 Kudos

Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.

Syntax:

<b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>The name of the text to be inserted must be specified and can have up to 70 characters. If the text name contains blanks, put it in quotes as a literal. It can also be specified with a symbol. All further parameters of INCLUDE are optional. If these parameters are missing, SAPscript uses default values based on the respective call environment for them.

regards

srikanth

Former Member
0 Kudos

hi,

texts will be stored in tables

STXH-STXD SAPscript text file header and

STXL-STXD SAPscript text file lines

but you cant read the text from these tables,they will be stored in encripted format. you have to use READ_TEXT function module to read the text and SAVE_TEXT to store the text.

in the script you can directly use INCLUDE ( SCRIPT CONTROL COMMAND) to insert the specific text in to the layout.

Regards

srikanth.

Former Member
0 Kudos

hi,

you can display the standard text in SAP script using include . The transaction code for standard text is tcode SO10. The syntax for include is

/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]

Example

/: INCLUDE MYTEXT LANGUAGE ‘E’ PARAGRAPH ‘A1’

The standard text is stored in the header and line files - STXH-STXD and STXL-STXD. You cannot directly read these tables using read statements as the text stored here is encrypted. You need to use the FM READ_TEXT to read this text(in programs).

Yes, you can pass an internal table in the print program.

Regards,

Richa

Former Member
0 Kudos

hi,

Standard texts can be found in tcode SO10.

You can directly insert them into script by INCLUDE statement.

Regards,

Sailaja.