‎2009 Jul 12 6:04 PM
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.
‎2009 Jul 13 5:59 AM
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
‎2009 Jul 12 6:19 PM
Hi, Nair
What is the type of wa_flight ?
Please Reply,
Regards,
Faisal
‎2009 Jul 12 7:39 PM
"wa_flight" is of the type "dv_flights" which is a database view using two tables "spfli" and "sflight".
‎2009 Jul 12 10:31 PM
Try this way:
so_con FOR spfli-connid.
or
so_con FOR sflight-connid.
‎2009 Jul 13 4:05 AM
Hi Nair,
Refer directly to the dictionary variable or elements instead of referring variables defined in the program.
Thanks
Venkat.O
‎2009 Jul 13 5:59 AM
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
‎2009 Jul 13 6:02 AM
‎2009 Jul 13 6:26 AM
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
‎2009 Jul 13 6:30 AM
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
‎2009 Jul 13 4:15 PM
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
‎2009 Jul 13 4:20 PM
>
> 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
‎2009 Jul 13 4:30 PM
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?
‎2009 Jul 13 4:42 PM
Hi, Nair,
But why you don't want to replace these lines with my given working code lines ?
Please Reply,
Kind Regards,
Faisal
‎2009 Jul 13 4:48 PM
Hi Faisal
Yes of course I did. But I was curious to know the reason behind that not working.
Thanks and regards
Nandesh
‎2009 Jul 30 6:12 AM
Hi,
It is working fine for me.Have you tried by clicking on the text box of con- id.
Regards,
Sudha .
‎2009 Jul 13 6:14 AM
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
‎2009 Jul 13 6:37 AM
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.
‎2009 Jul 13 7:05 AM
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