Skip to Content
author's profile photo Former Member
Former Member

scripts

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

Add comment
10|10000 characters needed characters exceeded

6 Answers

  • Best Answer
    Posted on Aug 01, 2006 at 11:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12:08 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12:10 PM

    hi,

    Standard texts can be found in tcode SO10.

    You can directly insert them into script by INCLUDE statement.

    Regards,

    Sailaja.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 11:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 11:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12:00 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded