SAP FOBU_POPUP_GET_VALUE Function Module for









FOBU_POPUP_GET_VALUE is a standard fobu popup get value 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 fobu popup get value FM, simply by entering the name FOBU_POPUP_GET_VALUE into the relevant SAP transaction such as SE37 or SE38.

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



Function FOBU_POPUP_GET_VALUE 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 'FOBU_POPUP_GET_VALUE'"
EXPORTING
* TYPENAME = "
* POPUP_TITLE = "Text of title line
* START_COLUMN = 5 "Start column of the dialog box
* START_ROW = 5 "Start line of the dialog box
* TABLENAME = "
* FIELDNAME = "
* FIELD_VALUE = "Field Value
* CURRENCY = "
* UNIT = "
* LENGTH = "Length for Type C, N, or P
* DECIMALS = "Number of Decimal Places for Type P
* VALUE_CHECK = "

IMPORTING
FIELD_VALUE_INT = "Internal Field Value in Appropriately Type Format
FIELD_VALUE_INT_C = "
FIELD_VALUE_EXT = "
EX_CURRENCY = "
EX_UNIT = "

EXCEPTIONS
INTERNAL_ERROR = 1 CANCELLED = 2
.



IMPORTING Parameters details for FOBU_POPUP_GET_VALUE

TYPENAME -

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

POPUP_TITLE - Text of title line

Data type: C
Optional: Yes
Call by Reference: Yes

START_COLUMN - Start column of the dialog box

Data type: I
Default: 5
Optional: Yes
Call by Reference: Yes

START_ROW - Start line of the dialog box

Data type: I
Default: 5
Optional: Yes
Call by Reference: Yes

TABLENAME -

Data type: TABNAME
Optional: Yes
Call by Reference: Yes

FIELDNAME -

Data type: FIELDNAME
Optional: Yes
Call by Reference: Yes

FIELD_VALUE - Field Value

Data type: ANY
Optional: Yes
Call by Reference: Yes

CURRENCY -

Data type: SYCURR
Optional: Yes
Call by Reference: Yes

UNIT -

Data type: SFBEUNIT
Optional: Yes
Call by Reference: Yes

LENGTH - Length for Type C, N, or P

Data type: I
Optional: Yes
Call by Reference: Yes

DECIMALS - Number of Decimal Places for Type P

Data type: I
Optional: Yes
Call by Reference: Yes

VALUE_CHECK -

Data type: BOOLEAN
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FOBU_POPUP_GET_VALUE

FIELD_VALUE_INT - Internal Field Value in Appropriately Type Format

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

FIELD_VALUE_INT_C -

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

FIELD_VALUE_EXT -

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

EX_CURRENCY -

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

EX_UNIT -

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

EXCEPTIONS details

INTERNAL_ERROR - Internal error occurred

Data type:
Optional: No
Call by Reference: Yes

CANCELLED - Action cancelled by user

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FOBU_POPUP_GET_VALUE 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_typename  TYPE C, "   
lv_internal_error  TYPE C, "   
lv_field_value_int  TYPE ANY, "   
lv_popup_title  TYPE C, "   
lv_start_column  TYPE I, "   5
lv_start_row  TYPE I, "   5
lv_cancelled  TYPE I, "   
lv_tablename  TYPE TABNAME, "   
lv_field_value_int_c  TYPE C, "   
lv_fieldname  TYPE FIELDNAME, "   
lv_field_value_ext  TYPE C, "   
lv_ex_currency  TYPE SYCURR, "   
lv_field_value  TYPE ANY, "   
lv_ex_unit  TYPE SFBEUNIT, "   
lv_currency  TYPE SYCURR, "   
lv_unit  TYPE SFBEUNIT, "   
lv_length  TYPE I, "   
lv_decimals  TYPE I, "   
lv_value_check  TYPE BOOLEAN. "   

  CALL FUNCTION 'FOBU_POPUP_GET_VALUE'  "
    EXPORTING
         TYPENAME = lv_typename
         POPUP_TITLE = lv_popup_title
         START_COLUMN = lv_start_column
         START_ROW = lv_start_row
         TABLENAME = lv_tablename
         FIELDNAME = lv_fieldname
         FIELD_VALUE = lv_field_value
         CURRENCY = lv_currency
         UNIT = lv_unit
         LENGTH = lv_length
         DECIMALS = lv_decimals
         VALUE_CHECK = lv_value_check
    IMPORTING
         FIELD_VALUE_INT = lv_field_value_int
         FIELD_VALUE_INT_C = lv_field_value_int_c
         FIELD_VALUE_EXT = lv_field_value_ext
         EX_CURRENCY = lv_ex_currency
         EX_UNIT = lv_ex_unit
    EXCEPTIONS
        INTERNAL_ERROR = 1
        CANCELLED = 2
. " FOBU_POPUP_GET_VALUE




ABAP code using 7.40 inline data declarations to call FM FOBU_POPUP_GET_VALUE

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_start_column) = 5.
 
DATA(ld_start_row) = 5.
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!