Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

why to use fm POPUP_GET_VALUES

Former Member
0 Kudos

When we can use this function: POPUP_GET_VALUES.

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hello Deniz,

Find the documentation bellow.

Dialog box for the display and request of values, without check

Functionality

The function module sends a dialog box and displays the fields listed in

the interface table FIELDS for entering or for displaying. The fields

specified in the table FIELDS must be defined in the Dictionary. If no

text is transferred to a field, the Dictionary key word is displayed.

The key words and fields can be displayed normally or highlighted. For

the fields, you must additionally define whether they are ready for

input or not ready for input and whether they are mandatory or

nonmandatory. For the fields, a preselected option can be specified.

After the display, the values entered by the user are returned

automatically to the calling program.

The function module can be used to

o display information,

o request values which do not need to be checked

o request values to limit data accesses ( from - to)

o support prototyping,

o etc.

Examples

For examples, please refer to the program RSSPO410.

Notes

o Conversion exits are taken into account

o Date values are checked in accordance with the definition in the

user master

o Time values must be entered according to the template '__:__:__'

o The F1 and F4 help is supported

o Every field may only be specified once. Repetition fields or

repetition groups are not supported. An exception is the

specification of a table name with a prefixed asterisk.

o Only the fields of the ABAP category C, N, T or D are allowed

o A maximum of 10 fields are displayed in a dialog box. For more than

10 fields, a dialog box is sent with scrolling mode and scroll bar.

The maximum number of fields per dialog box can be changed by

calling up the function module POPUP_GET_VALUES_SET_MAX_FIELD.

<b>*PARAMETERS*</b>

<b>NO_VALUE_CHECK</b> :

Deactivates data type check

With this parameter you can deactivate the check on the data types

(deactivate = 'X').

If this switch is set it applies to all screen fields. In this case

there will be no formatting of date and time fields. Date and time

fields are output in the internal format, that is '19960926' instead of

'26.09.1996'. Format, value and plausibility checks must be carried out

by the caller. F4 help is not supported.

This switch should be left in the default setting.

<b>POPUP_TITLE</b>:

Text of title line

The dialog box title line text is passed in this parameter. Ensure that

the text can be translated (e.g. by using numbered texts).

<b>START_COLUMN</b>:

Start column of the dialog box

Column in which the dialog box starts. Default value 5.

<b>START_ROW</b>:

Start line of the dialog box

Row in which the dialog box starts. Default value 5.

<b>RETURNCODE</b>:

User response

The user action is returned in this parameter. It can take the following

values:

o " " (Space)

The user wants to perform the aktion, FIELDS contains the input

values

o "A"

The user has cancelled the action, FIELDS contains the original

values

<b>FIELDS</b>:

Table fields, values and attributes

The table contains the fields, values and attributes for the layout of

the dialog box. The fields appear in the sequence that they have in the

FIELDS table. One line must be field for each field that is to appear

in the dialog box:

o TABNAME (table name)

The table must be active in the Data Dictionary.

o FIELDNAME (name of the field to be displayed)

The field must belong to the table TABNAME. If a field is to appear

twice, the second field must be passed on with '*' before the table

name (for example, *T001).

o VALUE (field value)

VALUE can be assigned a value when the function module is called up.

This value is displayed. If the user does not cancel the action,

VALUE contains the value entered by the user.

The values must be converted to character format with Move not with

Assign.

o FIELD_ATTR (field attribute)

The field attribute determines the layout attribute of the field and

must have one of the following values:

- " " (Space) normal display, ready for input

- "01" highlighted, ready for input

- "02" normal display, protected against input

- "03" highlighted, protected against input

- "04" field is not displayed

- "05" normal display, not ready for input, 2-dimensional

o FIELD_OBL (obligatory)

This indicator determines whether or not the field is obligatory and

must have one of the following values:

- " " (Space) The field is optional

- "X" The field is obligatory

o FIELDTEXT (keyword)

In FIELDTEXT the keyword of the field can be specified if the

dictionary keyword is not to be used.

o COMP_CODE

The field is not required for this function module.

o COMP_TAB

The field is not required for this function module.

o COMP_FIELD

The field is not required for this function module.

o NOVALUEHLP

This indicator determines whether the value help button should be

displayed or not, and must have one of the following values:

- " " = The value help button is permanently displayed

- "X" = The value help button is not displayed

- "S" = The possible help key is displayed and calls the F4 help

from the Dictionary. This parameter is only useful in

combination with user-defined F4 help

(POPUP_GET_VALUES_USER_HELP and POPUP_GET_VALUES_USER_BUTTON),

when you decide at field level whether the user-defined F4 help

or the appropriate Dictionary F4 help is to be called.

<b>*Exceptions*</b>

<b>ERROR_IN_FIELDS</b>:

FIELDS were transferred incorrectly

The exception is raised when the table FIELDS is incorrectly filled. It

is raised with MESSAGE E... RAISING. If the exception is captured when

calling, the error message with the following statement can be created:

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4

The following errors are recognized (the messages are appropriately

parameterized):

o 100 Internal Dictionary table read error

o 101 Table has no texts

o 102 Table has no fields

o 103 Table is not active in the Dictionary

o 104 The field does not belong to the table

o 105 The internal field type is not allowed

o 106 The field output length is greater than 79

o 108 The field can not be specified twice

Reward If Useful.

Regards

--

Sasidhar Reddy Matli.

Message was edited by:

Sasidhar Reddy Matli

null

Former Member
0 Kudos

Deniz,

The function module can be used, for example, to:

Display information

Request values which do not need to be checked

Request values to limit data accesses ( from - to)

Support prototyping

Examples

For examples, see the program RSSPO410.

Regards

Aneesh.