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
PARAMETERS: with a SUBMIT statement has
FILE(45) DEFAULT /tmp/vendfile a selection screen, values can
LOWER CASE. be passed to the selection
DATA: VEND_ITAB TYPE STANDARD screen using the WITH
TABLE OF LFA1, addition of the SUBMIT
WA_VEND TYPE LFA1. statement.
SELECT * FROM LFA1
INTO TABLE VEND_ITAB. REPORT YSUB2 .
IF SY-SUBRC = 0.
PARAMETERS:
LOOP AT VEND_ITAB INTO WA_VEND.
SUBMIT YSUB2 AND RETURN NUM (10),
WITH NUM = WA_VEND-LIFNR NAME(35),
WITH NAME = WA_VEND-NAME1 CITY(35),
WITH CITY = WA_VEND-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?