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: 

F4 help

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

former_member184119
Active Contributor
0 Kudos

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

0 Kudos

[Check Vijay dudla reply|;

Just replace select-options instead of parameters

and write as

at selection-screen on value-request for p_posnr-low .

at selection-screen on value-request for p_posnr-High .

Hope this will helps...Let me knwo any else s required

regards

sas

0 Kudos

[Check Vijay dudla reply|;

Just replace select-options instead of parameters

and write as

at selection-screen on value-request for p_posnr-low .

at selection-screen on value-request for p_posnr-High .

Hope this will helps...Let me knwo any else s required

regards

sas

faisal_altaf2
Active Contributor
0 Kudos

Hi,

Test my Sample Code in the following Thread hope will help you out.

[F4 help|]

[F4 help Select-Option|;

Please Reply if any Issue,

Kind Regards,

Edited by: Faisal Altaf on Feb 17, 2009 11:27 AM

Former Member
0 Kudos

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

0 Kudos

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