Fonction SAP CBRC_OR_BD_DATA_READ - Read Representative Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_BP_IMPORTER_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Transfer Importer Data Only
I_FLG_BP_OR_EXT_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Transfer OR Data for External Business Partners Only
I_FLG_BP_OR_INT_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Transfer OR Data for Internal Business Partners Only
I_FLG_DO_LOCKING ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Set Lock
I_FLG_REC_LOCK ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Single Data Record Lock
I_OR_DATA_STRUC CCRCT_OR u 125 X Search Criteria for Only Representative Roles
I_RESTRICTION_TAB EHSB_TT_RCGSTDRECN h 20 X Restrictions Table
I_VALDAT SYST-DATUM D 8 X Read on Key Date (If Blank - Read All); don't set default value!!!

Paramètre Reférence Type Long. Description
E_ERROR_TAB EHSB_TT_RCGEXTERROR h 608 EHS: Table Type RCGEXTERROR (Extended Error Table)
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Indicator: Lock Error
E_OR_BD_DATA_TAB CCRCTT_OR_BD_APIDATA h 390 Table of Entries Found

Exception Description
INTERNAL_ERROR Internal error
NO_RECORD_FOUND No Data Records Found

Functionality
You can use this function module to read only representative data andimporter data.
Use the import parameter I_VALDAT to give the function module a key dateuntil which you want to read the data.
Use the import parameters I_FLG_BP_OR_EXT_ONLY and I_FLG_BP_OR_INT_ONLYto inform the function module whether OR data is to be read for externalbusiness partners only or for internal business partners only.
You can use the import parameter I_OR_DATA_STRUC to restrict theselection. Specify the relevant values.
To execute a lock when the data is read, set the importing parameterI_FLG_DO_LOCKING. If a single data record lock is required, you can setthe value X for the importing parameter I_FLG_REC_LOCK.
If you want only specific data records to be read, you can specify theserecords in the importing parameter I_RESTRICTION_TAB.
The exporting parameter E_OR_BD_DATA_TAB contains the read data records.
The exporting parameter E_FLG_LOCKFAIL is filled with the value X
when a locking error occurs.
The exporting parameter E_FLG_ERROR is filled with the value Xwhen a locking error occurs, a check error occurs, or errors occur whendata is read from the database. Corresponding error messages are writtento the exporting parameter E_ERROR_TAB.