Fonction SAP C1F5_SPECIFICATIONS_MODIFY - EHS: Create or Change Specification Data - New

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional Information on Object
I_FLG_ATWRT_HAS_INT_FORMAT ESP1_BOOLEAN 0 ESP1_TRUE
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE Data only checked but not written to buffer
I_FLG_CREATE_MODE ESP1_BOOLEAN 0 X
I_FLG_INTERVAL_ACCESS ESP1_BOOLEAN 0 ESP1_FALSE
I_FLG_KEY_DATE_SWITCH_ONLY ESP1_BOOLEAN 0 ESP1_FALSE
I_FLG_OWNID_SRSID_KEEP ESP1_BOOLEAN 0 ESP1_FALSE
I_FLG_STATUS_CHECK ESP1_BOOLEAN 0 ESP1_TRUE
I_FLG_WRNG_IDNT_ORD_0 ESP1_BOOLEAN 0 ESP1_FALSE X
I_LSADM EHSBS_LSADM u 1 X Language support parameters
I_SCENARIO ESPAP_NEW_SCENARIO_TYPE 0 Scenarion for reading specifications

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator for error reading a record
E_FLG_INTERNAL_ERROR ESP1_BOOLEAN 0 Indicator for internal error occurred
E_FLG_WARNING ESP1_BOOLEAN 0 Indicator for warning reading a record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_FURTHER_PARAMS ESPRH_FURTHER_PARAMS_TYPE 0 X

Paramètre Reférence Long. Facultatif Description
E_ERROR_TAB ESPAP_EXTERROR_TAB_TYPE 0 X Error Log Table
X_ASSESSMENT_TAB ESPRH_APIDR_TAB_TYPE 0 X
X_CARRIAGE_TAB ESPRH_APICARR_TAB_TYPE 0 X
X_CHARACT_DATA_TAB ESPRH_APIPR_TAB_TYPE 0 X
X_COMPOSITION_TAB ESPRH_APIVP_TAB_TYPE 0 X
X_IDENTIFIER_TAB ESPRH_APIRI_TAB_TYPE 0 X
X_IDENTIFIER_USAGE_TAB ESPRH_APIDU_TAB_TYPE 0 X
X_IDENT_LONGTEXT_TAB ESPRH_APIIL_TAB_TYPE 0 X
X_MATERIAL_TAB ESPRH_APIMJ_TAB_TYPE 0 X
X_PACKAGING_TAB ESPRH_APIPACK_TAB_TYPE 0 X
X_PACK_CODE_APPR_TAB ESPRH_API0B_TAB_TYPE 0 X
X_REFERENCE_TAB ESPRH_APIRR_TAB_TYPE 0 X
X_REGULATORY_LIST_TAB ESPRH_APIRL_TAB_TYPE 0 X
X_RELATION_TAB ESPRH_APITPLREL_TAB_TYPE 0 X
X_RESTRICTION_TAB ESPRH_APIDU_TAB_TYPE 0 X
X_RISK_CLASS_TAB ESPRH_API0D_TAB_TYPE 0 X
X_SOURCE_TAB ESPRH_APIDS_TAB_TYPE 0 X
X_SPEC_HEAD_TAB ESPRH_APIRH_TAB_TYPE 0 Specification header data
X_SPEC_PROV_PACK_TAB ESPRH_APISP_TAB_TYPE 0 X
X_STATUS_TAB EHSAS_APIAS_TAB_TYPE 0 X
X_TRANSPORT_APPR_TAB ESPRH_API07_TAB_TYPE 0 X
X_TRANSPORT_CLASS_TAB ESPRH_API0F_TAB_TYPE 0 X
X_USER_DEF_TEXT_TAB ESPRH_APIDF_TAB_TYPE 0 X
X_USR_DEF_LONGTEXT_TAB ESPRH_APIFL_TAB_TYPE 0 X
X_VALUATION_HEAD_TAB ESPRH_APIVH_TAB_TYPE 0 X
X_VALUATION_INST_TAB ESPRH_APIVA_TAB_TYPE 0 X
X_VALUATION_USAGE_TAB ESPRH_APIDU_TAB_TYPE 0 X

Functionality

