SAP NDVAT_ADJUSTMENT Function Module for
NDVAT_ADJUSTMENT is a standard ndvat adjustment 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 ndvat adjustment FM, simply by entering the name NDVAT_ADJUSTMENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: TAX1
Program Name: SAPLTAX1
Main Program: SAPLTAX1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function NDVAT_ADJUSTMENT 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 'NDVAT_ADJUSTMENT'".
EXPORTING
I_BSEG = "
* I_NABFW = 0 "Non-Deductible Tax in Document Currency
* I_NABHW = 0 "Non-deductible tax in local currency
* READ_BSEG = "
* CALCULATE = "
* I_XCPHW = ' ' "
IMPORTING
E_BSEG = "
E_KDIFF = "
TABLES
* T_BSEG_INPUT = "Accounting Document Segment
* T_BSEG_OUTPUT = "Accounting Document Segment
IMPORTING Parameters details for NDVAT_ADJUSTMENT
I_BSEG -
Data type: BSEGOptional: No
Call by Reference: No ( called with pass by value option)
I_NABFW - Non-Deductible Tax in Document Currency
Data type: BSEZ-NABFWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NABHW - Non-deductible tax in local currency
Data type: BSEZ-NABHWOptional: Yes
Call by Reference: No ( called with pass by value option)
READ_BSEG -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
CALCULATE -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XCPHW -
Data type: XCPHWDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for NDVAT_ADJUSTMENT
E_BSEG -
Data type: BSEGOptional: No
Call by Reference: No ( called with pass by value option)
E_KDIFF -
Data type: RTAX1-KDIFFOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for NDVAT_ADJUSTMENT
T_BSEG_INPUT - Accounting Document Segment
Data type: BSEGOptional: Yes
Call by Reference: Yes
T_BSEG_OUTPUT - Accounting Document Segment
Data type: BSEGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for NDVAT_ADJUSTMENT 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_e_bseg | TYPE BSEG, " | |||
| lv_i_bseg | TYPE BSEG, " | |||
| lt_t_bseg_input | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_e_kdiff | TYPE RTAX1-KDIFF, " | |||
| lv_i_nabfw | TYPE BSEZ-NABFW, " 0 | |||
| lt_t_bseg_output | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_i_nabhw | TYPE BSEZ-NABHW, " 0 | |||
| lv_read_bseg | TYPE XFELD, " | |||
| lv_calculate | TYPE XFELD, " | |||
| lv_i_xcphw | TYPE XCPHW. " SPACE |
|   CALL FUNCTION 'NDVAT_ADJUSTMENT' " |
| EXPORTING | ||
| I_BSEG | = lv_i_bseg | |
| I_NABFW | = lv_i_nabfw | |
| I_NABHW | = lv_i_nabhw | |
| READ_BSEG | = lv_read_bseg | |
| CALCULATE | = lv_calculate | |
| I_XCPHW | = lv_i_xcphw | |
| IMPORTING | ||
| E_BSEG | = lv_e_bseg | |
| E_KDIFF | = lv_e_kdiff | |
| TABLES | ||
| T_BSEG_INPUT | = lt_t_bseg_input | |
| T_BSEG_OUTPUT | = lt_t_bseg_output | |
| . " NDVAT_ADJUSTMENT | ||
ABAP code using 7.40 inline data declarations to call FM NDVAT_ADJUSTMENT
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 KDIFF FROM RTAX1 INTO @DATA(ld_e_kdiff). | ||||
| "SELECT single NABFW FROM BSEZ INTO @DATA(ld_i_nabfw). | ||||
| "SELECT single NABHW FROM BSEZ INTO @DATA(ld_i_nabhw). | ||||
| DATA(ld_i_xcphw) | = ' '. | |||
Search for further information about these or an SAP related objects