SAP AC_LINEITEM_AMOUNTS_RATE_CHECK Function Module for









AC_LINEITEM_AMOUNTS_RATE_CHECK is a standard ac lineitem amounts rate check 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 ac lineitem amounts rate check FM, simply by entering the name AC_LINEITEM_AMOUNTS_RATE_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function AC_LINEITEM_AMOUNTS_RATE_CHECK 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 'AC_LINEITEM_AMOUNTS_RATE_CHECK'"
EXPORTING
I_BUKRS = "Company Code
* I_KURSX = "
* I_BLART = "
I_HWAER = "Local Currency
I_WAERS = "Document Currency
I_WRBTR = "Amount in Document Currency
I_DMBTR = "Amount in Local Currency
I_WWERT = "Value Date
I_KURSF = "
I_ANZBZ = "
* I_KURST = "Exch.Rate Type for Determining the Proposed Rate
.



IMPORTING Parameters details for AC_LINEITEM_AMOUNTS_RATE_CHECK

I_BUKRS - Company Code

Data type: BSEG-BUKRS
Optional: No
Call by Reference: Yes

I_KURSX -

Data type: BKPF-KURSX
Optional: Yes
Call by Reference: Yes

I_BLART -

Data type: BKPF-BLART
Optional: Yes
Call by Reference: Yes

I_HWAER - Local Currency

Data type: BKPF-HWAER
Optional: No
Call by Reference: Yes

I_WAERS - Document Currency

Data type: BKPF-WAERS
Optional: No
Call by Reference: Yes

I_WRBTR - Amount in Document Currency

Data type: BSEG-WRBTR
Optional: No
Call by Reference: Yes

I_DMBTR - Amount in Local Currency

Data type: BSEG-DMBTR
Optional: No
Call by Reference: Yes

I_WWERT - Value Date

Data type: BKPF-WWERT
Optional: No
Call by Reference: Yes

I_KURSF -

Data type: BKPF-KURSF
Optional: No
Call by Reference: Yes

I_ANZBZ -

Data type: RF05A-ANZBZ
Optional: No
Call by Reference: Yes

I_KURST - Exch.Rate Type for Determining the Proposed Rate

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

Copy and paste ABAP code example for AC_LINEITEM_AMOUNTS_RATE_CHECK 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_i_bukrs  TYPE BSEG-BUKRS, "   
lv_i_kursx  TYPE BKPF-KURSX, "   
lv_i_blart  TYPE BKPF-BLART, "   
lv_i_hwaer  TYPE BKPF-HWAER, "   
lv_i_waers  TYPE BKPF-WAERS, "   
lv_i_wrbtr  TYPE BSEG-WRBTR, "   
lv_i_dmbtr  TYPE BSEG-DMBTR, "   
lv_i_wwert  TYPE BKPF-WWERT, "   
lv_i_kursf  TYPE BKPF-KURSF, "   
lv_i_anzbz  TYPE RF05A-ANZBZ, "   
lv_i_kurst  TYPE T003-KURST. "   

  CALL FUNCTION 'AC_LINEITEM_AMOUNTS_RATE_CHECK'  "
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_KURSX = lv_i_kursx
         I_BLART = lv_i_blart
         I_HWAER = lv_i_hwaer
         I_WAERS = lv_i_waers
         I_WRBTR = lv_i_wrbtr
         I_DMBTR = lv_i_dmbtr
         I_WWERT = lv_i_wwert
         I_KURSF = lv_i_kursf
         I_ANZBZ = lv_i_anzbz
         I_KURST = lv_i_kurst
. " AC_LINEITEM_AMOUNTS_RATE_CHECK




ABAP code using 7.40 inline data declarations to call FM AC_LINEITEM_AMOUNTS_RATE_CHECK

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 BUKRS FROM BSEG INTO @DATA(ld_i_bukrs).
 
"SELECT single KURSX FROM BKPF INTO @DATA(ld_i_kursx).
 
"SELECT single BLART FROM BKPF INTO @DATA(ld_i_blart).
 
"SELECT single HWAER FROM BKPF INTO @DATA(ld_i_hwaer).
 
"SELECT single WAERS FROM BKPF INTO @DATA(ld_i_waers).
 
"SELECT single WRBTR FROM BSEG INTO @DATA(ld_i_wrbtr).
 
"SELECT single DMBTR FROM BSEG INTO @DATA(ld_i_dmbtr).
 
"SELECT single WWERT FROM BKPF INTO @DATA(ld_i_wwert).
 
"SELECT single KURSF FROM BKPF INTO @DATA(ld_i_kursf).
 
"SELECT single ANZBZ FROM RF05A INTO @DATA(ld_i_anzbz).
 
"SELECT single KURST FROM T003 INTO @DATA(ld_i_kurst).
 


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!