SAP LINE_ITEMS_CHOOSE_CURRENCY Function Module for Display currency selection









LINE_ITEMS_CHOOSE_CURRENCY is a standard line items choose currency SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display currency selection 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 line items choose currency FM, simply by entering the name LINE_ITEMS_CHOOSE_CURRENCY into the relevant SAP transaction such as SE37 or SE38.

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



Function LINE_ITEMS_CHOOSE_CURRENCY 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 'LINE_ITEMS_CHOOSE_CURRENCY'"Display currency selection
EXPORTING
* ACTUAL_CURRENCY = 'F' "
* CURRENCIES = 'HF23B' "
* CURT2 = ' ' "
* CURT3 = ' ' "
HWAE1 = "
* HWAE2 = ' ' "
* HWAE3 = ' ' "

IMPORTING
NEW_CURRENCY = "
.



IMPORTING Parameters details for LINE_ITEMS_CHOOSE_CURRENCY

ACTUAL_CURRENCY -

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

CURRENCIES -

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

CURT2 -

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

CURT3 -

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

HWAE1 -

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

HWAE2 -

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

HWAE3 -

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

EXPORTING Parameters details for LINE_ITEMS_CHOOSE_CURRENCY

NEW_CURRENCY -

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

Copy and paste ABAP code example for LINE_ITEMS_CHOOSE_CURRENCY 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_new_currency  TYPE STRING, "   
lv_actual_currency  TYPE STRING, "   'F'
lv_currencies  TYPE STRING, "   'HF23B'
lv_curt2  TYPE X001-CURT2, "   SPACE
lv_curt3  TYPE X001-CURT3, "   SPACE
lv_hwae1  TYPE TCURC-WAERS, "   
lv_hwae2  TYPE TCURC-WAERS, "   SPACE
lv_hwae3  TYPE TCURC-WAERS. "   SPACE

  CALL FUNCTION 'LINE_ITEMS_CHOOSE_CURRENCY'  "Display currency selection
    EXPORTING
         ACTUAL_CURRENCY = lv_actual_currency
         CURRENCIES = lv_currencies
         CURT2 = lv_curt2
         CURT3 = lv_curt3
         HWAE1 = lv_hwae1
         HWAE2 = lv_hwae2
         HWAE3 = lv_hwae3
    IMPORTING
         NEW_CURRENCY = lv_new_currency
. " LINE_ITEMS_CHOOSE_CURRENCY




ABAP code using 7.40 inline data declarations to call FM LINE_ITEMS_CHOOSE_CURRENCY

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_actual_currency) = 'F'.
 
DATA(ld_currencies) = 'HF23B'.
 
"SELECT single CURT2 FROM X001 INTO @DATA(ld_curt2).
DATA(ld_curt2) = ' '.
 
"SELECT single CURT3 FROM X001 INTO @DATA(ld_curt3).
DATA(ld_curt3) = ' '.
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_hwae1).
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_hwae2).
DATA(ld_hwae2) = ' '.
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_hwae3).
DATA(ld_hwae3) = ' '.
 


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!