Ansicht
Dokumentation

RRSI_VAL_SID_SINGLE_CONVERT - Converts a Value (Basic Char./Hierarchy Node) Into the SID

RRSI_VAL_SID_SINGLE_CONVERT - Converts a Value (Basic Char./Hierarchy Node) Into the SID

CPI1466 during Backup   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module converts characteristic values into 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_CHAVL: Characteristic value to be converted into the SID. This value must be passed in an internal 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_SID: Corresponding SID.

If the SID cannot be determined, one of the following exceptions is output:

NO_SID: SID could not be determined

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_SID
I_CHAVL
I_CHECKFL
I_IOBJNM
I_MASTERDATA_CREATE
I_NEW_VALUES
I_RNSID
I_S_COB_PRO
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

BAL Application Log Documentation   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3734 Date: 20240523 Time: 123130     sap01-206 ( 76 ms )