SAP OIJ_IF_PART_GET Function Module for Get TSW-Roles for all possible entries in all fields also generic (s.DOK.)
OIJ_IF_PART_GET is a standard oij if part get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get TSW-Roles for all possible entries in all fields also generic (s.DOK.) 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 oij if part get FM, simply by entering the name OIJ_IF_PART_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJ_IF_PART
Program Name: SAPLOIJ_IF_PART
Main Program: SAPLOIJ_IF_PART
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIJ_IF_PART_GET 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 'OIJ_IF_PART_GET'"Get TSW-Roles for all possible entries in all fields also generic (s.DOK.).
EXPORTING
* I_MAXROWS = 500 "DB operations, number of table lines processed
* I_SORT = 'X' "
TABLES
* RANGE_CUSTOMER = "BAPI Interface Structure for Ranges of Customer Master ID
* RANGE_LOCATION = "TSW Location range for selection of entries
* RANGE_PARTNERIDBYTS = "TSW Partnerrole Partner ID by Transport System Range
* ET_OIJRRA_EXTENDED = "Result Table = Contents of OIJRRA
* RETURN = "Return parameter
* RANGE_VENDOR = "BAPI Selection Structure: Vendor
* RANGE_PLANT = "Ranges table for organizational unit plant
* RANGE_STORAGELOCATION = "BAPI Communication Structure: Range for Storage Location
* RANGE_ROLETYPES = "TSW Partnerrole Type Range
* RANGE_ROLEDIFFERENTIATORS = "TSW Partnerrole Differntiator Range
* RANGE_PARTNERTYPES = "TSW Partnerrole Object Type Range
* RANGE_COMMONPARTNERID = "TSW Partnerrole Common Partner ID Range
* RANGE_TRANSPORTSYSTEM = "TSW Transportsystem range for ID
EXCEPTIONS
NO_IMPORT_PARAMETER = 1 NO_ENTRY_FOUND = 2
IMPORTING Parameters details for OIJ_IF_PART_GET
I_MAXROWS - DB operations, number of table lines processed
Data type: SY-DBCNTDefault: 500
Optional: No
Call by Reference: Yes
I_SORT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for OIJ_IF_PART_GET
RANGE_CUSTOMER - BAPI Interface Structure for Ranges of Customer Master ID
Data type: BAPICUSTOMER_IDRANGEOptional: Yes
Call by Reference: Yes
RANGE_LOCATION - TSW Location range for selection of entries
Data type: BAPITSWLOC02Optional: Yes
Call by Reference: Yes
RANGE_PARTNERIDBYTS - TSW Partnerrole Partner ID by Transport System Range
Data type: BAPITSWPART06Optional: Yes
Call by Reference: Yes
ET_OIJRRA_EXTENDED - Result Table = Contents of OIJRRA
Data type: ROIJRRAEXPOptional: Yes
Call by Reference: Yes
RETURN - Return parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
RANGE_VENDOR - BAPI Selection Structure: Vendor
Data type: BAPI_RANGESLIFNROptional: Yes
Call by Reference: Yes
RANGE_PLANT - Ranges table for organizational unit plant
Data type: BAPIPLANTOptional: Yes
Call by Reference: Yes
RANGE_STORAGELOCATION - BAPI Communication Structure: Range for Storage Location
Data type: BAPI_PHYSINV_STGE_LOC_RAOptional: Yes
Call by Reference: Yes
RANGE_ROLETYPES - TSW Partnerrole Type Range
Data type: BAPITSWPART02Optional: Yes
Call by Reference: Yes
RANGE_ROLEDIFFERENTIATORS - TSW Partnerrole Differntiator Range
Data type: BAPITSWPART03Optional: Yes
Call by Reference: Yes
RANGE_PARTNERTYPES - TSW Partnerrole Object Type Range
Data type: BAPITSWPART04Optional: Yes
Call by Reference: Yes
RANGE_COMMONPARTNERID - TSW Partnerrole Common Partner ID Range
Data type: BAPITSWPART05Optional: Yes
Call by Reference: Yes
RANGE_TRANSPORTSYSTEM - TSW Transportsystem range for ID
Data type: BAPITSWTS01Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_IMPORT_PARAMETER - You must enter at least one of the Import Par.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ENTRY_FOUND - NO_ENTRY_FOUND
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIJ_IF_PART_GET 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_i_maxrows | TYPE SY-DBCNT, " 500 | |||
| lt_range_customer | TYPE STANDARD TABLE OF BAPICUSTOMER_IDRANGE, " | |||
| lv_no_import_parameter | TYPE BAPICUSTOMER_IDRANGE, " | |||
| lt_range_location | TYPE STANDARD TABLE OF BAPITSWLOC02, " | |||
| lt_range_partneridbyts | TYPE STANDARD TABLE OF BAPITSWPART06, " | |||
| lt_et_oijrra_extended | TYPE STANDARD TABLE OF ROIJRRAEXP, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_sort | TYPE C, " 'X' | |||
| lt_range_vendor | TYPE STANDARD TABLE OF BAPI_RANGESLIFNR, " | |||
| lv_no_entry_found | TYPE BAPI_RANGESLIFNR, " | |||
| lt_range_plant | TYPE STANDARD TABLE OF BAPIPLANT, " | |||
| lt_range_storagelocation | TYPE STANDARD TABLE OF BAPI_PHYSINV_STGE_LOC_RA, " | |||
| lt_range_roletypes | TYPE STANDARD TABLE OF BAPITSWPART02, " | |||
| lt_range_roledifferentiators | TYPE STANDARD TABLE OF BAPITSWPART03, " | |||
| lt_range_partnertypes | TYPE STANDARD TABLE OF BAPITSWPART04, " | |||
| lt_range_commonpartnerid | TYPE STANDARD TABLE OF BAPITSWPART05, " | |||
| lt_range_transportsystem | TYPE STANDARD TABLE OF BAPITSWTS01. " |
|   CALL FUNCTION 'OIJ_IF_PART_GET' "Get TSW-Roles for all possible entries in all fields also generic (s.DOK.) |
| EXPORTING | ||
| I_MAXROWS | = lv_i_maxrows | |
| I_SORT | = lv_i_sort | |
| TABLES | ||
| RANGE_CUSTOMER | = lt_range_customer | |
| RANGE_LOCATION | = lt_range_location | |
| RANGE_PARTNERIDBYTS | = lt_range_partneridbyts | |
| ET_OIJRRA_EXTENDED | = lt_et_oijrra_extended | |
| RETURN | = lt_return | |
| RANGE_VENDOR | = lt_range_vendor | |
| RANGE_PLANT | = lt_range_plant | |
| RANGE_STORAGELOCATION | = lt_range_storagelocation | |
| RANGE_ROLETYPES | = lt_range_roletypes | |
| RANGE_ROLEDIFFERENTIATORS | = lt_range_roledifferentiators | |
| RANGE_PARTNERTYPES | = lt_range_partnertypes | |
| RANGE_COMMONPARTNERID | = lt_range_commonpartnerid | |
| RANGE_TRANSPORTSYSTEM | = lt_range_transportsystem | |
| EXCEPTIONS | ||
| NO_IMPORT_PARAMETER = 1 | ||
| NO_ENTRY_FOUND = 2 | ||
| . " OIJ_IF_PART_GET | ||
ABAP code using 7.40 inline data declarations to call FM OIJ_IF_PART_GET
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 DBCNT FROM SY INTO @DATA(ld_i_maxrows). | ||||
| DATA(ld_i_maxrows) | = 500. | |||
| DATA(ld_i_sort) | = 'X'. | |||
Search for further information about these or an SAP related objects