SAP OIJ09_PROCESS_SOURCE Function Module for Process Source









OIJ09_PROCESS_SOURCE is a standard oij09 process source SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Process Source processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for oij09 process source FM, simply by entering the name OIJ09_PROCESS_SOURCE into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIJ09_SCHDASST
Program Name: SAPLOIJ09_SCHDASST
Main Program: SAPLOIJ09_SCHDASST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function OIJ09_PROCESS_SOURCE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'OIJ09_PROCESS_SOURCE'"Process Source
EXPORTING
IS_SOURCE_OPTION = "Current Source
IT_T001 = "Plant - Company Code
IT_T161 = "Purchasing Document Types
IT_PURCH_CONTRACTS = "Purchase Contract
IT_ROUTE_STAGES = "Route Stages
IT_SOURCE_OPTION = "All legs for Current Source ID
IS_DEMAND_SCHEDULE = "Planned Schedule Lines
IT_SPW_DATA = "SPW Data
IT_TVRAB = "Route Stages
IS_MARA = "General Material Data
IT_MBEW_MD = "Master Data Fields from Table MBEW
IT_TS_TPLST = "Transportation planning point
IT_TS_WERK = "Transport System - Plant

IMPORTING
ES_SOURCE_OPTION = "Scheduling Assistant Source Details
ET_PARTNERS = "Scheduling Assistant Partners
ET_ROUTE_STAGES = "Scheduling Assistant Route Stages
ET_INVALID_SOURCE_ID = "Select Option for Source ID
.



IMPORTING Parameters details for OIJ09_PROCESS_SOURCE

IS_SOURCE_OPTION - Current Source

Data type: OIJ09_S_SCHDASST_SOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

IT_T001 - Plant - Company Code

Data type: OIJ09_TT_T001
Optional: No
Call by Reference: No ( called with pass by value option)

IT_T161 - Purchasing Document Types

Data type: OIJ09_TT_T161
Optional: No
Call by Reference: No ( called with pass by value option)

IT_PURCH_CONTRACTS - Purchase Contract

Data type: OIJ09_TT_PURCH_CONTRACTS
Optional: No
Call by Reference: No ( called with pass by value option)

IT_ROUTE_STAGES - Route Stages

Data type: OIJ09_TT_ROUTE_STAGES
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SOURCE_OPTION - All legs for Current Source ID

Data type: OIJ09_TT_SCHDASST_SOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

IS_DEMAND_SCHEDULE - Planned Schedule Lines

Data type: OIJ_SCHED
Optional: No
Call by Reference: No ( called with pass by value option)

IT_SPW_DATA - SPW Data

Data type: OIJ05_TT_SPW_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

IT_TVRAB - Route Stages

Data type: OIJ09_TT_TVRAB
Optional: No
Call by Reference: No ( called with pass by value option)

IS_MARA - General Material Data

Data type: MARA
Optional: No
Call by Reference: No ( called with pass by value option)

IT_MBEW_MD - Master Data Fields from Table MBEW

Data type: OIJ09_TT_MBEW_MD
Optional: No
Call by Reference: No ( called with pass by value option)

IT_TS_TPLST - Transportation planning point

Data type: OIJ09_TT_TPLST
Optional: No
Call by Reference: No ( called with pass by value option)

IT_TS_WERK - Transport System - Plant

Data type: OIJ09_TT_WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for OIJ09_PROCESS_SOURCE

ES_SOURCE_OPTION - Scheduling Assistant Source Details

Data type: OIJ09_S_SCHDASST_SOURCE
Optional: No
Call by Reference: No ( called with pass by value option)

ET_PARTNERS - Scheduling Assistant Partners

Data type: OIJ09_TT_SCHEDPART
Optional: No
Call by Reference: No ( called with pass by value option)

ET_ROUTE_STAGES - Scheduling Assistant Route Stages

Data type: OIJ09_TT_SCHEDROUTE
Optional: No
Call by Reference: No ( called with pass by value option)

ET_INVALID_SOURCE_ID - Select Option for Source ID

Data type: OIJ09_TT_SEL_SOURCE_ID
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for OIJ09_PROCESS_SOURCE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_es_source_option  TYPE OIJ09_S_SCHDASST_SOURCE, "   
lv_is_source_option  TYPE OIJ09_S_SCHDASST_SOURCE, "   
lv_it_t001  TYPE OIJ09_TT_T001, "   
lv_it_t161  TYPE OIJ09_TT_T161, "   
lv_it_purch_contracts  TYPE OIJ09_TT_PURCH_CONTRACTS, "   
lv_it_route_stages  TYPE OIJ09_TT_ROUTE_STAGES, "   
lv_et_partners  TYPE OIJ09_TT_SCHEDPART, "   
lv_it_source_option  TYPE OIJ09_TT_SCHDASST_SOURCE, "   
lv_et_route_stages  TYPE OIJ09_TT_SCHEDROUTE, "   
lv_is_demand_schedule  TYPE OIJ_SCHED, "   
lv_it_spw_data  TYPE OIJ05_TT_SPW_DATA, "   
lv_et_invalid_source_id  TYPE OIJ09_TT_SEL_SOURCE_ID, "   
lv_it_tvrab  TYPE OIJ09_TT_TVRAB, "   
lv_is_mara  TYPE MARA, "   
lv_it_mbew_md  TYPE OIJ09_TT_MBEW_MD, "   
lv_it_ts_tplst  TYPE OIJ09_TT_TPLST, "   
lv_it_ts_werk  TYPE OIJ09_TT_WERKS. "   

  CALL FUNCTION 'OIJ09_PROCESS_SOURCE'  "Process Source
    EXPORTING
         IS_SOURCE_OPTION = lv_is_source_option
         IT_T001 = lv_it_t001
         IT_T161 = lv_it_t161
         IT_PURCH_CONTRACTS = lv_it_purch_contracts
         IT_ROUTE_STAGES = lv_it_route_stages
         IT_SOURCE_OPTION = lv_it_source_option
         IS_DEMAND_SCHEDULE = lv_is_demand_schedule
         IT_SPW_DATA = lv_it_spw_data
         IT_TVRAB = lv_it_tvrab
         IS_MARA = lv_is_mara
         IT_MBEW_MD = lv_it_mbew_md
         IT_TS_TPLST = lv_it_ts_tplst
         IT_TS_WERK = lv_it_ts_werk
    IMPORTING
         ES_SOURCE_OPTION = lv_es_source_option
         ET_PARTNERS = lv_et_partners
         ET_ROUTE_STAGES = lv_et_route_stages
         ET_INVALID_SOURCE_ID = lv_et_invalid_source_id
. " OIJ09_PROCESS_SOURCE




ABAP code using 7.40 inline data declarations to call FM OIJ09_PROCESS_SOURCE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!