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

F4 help not working

Former Member
0 Likes
2,761

Hi

In the following piece of code the "F4" help is not working for the field "so_con". I don't see the button which usually comes up if "F4 help" is available. Also, the value table for the element exists. I have enabled the "dictionary ref." option for the selection-text. However the "F4" help is working perfectly for the field "so_car". Please help.

SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

SELECT-OPTIONS:

so_car FOR wa_flight-carrid,

so_con FOR wa_flight-connid.

SELECTION-SCREEN END OF BLOCK conn.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,703

Hi

you are using this code..

> SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

> SELECT-OPTIONS:

> so_car FOR wa_flight-carrid,

> so_con FOR wa_flight-connid.

> SELECTION-SCREEN END OF BLOCK conn.

your F4 help is not working because you take the type of select option as a work area(wa_flight-connid).


  so_con FOR sflight-connid

Hope this helps.

Regards

Ritesh j

17 REPLIES 17
Read only

faisalatsap
Active Contributor
0 Likes
2,703

Hi, Nair

What is the type of wa_flight ?

Please Reply,

Regards,

Faisal

Read only

0 Likes
2,703

"wa_flight" is of the type "dv_flights" which is a database view using two tables "spfli" and "sflight".

Read only

0 Likes
2,703

Try this way:

so_con FOR spfli-connid.

or

so_con FOR sflight-connid.

Read only

venkat_o
Active Contributor
0 Likes
2,703

Hi Nair,

Refer directly to the dictionary variable or elements instead of referring variables defined in the program.

Thanks

Venkat.O

Read only

Former Member
0 Likes
2,704

Hi

you are using this code..

> SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

> SELECT-OPTIONS:

> so_car FOR wa_flight-carrid,

> so_con FOR wa_flight-connid.

> SELECTION-SCREEN END OF BLOCK conn.

your F4 help is not working because you take the type of select option as a work area(wa_flight-connid).


  so_con FOR sflight-connid

Hope this helps.

Regards

Ritesh j

Read only

0 Likes
2,703

The same thing is working perfectly for so_car.

Read only

0 Likes
2,703

Hi, Nair

Test the Bellow Code it is working fine for me.

TABLES: spfli.
SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.
SELECT-OPTIONS: socarid FOR spfli-carrid,
                soconid FOR spfli-connid.
SELECTION-SCREEN END OF BLOCK conn.

Regards,

Faisal

Read only

0 Likes
2,703

hi Nair,

the code given by faisal should work

becoz the reference which u have given is not a data dictionary reference.

with cheers

s.janagar

Read only

0 Likes
2,703

Hi Faisal,

I tried the piece of code that you had given. Its working. Thanks. But the thing that is troubling me is that the same thing(F4 help) is working for "so_car" (which has been declared using the work area). Why is it so?? Please reply.

Edited by: Nandesh Nair on Jul 13, 2009 5:16 PM

Read only

0 Likes
2,703

>

> Hi Faisal,

>

> I tried the piece of code that you had given. Its working. Thanks. But the thing that is troubling me is that the same thing(F4 help) is working for "so_car" (which has been declared using the work area). Why is it so?? Please reply.

>

> Edited by: Nandesh Nair on Jul 13, 2009 5:16 PM

Sorry, Nair

I didn't get you can you please explain it bit more what you want to say, past your code for example.

Best Regards,

Faisal

Read only

0 Likes
2,703

SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

SELECT-OPTIONS:

so_car FOR wa_flight-carrid,

so_con FOR wa_flight-connid.

SELECTION-SCREEN END OF BLOCK conn.

For the select-options field "so_car" in the above code, the "F4 help" is working perfectly. But the same thing is not working for "so_con". Did you understand now?

Read only

0 Likes
2,703

Hi, Nair,

But why you don't want to replace these lines with my given working code lines ?

Please Reply,

Kind Regards,

Faisal

Read only

0 Likes
2,703

Hi Faisal

Yes of course I did. But I was curious to know the reason behind that not working.

Thanks and regards

Nandesh

Read only

0 Likes
2,703

Hi,

It is working fine for me.Have you tried by clicking on the text box of con- id.

Regards,

Sudha .

Read only

Former Member
0 Likes
2,703

hi Nandesh,

yoy check the type declaration...FOR connid bcoz you are using connid of ur work area.. not the sflight-connid..

thanks & regards

Ashu Singh

Read only

Former Member
0 Likes
2,703

Hi Nair,

Try the below code.You will get the F4 help.

tables sflight.

SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

SELECT-OPTIONS:

so_car FOR sflight-carrid,

so_con FOR sflight-connid.

SELECTION-SCREEN END OF BLOCK conn.

tables sflight.

data: begin of wa_flight ,

carrid like sflight-carrid,

connid like sflight-connid,

end of wa_flight.

Types wa_flight type table of sflight.

SELECTION-SCREEN BEGIN OF BLOCK conn WITH FRAME TITLE text-001.

SELECT-OPTIONS:

So_car FOR wa_flight-carrid,

so_con FOR wa_flight-connid.

SELECTION-SCREEN END OF BLOCK conn.

Regards,

Sudha S.

Read only

Former Member
0 Likes
2,703

hi,

In your case SAP has not provided any search help . Go to se11 give your table name and double click on your field there is no input help so in se11 create a search help. and use it in your code i have pasted a sample code below.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR parameter_name.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = syst-dynnr

field_name = matnr

IMPORTING

file_name = matnr.

or else

use this function module.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'field name'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = Internal table name.

with regards,

M.Sreeram