Can we call a subroutine in a script? If so, how?
Answer Posted / chittidi
YES , WE CAN CALL SUBROUTINES IN SCRIPTS WITH OUT
CHANGING THE STANDARD DRIVER PROGRAM TO FETCH ADDITONAL
DATA TO PRINT IT ON LAYOUT.
WRITE SUBROUTINES IN MAIN PROGRAM AND CALL THE SUBROUTINE
ie PERFORM in page WINDOW OF THE LAYOT.
SYNTAX :
/: PERFORM <FORM>IN PROGRAM <PROG> USING &INVAR1& &INVAR2&
........
........
/: CHANGING &OUTPUT1& &OUTPUT2&.
........
ENDFORM.
FORM <FORM> TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE
ITCSY.
........
ENDFORM.
HERE INVAR1 , INVAR2 ARE VARIABLE SYMBOLS WHICH MAY BE ONE
OF THE FOUR SCRIPT SYMBOL TYPES.
OUTPUT1 , 2 ARE LOCAL TEXT SYMBOLS AND MUST BE CHAR STRINGS.
THE INTERNAL TABLE OUT_TAB CONTAINS 2 FIELDS THAT IS
NAMES AND VALUES OF THE CHANGING PARAMETERS IN THE PERFORM
STATEMENT.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How many structures can be created in a Ztable ?
What is the difference between Classic badi and Kernal badi ?
What are the two ways of producing a list within a transaction?
From Excel to ABAP - Is batch mode possible ?
What are the types of subroutines?
What are the basic functions of database utility?
What are the different window types in sapscript?
Final class
What is sap script? Describe its components.
Difference between sap script and report?
Explain about workbench request and customization requests?
How many default tab strips are there? How to insert more tabs in it?
what is mean be On Change of in Control Break statement
Define external layer? : abap data dictionary
How to handle error in session method? : abap bdc