SAP Function Modules

IBAPI_C_COMPONENT_REMOVE SAP Function module - Delete Components







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

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


Pattern for FM IBAPI_C_COMPONENT_REMOVE - IBAPI C COMPONENT REMOVE





CALL FUNCTION 'IBAPI_C_COMPONENT_REMOVE' "Delete Components
  EXPORTING
*   iv_init_log = CC_X          " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
    is_caufvd =                 " caufvd        Dialog Structure for Order Headers and Item
    is_afvgd =                  " afvgd         Order: Dialog Table for Table AFVG (Order Operation)
    is_resbd_remove =           " resbd         Reservation/Dependent Requirements
  IMPORTING
    et_messages =               " ps_messages   Error Messages
  EXCEPTIONS
    LOG_ERROR = 1               "
    .  "  IBAPI_C_COMPONENT_REMOVE

ABAP code example for Function Module IBAPI_C_COMPONENT_REMOVE





The ABAP code below is a full code listing to execute function module IBAPI_C_COMPONENT_REMOVE 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_et_messages  TYPE PS_MESSAGES .


DATA(ld_iv_init_log) = some text here
DATA(ld_is_caufvd) = 'Check type of data required'.
DATA(ld_is_afvgd) = 'Check type of data required'.
DATA(ld_is_resbd_remove) = 'Check type of data required'. . CALL FUNCTION 'IBAPI_C_COMPONENT_REMOVE' EXPORTING * iv_init_log = ld_iv_init_log is_caufvd = ld_is_caufvd is_afvgd = ld_is_afvgd is_resbd_remove = ld_is_resbd_remove IMPORTING et_messages = ld_et_messages EXCEPTIONS LOG_ERROR = 1 . " IBAPI_C_COMPONENT_REMOVE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_et_messages  TYPE PS_MESSAGES ,
ld_iv_init_log  TYPE BOOLE-BOOLE ,
ld_is_caufvd  TYPE CAUFVD ,
ld_is_afvgd  TYPE AFVGD ,
ld_is_resbd_remove  TYPE RESBD .


ld_iv_init_log = some text here
ld_is_caufvd = 'Check type of data required'.
ld_is_afvgd = 'Check type of data required'.
ld_is_resbd_remove = '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 IBAPI_C_COMPONENT_REMOVE or its description.