Ansicht
Dokumentation

RRSI_VAL_SID_CONVERT - Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs

RRSI_VAL_SID_CONVERT - Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs

rdisp/max_wprun_time - Maximum work process run time   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module converts a set of characteristic values into a set of SIDs. The characteristic - SID relationship can be found in the SID tables (tables named /<namespace>/S<technical name of characteristic>). New master data may be created in this process.

I_IOBJNM: Technical name of the characteristic to which the values belong (can also be a referencing characteristic)

I_S_COB_PRO: Technical properties of the characteristic. If the structure is not filled, the properties are determined and buffered in the FM. If the FM is called more than once, the initialization is carried out only once.

I_TH_VALSID: Table with the characteristic values to be converted into SIDs. Only the VALUE column has to be filled. This column contains the internal (type-based compound) characteristic value.

I_CHECKFL: If the indicator is equal to RS_C_TRUE (= X), only characteristic values with master data are converted. If the indicator is equal to RS_C_FALSE, the behavior depends on the I_WRITEFL indicator.

I_WRITEFL: This indicator must contain one of the three values in the RRSI_C_WRITEFL constants:

,,RRSI_C_WRITEFL-DATA: The characteristic values are used somewhere in the data part (in the InfoProvider (InfoCube, DataStore object, InfoSet, ...) or as an attribute). If I_CHECKFL = RS_C_FALSE and a value does not exist as master data, it is created with initial attributes in the master data table.

,,RRSI_C_WRITEFL-MASTER_DATA: When master data is loaded, this value must be set (does not apply to attributes).

,,RRSI_C_WRITE-NO: This value must always be set if no data is to be loaded or the loading process is to be simulated.

I_MASTERDATA_CREATE: If the indicator is equal to RS_C_TRUE, master data is created, if required. This indicator may only be set to RS_C_FALSE in exceptional cases that are justified.

I_RNSID: Number (SID) of the request to which this data belongs. Must be set if I_WRITE is not equal to RRSI_C_WRITE-NO.

I_NEW_VALUES: If known before the FM is called that the values do not exist, this indicator can be set to RS_C_TRUE to optimize performance. If the indicator is equal to RS_C_FALSE, the values are first searched for in the SID table. All new values are then assigned an SID and the table is read again afterwards in case an SID was created in a parallel process. If the indicator is equal to RS_C_TRUE, a direct attempt is made to create the SID.

E_TH_VALSID: Return table that contains the corresponding SID for each value. If no SID exists for a value, this value is not entered in the table.

If errors occur, one of the following exceptions is output. In this case, table E_TH_VALSID has an undefined status:

CHAVL_NOT_ALLOWED, CHAVL_NOT_FIGURE, CHAVL_NOT_PLAUSIBLE: The characteristic value is not allowed. A corresponding message is displayed in the SY fields.

X_MESSAGE, INHERITED_ERROR, INTERVAL_NOT_FOUND, FOREIGN_LOCK: Problems occurred

Example

Notes

Further information





Parameters

E_SUBRC
E_TH_VALSID
I_CHECKFL
I_IOBJNM
I_MASTERDATA_CREATE
I_NEW_VALUES
I_RNSID
I_S_COB_PRO
I_TH_VALSID
I_WRITEFL

Exceptions

CHAVL_NOT_ALLOWED
CHAVL_NOT_FIGURE
CHAVL_NOT_PLAUSIBLE
FOREIGN_LOCK
INHERITED_ERROR
INTERVAL_NOT_FOUND
NO_SID
X_MESSAGE

Function Group

RRSI

TXBHW - Original Tax Base Amount in Local Currency   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3966 Date: 20240523 Time: 123151     sap01-206 ( 116 ms )