02-17-2009 6:13 AM
Hello Experts,
My req is that regarding F4 help,but little bit tricky.I want to put F4 help for select-option .when we put F4 help it wlll not accept value if user enter manually,
My req is that user can enter manually or select from F4 help, and accordingly to the input i want F4 help for second selection option.
Priyanka
02-17-2009 6:18 AM
Hi,
Use the search help available in SE11. I mean create a search help in se11 for the required field
and then make the select-option like that only.it will directly activate the f4 help.
Regards
Rajesh Kumar
02-17-2009 6:19 AM
I dont know where yiou are doing wrong..but any way although you write f4 help you can manually enter the value!!
please post your code here so that will check if any thing is wrong..
regards
sas
Rajesh it's too making the report complicated if we create additional search help from DDIC!!
We can write in Report itself!!
Edited by: saslove sap on Feb 17, 2009 7:20 AM
02-17-2009 6:27 AM
02-17-2009 6:28 AM
02-17-2009 6:23 AM
02-17-2009 6:26 AM
Hi
I have done this in one of my programs as shown below and it worked. You can try this way.
TABLES: yfiin_comb_contr.
DATA: gv_dynfnam TYPE DYNFNAM.
SELECT-OPTIONS: so_comno FOR yfiin_comb_contr-COMBNO OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_comno-low.
gv_dynfnam = 'SO_COMNO-LOW'.
PERFORM f4_comno.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_comno-high.
gv_dynfnam = 'SO_COMNO-HIGH'.
PERFORM f4_comno.
FORM f4_comno .
REFRESH gt_combno.
SELECT combno bukrs combdesc FROM YFIIN_combmaster INTO TABLE gt_combno.
SORT gt_combmaster by combno.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'COMBNO'
dynpprog = sy-repid
dynpnr = '1000'
dynprofield = gv_dynfnam
* window_title = text-053
value_org = 'S'
TABLES
value_tab = gt_combno.
ENDFORM. " f4_comno
Regards
Sathar
02-17-2009 6:56 AM
I m doing like this only ,but req is i want select option only for two fileds werls & st.location.
I want st.loc F4 help shows values as per plant enter by user..
This is working fine if user select from F4 help,but if he enters manually F4 help for st.loc not works.
So i use DYNP_VALUES_READ & then F4 help.
form Create_F4_Help_WERKS.
refresh dynfields.
dynfields-fieldname = 'S_WERKS-LOW'.
APPEND dynfields.
dynfields-fieldname = 'S_WERKS-HIGH'.
APPEND dynfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = g_repid
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = dynfields.
select werks name1
into corresponding fields of table values1
from t001w .
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'WERKS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'S_WERKS'
value_org = 'S'
display = 'F'
*stepl = t
tables
value_tab = values1
return_tab = return.
append return to return4.
endform.
Priyanka