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
hi my name is amit i have passed BE(CSE) with honours(72%) in 2006 yr. i have completed SAP/ABAP training with good exposer. i need a staffing company which can provide me real time exposer in SAP R/3. so plz help me out and send any information regarding on my mail id or tele. no. 9999784331 thanks
What are the merits of its?-
Which transaction code can I used to analyze the performance of ABAP program.?
Explain what is a foreign key relationship? Explain this with the help of an example.
What are the different types of the sap abap data dictionary objects?
Why bapi need then bdc ? : abap bdc
Some Realtime Objects on Bdc.
What are the differences between structure and table in data dictionary in abap? : sap abap data dictionary
What are null values? : abap data dictionary
What is table pool?
How do you save data in bdc tables? : abap bdc
What is the use of the raising exception? : abap modularization
Explain what are the problems in processing batch input sessions?
What are the dis-advantages of logical databases? : abap hr
What are the function modules used in a sap script driver program?