Ansicht
Dokumentation

CBIH_MP30_MP_CREATE - EHS: Create Measurement Project Data

CBIH_MP30_MP_CREATE - EHS: Create Measurement Project Data

TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is part of the Application Programming Interface (API) of the Environment, Health and Safety (EH&S) component. It is used to create measurement project data.

Dependencies between new data items to be created cannot yet be represented via foreign keys. The new data does not yet have keys and therefore it cannot be referenced even by foreign keys, so the measurement project data is passed to the function in a complex structure. In this structure, the dependencies exist implicitly and must not therefore be expressed explicitly using (foreign) keys.

Note

You will find a description of the complex structure used (CIHMP_MP_API_TAB_TYPE) in the type group CIHMP.

To create a new measurement project, the required entry fields of the work area HEAD must be filled in the X_API_MP_TAB parameter.

If the X_API_MP_TAB parameter does not contain a value, the exception NO_OBJECT_SPECIFIED is raised.

Which measurement project data is to be created is specified by the different I_FLG_xxx indicators, where an indicator corresponds to a table or work area within the complex structure of X_API_MP_TAB as follows:

I_FLG_MP_HEADER HEAD
I_FLG_MP_HEADER_LTXT1 LTXT1
I_FLG_MP_HEADER_LTXT2 LTXT2
I_FLG_MP_HEADER_VAL MPVAL_TAB-VALUATION
MPVAL_TAB-PROPDATA
I_FLG_MP_WA MPWA_TAB-HEAD
I_FLG_MP_WA_LTXT MPWA_TAB-LTXT_TAB
I_FLG_MP_PLAN MPWA_TAB-PLAN_TAB-HEAD
I_FLG_MP_PLAN_LTXT MPWA_TAB-PLAN_TAB-LTXT
I_FLG_MP_PLMET MPWA_TAB-MPMT_TAB
I_FLG_MP_EQUIPMENT DEVICE_TAB
I_FLG_MJ_HEADER MPWA_TAB-MJOB_TAB-HEAD
I_FLG_MJ_HEADER_LTXT1 MPWA_TAB-MJOB_TAB-LTXT1
I_FLG_MJ_HEADER_LTXT2 MPWA_TAB-MJOB_TAB-LTXT2
I_FLG_MJ_REFERENCE MPWA_TAB-MJOB_TAB-REF_MJ_TAB
I_FLG_MJ_VALUES MPWA_TAB-MJOB_TAB-MVALUES_TAB
I_FLG_MJ_WORKAREA MPWA_TAB-MJOB_TAB-MWA_TAB

If an indicator is set to "TRUE," the respective data is created in the database if the respective data record does not yet have an internal key (RECN).





Parameters

E_FLG_ERROR
E_FLG_LOCKFAIL
E_FLG_WARNING
I_ADDINF
I_FLG_CHECK_CLVALUE
I_FLG_CHECK_ONLY
I_FLG_FILL_EXTERROR
I_FLG_KEY_DATE_SWITCH_ONLY
I_FLG_MJ_HEADER
I_FLG_MJ_HEADER_LTXT1
I_FLG_MJ_HEADER_LTXT2
I_FLG_MJ_HEADER_VAL
I_FLG_MJ_REFERENCE
I_FLG_MJ_VALUES
I_FLG_MJ_WORKAREA
I_FLG_MP_EQUIPMENT
I_FLG_MP_HEADER
I_FLG_MP_HEADER_LTXT1
I_FLG_MP_HEADER_LTXT2
I_FLG_MP_HEADER_VAL
I_FLG_MP_PLAN
I_FLG_MP_PLAN_LTXT
I_FLG_MP_PLMET
I_FLG_MP_WA
I_FLG_MP_WA_LTXT
I_VALFR
I_VALTO
X_API_MP_TAB

Exceptions

INTERNAL_ERROR
INTERVAL_ACCESS_ERROR
NO_OBJECT_SPECIFIED
PARAMETER_ERROR

Function Group

CBIH_MP30

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4327 Date: 20240523 Time: 085420     sap01-206 ( 60 ms )