SAP OIJ_GET_THE_ROLES_YOU_LOOK_FOR Function Module for Get TSW-Roles for all possible entries in all fields also generic (s.DOK.)









OIJ_GET_THE_ROLES_YOU_LOOK_FOR is a standard oij get the roles you look for 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 get the roles you look for FM, simply by entering the name OIJ_GET_THE_ROLES_YOU_LOOK_FOR into the relevant SAP transaction such as SE37 or SE38.

Function Group: OIJR
Program Name: SAPLOIJR
Main Program: SAPLOIJR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function OIJ_GET_THE_ROLES_YOU_LOOK_FOR 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_GET_THE_ROLES_YOU_LOOK_FOR'"Get TSW-Roles for all possible entries in all fields also generic (s.DOK.)
EXPORTING
* I_KUNNR = "Customer
* I_TSYST = "Transport System
* I_LOCID = "TSW Location
* I_TSPARID = "OIL-TSW: Pipeline partner ID
* I_ERNAM = "Creator
* I_AENAM = "Changer´s Name
* I_BLOIND = "Block indicator
* I_DELIND = "Delete Indicator
* I_ACTIVESEARCH = C_YES_Y "Y=ACTIVE ROLES N=DELETED ROLES B=BOTH
* I_LIFNR = "Vendor
* I_WERK = "Plant
* I_LGORT = "Storage Location
* I_RTYPE = "Roletype
* I_RDIFF = "Roledifferentiator
* I_RPART = "Role partner type e.g. KN for Customer
* I_CPARID = "Common Partner ID (= LIFNR or KUNNR ...)
* I_PARNM = "Partner Name (e.g. LFA1-NAME1)

TABLES
RES_OIJRRA_TAB = "Result Table = Contents of OIJRRA

EXCEPTIONS
NO_IMPORT_PARAMETER = 1 NO_ENTRY_FOUND = 2 TO_MANY_OBJECT_IDS = 3 STUPID_INPUT = 4 OBJECT_ID_NOT_FOUND = 5
.



IMPORTING Parameters details for OIJ_GET_THE_ROLES_YOU_LOOK_FOR

I_KUNNR - Customer

Data type: OIJRRA-KUNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TSYST - Transport System

Data type: OIJRRA-TSYST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOCID - TSW Location

Data type: OIJRRA-LOCID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TSPARID - OIL-TSW: Pipeline partner ID

Data type: OIJRRA-TSPARID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ERNAM - Creator

Data type: OIJRRA-ERNAM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AENAM - Changer´s Name

Data type: OIJRRA-AENAM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BLOIND - Block indicator

Data type: OIJRRA-BLOIND
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DELIND - Delete Indicator

Data type: OIJRRA-DELIND
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTIVESEARCH - Y=ACTIVE ROLES N=DELETED ROLES B=BOTH

Data type: OIJRRA-DELIND
Default: C_YES_Y
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LIFNR - Vendor

Data type: OIJRRA-LIFNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WERK - Plant

Data type: OIJRRA-WERK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LGORT - Storage Location

Data type: OIJRRA-LGORT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RTYPE - Roletype

Data type: OIJRRA-RTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RDIFF - Roledifferentiator

Data type: OIJRRA-RDIFF
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RPART - Role partner type e.g. KN for Customer

Data type: OIJRRA-RPART
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CPARID - Common Partner ID (= LIFNR or KUNNR ...)

Data type: OIJRRA-CPARID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARNM - Partner Name (e.g. LFA1-NAME1)

Data type: OIJRRA-PARNM
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for OIJ_GET_THE_ROLES_YOU_LOOK_FOR

RES_OIJRRA_TAB - Result Table = Contents of OIJRRA

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

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 - Meaning like an enigma ... ha ?

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

TO_MANY_OBJECT_IDS - That means : To many Object ID´s entered

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

STUPID_INPUT - That means, that you entered nonsense

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

OBJECT_ID_NOT_FOUND -

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

