Fonction SAP CBIH_WA30_WA_READ - EHS: Read 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: Read collective patterns
I_FLG_ACLOC ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read accident locations
I_FLG_ACLOCNAM ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read accident location descriptions
I_FLG_ACPATT_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read pattern-collective pattern assignment
I_FLG_ACTION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read safety measures
I_FLG_ACTION_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read safety measure long text
I_FLG_DESCRIPTION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read language-dependent description
I_FLG_DESCR_LONGTEXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read long text description
I_FLG_EXP_PROFILE ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read exposure profile entries
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Fill extended error table
I_FLG_FREETEXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read user-defined texts and documents
I_FLG_FREETEXT_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read long texts for user-defined texts and documents
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read work area header
I_FLG_IH_DATA ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read IHS data
I_FLG_INFO_JOIN ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read link to integration objects
I_FLG_KEY_DATE_SWITCH_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Change key date and change number only
I_FLG_PATTERN ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read patterns
I_FLG_PATTERN_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read work area-pattern assignment
I_FLG_READ_ALL_CHARACT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read all chars.
I_FLG_RETURN_WHOLE_INTERVAL ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read the entire time interval
I_FLG_SORT_PROP_DATA ESP1_BOOLEAN 0 ESP1_FALSE X Sort indicator
I_FLG_STAT_PROTOCOL ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read status log
I_FLG_WAQS_ASSIG ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Read work area-questionnaire assignment
I_FLG_WORK_AREA ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Read work areas
I_LANGU LANGU C 1 SY-LANGU X
I_LSADM EHSBS_LSADM u 1 X Language support parameters
I_SCENARIO ESPAP_SCENARIO_TYPE 0 Lock scenario for reading work areas
I_VALFR RCGADDINF-VALDAT D 8 X Lower Time Interval Limit
I_VALTO RCGADDINF-VALDAT D 8 X Upper Time Interval Limit

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

Paramètre Reférence Long. Facultatif Description
E_API_ACLOCNAM_TAB CIHWA_WAADAPI_TAB_TYPE 0 X Accident location descriptions
E_API_ACTION_LTXT_TAB CIHAC_ACLTAPI_TAB_TYPE 0 X Long text for safety measures
E_API_ACTION_TAB CIHAC_ACHAPI_TAB_TYPE 0 X Safety measures
E_API_DESCRIPTION_TAB CIHWA_WALDAPI_TAB_TYPE 0 X Language-dependent description
E_API_DESCR_LONGTEXT_TAB CIHWA_WALTAPI_TAB_TYPE 0 X Long text description
E_API_EXP_PROFILE_TAB CIHWA_EPIAPI_TAB_TYPE 0 X Exposure profile entries
E_API_FREETEXT_LTXT_TAB CIH01_DFTLTAPI_TAB_TYPE 0 X Long texts for user-defined texts and documents
E_API_FREETEXT_TAB CIH01_DFTAPI_TAB_TYPE 0 X User-defined texts and documents
E_API_IH_DATA_TAB CIH01_IHVALAPI_TAB_TYPE 0 X Value assignment instances
E_API_INFO_JOIN_TAB CIHWA_WADOAPI_TAB_TYPE 0 X Links to integration objects
E_API_PROP_DATA_TAB CIH01_IHPRAPI_TAB_TYPE 0 X Value assignment data
E_API_PTCP_TAB CIHWA_PTCPAPI_TAB_TYPE 0 X Pattern-collective pattern assignment
E_API_STAT_PROTOCOL_TAB CIH01_STPRAPI_TAB_TYPE 0 X
E_API_WAPT_TAB CIHWA_WAPTAPI_TAB_TYPE 0 X Work area-pattern assignment
E_API_WAQS_TAB CIHWA_WAQSAPI_TAB_TYPE 0 X Work area-questionnaire assignment
X_API_ACLOC_TAB CIHWA_WAAAPI_TAB_TYPE 0 X Accident Locations
X_API_HEADER_TAB CIHWA_WAHAPI_TAB_TYPE 0 Work area header data

Exception Description
CONVMODE_SET_FAILED Language Support Error
INTERNAL_ERROR System error
INTERVAL_ACCESS_ERROR Access to time intervals failed
NO_OBJECT_SPECIFIED No objects were specified in the header table
PARAMETER_ERROR Indicator set but relevant table missing

Functionality
This function module is part of the Application Programming Interface(API) of the EH&Scomponent Industrial Hygiene and Safety. It is used to read workarea data.

