SAP FKKINV_BILLDOC_ADJUST Function Module for Adjust Billing Document









FKKINV_BILLDOC_ADJUST is a standard fkkinv billdoc adjust SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Adjust Billing Document 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 fkkinv billdoc adjust FM, simply by entering the name FKKINV_BILLDOC_ADJUST into the relevant SAP transaction such as SE37 or SE38.

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



Function FKKINV_BILLDOC_ADJUST 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 'FKKINV_BILLDOC_ADJUST'"Adjust Billing Document
EXPORTING
IM_INPUT = "Input Data - Adjustment of Billing Document
* IM_TESTRUN = ' ' "Switch to Simulation Mode for Write BAPIs
* IM_READ_ARCHIVE = ' ' "Read from Archived Documents
* IM_CFCVALIDATION = ' ' "Run Plausibility Checks
* IM_IN_UPDATE_TASK = ' ' "Use Update Task

IMPORTING
EX_OUTPUT = "Output Data - Adjustment of Billing Document

EXCEPTIONS
CX_FKKBI_GENERAL_FAULT = 1
.



IMPORTING Parameters details for FKKINV_BILLDOC_ADJUST

IM_INPUT - Input Data - Adjustment of Billing Document

Data type: FKKINV_BILL_ADJUST_INPUT
Optional: No
Call by Reference: Yes

IM_TESTRUN - Switch to Simulation Mode for Write BAPIs

Data type: TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: Yes

IM_READ_ARCHIVE - Read from Archived Documents

Data type: READ_ARCHIVE_KK
Default: SPACE
Optional: Yes
Call by Reference: Yes

IM_CFCVALIDATION - Run Plausibility Checks

Data type: CFCVALIDATION_KK
Default: SPACE
Optional: Yes
Call by Reference: Yes

IM_IN_UPDATE_TASK - Use Update Task

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FKKINV_BILLDOC_ADJUST

EX_OUTPUT - Output Data - Adjustment of Billing Document

Data type: FKKINV_BILL_ADJUST_OUTPUT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_FKKBI_GENERAL_FAULT - Exception Class for Billing in FI-CA

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FKKINV_BILLDOC_ADJUST 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_im_input  TYPE FKKINV_BILL_ADJUST_INPUT, "   
lv_ex_output  TYPE FKKINV_BILL_ADJUST_OUTPUT, "   
lv_cx_fkkbi_general_fault  TYPE FKKINV_BILL_ADJUST_OUTPUT, "   
lv_im_testrun  TYPE TESTRUN, "   SPACE
lv_im_read_archive  TYPE READ_ARCHIVE_KK, "   SPACE
lv_im_cfcvalidation  TYPE CFCVALIDATION_KK, "   SPACE
lv_im_in_update_task  TYPE XFELD. "   SPACE

  CALL FUNCTION 'FKKINV_BILLDOC_ADJUST'  "Adjust Billing Document
    EXPORTING
         IM_INPUT = lv_im_input
         IM_TESTRUN = lv_im_testrun
         IM_READ_ARCHIVE = lv_im_read_archive
         IM_CFCVALIDATION = lv_im_cfcvalidation
         IM_IN_UPDATE_TASK = lv_im_in_update_task
    IMPORTING
         EX_OUTPUT = lv_ex_output
    EXCEPTIONS
        CX_FKKBI_GENERAL_FAULT = 1
. " FKKINV_BILLDOC_ADJUST




ABAP code using 7.40 inline data declarations to call FM FKKINV_BILLDOC_ADJUST

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_im_testrun) = ' '.
 
DATA(ld_im_read_archive) = ' '.
 
DATA(ld_im_cfcvalidation) = ' '.
 
DATA(ld_im_in_update_task) = ' '.
 


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!