Application Development and Automation 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: 
Read only

Drop down list in report program

Former Member
0 Likes
1,254

Hi all,

I am using the function module VRM_SET_VALUES to display the drop down list for a selection screen field for a report program. It works fine in foreground but in background mode the job is getting cancelled and the error log states 'Make an entry in all required fields'. If I remove this code for drop down list for a selection screen field then the program runs correctly in back ground mode. So i feel there is some problem with the function module. Can anyone suggest me an alternate function module or how to correct this error. I have used the condition if 'SY-BATCH' is initial only then to exceute the code for displaying the drop down list for a selection screen field. But even then the background job gets cancelled. The function module is called in the event AT SELECTION-SCREEN output.

Thank you.

Regards,

Sowmya.

6 REPLIES 6
Read only

Former Member
0 Likes
809

Hi,

Instead of that function module, you can declare your field as a list box and use the function module 'F4IF_INT_TABLE_VALUE_REQUEST' to populate the required values.

Else try using VRM Values function module in the event AT SELECTION_SCREEN.

Thanks,

Harini

Read only

0 Likes
809

hi,

I am using the below code but it does not display any value in F4 help or drop down.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = c_layout

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'P_LAYOUT'

value_org = 'S'

TABLES

value_tab = t_variants.

Regards,

Sowmya.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
809

Hello Sowmya,

Are you trying to implement an F4 help or a drop down? Plz be clear.

If F4 help, then the call of the FM: F4IF_INT_TABLE_VALUE_REQUEST is incorrect.

You are not capturing the table RETURN_TAB. How do you expect to get the selected value?

BR,

Suhas

Read only

0 Likes
809

In paramters mentioned like as list box

eg: paramters : p_text type c as list box . and then use FM 'F4IF_INT_TABLE_VALUE_REQUEST' if you want internal table values as F4 help

or

Use FM F4IF_FIELD_VALUE_REQUEST if you want domian level values

Read only

0 Likes
809

Hi,

Easy! You are calling that function module in the wrong event. It should be called in :

at selection-screen on value-request for <field name>

This way it is only executed if the user presses F4 (dropdown help) on that field.

Therefore it will no longer cause a problem for your background job.

cheers

Paul Bakker

Hanabi Technology

Read only

Former Member
0 Likes
809

Thank you.