Académique Documents
Professionnel Documents
Culture Documents
Linking Programs
Objectives
Overview
Report
Program
Report Program
Online
Program
Online
Program
Online Program
Report
Program
Linking Programs
SUBMIT Example
REPORT YSUB1. If the report program “called”
TABLES: LFA1. with a “SUBMIT” statement has
PARAMETERS: a selection screen, values can
FILE(45) DEFAULT ‘/tmp/vendfile’ be passed to the selection
LOWER CASE. screen using the “WITH”
DATA: VEND_ITAB LIKE LFA1 addition of the “SUBMIT”
OCCURS 0 WITH HEADER LINE. statement.
SELECT * FROM LFA1
INTO TABLE VEND_ITAB. REPORT YSUB2 .
IF SY-SUBRC = 0.
PARAMETERS:
LOOP AT VEND_ITAB.
SUBMIT YSUB2 AND RETURN NUM (10),
WITH NUM = VEND_ITAB-LIFNR NAME(35),
WITH NAME = VEND_ITAB-NAME1 CITY(35),
WITH CITY = VEND_ITAB-ORT01 FILENAME(45) LOWER CASE.
WITH FILENAME = FILE.
ENDLOOP. ** code to transfer information to file
ENDIF.
TRANSACTION Example
REPORT YCALL1.
Transaction ‘FD02’
PARAMETERS:
CUST RADIOBUTTON GROUP GRP1,
VEND RADIOBUTTON GROUP GRP1. Program: SAPMF02D
Screen #: 0106
IF CUST = ‘X’.
LEAVE TO TRANSACTION ‘FD02’. (Change Customer Information)
ELSE.
CALL TRANSACTION ‘FK02’.
Transaction ‘FK02’
ENDIF.
Program: SAPMF02K
* remaining program code Screen #: 0106
(Change Vendor Information)
Demonstration
Practice
Summary
Questions
What happens when you submit a report with addition “AND RETURN”?
What are the different modes used with “CALL TRANSACTION”?
What happens when you use addition “AND SKIP FIRST SCREEN” with Call
transaction?