SAP FI_DELETE_CHAC Function Module for









FI_DELETE_CHAC is a standard fi delete chac SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fi delete chac FM, simply by entering the name FI_DELETE_CHAC into the relevant SAP transaction such as SE37 or SE38.

Function Group: F055
Program Name: SAPLF055
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FI_DELETE_CHAC pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FI_DELETE_CHAC'"
EXPORTING
KTOPL = "
* X_TESTRUN = 'X' "
* X_ENQUEUE = 'X' "
* X_ENQUEUE_HOLD = 'X' "
* X_LOG = 'X' "
* X_T004 = 'X' "

EXCEPTIONS
LOCKED = 1 LOCK_ERROR = 2 NO_AUTHORITY = 3 NOT_ALLOWED = 4 ERROR = 5
.



IMPORTING Parameters details for FI_DELETE_CHAC

KTOPL -

Data type: T004-KTOPL
Optional: No
Call by Reference: No ( called with pass by value option)

X_TESTRUN -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_ENQUEUE -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_ENQUEUE_HOLD -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_LOG -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_T004 -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LOCK_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_ALLOWED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FI_DELETE_CHAC Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_ktopl  TYPE T004-KTOPL, "   
lv_locked  TYPE T004, "   
lv_x_testrun  TYPE T004, "   'X'
lv_lock_error  TYPE T004, "   
lv_x_enqueue  TYPE T004, "   'X'
lv_no_authority  TYPE T004, "   
lv_not_allowed  TYPE T004, "   
lv_x_enqueue_hold  TYPE T004, "   'X'
lv_error  TYPE T004, "   
lv_x_log  TYPE T004, "   'X'
lv_x_t004  TYPE T004. "   'X'

  CALL FUNCTION 'FI_DELETE_CHAC'  "
    EXPORTING
         KTOPL = lv_ktopl
         X_TESTRUN = lv_x_testrun
         X_ENQUEUE = lv_x_enqueue
         X_ENQUEUE_HOLD = lv_x_enqueue_hold
         X_LOG = lv_x_log
         X_T004 = lv_x_t004
    EXCEPTIONS
        LOCKED = 1
        LOCK_ERROR = 2
        NO_AUTHORITY = 3
        NOT_ALLOWED = 4
        ERROR = 5
. " FI_DELETE_CHAC




ABAP code using 7.40 inline data declarations to call FM FI_DELETE_CHAC

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single KTOPL FROM T004 INTO @DATA(ld_ktopl).
 
 
DATA(ld_x_testrun) = 'X'.
 
 
DATA(ld_x_enqueue) = 'X'.
 
 
 
DATA(ld_x_enqueue_hold) = 'X'.
 
 
DATA(ld_x_log) = 'X'.
 
DATA(ld_x_t004) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!