HOw to Call Subroutine in
Sap Script?

Answer Posted / k.nagalakshmi

The example defines a subroutine FORM CALLED_FROM_SAPSCRIPT
in the ABAP ZDEMO_SAPSCRIPT_PERFORM . This subroutine is
called from the SapScript form when the respective element

/E PERFORM_ABAP
is executed. The syntax of the call is like

/: PERFORM CALLED_FROM_SAPSCRIPT IN PROGRAM zsapscriptexits
/: USING &invar1&
/: USING &invar2&
...
/: CHANGING &outvar1&
/: CHANGING &outvar2&
...
/: ENDPERFORM

The subroutine must be defined in the ABAP/4 report as
follows:

FORM form TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
...
ENDFORM.

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You want to backup sapscript layoutsets. How will you do it?

507


What is the work you have done in the MM module and what programs did you use for creating views in MM ?

1694


I want to take the back up of my script layout into my hard disk to be loaded later. What should I do?

529


What the conditional statements used in sapscripts?

522


What is the difference between the sapscript texts, 'customer &kna1-kunnr&' and '&customer kna1-kunnr&'?

599






How can I print logos in sapscripts?

570


What does read_text?

559


Hello ABAP GURUS.. I WANT TO KNOW DO WE DEVELOPE SCRIPTS FROM SCRATCH OR WE USE STANDARD SCRIPTS OF SAP..? AND WHAT LOGO WE HAVE IN STANDARD IN LOGO WINDOW OF STANDARD SCRIPT BUSINESS DOCUMENTS...?

2538


How many interactive reports did you write ?

1575


I create a box in sap script for the amount in bill,i want to add Rs. word over box,it is possible?

4932


Differentiate between window and page window.

575


What do you mean by symbols?

551


Where are the sapscript form names?

552


In BDC having 99 fields in a screen But the flat file having 150 fields.what is the solution.

2256


What is sap script? Difference between sap script and report?

547