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

When we should use ABAP Memory and SAP Memory ?

1438


What are the modules in FI that you have worked on ?

1469


What is difference between window & a page window?

559


How do I create boxes in sapscript?

605


Where are the sapscript form names?

559






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?

1683


What is t.code for script styles?

592


Explain the variable in sapscript

515


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

2263


How can I transfer sapscript from one client to another?

513


what is maximum columns number in SAPScripts and Smartforms. If How can we move to next page for print.?

2786


How can I print logos in sapscripts?

578


How can I set the header and footer in the main window?

584


What is sap script? What is the purpose of sap script? Difference between sap script and report?

560


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

541