SAP K_SPLIT_RESULT_POST Function Module for









K_SPLIT_RESULT_POST is a standard k split result post 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 k split result post FM, simply by entering the name K_SPLIT_RESULT_POST into the relevant SAP transaction such as SE37 or SE38.

Function Group: KO77
Program Name: SAPLKO77
Main Program: SAPLKO77
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function K_SPLIT_RESULT_POST 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 'K_SPLIT_RESULT_POST'"
EXPORTING
I_RKBKPL = "Parameters in planning doc. header
* I_COMMIT = 'X' "
* AK = "
* IGNORE_WARNINGS = ' ' "
* I_WRITE_DOC = ' ' "
* I_NO_CREDITS = ' ' "
* I_FREE_ALL_RES = ' ' "
I_WRTTP = "
* I_PERIO = '001' "
* I_ORGVG = "
* I_WSDAT = "
* I_START = ' ' "
* I_REVERS = ' ' "Reset Data
* I_CUMULATE = ' ' "
* I_BUCHEN = 'X' "With update

IMPORTING
E_ZERO_LINES = "

TABLES
ALL_RES = "
* AA = "
* AS = "
* AV = "
* AB = "
* AP = "
* AY = "
* T_COIOB = "
* T_LKO77V = "Tax code per activity

EXCEPTIONS
ERROR_OCCURRED = 1 MESSAGES_STORED = 2
.



IMPORTING Parameters details for K_SPLIT_RESULT_POST

I_RKBKPL - Parameters in planning doc. header

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

I_COMMIT -

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

AK -

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

IGNORE_WARNINGS -

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

I_WRITE_DOC -

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

I_NO_CREDITS -

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

I_FREE_ALL_RES -

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

I_WRTTP -

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

I_PERIO -

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

I_ORGVG -

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

I_WSDAT -

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

I_START -

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

I_REVERS - Reset Data

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

I_CUMULATE -

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

I_BUCHEN - With update

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

EXPORTING Parameters details for K_SPLIT_RESULT_POST

E_ZERO_LINES -

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

TABLES Parameters details for K_SPLIT_RESULT_POST

ALL_RES -

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

AA -

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

AS -

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

AV -

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

AB -

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

AP -

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

AY -

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

T_COIOB -

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

T_LKO77V - Tax code per activity

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

EXCEPTIONS details

ERROR_OCCURRED - An Error Has Occurred

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

MESSAGES_STORED -

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

Copy and paste ABAP code example for K_SPLIT_RESULT_POST 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:
lt_all_res  TYPE STANDARD TABLE OF STRING, "   
lv_i_rkbkpl  TYPE RKBKPL, "   
lv_e_zero_lines  TYPE C, "   
lv_error_occurred  TYPE C, "   
lv_i_commit  TYPE C, "   'X'
lv_ak  TYPE AUAK, "   
lv_ignore_warnings  TYPE C, "   ' '
lv_i_write_doc  TYPE AUAK-STFLG, "   ' '
lv_i_no_credits  TYPE AUAK-STFLG, "   ' '
lv_i_free_all_res  TYPE C, "   ' '
lt_aa  TYPE STANDARD TABLE OF AUAA, "   
lv_i_wrttp  TYPE COSSA-WRTTP, "   
lv_messages_stored  TYPE COSSA, "   
lt_as  TYPE STANDARD TABLE OF AUAS, "   
lv_i_perio  TYPE AUAK-PERIO, "   '001'
lt_av  TYPE STANDARD TABLE OF AUAV, "   
lv_i_orgvg  TYPE COBK-ORGVG, "   
lt_ab  TYPE STANDARD TABLE OF AUAB, "   
lv_i_wsdat  TYPE AUAK-WSDAT, "   
lt_ap  TYPE STANDARD TABLE OF AUAT, "   
lv_i_start  TYPE C, "   ' '
lt_ay  TYPE STANDARD TABLE OF AUAY, "   
lv_i_revers  TYPE C, "   ' '
lt_t_coiob  TYPE STANDARD TABLE OF COIOB, "   
lv_i_cumulate  TYPE C, "   ' '
lv_i_buchen  TYPE C, "   'X'
lt_t_lko77v  TYPE STANDARD TABLE OF LKO77V. "   

  CALL FUNCTION 'K_SPLIT_RESULT_POST'  "
    EXPORTING
         I_RKBKPL = lv_i_rkbkpl
         I_COMMIT = lv_i_commit
         AK = lv_ak
         IGNORE_WARNINGS = lv_ignore_warnings
         I_WRITE_DOC = lv_i_write_doc
         I_NO_CREDITS = lv_i_no_credits
         I_FREE_ALL_RES = lv_i_free_all_res
         I_WRTTP = lv_i_wrttp
         I_PERIO = lv_i_perio
         I_ORGVG = lv_i_orgvg
         I_WSDAT = lv_i_wsdat
         I_START = lv_i_start
         I_REVERS = lv_i_revers
         I_CUMULATE = lv_i_cumulate
         I_BUCHEN = lv_i_buchen
    IMPORTING
         E_ZERO_LINES = lv_e_zero_lines
    TABLES
         ALL_RES = lt_all_res
         AA = lt_aa
         AS = lt_as
         AV = lt_av
         AB = lt_ab
         AP = lt_ap
         AY = lt_ay
         T_COIOB = lt_t_coiob
         T_LKO77V = lt_t_lko77v
    EXCEPTIONS
        ERROR_OCCURRED = 1
        MESSAGES_STORED = 2
. " K_SPLIT_RESULT_POST




ABAP code using 7.40 inline data declarations to call FM K_SPLIT_RESULT_POST

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.

 
 
 
 
DATA(ld_i_commit) = 'X'.
 
 
DATA(ld_ignore_warnings) = ' '.
 
"SELECT single STFLG FROM AUAK INTO @DATA(ld_i_write_doc).
DATA(ld_i_write_doc) = ' '.
 
"SELECT single STFLG FROM AUAK INTO @DATA(ld_i_no_credits).
DATA(ld_i_no_credits) = ' '.
 
DATA(ld_i_free_all_res) = ' '.
 
 
"SELECT single WRTTP FROM COSSA INTO @DATA(ld_i_wrttp).
 
 
 
"SELECT single PERIO FROM AUAK INTO @DATA(ld_i_perio).
DATA(ld_i_perio) = '001'.
 
 
"SELECT single ORGVG FROM COBK INTO @DATA(ld_i_orgvg).
 
 
"SELECT single WSDAT FROM AUAK INTO @DATA(ld_i_wsdat).
 
 
DATA(ld_i_start) = ' '.
 
 
DATA(ld_i_revers) = ' '.
 
 
DATA(ld_i_cumulate) = ' '.
 
DATA(ld_i_buchen) = '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!