SAP KE_TRANSACTION_DATA_DELETE Function Module for EC-PCA: Delete selected transaction data









KE_TRANSACTION_DATA_DELETE is a standard ke transaction data delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EC-PCA: Delete selected transaction data processing and below is the pattern details for this FM, 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 ke transaction data delete FM, simply by entering the name KE_TRANSACTION_DATA_DELETE into the relevant SAP transaction such as SE37 or SE38.

Function Group: PC05
Program Name: SAPLPC05
Main Program: SAPLPC05
Appliation area: K
Release date: 08-Nov-1994
Mode(Normal, Remote etc): Normal Function Module
Update:



Function KE_TRANSACTION_DATA_DELETE 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 'KE_TRANSACTION_DATA_DELETE'"EC-PCA: Delete selected transaction data
EXPORTING
* RPRCTR = ' ' "Profit Center
* RHOART = ' ' "Origin Object
* DOCNR = ' ' "Document Number
* DOCLN = ' ' "Line Item
* DOCCT = ' ' "
* VERSA = ' ' "Results Analysis Version (WIP)
* AFABE = ' ' "Depreciation Area (Assets)
* ACTIV = ' ' "Transaction
* LOGSYS = ' ' "
* TEST_INDICATOR = 'X' "Control Flag: Test Run
* LOG = 'X' "Control Flag: Write Log
* RACCT = ' ' "Revenue/Cost Element
* AWTYP = "
* AWORG = "
* FLAG_1KE0 = ' ' "
* FLAG_GLPCA_COMMIT = ' ' "
* HRKFT = ' ' "Origin as a Substructure of RACCT
* RVERS = ' ' "Plan Version
* RRCTY = ' ' "Rec.Type (0=Act., 1=Plan, 2/3=Assmnt.+Distr. Actual / Planned)
* POPER = ' ' "Posting Period
* RYEAR = ' ' "Fiscal Year
* RBUKRS = ' ' "Company Code
* KOKRS = ' ' "Controlling Area

IMPORTING
DUPREC = "

EXCEPTIONS
DOCUMENT_NUMBER_INCOMPLETE = 1 HRKFT_WITHOUT_RACCT = 2 PLANVERSION_VS_ACTUAL_DATA = 3 MISSING_PARAMETERS = 4 INTERNAL_ERROR_1 = 5 INTERNAL_ERROR_2 = 6
.



IMPORTING Parameters details for KE_TRANSACTION_DATA_DELETE

RPRCTR - Profit Center

Data type: GLPCT-RPRCTR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RHOART - Origin Object

Data type: GLPCT-RHOART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCNR - Document Number

Data type: GLPCA-DOCNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCLN - Line Item

Data type: GLPCA-DOCLN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCCT -

Data type: GLPCA-DOCCT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

VERSA - Results Analysis Version (WIP)

Data type: GLPCT-VERSA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AFABE - Depreciation Area (Assets)

Data type: GLPCT-AFABE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACTIV - Transaction

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

LOGSYS -

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

TEST_INDICATOR - Control Flag: Test Run

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

LOG - Control Flag: Write Log

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

RACCT - Revenue/Cost Element

Data type: GLPCT-RACCT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AWTYP -

Data type: GLPCA-AWTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

AWORG -

Data type: GLPCA-AWORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLAG_1KE0 -

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

FLAG_GLPCA_COMMIT -

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

HRKFT - Origin as a Substructure of RACCT

Data type: GLPCT-HRKFT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RVERS - Plan Version

Data type: GLPCT-RVERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RRCTY - Rec.Type (0=Act., 1=Plan, 2/3=Assmnt.+Distr. Actual / Planned)

Data type: GLPCT-RRCTY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

POPER - Posting Period

Data type: GLPCA-POPER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RYEAR - Fiscal Year

Data type: GLPCT-RYEAR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RBUKRS - Company Code

Data type: GLPCT-RBUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KOKRS - Controlling Area

Data type: GLPCT-KOKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for KE_TRANSACTION_DATA_DELETE

DUPREC -

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

EXCEPTIONS details

DOCUMENT_NUMBER_INCOMPLETE - Incomplete Document Number

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

HRKFT_WITHOUT_RACCT - Param. HRKFT Needs Revenue/Cost Element

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

PLANVERSION_VS_ACTUAL_DATA - Plan Version But RRCTY Only for Actual Data

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

MISSING_PARAMETERS - No Parameters Entered

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

INTERNAL_ERROR_1 -

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

INTERNAL_ERROR_2 - Internal Error when Deleting GLPCA with COMMIT

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

