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

standard text and perform in scripts

Former Member
0 Likes
1,979

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

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,484

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.

Read only

0 Likes
1,484

in the driver program it is as below:

FORM <form> TABLES IN_TAB STRUCTURE ITCSY

OUT_TAB STRUCTURE ITCSY.

...

ENDFORM.

Read only

Former Member
0 Likes
1,484
Read only

Former Member
0 Likes
1,484

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.

Read only

Former Member
0 Likes
1,484

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

Read only

Former Member
0 Likes
1,484

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

Read only

0 Likes
1,484

for this statement

/: 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

Read only

0 Likes
1,484

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

Read only

Former Member
0 Likes
1,484

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.

Read only

Former Member
0 Likes
1,484

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.