Which work areas are read?
To determine the work areas for which the SAP system reads the data,the X_API_HEADER_TAB table must contain records in which therecord number (RECN) field is filled.
If the X_API_HEADER_TAB table does not contain an entry, theexception NO_OBJECT_SPECIFIED is triggered.

Which data is read for the work areas?
Which work area data is read is specified by the I_FLG_XXXindicators, where an indicator corresponds to one or more output tablesas follows:
| Corresponding
Indicator | table parameter
--------------------------|---------------------------
I_FLG_HEADER | X_API_HEADER_TAB
I_FLG_EXP_PROFILE | E_API_EXP_PROFILE_TAB
I_FLG_INFO_JOIN | E_API_INFO_JOIN_TAB
I_FLG_IH_DATA | E_API_IH_DATA_TAB
| E_API_PROP_DATA_TAB
I_FLG_ACTION | E_API_ACTION_TAB
I_FLG_ACTION_LTXT | E_API_ACTION_LTXT_TAB
I_FLG_DESCRIPTION | E_API_DESCRIPTION_TAB
I_FLG_DESCR_LONGTEXT | E_API_DESCR_LONGTEXT_TAB
I_FLG_ACLOC | X_API_ACLOC_TAB
I_FLG_ACLOCNAM | E_API_ACLOCNAM_TAB
I_FLG_WAQS_ASSIG | E_API_WAQS_TAB
I_FLG_FREETEXT | E_API_FREETEXT_TAB
I_FLG_FREETEXT_LTXT | E_API_FREETEXT_LTXT_TAB
I_FLG_PATTERN_ASSIG | E_API_WAPT_TAB
I_FLG_ACPATT_ASSIG | E_API_PTCP_TAB
If an indicator is set to "TRUE," the respective data is placed in thecorresponding output table(s).
If an indicator is set to "TRUE," but no corresponding output table isspecified, the exception PARAMETER_ERROR is triggered.

How and for what purpose is the data read?
The scenario I_SCENARIO determines how the work area data isread: "for display" (secure or nonsecure, meaning with or withoutshared lock) or "for changing."
Within a scenario there is a maximum of three levels for which the readtype can be specified.
Each output table is assigned to a level as follows:
Level 1, header level: ,,X_API_HEADER_TAB
Level 2: ,,E_API_EXP_PROFILE_TAB
,,E_API_INFO_JOIN_TAB
,,E_API_IH_DATA_TAB
,,E_API_PROP_DATA_TAB
,,E_API_ACTION_TAB
,,E_API_DESCRIPTION_TAB
,,E_API_DESCR_LONGTEXT
,,X_API_ACLOC_TAB
,,E_API_ACTION_LTXT_TAB
,,E_API_WAQS_TAB
,,E_API_WAPT_TAB
,,E_API_PTCP_TAB
,,E_API_FREETEXT_TAB
,,E_API_FREETEXT_LTXT_TAB
,,
Level 3: ,,E_API_ACLOCNAM_TAB
INCLUDE EHS_FMODULE_API_INTERVAL_IHS OBJECT DOKU ID TX
INCLUDE EHS_NLS_API OBJECT DOKU ID TX

Notes

  • So that the characteristic value assignments (I_FLG_IH_DATA = TRUE) are
  • placed in the E_API_PROP_DATA_TAB table in the order in whichthey appear in the dialog box, the I_FLG_SORT_PROP_DATAindicator must be set to "TRUE."
    Note that the sort takes additional time and therefore slowsperformance.
    • So that characteristics without value assignments are returned in the
    • X_API_PROP_DATA_TAB table, the I_FLG_READ_ALL_CHARACTindicator must be set "TRUE."
      • Using the I_FLG_PATTERN, I_FLG_ACCUPATTERN, and
      • I_FLG_WORK_AREA indicators you can control whether you want toread work area patterns,work area collectivepatterns, or work areas. The default setting is to read work areas(I_FLG_WORK_AREA = TRUE).
        • Possible function module exceptions:

        • NO_OBJECT_SPECIFIED: No objects were specified for reading
          PARAMETER_ERROR: Table for specified object missing
          INTERNAL_ERROR: Internal processing error
          CONVMODE_SET_FAILED: Language support error
          INTERVAL_ACCESS_ERROR: Interval-related read error
          • Possible error indicators:

          • E_FLG_LOCKFAIL: Error locking data
            E_FLG_ERROR: Error reading data
            E_FLG_WARNING: Warning reading data

            Further information
            EH&S programming guidelines (API programming chapter)

            • Type group CIHWA

            • Type group CIH01

            • Type group CIHAC

936476Language-dependent reading of characteristic values
445497Performance access work area