Call another program from list in ABAP

SUBMIT rep. (Calls the report rep . Leaves the active program and starts the new report rep)

 Additions

1. … LINE-SIZE col   (Prints the report with the line width col)
2. … LINE-COUNT lin (Prints the report with lin lines (per page).)
3. … TO SAP-SPOOL
4. … VIA SELECTION-SCREEN (Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display – the user’s entries are retained)

5. … AND RETURN (Returns to the calling transaction or program after the called program has been executed. SUBMIT … AND RETURN creates a new internal mode)
6. … EXPORTING LIST TO MEMORY (Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition … AND RETURN . Also, since the called report cannot be requested for printing, the addition … TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module ‘LIST_FROM_MEMORY’ and then (for example) store it in the database with EXPORT . You can process this list further with the function modules ‘WRITE_LIST’ , ‘DISPLAY_LIST’ … of the function group “SLST”)
7. … USER user VIA JOB job NUMBER n (Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition …AND RETURN)
8. … Various additions for parameter transfer to rep
9. … USING SELECTION-SETS OF PROGRAM prog(Uses variants of the program prog when executing the program rep)

LEAVE

1. LEAVE PROGRAM. (LEAVE PROGRAM always leaves the current program – there is never any processing after LEAVE PROGRAM)
2. LEAVE TO TRANSACTION tcod. (Terminates the current processing and starts the (new) transaction tcod)
3. LEAVE TO SCREEN scr. (Leaves the current screen and processes the screen scr)
4. LEAVE SCREEN. (Leaves the current screen and processes the next screen.)
5. LEAVE TO LIST-PROCESSING. (Switches from “dialog processing” (module pool, screens) of the current transaction to “list processing)
6. LEAVE LIST-PROCESSING. (Returns from list processing and re-processes the return screen (LEAVE TO LIST-PROCESSING))
7. LEAVE.( Leaves the ” CALL mode “)

Related SAP Tutorials & References
  1. LEAVE (ABAP Keyword)LEAVE is a keyword used in SAP ABAP programming. This tutorial covers its introduction &...
  2. WINDOW ( SAP ABAP keyword)WINDOW is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax...
  3. Source Code for create subscreen in your ABAP Program* Source Code for create subscreen in your ABAP Program * * This report will...
  4. EXIT (ABAP Keyword)EXIT (ABAP Keyword) introduction & syntax details EXITEXIT in loops and modularization units Basic formEXIT.EffectIn...
  5. SAP System Fields list – Commonly used with ABAP programsHere is a list of important SAP System fields which are commonly used in our...
  6. SAP ABAP dialog program ( Transactions) Interview questions What is a transaction? -          A transaction is dialog program that change data objects...
  7. Passing data using SAP Memory & ABAP MemoryThere are two cross-program memory areas to which ABAP programs have access that you can...
  8. ABAP Program for MB1B Call TransactionA sample ABAP program to understand how to use MB1B call transaction in ABAP.REPORT YMBIE096...
  9. EDITOR-CALL (ABAP Keyword)EDITOR-CALL (ABAP Keyword) introduction & syntax detailsEDITOR-CALLEDITOR-CALL - call editor for internal tables Basic formEDITOR-CALL...
  10. SCROLL ( SAP ABAP keyword)SCROLL is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax...
Google: Facebook:

Submit your tip or response