Interface
Object Class Dependency
The interface for the Application Programming Interface (API) functionmodule to read specification data has a flat branched table for eachobject class, see Object Class Dependency.
Changing and Creating Data Records
Data can be changed and created using the tables. It is also possible tochange a header object and also create a new subobject for the sameheader object at the same time.
To change the data records, the caller must do the following:

  • Specify the key values for the data records to be changed.

  • Specify the new contents of their application-related fields.

  • Transfer the direct and indirect parent records to all data records.

  • Set the attribute LINEMOD to 'U' for the records to be changed. (There
  • are constants to do this in the Include file CBUI04.)
    This distinguishes which records have new content and which do not.
    To create data records, the caller must do the following:
    • Set the attribute LINEMOD to the value 'I' for the data records to be
    • created.
      • Fill the RECN column with valid numbers for all new data records using
      • the function module C149_RECN_GET_NEXT.
        The caller is responsible for correctly generated RECN numbers beingspecified. (In check only mode, temporary RECN numbers can alsobe used if the uniqueness of the RECN attribute remains untouched.)
        Scenario Parameters
        Using the scenario parameter I_SCENARIO, the caller specifies whichobject class is to be deleted in the same way as in theRead API Function Module.
        Note:
        The logic only evaluates the cases = 'X' and <> 'X' here. (The values'N' and 'S' are not taken into account because they are only relevantfor the Read API function module.)
        Parameters
        • Parameters for specifying the time period for which the data is to be
        • read:
          I_ADDINF
          I_FLG_KEY_DATE_SWITCH_ONLY
          Note:
          Instead of specifying an interval (see Read API function module), theparameter I_FLG_INTERVAL_ACCESS is set. With this parameter, it ispossible when creating and changing data, to switch the key date andchange number without having to save. When the key date or change numberis switched, the internal buffer of the Environment, Health andSafety (EH&S) component does not abandon its data. You should,however, note the rules under Interval-
          Based Reading and Writing of Data Records.
          • Parameters for language handling:

          • I_LSADM
            • Other parameters:

            • I_FLG_CHECK_ONLY (Run modification as test. Data is not written to thebuffer.)
              I_FLG_OWNID_SRSID_KEEP (When modifying, the attributes data provider anddata source remain unchanged)
              I_FLG_STATUS_CHECK (Status check on)
              • Parameters for notifying errors and warnings:

              • E_FLG_INTERNAL_ERROR
                E_FLG_ERROR
                E_FLG_WARNING
                E_ERROR_TAB (of type ESPAP_EXTERROR_TAB_TYPE in type group ESPAP)
                If an error occurs in an object, it is not modified. All its direct andindirect subobjects are also marked as containing errors and are alsonot modified.

                Logic
                For the Modify API function module, the same statements apply as for theRead API Function Module, ifrelevant.
                The process is as follows:

                • First the Read API function module is called and determines
                • specifications for the transferred data records that already exist. Herethe data is read across the whole time axis to check for duplicates.
                  If you are working without change numbers, the API function module readsonly the data records transferred by the caller and the direct andindirect parent records of the data records to be changed or created.
                  If you are working with change numbers, the API function modulecontinues the data record split (see Rulefor Engineering Change Management in Specification Management). To dothis the API function module reads all necessary parent records andchild records of the data records to be edited and marks these as tobe changed, so that a data record split is also created for them.
                  • The MODIFY subroutine in the specification header for changing and
                  • creating is called and performs the actual tasks.

                    Notes
                    INCLUDE EHS_FU_PHRASE_AUTH_NOT_CHECK OBJECT DOKU ID TX

1411237Improvements in the specification API
1564132Authorization error for class type 100 is issued only once
1555822Creating several relationships in a (B)API call
1279642Error in specification BAPI and API
1509009(B)API cannot generate sorting for identifiers
1505911API changes referenced value assignments
1490665Reading specifications takes a long time
1247216Specification BAPI/API and inheritance: Important notes
1463134Unnecessary conversion of characteristic vals from database
1457528Empty RECNROOT fields for characteristics cause problems
1457612Meaningless status values displayed in scope of application
1438416Specifying decimal places for concentrations for components
1403521Missing authorization for class type 100
1118479ALE distribution of new inheritance sources
1258064Error in specification BAPI and specification API
1301213Existence check for change numbers
1232352API: Error during mass creation of specification data
1234361Characteristics data not saved
1073773Change BAPI changes specification key
1180441Existing characteristic data is deleted
1171686API: Missing check for number of user-defined texts
1110727Val. assgmt. instances w/ non-values maint. characteristics
1113145BAPI creates value assignment instances despite char. errors
1036247Change BAPI sends unrequired message for status entries
1061176"Component assignment allowed" is ignored by BAPI
985626Several vals. for dangerous goods regul. w/ "Copy Template"
1017979Value assignment instance is not updated after change
987947Runtime error NESTED_PERFORM_ON_COMMIT
979495(B)API of the specifications creates duplicate usages
839195Identification of non-valuated properties with the BAPI
899820No error messages during specification import
914169(B)API does not transfer rec split for detail to val assigmt
914550Value assignmt not updated after you change characteristics
877708No status data record numbers in the API error table
854533Error when you delete user-defined texts