Copy and paste ABAP code example for KE_TRANSACTION_DATA_DELETE 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_duprec  TYPE STRING, "   
lv_rprctr  TYPE GLPCT-RPRCTR, "   SPACE
lv_document_number_incomplete  TYPE GLPCT, "   
lv_rhoart  TYPE GLPCT-RHOART, "   SPACE
lv_docnr  TYPE GLPCA-DOCNR, "   SPACE
lv_docln  TYPE GLPCA-DOCLN, "   SPACE
lv_docct  TYPE GLPCA-DOCCT, "   SPACE
lv_versa  TYPE GLPCT-VERSA, "   SPACE
lv_afabe  TYPE GLPCT-AFABE, "   SPACE
lv_activ  TYPE GLPCT-ACTIV, "   ' '
lv_logsys  TYPE GLPCT-LOGSYS, "   ' '
lv_test_indicator  TYPE GLPCT, "   'X'
lv_log  TYPE GLPCT, "   'X'
lv_racct  TYPE GLPCT-RACCT, "   SPACE
lv_hrkft_without_racct  TYPE GLPCT, "   
lv_awtyp  TYPE GLPCA-AWTYP, "   
lv_aworg  TYPE GLPCA-AWORG, "   
lv_flag_1ke0  TYPE GLPCA, "   ' '
lv_flag_glpca_commit  TYPE GLPCA, "   ' '
lv_hrkft  TYPE GLPCT-HRKFT, "   SPACE
lv_planversion_vs_actual_data  TYPE GLPCT, "   
lv_rvers  TYPE GLPCT-RVERS, "   SPACE
lv_missing_parameters  TYPE GLPCT, "   
lv_rrcty  TYPE GLPCT-RRCTY, "   SPACE
lv_internal_error_1  TYPE GLPCT, "   
lv_poper  TYPE GLPCA-POPER, "   SPACE
lv_internal_error_2  TYPE GLPCA, "   
lv_ryear  TYPE GLPCT-RYEAR, "   SPACE
lv_rbukrs  TYPE GLPCT-RBUKRS, "   SPACE
lv_kokrs  TYPE GLPCT-KOKRS. "   SPACE

  CALL FUNCTION 'KE_TRANSACTION_DATA_DELETE'  "EC-PCA: Delete selected transaction data
    EXPORTING
         RPRCTR = lv_rprctr
         RHOART = lv_rhoart
         DOCNR = lv_docnr
         DOCLN = lv_docln
         DOCCT = lv_docct
         VERSA = lv_versa
         AFABE = lv_afabe
         ACTIV = lv_activ
         LOGSYS = lv_logsys
         TEST_INDICATOR = lv_test_indicator
         LOG = lv_log
         RACCT = lv_racct
         AWTYP = lv_awtyp
         AWORG = lv_aworg
         FLAG_1KE0 = lv_flag_1ke0
         FLAG_GLPCA_COMMIT = lv_flag_glpca_commit
         HRKFT = lv_hrkft
         RVERS = lv_rvers
         RRCTY = lv_rrcty
         POPER = lv_poper
         RYEAR = lv_ryear
         RBUKRS = lv_rbukrs
         KOKRS = lv_kokrs
    IMPORTING
         DUPREC = lv_duprec
    EXCEPTIONS
        DOCUMENT_NUMBER_INCOMPLETE = 1
        HRKFT_WITHOUT_RACCT = 2
        PLANVERSION_VS_ACTUAL_DATA = 3
        MISSING_PARAMETERS = 4
        INTERNAL_ERROR_1 = 5
        INTERNAL_ERROR_2 = 6
. " KE_TRANSACTION_DATA_DELETE




ABAP code using 7.40 inline data declarations to call FM KE_TRANSACTION_DATA_DELETE

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 RPRCTR FROM GLPCT INTO @DATA(ld_rprctr).
DATA(ld_rprctr) = ' '.
 
 
"SELECT single RHOART FROM GLPCT INTO @DATA(ld_rhoart).
DATA(ld_rhoart) = ' '.
 
"SELECT single DOCNR FROM GLPCA INTO @DATA(ld_docnr).
DATA(ld_docnr) = ' '.
 
"SELECT single DOCLN FROM GLPCA INTO @DATA(ld_docln).
DATA(ld_docln) = ' '.
 
"SELECT single DOCCT FROM GLPCA INTO @DATA(ld_docct).
DATA(ld_docct) = ' '.
 
"SELECT single VERSA FROM GLPCT INTO @DATA(ld_versa).
DATA(ld_versa) = ' '.
 
"SELECT single AFABE FROM GLPCT INTO @DATA(ld_afabe).
DATA(ld_afabe) = ' '.
 
"SELECT single ACTIV FROM GLPCT INTO @DATA(ld_activ).
DATA(ld_activ) = ' '.
 
"SELECT single LOGSYS FROM GLPCT INTO @DATA(ld_logsys).
DATA(ld_logsys) = ' '.
 
DATA(ld_test_indicator) = 'X'.
 
DATA(ld_log) = 'X'.
 
"SELECT single RACCT FROM GLPCT INTO @DATA(ld_racct).
DATA(ld_racct) = ' '.
 
 
"SELECT single AWTYP FROM GLPCA INTO @DATA(ld_awtyp).
 
"SELECT single AWORG FROM GLPCA INTO @DATA(ld_aworg).
 
DATA(ld_flag_1ke0) = ' '.
 
DATA(ld_flag_glpca_commit) = ' '.
 
"SELECT single HRKFT FROM GLPCT INTO @DATA(ld_hrkft).
DATA(ld_hrkft) = ' '.
 
 
"SELECT single RVERS FROM GLPCT INTO @DATA(ld_rvers).
DATA(ld_rvers) = ' '.
 
 
"SELECT single RRCTY FROM GLPCT INTO @DATA(ld_rrcty).
DATA(ld_rrcty) = ' '.
 
 
"SELECT single POPER FROM GLPCA INTO @DATA(ld_poper).
DATA(ld_poper) = ' '.
 
 
"SELECT single RYEAR FROM GLPCT INTO @DATA(ld_ryear).
DATA(ld_ryear) = ' '.
 
"SELECT single RBUKRS FROM GLPCT INTO @DATA(ld_rbukrs).
DATA(ld_rbukrs) = ' '.
 
"SELECT single KOKRS FROM GLPCT INTO @DATA(ld_kokrs).
DATA(ld_kokrs) = ' '.
 


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!