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

Differentiate between window and page window.

566


How to check the changes made in the standard layout set , other than using Utilities--- -> Print preveiw ? can u explain the different other ways to check it?

1669


How do u configure the script?

532


You want to display top 5 records from an internal table. How will you do that?

524


How to convert a sapscript to smart form?

553






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

4910


What does read_text?

555


How does check, continue and exit commands work in loop and end Loop.

1580


What is sap script?

508


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

536


In sap scripts, how will u link form with the event driven?

513


How to create standard text in sapscripts?

522


How can I prevent page-break in the message that is to be displayed?

514


Explain the constant in sapscript

617


What are the advantages and disadvantages of ABAP/4 query tool ?

1683