We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

C1CA0002 - EHS: Determines the mat. ID assigned to substances in EH&S

C1CA0002 - EHS: Determines the mat. ID assigned to substances in EH&S

ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this SAP enhancement to define a function exit used to determine the material ID that is assigned to a substance in the SAP component Product Safety. The material ID is assigned to the RAWMATNR field in the CVDMAT structure.

The customer exit is found in the function group XC1A. It is called in the C1CA_RAWMAT_GET_FROM_MAT function module that is called within the C1CA_SD_INTERFACE_TO_EHS_NEW function module. For more information, see the documentation on the function module C1CA_SD_INTERFACE_TO_EHS_NEW.

The customer exit is used to display the customer-specific material hierarchy. You can use this display to determine a material ID, for example, using the following data:

  • Order reason (manual request, or request from the SAP component Sales and Distribution (SD))
  • Customer (customer-specific material hierarchy)
  • Sender

If necessary, you can also modify the material name. Material ID and material name must be entered in the CVDMAT structure. The MATNR field is filled with the following data:

  • Material number from the shipping request
  • When calling this from SD, this is the material number from the delivery note

  • Material names:
  • When calling this from SD, this is the material name from the delivery note

  • When requesting this manually, this is the material description from the material master

You can use the following parameters:

Interface parameters Meaning
I_MATERIAL material structure
I_REASON order reason (manual request,
request from SD)
I_CUSDATA customer data (recipient ID, country, region)
I_INITIATOR sender (sales organization)
I_INFO_FOR_ERROR_MAIL contextual information for error handling
I_REPORT_VERSION_DATE key date for report version
I_RECINFO_TAB MSDS recipient data
I_SDDATA_TAB SD-specific data
Export parameter Meaning
E_MATERIAL material structure

The function is called when shipping is triggered automatically from SD or started manually. The following parameters are not filled when shipping is triggered manually:

  • I_CUSDATA
  • I_SDDATA_TAB
  • I_RECINFO_TAB

You can use the structure I_REASON to determine whether shipping was triggered manually or automatically.

Error handling:

As the process runs in the background, you cannot react directly to an error situation.
In the function group C1CA, the function module C1CA_INTERFACE_ERR_MESSAGE supports error handling. You use this function module to send error mails to the persons responsible. The recipients of these mails are specified in Product Safety Customizing.
The import parameter I_INFO_FOR_ERROR_MAIL contains contextual information on error situations (delivery note number from SD, for example) that is output in the error mail.





Vendor Master (General Section)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4808 Date: 20200919 Time: 211417     sap01-206 ( 52 ms )