SAP C1CA_REPORT_DISTRIBUTION Function Module for NOTRANSL: EHS: Starten des Berichtsversandes









C1CA_REPORT_DISTRIBUTION is a standard c1ca report distribution SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Starten des Berichtsversandes processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for c1ca report distribution FM, simply by entering the name C1CA_REPORT_DISTRIBUTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: C1CA
Program Name: SAPLC1CA
Main Program: SAPLC1CA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C1CA_REPORT_DISTRIBUTION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'C1CA_REPORT_DISTRIBUTION'"NOTRANSL: EHS: Starten des Berichtsversandes
EXPORTING
I_INITIATOR = "
I_MATERIAL_DATA = "Material Data
I_REPORT_SEND_DATE = "Send Date
I_REASON = "Reason for Order
* I_PRI_PARAMS = "
* I_REPVIEW = "

TABLES
I_SDS_SUBID_TAB = "
I_RECLANGU_TAB = "
I_SUBID_REPHEADER_TAB = "
I_RECINFO_TAB = "Recipient Info.
I_SDDATA_TAB = "
* E_DDO_TAB = "

EXCEPTIONS
REPORT_DEST_CALL_FAILED = 1 REPORT_DEST_ERROR = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLC1CA_001 EHS: Determining report type for material safety data sheets
EXIT_SAPLC1CA_002 EHS: Determines the mat. ID assigned to substances in EH&S
EXIT_SAPLC1CA_003 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLC1CA_004 EHS: Determines the language version of the MSDS
EXIT_SAPLC1CA_005 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLC1CA_006 DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING Parameters details for C1CA_REPORT_DISTRIBUTION

I_INITIATOR -

Data type: CVDDH-INITIATOR
Optional: No
Call by Reference: No ( called with pass by value option)

I_MATERIAL_DATA - Material Data

Data type: CVDMAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_REPORT_SEND_DATE - Send Date

Data type: CVDAPIDH-VALDAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_REASON - Reason for Order

Data type: CVDREASON
Optional: No
Call by Reference: No ( called with pass by value option)

I_PRI_PARAMS -

Data type: PRI_PARAMS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_REPVIEW -

Data type: ESEREPUSVIEW
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for C1CA_REPORT_DISTRIBUTION

I_SDS_SUBID_TAB -

Data type: ESP8_SUBID_TAB_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_RECLANGU_TAB -

Data type: ESP10_SDS_CUS_LANGU_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

I_SUBID_REPHEADER_TAB -

Data type: ESPRE_SUBID_APIDH_TAB_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_RECINFO_TAB - Recipient Info.

Data type: CVDRECINFO
Optional: No
Call by Reference: No ( called with pass by value option)

I_SDDATA_TAB -

Data type: CVDDP
Optional: No
Call by Reference: No ( called with pass by value option)

E_DDO_TAB -

Data type: CVDA3_DDO_TAB_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

REPORT_DEST_CALL_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

REPORT_DEST_ERROR - Error in EHS report distribution

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for C1CA_REPORT_DISTRIBUTION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_initiator  TYPE CVDDH-INITIATOR, "   
lt_i_sds_subid_tab  TYPE STANDARD TABLE OF ESP8_SUBID_TAB_TYPE, "   
lv_report_dest_call_failed  TYPE ESP8_SUBID_TAB_TYPE, "   
lt_i_reclangu_tab  TYPE STANDARD TABLE OF ESP10_SDS_CUS_LANGU_TAB, "   
lv_i_material_data  TYPE CVDMAT, "   
lv_report_dest_error  TYPE CVDMAT, "   
lv_i_report_send_date  TYPE CVDAPIDH-VALDAT, "   
lt_i_subid_repheader_tab  TYPE STANDARD TABLE OF ESPRE_SUBID_APIDH_TAB_TYPE, "   
lv_i_reason  TYPE CVDREASON, "   
lt_i_recinfo_tab  TYPE STANDARD TABLE OF CVDRECINFO, "   
lv_i_pri_params  TYPE PRI_PARAMS, "   
lt_i_sddata_tab  TYPE STANDARD TABLE OF CVDDP, "   
lt_e_ddo_tab  TYPE STANDARD TABLE OF CVDA3_DDO_TAB_TYPE, "   
lv_i_repview  TYPE ESEREPUSVIEW. "   

  CALL FUNCTION 'C1CA_REPORT_DISTRIBUTION'  "NOTRANSL: EHS: Starten des Berichtsversandes
    EXPORTING
         I_INITIATOR = lv_i_initiator
         I_MATERIAL_DATA = lv_i_material_data
         I_REPORT_SEND_DATE = lv_i_report_send_date
         I_REASON = lv_i_reason
         I_PRI_PARAMS = lv_i_pri_params
         I_REPVIEW = lv_i_repview
    TABLES
         I_SDS_SUBID_TAB = lt_i_sds_subid_tab
         I_RECLANGU_TAB = lt_i_reclangu_tab
         I_SUBID_REPHEADER_TAB = lt_i_subid_repheader_tab
         I_RECINFO_TAB = lt_i_recinfo_tab
         I_SDDATA_TAB = lt_i_sddata_tab
         E_DDO_TAB = lt_e_ddo_tab
    EXCEPTIONS
        REPORT_DEST_CALL_FAILED = 1
        REPORT_DEST_ERROR = 2
. " C1CA_REPORT_DISTRIBUTION




ABAP code using 7.40 inline data declarations to call FM C1CA_REPORT_DISTRIBUTION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single INITIATOR FROM CVDDH INTO @DATA(ld_i_initiator).
 
 
 
 
 
 
"SELECT single VALDAT FROM CVDAPIDH INTO @DATA(ld_i_report_send_date).
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!