Ansicht
Dokumentation

API_SD_MATDET_CREATE - SD MD: API to Create Material Determination Records

API_SD_MATDET_CREATE - SD MD: API to Create Material Determination Records

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module can be used to import Sales material determination data into an SAP S/4HANA system. Material determination is typically created using transaction VB11 and is commonly referred to as material substitution.

The function module currently only supports the following:

  • Key Combination: Material Entered (Material determination condition table 001)

The function module validates the material determination data imported as a table, saves the rows that did not generate validation errors, and returns error messages, indicating the row numbers where errors occurred. Error-free rows are saved even if the input table contains unsuccessful rows.

The function module does not commit the imported material determination data to the database, regardless of the setting of the IV_TEST_MODEparameter. If you would like to persist the imported data in the database, you must commit the changes following the call to this function module.

The necessary authorizations to execute this function module are managed using authorization object: V_KOND_VEA(Maintain Condition: Auth. for Use/Appl./Cond.Type/Table), and must be set as follows:

  • ACTVT = 01 (Activity = Create),
  • KAPPL = V (Application = V: Sales/Distribution),
  • KVEWE = D (Condition Table Usage = D: Material Determination),
  • KOTABNR = 001 (Condition Table = 001: Material Entered)
  • KSCHL(Condition Type: taken from the input records IT_MATDET_001-MaterialDeterminationType)

Example

This function module is called by the Material Determination migration object found under Migrate Your Data in the Manage Your Solutionapp. The migration object requires an upload of material determination data in a *.csv file.

The migration object parses the material determination data included in the *.csv file according to the parameters of the API_SD_MATDET_CREATEfunction module.

Notes

Further information





Parameters

ET_RETURN
IT_MATDET_001
IV_TEST_MODE

Exceptions

Function Group

API_SD_MATDET

TXBHW - Original Tax Base Amount in Local Currency   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3421 Date: 20240523 Time: 091622     sap01-206 ( 55 ms )