SAP Function Modules

COM_TFW_GEN_LH_DATA_DIRECT_DEL SAP Function module







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

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


Pattern for FM COM_TFW_GEN_LH_DATA_DIRECT_DEL - COM TFW GEN LH DATA DIRECT DEL





CALL FUNCTION 'COM_TFW_GEN_LH_DATA_DIRECT_DEL' "
  EXPORTING
    iv_minitp_type =            " tfw_minitp_type
*   iv_minitp_id_od =           " tfw_minitp_id
*   it_minitp_ids_od =          " tfw_minitp_id_tab
*   iv_minitp_id =              " tfw_minitp_id
*   it_minitp_ids =             " tfw_minitp_id_tab
*   iv_delete_minitp_data =     " tfw_boolean
*   iv_delete_minitp_data_hist =   " tfw_boolean
*   iv_do_commit_work = ' '     " tfw_boolean
    .  "  COM_TFW_GEN_LH_DATA_DIRECT_DEL

ABAP code example for Function Module COM_TFW_GEN_LH_DATA_DIRECT_DEL





The ABAP code below is a full code listing to execute function module COM_TFW_GEN_LH_DATA_DIRECT_DEL 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_iv_minitp_type) = 'Check type of data required'.
DATA(ld_iv_minitp_id_od) = 'Check type of data required'.
DATA(ld_it_minitp_ids_od) = 'Check type of data required'.
DATA(ld_iv_minitp_id) = 'Check type of data required'.
DATA(ld_it_minitp_ids) = 'Check type of data required'.
DATA(ld_iv_delete_minitp_data) = 'Check type of data required'.
DATA(ld_iv_delete_minitp_data_hist) = 'Check type of data required'.
DATA(ld_iv_do_commit_work) = 'Check type of data required'. . CALL FUNCTION 'COM_TFW_GEN_LH_DATA_DIRECT_DEL' EXPORTING iv_minitp_type = ld_iv_minitp_type * iv_minitp_id_od = ld_iv_minitp_id_od * it_minitp_ids_od = ld_it_minitp_ids_od * iv_minitp_id = ld_iv_minitp_id * it_minitp_ids = ld_it_minitp_ids * iv_delete_minitp_data = ld_iv_delete_minitp_data * iv_delete_minitp_data_hist = ld_iv_delete_minitp_data_hist * iv_do_commit_work = ld_iv_do_commit_work . " COM_TFW_GEN_LH_DATA_DIRECT_DEL
IF SY-SUBRC EQ 0. "All OK 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_iv_minitp_type  TYPE TFW_MINITP_TYPE ,
ld_iv_minitp_id_od  TYPE TFW_MINITP_ID ,
ld_it_minitp_ids_od  TYPE TFW_MINITP_ID_TAB ,
ld_iv_minitp_id  TYPE TFW_MINITP_ID ,
ld_it_minitp_ids  TYPE TFW_MINITP_ID_TAB ,
ld_iv_delete_minitp_data  TYPE TFW_BOOLEAN ,
ld_iv_delete_minitp_data_hist  TYPE TFW_BOOLEAN ,
ld_iv_do_commit_work  TYPE TFW_BOOLEAN .

ld_iv_minitp_type = 'Check type of data required'.
ld_iv_minitp_id_od = 'Check type of data required'.
ld_it_minitp_ids_od = 'Check type of data required'.
ld_iv_minitp_id = 'Check type of data required'.
ld_it_minitp_ids = 'Check type of data required'.
ld_iv_delete_minitp_data = 'Check type of data required'.
ld_iv_delete_minitp_data_hist = 'Check type of data required'.
ld_iv_do_commit_work = 'Check type of data required'.

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