Copy and paste ABAP code example for OIJ_GET_THE_ROLES_YOU_LOOK_FOR 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_kunnr  TYPE OIJRRA-KUNNR, "   
lt_res_oijrra_tab  TYPE STANDARD TABLE OF ROIJRRAEXP, "   
lv_no_import_parameter  TYPE ROIJRRAEXP, "   
lv_i_tsyst  TYPE OIJRRA-TSYST, "   
lv_i_locid  TYPE OIJRRA-LOCID, "   
lv_i_tsparid  TYPE OIJRRA-TSPARID, "   
lv_i_ernam  TYPE OIJRRA-ERNAM, "   
lv_i_aenam  TYPE OIJRRA-AENAM, "   
lv_i_bloind  TYPE OIJRRA-BLOIND, "   
lv_i_delind  TYPE OIJRRA-DELIND, "   
lv_i_activesearch  TYPE OIJRRA-DELIND, "   C_YES_Y
lv_i_lifnr  TYPE OIJRRA-LIFNR, "   
lv_no_entry_found  TYPE OIJRRA, "   
lv_i_werk  TYPE OIJRRA-WERK, "   
lv_to_many_object_ids  TYPE OIJRRA, "   
lv_i_lgort  TYPE OIJRRA-LGORT, "   
lv_stupid_input  TYPE OIJRRA, "   
lv_i_rtype  TYPE OIJRRA-RTYPE, "   
lv_object_id_not_found  TYPE OIJRRA, "   
lv_i_rdiff  TYPE OIJRRA-RDIFF, "   
lv_i_rpart  TYPE OIJRRA-RPART, "   
lv_i_cparid  TYPE OIJRRA-CPARID, "   
lv_i_parnm  TYPE OIJRRA-PARNM. "   

  CALL FUNCTION 'OIJ_GET_THE_ROLES_YOU_LOOK_FOR'  "Get TSW-Roles for all possible entries in all fields also generic (s.DOK.)
    EXPORTING
         I_KUNNR = lv_i_kunnr
         I_TSYST = lv_i_tsyst
         I_LOCID = lv_i_locid
         I_TSPARID = lv_i_tsparid
         I_ERNAM = lv_i_ernam
         I_AENAM = lv_i_aenam
         I_BLOIND = lv_i_bloind
         I_DELIND = lv_i_delind
         I_ACTIVESEARCH = lv_i_activesearch
         I_LIFNR = lv_i_lifnr
         I_WERK = lv_i_werk
         I_LGORT = lv_i_lgort
         I_RTYPE = lv_i_rtype
         I_RDIFF = lv_i_rdiff
         I_RPART = lv_i_rpart
         I_CPARID = lv_i_cparid
         I_PARNM = lv_i_parnm
    TABLES
         RES_OIJRRA_TAB = lt_res_oijrra_tab
    EXCEPTIONS
        NO_IMPORT_PARAMETER = 1
        NO_ENTRY_FOUND = 2
        TO_MANY_OBJECT_IDS = 3
        STUPID_INPUT = 4
        OBJECT_ID_NOT_FOUND = 5
. " OIJ_GET_THE_ROLES_YOU_LOOK_FOR




ABAP code using 7.40 inline data declarations to call FM OIJ_GET_THE_ROLES_YOU_LOOK_FOR

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 KUNNR FROM OIJRRA INTO @DATA(ld_i_kunnr).
 
 
 
"SELECT single TSYST FROM OIJRRA INTO @DATA(ld_i_tsyst).
 
"SELECT single LOCID FROM OIJRRA INTO @DATA(ld_i_locid).
 
"SELECT single TSPARID FROM OIJRRA INTO @DATA(ld_i_tsparid).
 
"SELECT single ERNAM FROM OIJRRA INTO @DATA(ld_i_ernam).
 
"SELECT single AENAM FROM OIJRRA INTO @DATA(ld_i_aenam).
 
"SELECT single BLOIND FROM OIJRRA INTO @DATA(ld_i_bloind).
 
"SELECT single DELIND FROM OIJRRA INTO @DATA(ld_i_delind).
 
"SELECT single DELIND FROM OIJRRA INTO @DATA(ld_i_activesearch).
DATA(ld_i_activesearch) = C_YES_Y.
 
"SELECT single LIFNR FROM OIJRRA INTO @DATA(ld_i_lifnr).
 
 
"SELECT single WERK FROM OIJRRA INTO @DATA(ld_i_werk).
 
 
"SELECT single LGORT FROM OIJRRA INTO @DATA(ld_i_lgort).
 
 
"SELECT single RTYPE FROM OIJRRA INTO @DATA(ld_i_rtype).
 
 
"SELECT single RDIFF FROM OIJRRA INTO @DATA(ld_i_rdiff).
 
"SELECT single RPART FROM OIJRRA INTO @DATA(ld_i_rpart).
 
"SELECT single CPARID FROM OIJRRA INTO @DATA(ld_i_cparid).
 
"SELECT single PARNM FROM OIJRRA INTO @DATA(ld_i_parnm).
 


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!