Ansicht
Dokumentation
OIJ_GET_THE_ROLES_YOU_LOOK_FOR - Get TSW-Roles for all possible entries in all fields also generic (s.DOK.)
ROGBILLS - Synchronize billing plans Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
You use this function modules to find partner roles from the TSW environment. The system also imports the text fields defined in the role (role type, transport system, location) in the log-on language.
As the inbound parameter, the system displays all fields from table OIJRRA.
***********************************************************************
You must fill at least one parameter. You can not set KUNNR, LIFNR, WERK, and LGORT at the same time in table OIJRRA.
Exception: In the case of roles at storage location level, the plant that belongs to the storage location is entered in the plant field.
***********************************************************************
The selection takes place with the EQ relational operator.
Any import fields that remain empty are not used.
You can use '* ' or '+' as wildcards.
The result of the selection depends heavily on parameter ACTIVESEARCH. This parameter determines if the selection is based on:
- Roles that are active in the system (Y)
- Roles that have a deletion indicator (N)
- All roles 'B'
Example
1) You are searching for all shippers for transport system XYZ.
Background info: The shipper has role type TSW002 from table OIJRRT and RDTYP '01' (--> role assignment only for transport systems; PERMLF = 'X' (only for vendors). If you know that when you create a TSW role, that the RDIFF key field is to be made up from the IDs in the transport system and locations, you can also use the parameter here. Furthermore, a vendor role belongs to the LF partner type. If you do not know this, use only the parameter for the role type and transport system.
CALL FUNCTION 'OIJ_GET_THE_ROLES_YOU_LOOK_FOR'
EXPORTING
I_LIFNR = '*'
I_RTYPE = 'TSW002'
I_RDIFF = 'XYZ '
I_RPART = 'LF'
I_TSYST = 'XYZ '
I_ACTIVESEARCH = 'Y'
TABLES
RES_OIJRRA_TAB = your_result_table
EXCEPTIONS
NO_IMPORT_PARAMETER = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
2) You are searching for all partner roles, whose assignment is between a plant and a TSW location. Background information: These can be supplier or receiver roles, assignments can also take placeat storage location level. Thus RPART is WK or LF and the role can be oftype TSW003/5/10/11. In such an instance, search with the I_WERK field and the I_LOCID parameter for role type and transport system.
CALL FUNCTION 'OIJ_GET_THE_ROLES_YOU_LOOK_FOR'
EXPORTING
I_WERK = '*'
I_LOCID = '*'
I_ACTIVESEARCH = 'Y'
TABLES
RES_OIJRRA_TAB = your_result_table
EXCEPTIONS
NO_IMPORT_PARAMETER = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
3) You are searching for receivers for locations, whose names we have forgotten again, but does include, for example, LOC.....01 Background info: The receiver has rolen type TSW005 from table OIJRRT and RDTYP '03' (--> role assignment intended for transport system and location; PERMKN = 'X', PERMWK = 'X', PERMLG = 'X', that is to say not allowed for vendors
CALL FUNCTION 'OIJ_GET_THE_ROLES_YOU_LOOK_FOR'
EXPORTING
I_KUNNR = '*'
I_LIFNR = ' '
I_RTYPE = 'TSW005'
I_LOCID = 'LOC*01'
I_ACTIVESEARCH = 'Y'
TABLES
RES_OIJRRA_TAB = your_result_table
EXCEPTIONS
NO_IMPORT_PARAMETER = 1
NO_ENTRY_FOUND = 2
OTHERS = 3.
Parameters
I_LIFNR
I_WERK
I_LGORT
I_RTYPE
I_RDIFF
I_RPART
I_CPARID
I_PARNM
I_TSYST
I_LOCID
I_TSPARID
I_ERNAM
I_AENAM
I_BLOIND
I_DELIND
I_ACTIVESEARCH
RES_OIJRRA_TAB
Exceptions
NO_IMPORT_PARAMETER
NO_ENTRY_FOUND
TO_MANY_OBJECT_IDS
STUPID_INPUT
OBJECT_ID_NOT_FOUND
Function Group
OIJR
Notes
Further information
Parameters
I_ACTIVESEARCHI_AENAM
I_BLOIND
I_CPARID
I_DELIND
I_ERNAM
I_KUNNR
I_LGORT
I_LIFNR
I_LOCID
I_PARNM
I_RDIFF
I_RPART
I_RTYPE
I_TSPARID
I_TSYST
I_WERK
RES_OIJRRA_TAB
Exceptions
NO_ENTRY_FOUNDNO_IMPORT_PARAMETER
OBJECT_ID_NOT_FOUND
STUPID_INPUT
TO_MANY_OBJECT_IDS
Function Group
OIJRROGBILLS - Synchronize billing plans TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 5762 Date: 20240523 Time: 151120 sap01-206 ( 87 ms )