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
A subroutine can contain nested form and endform blocks. State true or false. : abap modularization
In the `select' statement what is group by ?
How to Solve a Particular Ticket in Realtime ?
1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?
What is a size category? : abap data dictionary
Badi concepts
Difference between call by value and call by reference? : abap data dictionary
Explain what are the events used in interactive reports?
How to determine the attributes of an internal table?
What is a type group?
I have 3 transactions,where the output of one transaction is input of another and output of 2nd transaction is input of 3rd transaction.i have one flat file with all data for the 3 transaction.if the 3rd transaction failed can we rollback the remaining 2 transactions or not.Is this possible in BDC,How/
What are the types of views? : sap abap data dictionary
What is the difference between a substructure and an append structure? : abap data dictionary
What is the structure of bdcmsgcoll? : abap bdc
Explain how do you get output from idoc?