cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for a Pop-Up that ONLY allows user to input from field's Search Help?

Lumos
Explorer
0 Kudos

Hi Together!

Is there any standard pop-up that allows user to input a value ONLY with selecting from the search help of the field and restrict to input manually?
I have tried with POPUP_GET_VALUES and set its attribute "field_attr" to "02" as it means "Input is not possible". However once I did it, it blocked to input from Search Help too.

Any help would be appreciated, thank you in advance!

Sandra_Rossi
Active Contributor

I guess you mean you're looking for an API to display a popup with dynamic contents and behavior, and you possibly mean any POPUP_* function module.

Instead, it's fast to create your own popup, and you can do whatever you want.

Accepted Solutions (1)

Accepted Solutions (1)

emanuel_klenner
Active Participant

If the field in question is on one of your screens then you can set the field to display only.
You have to call the F4 processor yourself via a call to function F4IF_FIELD_VALUE_REQUEST.
The function is pretty well documented. The important part is that you set the parameter DISPLAY = 'F',
meaning that the function will also transfer data back into the field, even though it is marked as display only.

Answers (1)

Answers (1)

venkateswaran_k
Active Contributor
0 Kudos

Hi

It is possible in PARAMETER option.

PARAMETERS : vbeln TYPE vbeln AS LISTBOX VISIBLE LENGTH 12. " MODIF ID sdn.
INITIALIZATION.
PERFORM build_user_drop_down_list.
START-OF-SELECTION.
WRITE 'teting'.

The subroutine

FORM build_user_drop_down_list.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list,
wa_vbrk TYPE vbrk.
SELECT vbeln FROM vbrk INTO TABLE @DATA(it_vbrk) WHERE fkdat = '20160930'.
LOOP AT it_vbrk INTO wa_vbrk.
CLEAR value.
value-key = wa_vbrk-vbeln.
value-text = wa_vbrk-vbeln.
APPEND value TO list.
ENDLOOP.
name = 'VBELN'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDFORM.

Regards,

Venkat