Fonction SAP CBIH_WA30_WA_CREATE - EHS: Create Work Areas

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional Information on Object
I_FLG_ACCUPATTERN ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create collective patterns
I_FLG_ACLOC ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create accident locations
I_FLG_ACLOCNAM ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create accident location descriptions
I_FLG_ACPATT_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create pattern-collective pattern assignment
I_FLG_ACTION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create safety measures
I_FLG_ACTION_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create safety measure long text
I_FLG_CHECK_CLVALUE ESP1_BOOLEAN 0 ESP1_TRUE X
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Check data only
I_FLG_DESCRIPTION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create language-dependent description
I_FLG_DESCR_LONGTEXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Write long text
I_FLG_EXP_PROFILE ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create exposure profile
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Extended error output indicator
I_FLG_FREETEXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create user-defined texts and document assignments
I_FLG_FREETEXT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create long texts for user-defined texts
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create work area header
I_FLG_IH_DATA ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create IHS data
I_FLG_INFO_JOIN ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create link to integration objects
I_FLG_PATTERN ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create patterns
I_FLG_PATTERN_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create work area-pattern assignment
I_FLG_WAQS_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create work area-questionnaire assignment
I_FLG_WORK_AREA ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Create work areas
I_LSADM EHSBS_LSADM u 1 X Language support parameters

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error creating a record
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Indicator: Lock on at least one record failed
E_FLG_WARNING ESP1_BOOLEAN 0 Indicator: Warning creating a record

Paramètre Reférence Long. Facultatif Description
X_API_WKA_TAB CIHWA_WA_API_TAB_TYPE 0 Work Area Data

Exception Description
CONVMODE_SET_FAILED Language Support Error
INTERNAL_ERROR Internal program error
NO_OBJECT_SPECIFIED No object to be created specified
PARAMETER_ERROR Indicator set but relevant data missing

Functionality
This function module is part of the Application Programming Interface(API) of the EH&Scomponent work areamanagement. It is used to create work area data.
Dependencies between new work area data items to be created cannot yetbe represented via foreign keys. The new data does not yet have keysand therefore it cannot be referenced even by foreign keys, so the workarea data is passed to the function in a complex structure. In thisstructure, the dependencies exist implicitly and must not therefore beexpressed explicitly using (foreign) keys.
You will find a description of the complex structure used(CIHWA_WA_API_TAB_TYPE) in the type group CIHWA.

Which work areas are created?
To create a new work area, the required entry fields of the work areaheader (HEAD) must be filled in the X_API_WKA_TAB parameter.
If the X_API_WKA_TAB parameter does not contain a value, theexception NO_OBJECT_SPECIFIED is triggered.

Which data is created for a work area?
Which work area data is to be created is specified by theI_FLG_XXX indicators, where an indicator corresponds to one ormore tables or structures within the complex structure ofX_API_WKA_TAB as follows:
NEW-PAGE
| Corresponding
Indicator | table parameter
--------------------------------------|-------------------------
I_FLG_HEADER | HEAD
| |
|--I_FLG_EXP_PROFILE | EPI_TAB
|--I_FLG_INFO_JOIN | WADO_TAB
|--I_FLG_IH_DATA | VAL_TAB-VALUATION
| | VAL_TAB-PROPDATA
|--I_FLG_ACTION | ACH_TAB-HEAD
| | |
| |--I_FLG_ACTION_LTXT | ACH_TAB-LONGTEXT
| |
|--I_FLG_DESCRIPTION | TEXT_TAB-DESCR
| | |
| |--I_FLG_DESCR_LONGTEXT | TEXT_TAB-LONGTEXT
| |
|--I_FLG_ACLOC | WAA_TAB-WAAH
| | |
| |--I_FLG_ACLOCNAM | WAA_TAB-DESCR
| |
|--I_FLG_FREETEXT | DFT_TAB-HEAD
| | |
| |--I_FLG_FREETEXT_LTXT | DFT_TAB-LONGTEXT
|--I_FLG_WAQS_ASSIG | WAQS_TAB
|--I_FLG_PATTERN_ASSIG | WAPT_TAB
|--I_FLG_ACPATT_ASSIG | PTCP_TAB
If an indicator is set to "TRUE," the respective data is created in thedatabase if the respective data record does not yet have an internalkey (RECN).
INCLUDE EHS_NLS_API OBJECT DOKU ID TX

Further information

  • Type group ESPAP

  • Type group CIHWA

430539Create details to work areas without headers possible