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

standard text and perform in scripts

Hi guys,

can any body tell me how to use<b> perform</b> in scripts.

and how to include these statement it doesn't look like standard text

/: INCLUDE &ZTXTNAME& OBJECT BOM ID MZU

have a nice weekend

Add comment
10|10000 characters needed characters exceeded

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2006 at 08:58 PM

    hi,

    In the script u can write :

    perform subroutine-name in Program using var1 changing var3.

    in the driver program:

    form subroutine using var1 changing var3.

    endform.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2006 at 09:03 PM

    This link gives you a simple example.

    http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm

    Hope this is helpfull.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2006 at 05:04 AM

    Hi Deepthi,

    The syntax of Perform statement is

    /: PERFORM <form_name> in PROGRAM <program_name>

    /: USING &INVAR1&

    /: USING &INVAR2&

    .

    ..

    /: CHANGING &OUTVAR1&

    /: CHANGING &OUTVAR2&

    .

    ..

    /: ENDPERFORM.

    In the program <program_name> , you can write the form <form_name> as:

    FORM <form_name> TABLES INTTAB STRUCTURE ITCSY

    OUTTAB STRUCTURE ITCSY.

    endform.

    INTTAB will contain all the input parameters like INVAR1, INVAR2 etc and OUTTAB will contain all the output parameters like OUTVAR1, OUTVAR2 etc.

    You can download a nice document on SAPScript from this link , but within 1 day.

    https://www7.sendthisfile.com/d.jsp?t=asglGjpv25aba8T8sp2G1zyd

    Regards,

    Amit.

    Add comment
    10|10000 characters needed characters exceeded

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

    Hi

    ANyone tell me ,where should i check for this text.

    It has been used in SCRIPTS,i tried in so10 but i doesn't look like standard text.

    Pls do let me if any one has an idea

    /: INCLUDE &ZTXTNAME& OBJECT BOM ID MZU

    thanks

    Add comment
    10|10000 characters needed characters exceeded

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

    HI,

    1) See the below link for the External perform which we

    use in SCRIPTS,

    2) you only see the standard text in SO10, if you want to see the text which you mention, just go to the BOM transaction code, there you will find the text to that BOM, that will have the name, OBJECT and ID, the same we will write in the Script, so that the text will be called in Scripts ...

    Thanks

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      INCLUDE &ZTXTNAME& OBJECT BOM ID MZU

      You said to check BOM t-code ,i see so many BOM t-code,can you pls tell which transaction i need to check.

      Thanks in advance

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

    Hi deepthi,

    Standard texts are maintained in transaction SO10.

    Example 1:

    You have created a standard text in SO10 Named MYTEXT and with Text Id ST

    /: INCLUDE MYTEXT OBJECT text ID st

    Example 2:

    You can also use a dynamic name so that you can retreive a ext depeding of the name variable:

    /: INCLUDE &SCUSTOM-NAME& text ID st.

    Depending on the name in the variable &SCUSTOM-NAME& different texts will be shown. Note that a text with the name in the variable &SCUSTOM-NAME& name must be created in SO10

    regards,

    keerthi.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 09:13 PM

    Use the transaction SE78. Under Stored as Text find MZU and select it. You will get a screen on the right side with name and language. In name press F4.

    Add comment
    10|10000 characters needed characters exceeded