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

coding in scripts

Former Member
0 Likes
736

hi

can any body tell is there possible to write code in the scripts.not in the driver program in the script itself.

6 REPLIES 6
Read only

Former Member
0 Likes
716

Hi,

No you cannot do coding in SAP Scripts. You can create subroutines and call these subroutines in program. You can declare variables using define satatement.

Thanks,

Shravan G.

Read only

Former Member
0 Likes
716

hi,

no there is no way to write code in script the only option is

calling perform in the script and writting code in form and end form in driver prg

Read only

Former Member
0 Likes
716

hi,

it is not possible to put a code inside the sap script.

you can use the subroutines.

e.gSyntax:

/: PERFORM <form> IN PROGRAM <prog>

/: USING &INVAR1&

/: USING &INVAR2&

......

/: ENDPERFORM

. pass the variables and do what ever calculations u want ok.

regards.

pradeep

Read only

0 Likes
716

thanks a lot for ur reply.

Read only

mahaboob_pathan
Contributor
0 Likes
716

hi,

no u can not write code in script.

but ucan use performs

and conditonal statements

like if....endif.

check.

Read only

0 Likes
716

thanks a lot for ur reply.