SAP Function Modules

FMCFAA_DELETE SAP Function module







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

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


Pattern for FM FMCFAA_DELETE - FMCFAA DELETE





CALL FUNCTION 'FMCFAA_DELETE' "
  EXPORTING
*   i_actuals = ' '             "
*   i_all_gjahr = ' '           "
*   i_budget = ' '              "
    i_fikrs =                   " fcabp-fikrs
*   i_gjahr = '0000'            " fcabp-gjahr
*   i_xreal = ' '               "
*   i_xtest = ' '               "
*   i_geber = ' '               " fmcfaa-geber
*   i_all_geber = ' '           "
*   i_versn = '000'             " bpja-versn
*   i_all_versn = ' '           "
*   i_fm_wrttp = ' '            " fmcfaa-fm_wrttp
  EXCEPTIONS
    INVALID_INPUT = 1           "
    .  "  FMCFAA_DELETE

ABAP code example for Function Module FMCFAA_DELETE





The ABAP code below is a full code listing to execute function module FMCFAA_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_i_actuals) = 'some text here'.
DATA(ld_i_all_gjahr) = 'some text here'.
DATA(ld_i_budget) = 'some text here'.

SELECT single FIKRS
FROM FCABP
INTO @DATA(ld_i_fikrs).


SELECT single GJAHR
FROM FCABP
INTO @DATA(ld_i_gjahr).

DATA(ld_i_xreal) = 'some text here'.
DATA(ld_i_xtest) = 'some text here'.

SELECT single GEBER
FROM FMCFAA
INTO @DATA(ld_i_geber).

DATA(ld_i_all_geber) = 'some text here'.

SELECT single VERSN
FROM BPJA
INTO @DATA(ld_i_versn).

DATA(ld_i_all_versn) = 'some text here'.

SELECT single FM_WRTTP
FROM FMCFAA
INTO @DATA(ld_i_fm_wrttp).
. CALL FUNCTION 'FMCFAA_DELETE' EXPORTING * i_actuals = ld_i_actuals * i_all_gjahr = ld_i_all_gjahr * i_budget = ld_i_budget i_fikrs = ld_i_fikrs * i_gjahr = ld_i_gjahr * i_xreal = ld_i_xreal * i_xtest = ld_i_xtest * i_geber = ld_i_geber * i_all_geber = ld_i_all_geber * i_versn = ld_i_versn * i_all_versn = ld_i_all_versn * i_fm_wrttp = ld_i_fm_wrttp EXCEPTIONS INVALID_INPUT = 1 . " FMCFAA_DELETE
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_i_actuals  TYPE STRING ,
ld_i_all_gjahr  TYPE STRING ,
ld_i_budget  TYPE STRING ,
ld_i_fikrs  TYPE FCABP-FIKRS ,
ld_i_gjahr  TYPE FCABP-GJAHR ,
ld_i_xreal  TYPE STRING ,
ld_i_xtest  TYPE STRING ,
ld_i_geber  TYPE FMCFAA-GEBER ,
ld_i_all_geber  TYPE STRING ,
ld_i_versn  TYPE BPJA-VERSN ,
ld_i_all_versn  TYPE STRING ,
ld_i_fm_wrttp  TYPE FMCFAA-FM_WRTTP .

ld_i_actuals = 'some text here'.
ld_i_all_gjahr = 'some text here'.
ld_i_budget = 'some text here'.

SELECT single FIKRS
FROM FCABP
INTO ld_i_fikrs.


SELECT single GJAHR
FROM FCABP
INTO ld_i_gjahr.

ld_i_xreal = 'some text here'.
ld_i_xtest = 'some text here'.

SELECT single GEBER
FROM FMCFAA
INTO ld_i_geber.

ld_i_all_geber = 'some text here'.

SELECT single VERSN
FROM BPJA
INTO ld_i_versn.

ld_i_all_versn = 'some text here'.

SELECT single FM_WRTTP
FROM FMCFAA
INTO ld_i_fm_wrttp.

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