‎2009 Oct 28 11:04 AM
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.
‎2009 Oct 28 11:08 AM
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
‎2009 Oct 28 11:18 AM
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.
‎2009 Oct 28 11:26 AM
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
‎2009 Oct 28 11:26 AM
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
‎2009 Oct 28 11:26 AM
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
‎2009 Oct 28 12:01 PM