Fonction SAP C1F5_SPECIFICATIONS_DELETE - EHS: Delete 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_ASSESSMENT_CHECK ESP1_BOOLEAN 0 ESP1_TRUE
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE Data only checked but not written to buffer
I_FLG_DATA_PASSED_ON_W_INH_REL ESP1_BOOLEAN 0 ESP1_FALSE
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_FALSE
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.
Deleting Data
The calling program specifies the data records to be deleted using thetables. The API function module does the following:

  • Fills the attributes RECN, RECN[MST|Txy], and RECNROOT

  • Sets the attribute LINEMOD to the value 'D' for data records to be
  • deleted. These data records can then be distinguished from data recordsthat are not to be deleted.
    The API function module does not delete the data records physically; itsets the delete indicator DELFLG to the value 'X'. When an object isdeleted, all its direct and indirect subobjects are also deletedautomatically.
    Note:
    For the physical deletion, you use the report program RC1PHDEL.
    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. If it is set, the API functionmodule works with the time interval from 01/01/0001 to 12/31/9999. Thisensures that logical keys are unique across the whole time axis.
      • Other parameters:

      • I_FLG_CHECK_ONLY (Run delete as test. Data is not written to thebuffer.)
        I_FLG_OWNID_SRSID_KEEP (When deleting, the attributes data provider anddata source remain unchanged)
        I_FLG_STATUS_CHECK (Status check on)
        I_FLG_DATA_PASSED_ON_W_INH_REL (When deleting inheritance relationships,the passed on identifiers and value assignment instances are alsodeleted)
        • 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 deleted and all its directand indirect subobjects are marked as containing errors and are also notdeleted.

          Logic
          For the Delete 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 reads, checks, and
          • locks the specifications for the objects to be deleted. The API functionmodule reads the objects and their direct and indirect parent and childobjects.
            If whole specifications are deleted, the API function module determinesthe data across the whole time axis. Otherwise, the API function modulereads the data on the key date because the change states of the datarecords are synchronous among the hierarchy levels below thespecification header level (see Rule forEngineering Change Management in Specification Management).
            • The Delete API function module (DELETE subroutine for the specification
            • header) is called that carries out the actual deletion.
              If you are working with change numbers, the API function moduledistributes data record splits to the hierarchy levels (seeRule for Engineering Change Management inSpecification Management). To do this, the API function module marksthe direct parent objects of the deleted objects as to be changed andpasses them to the Modify API function module so that it can create therequired data record splits.

              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
1494425Delete (B)API deletes inherited value assignment instances
1247216Specification BAPI/API and inheritance: Important notes
1457612Meaningless status values displayed in scope of application
1403521Missing authorization for class type 100
1388009Deleting regulatory lists deletes identifiers
1283732Error in read/delete API when several data records entered
946701Deleting restrictions with the Delete (B)API
1047423Performance problems with specifications and phrases
1120922Too much specification data is deleted
1042303Buffer error C$ 128 when deleting detail data with API
839195Identification of non-valuated properties with the BAPI
945416Delete (B)API requires too much runtime
916095Deleting to 2 value assignment details w/ API w/ change numb
922010Delete API in C1F5 does not delete status entries