SAP Function Modules

FDM_CASE_CREATE SAP Function module







FDM_CASE_CREATE 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 FDM_CASE_CREATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FDM_CASE_CREATE - FDM CASE CREATE





CALL FUNCTION 'FDM_CASE_CREATE' "
  EXPORTING
*   i_update_task = 'X'         " boole_d
    i_proc_type =               " fdm_proc_type
    i_proc_id =                 " fdm_proc_id
    it_process_objects =        " fdm_t_process_data  FSCM-DM Integration: Process Data for the Dispute Case
    it_attributes =             " fdm_t_attribute  FSCM-DM Integration: Attribute Value
*   is_note_properties =        " bdm_s_note_properties  FSCM-DM: Properties for Notes for Dispute Case
*   it_case_note =              " tlinetab      Type: Multidimensional Table: Text Header + Lines
*   it_case_filecontent =       " fdm_t_filecontent  FSCM-DM: File Content for Attachment to Dispute
*   it_fileclass =              " bdm_t_fileclass  FSCM-DM: Classifications for Attachments to Dispute
*   i_external_guid =           " sysuuid_c     UUID in Character Format
*   i_no_communication =        " boole_d       Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   i_no_rfc_test =             " fdm_no_rfc_test
*   i_testrun =                 " testrun       Switch to Simulation Mode for Write BAPIs
  IMPORTING
    es_return =                 " bapiret2      Return Parameter(s)
    e_proc_seqnr =              " fdm_proc_seqnr  Sequential Number of Process
  EXCEPTIONS
    GET_NUMBER_FAILURE = 1      "
    CASE_TYPE_MISSING = 2       "
    MORE_THAN_ONE_CURR = 3      "
    UPDATE_FAILURE = 4          "
    .  "  FDM_CASE_CREATE

ABAP code example for Function Module FDM_CASE_CREATE





The ABAP code below is a full code listing to execute function module FDM_CASE_CREATE 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_es_return  TYPE BAPIRET2 ,
ld_e_proc_seqnr  TYPE FDM_PROC_SEQNR .

DATA(ld_i_update_task) = 'Check type of data required'.
DATA(ld_i_proc_type) = 'Check type of data required'.
DATA(ld_i_proc_id) = 'Check type of data required'.
DATA(ld_it_process_objects) = 'Check type of data required'.
DATA(ld_it_attributes) = 'Check type of data required'.
DATA(ld_is_note_properties) = 'Check type of data required'.
DATA(ld_it_case_note) = 'Check type of data required'.
DATA(ld_it_case_filecontent) = 'Check type of data required'.
DATA(ld_it_fileclass) = 'Check type of data required'.
DATA(ld_i_external_guid) = 'some text here'.
DATA(ld_i_no_communication) = 'some text here'.
DATA(ld_i_no_rfc_test) = 'some text here'.
DATA(ld_i_testrun) = 'some text here'. . CALL FUNCTION 'FDM_CASE_CREATE' EXPORTING * i_update_task = ld_i_update_task i_proc_type = ld_i_proc_type i_proc_id = ld_i_proc_id it_process_objects = ld_it_process_objects it_attributes = ld_it_attributes * is_note_properties = ld_is_note_properties * it_case_note = ld_it_case_note * it_case_filecontent = ld_it_case_filecontent * it_fileclass = ld_it_fileclass * i_external_guid = ld_i_external_guid * i_no_communication = ld_i_no_communication * i_no_rfc_test = ld_i_no_rfc_test * i_testrun = ld_i_testrun IMPORTING es_return = ld_es_return e_proc_seqnr = ld_e_proc_seqnr EXCEPTIONS GET_NUMBER_FAILURE = 1 CASE_TYPE_MISSING = 2 MORE_THAN_ONE_CURR = 3 UPDATE_FAILURE = 4 . " FDM_CASE_CREATE
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 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_es_return  TYPE BAPIRET2 ,
ld_i_update_task  TYPE BOOLE_D ,
ld_e_proc_seqnr  TYPE FDM_PROC_SEQNR ,
ld_i_proc_type  TYPE FDM_PROC_TYPE ,
ld_i_proc_id  TYPE FDM_PROC_ID ,
ld_it_process_objects  TYPE FDM_T_PROCESS_DATA ,
ld_it_attributes  TYPE FDM_T_ATTRIBUTE ,
ld_is_note_properties  TYPE BDM_S_NOTE_PROPERTIES ,
ld_it_case_note  TYPE TLINETAB ,
ld_it_case_filecontent  TYPE FDM_T_FILECONTENT ,
ld_it_fileclass  TYPE BDM_T_FILECLASS ,
ld_i_external_guid  TYPE SYSUUID_C ,
ld_i_no_communication  TYPE BOOLE_D ,
ld_i_no_rfc_test  TYPE FDM_NO_RFC_TEST ,
ld_i_testrun  TYPE TESTRUN .

ld_i_update_task = 'some text here'.
ld_i_proc_type = 'some text here'.
ld_i_proc_id = 'some text here'.
ld_it_process_objects = 'some text here'.
ld_it_attributes = 'some text here'.
ld_is_note_properties = 'some text here'.
ld_it_case_note = 'some text here'.
ld_it_case_filecontent = 'some text here'.
ld_it_fileclass = 'some text here'.
ld_i_external_guid = 'some text here'.
ld_i_no_communication = 'some text here'.
ld_i_no_rfc_test = 'some text here'.
ld_i_testrun = 'some text here'.

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 FDM_CASE_CREATE or its description.