Problem in filling f4 help in select option !!!!
Hi,
I have created a f4 help in the select option.... in 'AT-SELECTION-SCREEN ON VALUE REQUEST FOR <field name>.
But when i select a value in the single value of select-option and hit the F8(copy) button an extra value is duplicated !!!
I am sure that I have filled the select-option properly and also cleared work-area properly......
What can be the possible cause for this ?
Thanks & Regards
Akash
name = 'p_desig1'.
value-key = '01'.
value-text = 'Vice Chairman and Managing Director'.
append value to list.
value-key = '02'.
value-text = 'Chief Financial Officer'.
append value to list.
call function 'VRM_SET_VALUES'
exporting
id = name
values = list.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(25) text-dg1.
SELECTION-SCREEN POSITION 33.
parameters: p_desig1(40) type c as listbox visible length 40.
SELECTION-SCREEN END OF LINE.
*/ End
Regards
Anbu B
Similar Messages
-
Problem on Search Help for select-option
Hi,
Iam working on a search help for select-option,
is there a way to incorporate select-all or multiple
selection on this?
Thanks!Hi catherine,
1. Just copy paste this program.
(It will POPULATE the SELECT-OPTION,
based upon
MULTIPLE Selection,
selected by the user,
in the help provided thru F4IF_INT_TABLE_VALUE_REQUEST.)
2. Eg. is for BUKRS (company code)
3.
REPORT ABC.
TABLES : T001.
DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.
DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
SELECT-OPTIONS : BUKRS FOR T001-BUKRS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-LOW.
PERFORM MYPOPULATE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-HIGH.
PERFORM MYPOPULATE.
FORM MYPOPULATE.
REFRESH ITAB.
SELECT * FROM T001 INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynprofield = 'BUKRS'
dynpprog = sy-REPID
dynpnr = sy-dynnr
multiple_choice = 'X'
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
IF RETURN[] IS NOT INITIAL.
REFRESH BUKRS.
CLEAR BUKRS.
LOOP AT RETURN.
BUKRS-SIGN = 'I'.
BUKRS-OPTION = 'EQ'.
BUKRS-LOW = RETURN-FIELDVAL.
BUKRS-HIGH = RETURN-FIELDVAL.
APPEND BUKRS.
ENDLOOP.
ENDIF.
ENDFORM.
regards,
amit m. -
How to get calender in f4 help for select options in module pool (URGENT)
Hi All,
how to get calender in f4 help for select options in module pool
Please help .
Thanx in advance,
amrutaHi Amruta,
First of all, you can not create select-options directly in module pool.
For creating <b>select-option is dialog prog</b> follow these steps:
1. create your selection screen model as subscreen by:
SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
PARAMETRS: P_MATNR LIKE MARA-MATNR.
SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
SELECTION-SCREEN END OF SCREEN 2000.
2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
3. write this bit of code in PBO and PAI of the screen 100;
CALL SUBSCREEN SUBSCREEN_2000.
4. include this code in PBO:
INCLUDING SY-REPID '2000'
6. write user_command of PAI, call screen which is going to executable after selection-screen.
5. create a transcation for this dialog module pool with screen 100.
6. execute this transaction and you can see it's behaving like cool with select-options.
After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
Hope it will solve the problem.
Regards
Krishnendu -
How to created Freely Programmed F4 help in Select Options
hi,all
I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
Thanks and Best RegardsHi Haung,
You need to use FREE_HELP not the component name.
Modify you code as below:
LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
wd_this->M_HANDLER_V->add_selection_field(
i_id = 'ZCYPHDATE'
it_result = LT_RANGE_TABLE_V
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
i_value_help_id = 'FREE_HELP'
i_no_intervals = abap_false ).
Hope this helps you.
Regards,
Rama -
Can i assign a collective srch help for select option in list display
can i assign a collective srch help for select option in list display
Hi,
Yes ,u can assign a collective search help for select-option in list display.
Eg:
Define your select option like this
SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
Regards,
Shiva. -
F4 help for select options based on parameter value
hi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PMhi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PM -
Freely Programed Help for select-option field
Hi,
how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
Please suggest where i am doing wrong??
Edited by: kranthi kumar on Dec 29, 2010 6:19 PM>
kranthi kumar wrote:
> Hi,
>
> how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
>
> i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
>
> i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
>
> View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
>
> Please suggest where i am doing wrong??
>
> Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
Hi Kranthi,
Please help me to understand your design.
Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ? -
Applying stadard search help to SELECT-OPTIONS
applying stadard search help to SELECT-OPTIONS
i have the below code in the selection screen:
SELECT-OPTIONS : so_stain FOR gv_stai1
MATCHCODE OBJECT ZSTA,
so_staex FOR gv_stai1
MATCHCODE OBJECT ZSTA.
where ZSTA is the search help defined in the data dictionary which is the copy on standard SAP search help..
but this is not working..:( when i run the program and click on the
F4 help for these two fields i get no out put..
can any one suggest me to search help to select-options..Hi,
u can see this example code for f4 help on the select-option,
DATA: li_ret_tab TYPE STANDARD TABLE OF ddshretval,
lws_retfield TYPE dfies-fieldname.
DATA : wa_ret_tab LIKE LINE OF li_ret_tab.
**- Get the device numbers
SELECT serge FROM equi
INTO TABLE i_help1
WHERE sparte EQ c_51.
IF sy-subrc EQ 0.
lws_retfield = text-030.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = s_device
dynpprog = sy-repid
dynpnr = c_dynpnr
dynprofield = s_device
value_org = 'S'
TABLES
value_tab = i_help1
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
Regards,
kk. -
Hi All,
We have created a select option for a field of our database table. This field has a value range in its domain. For Example
Fix Val Short Description
01 INR
02 US
03 EUR
When i press the f4 help of select option, am able to see both the number and the description in the F4 help. But when i select a value, it is only displaying the fixed value (01) in the select option field.
But i want the Short Description to be displayed instead of the fixed value.
Please tell me how to proceed.
Thanks in advance.Hi,
When there are any values in the domain range it considers only the fixed values (keys)
to get the description what you can do is:
1.create a your own f4 help with the field description.
2.in the select options you can give the name of F4 help when you are populating the selection field.
wd_this->m_handle->add_selection_field(
i_description = 'Candidate Profit Center'
i_id = '/MRSS/T_RMOR_PROF_CENTER'
*i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp*
*i_value_help_id = '/MRSS/SH_RM_PC_GROUP'*
it_result = lt_range_table
i_read_only = read_only ).
Priya -
Value help for select-option not filling selection field
I'm having some problems with a value help on a select-option. I've managed to get the value help displaying the correct values but for some reason can't get it to populate the selection field after I've selected a record.
I have the following call:
wd_this->m_handler->add_selection_field(
i_id = 'SHORT_D'
i_description = 'Program'
it_result = lt_range_table
i_read_only = read_only
i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP
i_value_help_id = 'ZPROGSTUDY' ).
where ZPROGSTUDY is a new search help I've set up with an exit to retrieve the values.
Any ideas ? Thanks.Hi Malcolm,
The code you have is OK. I copied your code into a test program and it worked as expected.
I used a search help where the possible values are populated in the search help exit, exactly as in your case. The only time it did not work was when read_only = X, but that is obvious also from a visual point of view since the input field is greyed out in that case. The popup also tells you is in RO mode...
Does your SHLP work when you test it from SE11? Returns values?
SAP provides a lot of WD4A sample code, see for example component WDR_TEST_SELECT_OPTIONS look for
select-option fields > special cases > input helps > Non field-specific input help using search help
Regards,
George -
Help on select options.
Hi gurus!!
I have a report where in i am putting the values in select-options. but yj eproblem i have is when i am not putting any values i am getting the correct output.
but with the same data i am putting the values in low or high i am not getting any data..
so i think i need to put all the entrioes of the select option in an internal table or ranges i dont know and then we give some code like
ranges : ra_stotal for ztsd120-zlow.
ra_stotal-sign = 'I'.
ra_stotal-option = 'BT'.
ra_stotal-low = zlow-low.
ra_stotal-high = zlow-high.
append ra_stotal.
clear ra_stotal.
Can anyone tell me if this is what i got to do if so how?
or is there some other way out?Hi Mona,
Please check the below code in BOLD letter....
I guess you are having a problem in SELECT-OPTIONS because ...might be u r using EQ in where condition of your select query. Whenever u r using SELECT-OPTIONS, it should be "IN" in the where condition.
Eg:- SELECT <field names>
FROM MARA
INTO TABLE <it_tablename>
WHERE matnr IN s_matnr.
Reward points for helpful answers.
Regards,
HK. -
Serach help in Select-option in WD ABAP
Hi Folks,
I am using WDR_SELECT_OPTIONS reusable component in my Component. I want to attach customized search help particular fild while creating select-option using
wd_this->m_handler->add_selection_field(
i_id = 'IWERK'
it_result = lt_range_table
i_read_only = read_only ).
Can anyone explian how can I attach search help here.
Regards,
Vishal.Hi Vishal,
If its a search help, use the following code:
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
wd_this->m_handler->add_selection_field(
i_id = 'S_PLANETYE'
it_result = lt_range_table
i_read_only = read_only
I_VALUE_HELP_TYPE = 'SEARCHHELP'
i_value_help_id = 'Z_SAPLANE' ).
In this example, 'Z_SAPLANE' is the dictionary search help.
This will solve your problem
For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
Regards,
Chitrali -
Problem with table-indexes when using select-options in select
Hello experts,
is it right that table-indexes will not be used if you take select-options to select data from the database?
in detail:
i have build up an table-index for one of our db-tables and test it via an test-programm. The first test with '=' comparisons worked fine. Every key of the index was used; checked via ST05!
e.g.: SELECT * FROM TABLEA INTO ITAB WHERE keya = '1' AND keyb = '2' AND keyc = '3'.
Now i startet the test with select-options
e.g.: SELECT * FROM TABLEA INTO ITAB WHERE keya IN seltabA AND keyb IN seltabB AND keyc IN seltabC.
First of all i just filled the seltabs with only 1 value: eg: seltabA= SIGN = 'I' OPTION = 'EQ' LOW = '1' etc.
Everything worked fine. Every key of the index was used.
But now, I putted more than one entries in the seltabs e.g.
seltabA: SIGN = 'I' OPTION = 'EQ' LOW = '1'
SIGN = 'I' OPTION = 'EQ' LOW = '2'
SIGN = 'I' OPTION = 'EQ' LOW = '3'
From now on, the indexed was not used completely (with all keys).
Isn't that strange? How can i use select-options or sel-ranges with using the complete table-indexes?
Thanks a lot,
MarcelHi Hermann,
i hope this helps:
this is the first one, which uses the complete index:
SELECT
"KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,
"GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,
"HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,
"TERDAT"
FROM
"/dbcon/01_con"
WHERE
"MANDT" = ? AND "LIFNR" = ? AND "ORGID" = ? AND "KOART_BASIS" = ? AND
"STATUS" = ? AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR "STATUS" = ? OR
"STATUS" = ? ) WITH UR
RESULT: 5 IXSCAN /dbcon/01_con05 #key columns: 4
And the second one, which does not use the complete index! The 3 ranges are filled each with 2 values. Remember; when i fill them each with only one value, the result is the same as you can see above(/dbcon/01_con05 #key columns: 4):
SELECT
"KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,
"GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,
"HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,
"TERDAT"
FROM
"/dbcon/01_con"
WHERE
"MANDT" = ? AND "LIFNR" IN ( ? , ? ) AND "ORGID" IN ( ? , ? ) AND
"KOART_BASIS" IN ( ? , ? ) AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR
"STATUS" = ? OR "STATUS" = ? ) WITH UR
and here the access-plan
0 SELECT STATEMENT ( Estimated Costs = 5,139E+01 [timerons] )
5 1 RETURN
5 2 NLJOIN
5 3 [O] TBSCAN
5 4 SORT
5 TBSCAN GENROW
5 6 <i> FETCH /dbcon/01_con
7 IXSCAN /dbcon/01_con05 #key columns: 2
As you can see, only 2 keys were taken for indexed selection!
Any idea?
Kind regards,
MArcel
Edited by: Marcel Ebert on Jul 28, 2009 5:25 PM -
Personalised Value Help in Select-Option field WD ABAP
Hi
I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
Regards
FaaiezHi
The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
Regards
Faaiez -
F4 Help for select-options.
Hi Experts,
I need to use F4 help for a select - options field from a particular table.I have written the below code and it worked well.
FORM sub_show_help.
SELECT bukrs
FROM zfica_accurate
INTO TABLE gt_accurate.
delete ADJACENT DUPLICATES FROM gt_accurate.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_CMCODE'
window_title = 'COMPANY CODE'
value_org = 'S'
multiple_choice = 'X'
TABLES
value_tab = gt_accurate
return_tab = gt_return.
s_cmcode-sign = 'I'.
s_cmcode-option = 'EQ'.
LOOP AT gt_return INTO gw_return .
s_cmcode-low = gw_return-fieldval.
APPEND s_cmcode.
ENDLOOP.
READ TABLE s_cmcode INDEX 1.
IF sy-subrc = 0.
gw_dynpread-fieldname = text-018.
gw_dynpread-fieldvalue = s_cmcode-low.
APPEND gw_dynpread TO gt_dynpread.
UPDATE THE SCREEN FIELD VALUES
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = gt_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
ENDIF.
IF sy-subrc <> 0.
MESSAGE i003.
ENDIF.
The problem is , I need to create a new type for s_cmcode(select-option ) field with the same structure as the select-option and the code is as below. I have created an internal table gt_sfield similar to s_cmcode . I have replaced s_cmcode with gt_sfield but the below code is not working. Its the same as the above program but its not showing up the values in the field.Could anyone please help me.
fORM SUB_SHOW_HELP.
SELECT BUKRS
FROM ZFICA_ACCURATE
INTO TABLE GT_ACCURATE.
gt_sfield[] = s_cmcode[].
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'BUKRS'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
WINDOW_TITLE = 'COMPANY CODE'
VALUE_ORG = 'S'
MULTIPLE_CHOICE = 'X'
TABLES
VALUE_TAB = GT_ACCURATE
RETURN_TAB = GT_RETURN.
LOOP AT GT_RETURN INTO gw_return.
gw_sfield-SIGN = 'I'.
gw_sfield-OPTION = 'EQ'.
MOve gw_return-fieldval to gw_sfield-low.
APPEND gw_sfield to gt_sfield.
ENDLOOP.
READ TABLE gt_sfield INDEX 1 INTO gw_sfield .
IF SY-SUBRC = 0.
gw_dynpread-fieldname = 'S_CMCODE'.
move gw_sfield-low to gw_dynpread-fieldvalue.
APPEND GW_DYNPREAD TO GT_DYNPREAD.
UPDATE THE SCREEN FIELD VALUES
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = GT_DYNPREAD
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
UNDEFIND_ERROR = 7
OTHERS = 8.
ENDIF.
IF SY-SUBRC <> 0.
MESSAGE I003.
ENDIF.
ENDFORM.Hi,
The fucntion module 'DYNP_VALUES_UPDATE' should be used only for updating the screen field values. In your case you are updating the internal table using this function module.
Thanks
Pavan
Maybe you are looking for
-
MultiSelect Not Working in Experience Manager When Adding Location
We have a refinement that is enabled for multi-select both working as expected on the site and in the reference app. However, when I try to create a rule in Experience Manager and have the location include two dimension values from the refinement tha
-
Can't Launch Illustrator CS6 on my Mac and keep getting message to install Java SE 6
When I try to launch Illustrator on my Mac, it asks me to install legacy Java SE 6 every time. Even after installing Java SE 6, it still doesn't open up and keep asking me to install legacy Java SE6. How can I get Illustrator to open without this mes
-
Hi, I have (at last!) a simple program that accesses a simple DB. I have one table that contains a column of type TIMESTAMP. I want to use this timestamp eventually to select a range of data (perhaps using between or something like that). But to test
-
When I click a link on a web page it will take me to an advertising page not the page it should take me to. This is only happening with firefox not the other browsers I use. I uninstalled and reinstalled firefox and this did not solve the problem. Th
-
How to write or send String to an external file in java
Hi guys...! I am writing a program in which I have to send some texts to an external file. If the file is not empty, I want the program to append to that file instead of overwriting the file. Any suggestions...guys?? Thanks... --- Spirit_Away