SAP Function Modules

CE_C_PROCESSING SAP Function module







CE_C_PROCESSING is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CE_C_PROCESSING into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CUKO
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CE_C_PROCESSING - CE C PROCESSING





CALL FUNCTION 'CE_C_PROCESSING' "
  EXPORTING
    instance =                  " inob-cuobj
*   reference_instance =        " inob-cuobj
    date =                      " sy-datum
*   display = ' '               " c
    object_id =                 " inob-robtab
    object =                    " inob-robjek
*   owner_id =                  " inob-obtab
*   header_screen =             " incl_bild
*   plant =                     " marc-werks
*   no_dialog = ' '             " c
*   material_variant =          " mara-matnr
*   no_f8 = ' '                 " c
*   no_f11 = ' '                " c
*   sub_type = ' '              " rcuko-appid
*   simulation = ' '            " c
*   type = 'S'                  " c             Configuration Type
*   effectivity =               " inob-techs
*   initialization = ' '        " c             Initialization of the Configuration
*   called_from_sales = ' '     " c
*   bom_application =           " rcuko-capid
*   is_business_object =        " ibxx_business_object  Business Object
*   iv_profile_counter =        " cuco-zaehl
  IMPORTING
    return_with_functionkey =   " sy-ucomm
    new_instance =              " inob-cuobj
* TABLES
*   application_input =         " cltable
*   application_output =        " cltable
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Internal Error
    INSTANCE_NOT_FOUND = 2      "
    REFERENCE_INSTANCE_NOT_FOUND = 3  "
    INSTANCE_IS_A_CLASSIFICATION = 4  "
    NO_PLANT = 5                "
    NO_QUANTITY = 6             "
    NO_CONNECTION_TO_CONFIGURATION = 7  "
    MATERIAL_VARIANT_NOT_ALLOWED = 8  "
    INTERNAL_ERROR_ECM = 9      "
    EOASL_NOT_ALLOWED = 10      "
    MAXASL_NOT_ALLOWED = 11     "
    XC_UNPROCESSED_DATA = 12    "
    XC_FAILURE_PROCESSING_DATA = 13  "
    NO_BOM = 14                 "               No bill of material exists
    NO_KNOWLEDGE_BASE_FOUND = 15  "
    ORDER_BOM_ERROR = 16        "
    .  "  CE_C_PROCESSING

ABAP code example for Function Module CE_C_PROCESSING





The ABAP code below is a full code listing to execute function module CE_C_PROCESSING including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_return_with_functionkey  TYPE SY-UCOMM ,
ld_new_instance  TYPE INOB-CUOBJ ,
it_application_input  TYPE STANDARD TABLE OF CLTABLE,"TABLES PARAM
wa_application_input  LIKE LINE OF it_application_input ,
it_application_output  TYPE STANDARD TABLE OF CLTABLE,"TABLES PARAM
wa_application_output  LIKE LINE OF it_application_output .


SELECT single CUOBJ
FROM INOB
INTO @DATA(ld_instance).


SELECT single CUOBJ
FROM INOB
INTO @DATA(ld_reference_instance).

DATA(ld_date) = '20210129'.
DATA(ld_display) = '20210129'.

SELECT single ROBTAB
FROM INOB
INTO @DATA(ld_object_id).


SELECT single ROBJEK
FROM INOB
INTO @DATA(ld_object).


SELECT single OBTAB
FROM INOB
INTO @DATA(ld_owner_id).

DATA(ld_header_screen) = '20210129'.

SELECT single WERKS
FROM MARC
INTO @DATA(ld_plant).

DATA(ld_no_dialog) = '20210129'.

SELECT single MATNR
FROM MARA
INTO @DATA(ld_material_variant).

DATA(ld_no_f8) = '20210129'.
DATA(ld_no_f11) = '20210129'.

DATA(ld_sub_type) = some text here
DATA(ld_simulation) = '20210129'.
DATA(ld_type) = '20210129'.

SELECT single TECHS
FROM INOB
INTO @DATA(ld_effectivity).

DATA(ld_initialization) = '20210129'.
DATA(ld_called_from_sales) = '20210129'.

DATA(ld_bom_application) = some text here
DATA(ld_is_business_object) = '20210129'.

SELECT single ZAEHL
FROM CUCO
INTO @DATA(ld_iv_profile_counter).


"populate fields of struture and append to itab
append wa_application_input to it_application_input.

