Hi,
Can we do the computations and calculations in Sapscripts?
If yes, please let me know with example.

thanks in advance
Vijay

Answer Posted / richa

In Scripts, you can call a perform which in turn can do any
type of computation or calculation and return the result to
the script.

In script u write..
perform p_name using v_par1 type itcsy
v_par2 type itcsy
changing v_par3 type itcsy

you can write the form p_name in the print program.
Or in any program, but in that case u have to give the
program name also while calling the script.
perform p_name in program v_prog
using v_par1 type itcsy
v_par2 type itcsy
changing v_par3 type itcsy

v_par1 and v_par2 are passed to the form and the return
value is filled in v_par3.

you can do any type of computation using the variables
passed from the script and return the result in the changing
parameter.

Note- the type of parameter should by ITCSY.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to insert symbols in smart form?

552


How to edit standard SAPSCRIPT called by standard program ?

6181


How would you call a subroutine in sap script?

568


What is sap script?

515


What is a hard break Point?

1542






How to download/upload image sapscripts from & to your pc?

593


What is sapscript? What is its purpose?

561


What are the output types and Tcodes ?

1399


What is difference between window & a page window?

552


What is the purpose of sapscript?

618


I want few sample tech spec's in ABAP

3417


I need to debug sapscript. What steps would you recommend should I take?

508


How do you create boxes in sap script?

544


How can I debug my sapscript?

542


How can I display barcodes in sapscripts?

527