Ansicht
Dokumentation

C1CA0005 - EHS: Determination of SRGV for report selection MSDS ship.

C1CA0005 - EHS: Determination of SRGV for report selection MSDS ship.

RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this SAP enhancement to define a function exit that determines the substance report generation variant used to select report bodies in the MSDS shipping module.

The customer exit is found in the function group XC1A. You call the function from the C1CA_VARIANT_FIND function that is called within the function module C1CA_SD_INTERFACE_TO_EHS_NEW. For more information, see the documentation for the function module C1CA_SD_INTERFACE_TO_EHS_NEW.

If the SAP System cannot find a customer exit after the function C1CA_VARIANT_FIND has been called, the generation variant that you maintained in Product Safety Customizing is selected using condition tables.

The following import parameters are used as selection criteria:

Import parameters Meaning
I_REASON order reason
I_CUSTOMER customer data: ship-to party ID
country, region, language
I_INITIATOR sender (sales organization ID)
I_MATERIAL material structure: material, raw material,
material name
I_REPORT_VERSION_DATE key date for report version
1_REPTYPE report type (MSDS)
I_RECINFO_TAB MSDS recipient data
I_SDDATA_TAB SD-specific data

Error handling:

I_INFO_FOR_ERROR_MAIL contextual information for error handling

The export parameter should contain the SRGV ID.

E_VARIANT_ID substance report generation variant (SBGV)

In the standard system, the Customer function is replaced by the C1C1_VARIANT_GET_FROM_SCHEME function.

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.





ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3705 Date: 20240328 Time: 190909     sap01-206 ( 44 ms )