SAP OIJP_FIND_CIRCLE_SIMPLE Function Module for IS-OIL TSW : Checks,if a Loc. has TS as Source and TS has this Loc. as Src
OIJP_FIND_CIRCLE_SIMPLE is a standard oijp find circle simple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-OIL TSW : Checks,if a Loc. has TS as Source and TS has this Loc. as Src 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 oijp find circle simple FM, simply by entering the name OIJP_FIND_CIRCLE_SIMPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJP
Program Name: SAPLOIJP
Main Program: SAPLOIJP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function OIJP_FIND_CIRCLE_SIMPLE 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 'OIJP_FIND_CIRCLE_SIMPLE'"IS-OIL TSW : Checks,if a Loc. has TS as Source and TS has this Loc. as Src.
EXPORTING
* TESTLOC = "
* TESTTS = "
* TESTLOC_STSYST = "
* TESTTS_SLOCID = "
* P_MATNR = "Material number
TABLES
* I_OIJPLSEQ_TABLE = "
* I_OIJLOCMAT_TABLE = "
* I_OIJTSMAT_TABLE = "
EXCEPTIONS
NO_TABLE_FILLED = 1 CIRCLE_DETECTED = 2 TESTID_NOT_FILLED = 3 TESTID_SOURCEID_NOT_FILLED = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOIJP_001 OIL-TSW: Customer exit for customer specific inventory planning
EXIT_SAPLOIJP_002 OIL-TSW: Customer exit for dynamic safety stock calculation logic
IMPORTING Parameters details for OIJP_FIND_CIRCLE_SIMPLE
TESTLOC -
Data type: OIJLOCMAT-LOCIDOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTTS -
Data type: OIJTSMAT-TSYSTOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTLOC_STSYST -
Data type: OIJLOCMAT-STSYSTOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTTS_SLOCID -
Data type: OIJTSMAT-SLOCIDOptional: Yes
Call by Reference: No ( called with pass by value option)
P_MATNR - Material number
Data type: OIJPLSEQ-PMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for OIJP_FIND_CIRCLE_SIMPLE
I_OIJPLSEQ_TABLE -
Data type: OIJPLSEQOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OIJLOCMAT_TABLE -
Data type: OIJLOCMATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OIJTSMAT_TABLE -
Data type: OIJTSMATOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_TABLE_FILLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CIRCLE_DETECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TESTID_NOT_FILLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TESTID_SOURCEID_NOT_FILLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIJP_FIND_CIRCLE_SIMPLE 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_testloc | TYPE OIJLOCMAT-LOCID, " | |||
| lv_no_table_filled | TYPE OIJLOCMAT, " | |||
| lt_i_oijplseq_table | TYPE STANDARD TABLE OF OIJPLSEQ, " | |||
| lv_testts | TYPE OIJTSMAT-TSYST, " | |||
| lv_circle_detected | TYPE OIJTSMAT, " | |||
| lt_i_oijlocmat_table | TYPE STANDARD TABLE OF OIJLOCMAT, " | |||
| lv_testloc_stsyst | TYPE OIJLOCMAT-STSYST, " | |||
| lt_i_oijtsmat_table | TYPE STANDARD TABLE OF OIJTSMAT, " | |||
| lv_testid_not_filled | TYPE OIJTSMAT, " | |||
| lv_testts_slocid | TYPE OIJTSMAT-SLOCID, " | |||
| lv_testid_sourceid_not_filled | TYPE OIJTSMAT, " | |||
| lv_p_matnr | TYPE OIJPLSEQ-PMATNR. " |
|   CALL FUNCTION 'OIJP_FIND_CIRCLE_SIMPLE' "IS-OIL TSW : Checks,if a Loc. has TS as Source and TS has this Loc. as Src |
| EXPORTING | ||
| TESTLOC | = lv_testloc | |
| TESTTS | = lv_testts | |
| TESTLOC_STSYST | = lv_testloc_stsyst | |
| TESTTS_SLOCID | = lv_testts_slocid | |
| P_MATNR | = lv_p_matnr | |
| TABLES | ||
| I_OIJPLSEQ_TABLE | = lt_i_oijplseq_table | |
| I_OIJLOCMAT_TABLE | = lt_i_oijlocmat_table | |
| I_OIJTSMAT_TABLE | = lt_i_oijtsmat_table | |
| EXCEPTIONS | ||
| NO_TABLE_FILLED = 1 | ||
| CIRCLE_DETECTED = 2 | ||
| TESTID_NOT_FILLED = 3 | ||
| TESTID_SOURCEID_NOT_FILLED = 4 | ||
| . " OIJP_FIND_CIRCLE_SIMPLE | ||
ABAP code using 7.40 inline data declarations to call FM OIJP_FIND_CIRCLE_SIMPLE
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.| "SELECT single LOCID FROM OIJLOCMAT INTO @DATA(ld_testloc). | ||||
| "SELECT single TSYST FROM OIJTSMAT INTO @DATA(ld_testts). | ||||
| "SELECT single STSYST FROM OIJLOCMAT INTO @DATA(ld_testloc_stsyst). | ||||
| "SELECT single SLOCID FROM OIJTSMAT INTO @DATA(ld_testts_slocid). | ||||
| "SELECT single PMATNR FROM OIJPLSEQ INTO @DATA(ld_p_matnr). | ||||
Search for further information about these or an SAP related objects