SAP Function Modules

FSBP_TC_API_APPL_DATA_DELETE SAP Function module







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

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


Pattern for FM FSBP_TC_API_APPL_DATA_DELETE - FSBP TC API APPL DATA DELETE





CALL FUNCTION 'FSBP_TC_API_APPL_DATA_DELETE' "
  EXPORTING
    i_appl =                    " bp_tc_dte_appl  TC: Application
*   i_flg_delete_all = SPACE    " boole_d       Data Element for Domain BOOLE: TRUE (="X") and FALSE (=" ")
*   i_tab_idnum =               " fsbp_tc_tty_idnum  TC: Table Type for External Business Partner Numbers
*   i_flg_commit_work =         " xfeld         Checkbox
*   i_block_factor = 100        " i
*   i_local_mode =              " xfeld         Checkbox
*   i_str_general =             " busisb990_gen  FS-BP: BAPI Structure for General Switches and Data
*   i_testrun =                 " char1         Single-Character Flag
*   i_trace =                   " xprot         Return Extended Log
  IMPORTING
    e_tab_return =              " bapiret2_t    Return Table
* TABLES
*   e_tab_transfer_error =      " fsbp_tc_tty_transfer  Table Type for Transfer Structure
  EXCEPTIONS
    ERROR_CALLER = 1            "               Transfer Parameter Incorrect
    ERROR_APPLICATION = 2       "               Application Not Active etc.
    .  "  FSBP_TC_API_APPL_DATA_DELETE

ABAP code example for Function Module FSBP_TC_API_APPL_DATA_DELETE





The ABAP code below is a full code listing to execute function module FSBP_TC_API_APPL_DATA_DELETE 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_e_tab_return  TYPE BAPIRET2_T ,
it_e_tab_transfer_error  TYPE STANDARD TABLE OF FSBP_TC_TTY_TRANSFER,"TABLES PARAM
wa_e_tab_transfer_error  LIKE LINE OF it_e_tab_transfer_error .

DATA(ld_i_appl) = 'Check type of data required'.
DATA(ld_i_flg_delete_all) = 'Check type of data required'.
DATA(ld_i_tab_idnum) = 'Check type of data required'.
DATA(ld_i_flg_commit_work) = 'Check type of data required'.
DATA(ld_i_block_factor) = 'Check type of data required'.
DATA(ld_i_local_mode) = 'Check type of data required'.
DATA(ld_i_str_general) = 'Check type of data required'.
DATA(ld_i_testrun) = 'Check type of data required'.
DATA(ld_i_trace) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_tab_transfer_error to it_e_tab_transfer_error. . CALL FUNCTION 'FSBP_TC_API_APPL_DATA_DELETE' EXPORTING i_appl = ld_i_appl * i_flg_delete_all = ld_i_flg_delete_all * i_tab_idnum = ld_i_tab_idnum * i_flg_commit_work = ld_i_flg_commit_work * i_block_factor = ld_i_block_factor * i_local_mode = ld_i_local_mode * i_str_general = ld_i_str_general * i_testrun = ld_i_testrun * i_trace = ld_i_trace IMPORTING e_tab_return = ld_e_tab_return * TABLES * e_tab_transfer_error = it_e_tab_transfer_error EXCEPTIONS ERROR_CALLER = 1 ERROR_APPLICATION = 2 . " FSBP_TC_API_APPL_DATA_DELETE
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 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_e_tab_return  TYPE BAPIRET2_T ,
ld_i_appl  TYPE BP_TC_DTE_APPL ,
it_e_tab_transfer_error  TYPE STANDARD TABLE OF FSBP_TC_TTY_TRANSFER ,
wa_e_tab_transfer_error  LIKE LINE OF it_e_tab_transfer_error,
ld_i_flg_delete_all  TYPE BOOLE_D ,
ld_i_tab_idnum  TYPE FSBP_TC_TTY_IDNUM ,
ld_i_flg_commit_work  TYPE XFELD ,
ld_i_block_factor  TYPE I ,
ld_i_local_mode  TYPE XFELD ,
ld_i_str_general  TYPE BUSISB990_GEN ,
ld_i_testrun  TYPE CHAR1 ,
ld_i_trace  TYPE XPROT .

ld_i_appl = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_tab_transfer_error to it_e_tab_transfer_error.
ld_i_flg_delete_all = 'Check type of data required'.
ld_i_tab_idnum = 'Check type of data required'.
ld_i_flg_commit_work = 'Check type of data required'.
ld_i_block_factor = 'Check type of data required'.
ld_i_local_mode = 'Check type of data required'.
ld_i_str_general = 'Check type of data required'.
ld_i_testrun = 'Check type of data required'.
ld_i_trace = '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 FSBP_TC_API_APPL_DATA_DELETE or its description.