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
What is the use of message command in a report? What are the different message types?
What is size category?
What is the definition of modification in an sap system and how do they impact an upgrade?
Why do we use FOR ALL ENTRIES and what is the pre-requisite
Explain the session method? : abap bdc
What is the difference between synchronous and asynchronous updates?
What are the aggregate objects in the data dictionary? : abap data dictionary
What is protect & endprotect?
HOW CAN YOU USE A PAGE COUNT IN CALLING A PAGE IN SMARTFORM?
Can multiple abap systems connect to abap database?
Hi,have Good Command in SAP ABAP, ABAP WEBDYNPRO now i want to learn sap IS utilities.. can u plz suggest me is it useful r not? If not can i learn BI? Is ABAP with BI have gud future?
What is elementary search help? : sap abap data dictionary
What are screen painter? Menu painter? Gui status?
What is the structure of the bdc table? : abap bdc
What is structure?