"populate fields of struture and append to itab
append wa_application_output to it_application_output. . CALL FUNCTION 'CE_C_PROCESSING' EXPORTING instance = ld_instance * reference_instance = ld_reference_instance date = ld_date * display = ld_display object_id = ld_object_id object = ld_object * owner_id = ld_owner_id * header_screen = ld_header_screen * plant = ld_plant * no_dialog = ld_no_dialog * material_variant = ld_material_variant * no_f8 = ld_no_f8 * no_f11 = ld_no_f11 * sub_type = ld_sub_type * simulation = ld_simulation * type = ld_type * effectivity = ld_effectivity * initialization = ld_initialization * called_from_sales = ld_called_from_sales * bom_application = ld_bom_application * is_business_object = ld_is_business_object * iv_profile_counter = ld_iv_profile_counter IMPORTING return_with_functionkey = ld_return_with_functionkey new_instance = ld_new_instance * TABLES * application_input = it_application_input * application_output = it_application_output EXCEPTIONS INTERNAL_ERROR = 1 INSTANCE_NOT_FOUND = 2 REFERENCE_INSTANCE_NOT_FOUND = 3 INSTANCE_IS_A_CLASSIFICATION = 4 NO_PLANT = 5 NO_QUANTITY = 6 NO_CONNECTION_TO_CONFIGURATION = 7 MATERIAL_VARIANT_NOT_ALLOWED = 8 INTERNAL_ERROR_ECM = 9 EOASL_NOT_ALLOWED = 10 MAXASL_NOT_ALLOWED = 11 XC_UNPROCESSED_DATA = 12 XC_FAILURE_PROCESSING_DATA = 13 NO_BOM = 14 NO_KNOWLEDGE_BASE_FOUND = 15 ORDER_BOM_ERROR = 16 . " CE_C_PROCESSING
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 13. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 14. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 15. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 16. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return_with_functionkey  TYPE SY-UCOMM ,
ld_instance  TYPE INOB-CUOBJ ,
it_application_input  TYPE STANDARD TABLE OF CLTABLE ,
wa_application_input  LIKE LINE OF it_application_input,
ld_new_instance  TYPE INOB-CUOBJ ,
ld_reference_instance  TYPE INOB-CUOBJ ,
it_application_output  TYPE STANDARD TABLE OF CLTABLE ,
wa_application_output  LIKE LINE OF it_application_output,
ld_date  TYPE SY-DATUM ,
ld_display  TYPE C ,
ld_object_id  TYPE INOB-ROBTAB ,
ld_object  TYPE INOB-ROBJEK ,
ld_owner_id  TYPE INOB-OBTAB ,
ld_header_screen  TYPE INCL_BILD ,
ld_plant  TYPE MARC-WERKS ,
ld_no_dialog  TYPE C ,
ld_material_variant  TYPE MARA-MATNR ,
ld_no_f8  TYPE C ,
ld_no_f11  TYPE C ,
ld_sub_type  TYPE RCUKO-APPID ,
ld_simulation  TYPE C ,
ld_type  TYPE C ,
ld_effectivity  TYPE INOB-TECHS ,
ld_initialization  TYPE C ,
ld_called_from_sales  TYPE C ,
ld_bom_application  TYPE RCUKO-CAPID ,
ld_is_business_object  TYPE IBXX_BUSINESS_OBJECT ,
ld_iv_profile_counter  TYPE CUCO-ZAEHL .


SELECT single CUOBJ
FROM INOB
INTO ld_instance.


"populate fields of struture and append to itab
append wa_application_input to it_application_input.

SELECT single CUOBJ
FROM INOB
INTO ld_reference_instance.


"populate fields of struture and append to itab
append wa_application_output to it_application_output.
ld_date = '20210129'.
ld_display = '20210129'.

SELECT single ROBTAB
FROM INOB
INTO ld_object_id.


SELECT single ROBJEK
FROM INOB
INTO ld_object.


SELECT single OBTAB
FROM INOB
INTO ld_owner_id.

ld_header_screen = '20210129'.

SELECT single WERKS
FROM MARC
INTO ld_plant.

ld_no_dialog = '20210129'.

SELECT single MATNR
FROM MARA
INTO ld_material_variant.

ld_no_f8 = '20210129'.
ld_no_f11 = '20210129'.

ld_sub_type = some text here
ld_simulation = '20210129'.
ld_type = '20210129'.

SELECT single TECHS
FROM INOB
INTO ld_effectivity.

ld_initialization = '20210129'.
ld_called_from_sales = '20210129'.

ld_bom_application = some text here
ld_is_business_object = '20210129'.

SELECT single ZAEHL
FROM CUCO
INTO ld_iv_profile_counter.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CE_C_PROCESSING or its description.