OVS in Select-options
Hi,
I would like to use OVS in Select options.
Can anyone tell me how to use OVS in Select-options.
Here, How can I bing OVS as I am not using any context node.
I am using following code to generate select-options:
create a range table that consists of this new data element
lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'INGRP' ).
add a new field to the selection
wd_this->m_handler->add_selection_field(
i_id = 'INGRP'
it_result = lt_range_table
i_read_only = read_only ).
Regards,
Vishal.
Edited by: VISHAL GUPTA on May 7, 2008 10:12 AM
Hi,
Please go thr' the link for info on Input Help....
http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/frameset.htm
OVS Input Help
The maximum scope of Dictionary Search a search help is to the structure to which it is related.
There are situations where this technique is not sufficient.
e.g.Sometimes different input fields are related to diff value nodes which in turn refer to different ABAP dictionary
structures. In this case OVS (Object Value Selector).
Provides advanced search functionality
For more info on OVS ,.......
[SAP Help|http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm]
Apart, We can also use select-options functionality the same way we use in regular ABAP programs.
For Select options.
[Using Select Options in a WDA Application|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
[IF_WD_SELECT_OPTIONS|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bf07361248003de10000000a11466f/content.htm]
Achyut
Similar Messages
-
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
OVS Help in Select Options-Text to be Shown and Code to be captured
Hello Experts,
I am using Select options in web dynpro abap.
On a particular View container i have added a selection field using ADD_SELECTION_FIELD which has an OVS help to it.
The selection field is of type CODE.
And on click of a button i am reading the select option fields using GET_RANGE_TABLE_OF_SEL_FIELD and assigining this to a
field symbol which inturn is being set to an attribute.
My requirement is to show the TEXT to the user and send the CODE to the method which is called
when the button is clicked and a table is populated.
Normally we can keep two attributes one for TEXT and the other for CODE but for Select options i am not very sure how this can be achieved.
Because in select options we are reading the values present on the select option field and there may be multiple values.
Please guide me through this.
Thanks in Advance,
ShravanHello Shravan,
This can be easily achieved if you convert the selection field to dropdown.
Create a valueset containing the list of valid values and then pass this to the ADD_SELECTION_FIELD method
"Creating valueset
DATA lt_valueset TYPE wdy_key_value_table.
DATA ls_valueset LIKE LINE OF lt_valueset.
ls_valueset-key = 'EN'.
ls_valueset-value = 'English'.
APPEND ls_valueset TO lt_valueset.
"Creating selection field as Dropdown
lr_helper->add_selection_field( i_id = <ID>
it_result = lt_range
i_as_dropdown = abap_true
it_value_set = lt_valueset ).
BR, Saravanan -
How to get select option on OVS help.
HI all,
can we have select-option on OVS help screen? if yes how to declare the select option. do we need wds_select_options component? can any explane step by step how to achive this?
OVS is working fine without range. I went through so mant post but not able to catch the starting point of this.
Regards,
DeepthiHi,
check the below thread.
[https://forumsa.sdn.sap.com/thread.jspa?messageID=8331126#8331126]
Regards,
Priya -
Select options using OVS empty
Hi all,
I have created a select options dynamically using OVS.
If the output table is empty my OVS appears empty and i don't want that this appears.
The search help must appear only when the output table is not empty.
How do i solve this?
ThanksHi.
My problem has not been repair.
There is no way to disable an OVS at runtime.
See:
cancelling an OVS help?
Thanks a lot. -
Hi,
I have a requirement where i have to use to separate select options but the value of the 2nd Select option is dependant of the value chosen in the first select option.
For eg:First Select option is for SWCV and 2nd option is for Data Object.
If you choose S1 as SWCV in first select option then the values in select options for Data object should be populated for Data objects belonging to SWCV "S1" only an not for any other SWCV.
PS:Points will be awardedHi Sacha,
Is there any other way in abap web dynpro where i can achieve the above mentioned requirement.The catch here is that the user can enter multiple values.
Earlier user was allowed to have only one entry in inputfield so OVS used to solve my problem.But with multiple entries i can't do the same thing. -
Select-options for input field
hi,
Is it possible to use 'Select-options' in web dynpro for the input field like we use in abap?
Ex. material is the input field. i want to select range also for this input field using 'Select-options'
I have tried only with ovs(f4 help) for the input field. can u pls tel me how to use if it is possible ?
Thanks,
Aishwarya.DATA: LT_RANGE_TABLE TYPE REF TO DATA,
RT_RANGE_TABLE TYPE REF TO DATA,
READ_ONLY TYPE ABAP_BOOL,
TYPENAME TYPE STRING. DATA: LR_COMPONENTCONTROLLER TYPE REF
TO IG_COMPONENTCONTROLLER,
L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
create the used component
L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
L_REF_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
init the select screen
WD_THIS->M_HANDLER =
WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ).
WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
*create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE(
I_TYPENAME = 'matnr' ).
add a new field to the selection
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'matnr'
IT_RESULT = LT_RANGE_TABLE
I_READ_ONLY = READ_ONLY ).
This is my code followed by saptechnical. but when i exec, am getting err like the type matnr is invalid. -
One search help for multiple select-options in webdynpro abap
Hi,
I need a way to use one search help for multiple select-options fields. My scenario is :
I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
I think I won't be able to use this way. What do you say?
As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
MY TABLE (ZBYYT080) CONTENTS:
SID VARBL VALUE LANGU VTEXT
ADS $WERKS 1 T Werk 0001
ADS $WERKS 11 T OZYAS GIDA URETIM YERI
ADS $WERKS 5501 T BOYA GEBZE FABRİKASI
ADS $WERKS 5502 T BOYA CIGLI FABRİKASI
AGT $WERKS 2301 T KAMLI DAMIZLIK
AGT $WERKS 9601 T PANAR DENIZ URETIM YERI
ADS $VKORG 22 T AA KİMYASALLAR
ADS $VKORG 8001 T İINSAAT BOYALARI
AGT $VKORG 6500 T DAMk St.Org
AGT $VKORG 5400 T PANAR St.Org.
I wish I'm clear enough..
I will be gald if someone answers me as soon as possible...
Thanks İn advance..
MERALHi,
Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
Am I right ?
If Yes, then in the interface IF_WD_SELECT_OPTIONS
method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
have importing param like I_VALUE_HELP_TYPE and I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
etc which may help you to link your create DDIC Search help to selection screen params.
this is just a clue from my side. I haven't tried it myself.
You can go to the where used list of this method and find some sample implementations which use these params.
Hope this helps.
Regards
Manas Dua -
' SET_OUTPUT_TABLE Cannot Be Called ' error while using OVS in Select opt
Hi All,
I am trying to put the OVS help in a select option.
When I run the application and click the help icon for select option I am getting the below error:
OVS: Methode SET_OUTPUT_TABLE Cannot Be Called
The abap call stack is this :
Method: IF_WDR_OVS_LISTENER~MODIFY_RESULT_VIEW of program CL_WDR_VALUE_HELP_HANDLER=====CP
Method: WDDOMODIFYVIEW of program /1BCWDY/05LR4UBIVJKOH0BA5Y5V==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/05LR4UBIVJKOH0BA5Y5V==CP
Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
My code is below :
method on_ovs .
types:
begin of lty_stru_input,
add fields for the display of your search input here
carrid type sflight-carrid,
end of lty_stru_input,
begin of lty_stru_list,
add fields for the selection list here
carrid type sflight-carrid,
end of lty_stru_list,
ty_range type range of sflight-carrid.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
lv_window_title type string,
lv_group_header type string,
lv_table_header type string.
field-symbols: <ls_query_params> type lty_stru_input,
<ls_selection> type lty_stru_list.
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0.
ls_text-name = `CARRID`. "must match a field name of search
ls_text-value = `CARRID`. "wd_assist->get_text( `001` ).
insert ls_text into table lt_label_texts.
ls_text-name = `CARRID`. "must match a field in list structure
ls_text-value = `CARRID`. "wd_assist->get_text( `002` ).
insert ls_text into table lt_column_texts.
lv_window_title = 'Test Window'.
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
when if_wd_ovs=>co_phase_1.
ls_search_input-carrid = 'AH'.
pass the values to the OVS component
ovs_callback_object->set_input_structure(
input = ls_search_input ).
when if_wd_ovs=>co_phase_2.
if ovs_callback_object->query_parameters is not bound.
TODO Exception Handling
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
if not <ls_query_params> is assigned.
select carrid from sflight into table lt_select_list.
else.
select carrid from sflight into table
lt_select_list where carrid eq <ls_query_params>-carrid.
endif.
ovs_callback_object->set_output_table( output = lt_select_list ).
when if_wd_ovs=>co_phase_3.
apply result
if ovs_callback_object->selection is not bound.
TODO exception handling
endif.
assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
data: lr_select_options type ref to iwci_wdr_select_options.
data lr_helper type ref to if_wd_select_options.
data: lt_range type ty_range.
data: lr_comp_usage type ref to if_wd_component_usage,
wa_range like line of lt_range,
rt_range type ref to data.
wa_range-sign = 'I'.
wa_range-option = 'EQ'.
wa_range-low = <ls_selection>-carrid.
append wa_range to lt_range.
"lt_RANGE-SIGN = 'I'.
create data rt_range like lt_range.
lr_comp_usage = wd_this->wd_cpuse_my_select( ).
if lr_comp_usage->has_active_component( ) is initial.
lr_comp_usage->create_component( ).
endif.
lr_select_options = wd_this->wd_cpifc_my_select( ).
lr_helper = lr_select_options->init_selection_screen( ).
call method lr_helper->set_range_table_of_sel_field
exporting
i_id = 'CARRID'
it_range_table = rt_range.
endif.
endcase.
endmethod.
Please help!!!
Its urgent.
Regards,
Sumit OberoiHi Sumit,
1) In the WDINIT method define ur select-option.
2) IN Mthods of ur view controller write :
ON_OVS Event Handle ON_OVS INTERFACECONTROLLER SELECT_OPTIONS
3) code for ON_OVS:
DATA: l_current_controller TYPE REF TO if_wd_controller,
l_message_manager TYPE REF TO if_wd_message_manager,
lv_message_ERROR(100), l_subrc TYPE subrc,
lv_message_SUCESS(100).
DATA : STRU_ENAME TYPE ZU5_PERLIST_S.
DATA: WA_CALLOWNR LIKE STRU_ENAME.
DATA: IT_CALLOWNR LIKE STANDARD TABLE OF STRU_ENAME.
DATA: IT_ENAME TYPE ZU5_PERLIST_T.
DATA: LV_STR TYPE STRING VALUE 'BOB'.
DATA: lr_componentcontroller type ref to ig_componentcontroller,
l_ref_cmp_usage type ref to if_wd_component_usage.
DATA: rt_CALLOWNR type ref to data,
R_CALLOWNR TYPE RANGE OF IHPA-PARNR,
R_CALLOWNR_line LIKE LINE OF R_CALLOWNR.
field-symbols:
<lt_ovs_result1> LIKE IT_ENAME,
<PA0001> TYPE ZU5_PERLIST_S,
<lt_sel_opt_result1> type standard table.
field-symbols: <fs_CALLOWNR> type table.
case ovs_callback_object->
case i_ovs_data-m_ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0.
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
get a pointer to the interface controller of the select options component
wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
i_ovs_data-m_ovs_callback_object->set_configuration(
WINDOW_TITLE =
GROUP_HEADER =
LABEL_TEXTS =
TABLE_HEADER =
COLUMN_TEXTS =
COL_COUNT =
TABLE_MULTI_SELECT = abap_true ).
when if_wd_ovs=>co_phase_1.
// to display extra search window
i_ovs_data-m_ovs_callback_object->set_input_structure(
input = STRU_PA0001
GROUP_HEADER =
LABEL_TEXTS =
WINDOW_TITLE =
to display extra search window
when if_wd_ovs=>co_phase_2.
rt_CALLOWNR = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'CALLOWNR' ).
assign rt_CALLOWNR->* to <fs_CALLOWNR>.
R_CALLOWNR = <fs_CALLOWNR>.
READ TABLE R_CALLOWNR INTO R_CALLOWNR_line INDEX 1.
LV_STR = R_CALLOWNR_line-LOW.
CALL METHOD ZU7_CL_DB_UTILITY=>GET_PERNR_HITLIST
EXPORTING
I_SEARCH = LV_STR
IMPORTING
ET_HLIST = IT_ENAME.
l_current_controller ?= wd_this->wd_get_api( ).
CALL METHOD l_current_controller->get_message_manager
RECEIVING
message_manager = l_message_manager.
IF LV_STR IS INITIAL.
lv_message_ERROR = wd_assist->if_wd_component_assistance~get_text( key = '031' ).
CALL METHOD l_message_manager->report_error_message
EXPORTING
message_text = lv_message_ERROR.
ELSE.
CLEAR lv_message_ERROR.
DATA : LV_LINES TYPE char3.
DESCRIBE TABLE IT_ENAME LINES LV_LINES.
lv_message_ERROR = wd_assist->if_wd_component_assistance~get_text( key = '032' ).
CONCATENATE LV_LINES lv_message_ERROR INTO lv_message_ERROR SEPARATED BY space.
CALL METHOD L_MESSAGE_MANAGER->CLEAR_MESSAGES
EXPORTING
INCLUDING_PERMANENT_MSG = ABAP_FALSE.
CALL METHOD L_MESSAGE_MANAGER->REPORT_SUCCESS
EXPORTING
MESSAGE_TEXT = lv_message_ERROR.
ENDIF.
i_ovs_data-m_ovs_callback_object->set_output_table(
output = IT_ENAME
when if_wd_ovs=>co_phase_3.
assign i_ovs_data-m_ovs_callback_object->selection->* to <lt_ovs_result1>.
assign i_ovs_data-mt_selected_values->* to <lt_sel_opt_result1>.
loop at <lt_ovs_result1> assigning <PA0001>.
APPEND <PA0001>-PERNR TO <lt_sel_opt_result1>.
endloop.
endcase.
Regards,
Vishal.
Edited by: VISHAL GUPTA on Aug 5, 2008 9:42 AM -
Creating select option with the search help based on other select option
Hi,
I have displayed a selection screen with two select options S1 and S2.
My requirement is that the values in the search help of S2 should get filled based on the values selected in S1.
Note: User has option to select multiple values in S1.
Does anybody know how to implement this?
Thanks,
Feroz>
Sanjeeva wrote:
> Hi,
>
> With standard f4 you cannot acheive this. You need to write customise with OVS or Simple value selector by reading S1 selected values.
>
> Thanks,
> Sanjeev
I'm getting fairly tired of seeing this completely incorrect information on this forum. As stated before and already found out by this poster, you can map input and output values between multiple data dictionary search helps. You do NOT have to resort to using OVS for this option. -
Component Usage in Select Options
Hi
I need to bring Profit Center Hierarchy in Select Options of Webdynpro for Profit Center field.
For this have created component Usage with hierarchy which works fine in case of input field but I want to make it work on select options field for using the select options functionality.
Pls suggest if there is any way by which we can link component usage on Select Options field.
Regards
VishalHi Madhu,
When i am trying this way, it is giving me the following dump
"Component usage PRCTR_F4 does not exist"
The component PRCTR_F4 is there in the Component use list.
Also only OVS can be used for select option?? b'coz hwen i debugg the application whe using this search help, i can see only OVS as component usage.
Waiting for your reply....
Thanks & Regards,
Arvind -
Restrict F4 help values for select option
Hi All,
How to restrict the F4 help for select option in Webdynpro for ABAP based on some input.
Regards,
Karthick SHi Karthick,
Use OVS help. It will take your inputs for search and give you corresponding search value list.
Refer my blog, it will be helpful.
[OVS Help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
Thanks. -
Report help for multiple Date Select options
Hi Friends,
For a particular year wise report, the client wants 12 date select-options which are changeable and informal every year .The report will also be displayed as per the given date selection period wise. Please help me how to fetch the datas from the table as per the given selection period. Currently the report have one date select-option where the user gives selection range as 1.04 to 31.03. It's related to EB power consumption report and hence the new requirement on date selection which are informal and not a fixed date of every year.
Ex:Selection-Screen
Period 1 : 08.04.2008 to 12.05.2008
Period 2: 12.05.2008 to 20.06.2008
Period 3: 21.06.2008 to 28.07.2008
Period 4: 29.07.2008 to 15.08.2008
Period 5: 15.08.2008 to 21.09.2008
Period 6 : 21.09.2008 to 14.10.2008
The data will derive as per the above selection ranges.......
Please advise with example.
thanks & regards
Sankar.>
sankar babu wrote:
> Ex:Selection-Screen
> Period 1 : 08.04.2008 to 12.05.2008
> Period 2: 12.05.2008 to 20.06.2008
> Period 3: 21.06.2008 to 28.07.2008
> Period 4: 29.07.2008 to 15.08.2008
> Period 5: 15.08.2008 to 21.09.2008
> Period 6 : 21.09.2008 to 14.10.2008
Hi,
In this case just derive all records matching dates between 08.04.2008 (low in first select-options) and 14.10.2008(high in last select-options.
Also my advice is to use a single select-options and prompt the user to give the dates as ranges in the multiple entries dialog which can be opened by clicking the button on the right side of the select-options.
Regards
Karthik D -
How To... Change the Data Type for a SELECT-OPTIONS at run time.
Hello,
I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
I would like the following example to be possible:
The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
declaration of variables for user interface
DATA c_char(32) TYPE c.
declaration of count variable
DATA i_count TYPE i.
declaration of user interface
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
PARAMETERS: p_ipack TYPE RSLOGDPID.
SELECTION-SCREEN END OF BLOCK a1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: p_char1 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char1 for c_char NO INTERVALS.
PARAMETERS: p_char2 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char2 for c_char NO INTERVALS.
PARAMETERS: p_char3 TYPE RSDIOBJNM.
SELECT-OPTIONS: so_char3 for c_char NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b1.
Is what I am trying to do possible???
Thanks for any help. Ross.You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
Here is what you do: Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR.. The first thing you do here is read the value of the parameter field (p_ipack in your example). You can use function module DYNP_VALUES_READ. Based on this value, you can propose values for the select-option fields. Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field. -
Select-options in SELECT query - syntax error
Hi all,
I get the error below when I try to use the select options in a SELECT query . Please help me.
"The IN operator with "SO_AWART" is followed neither by an internal
table nor by a value list."
The code i have used(Logical database PNP is used):
TABLES: pernr,
catsdb.
INCLUDE ztime_cwtr_top. " global Data
INCLUDE ztime_cwtr_f01.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
PARAMETERS P_THRES TYPE I.
SELECTION-SCREEN END OF BLOCK B1.
Get data from CATSDB table. Workdates within the date interval are considered.
SELECT pernr workdate awart catsquantity beguz enduz status
FROM catsdb
INTO TABLE it_catsdb
WHERE pernr = pernr-pernr AND
workdate GE pn-begda AND
workdate LE pn-endda AND
status IN ('20', '30') AND
awart IN so_awart .
awart IN ('1100', '1137', '1138', '1139', '1140',
'1147', '1148', '1149', '1157', '2003' ).
when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
I have tried different options like using only the select-options in the where condition.
Thanks in advance.....
MadhuSolved.
Code with syntax error:
include z...top .
include z...fo1.
select-options: xxxxxxx
Code with no syntax error:
select-options: xxxxxxx
include z...top .
include z...fo1.
Thanks for all your help,
Madhu
Maybe you are looking for
-
Error while faxing the remittance advice through payment run
Hi, Message number (XS 826) " Cannot Process message : No route From ******(User) to *****(Faxnumber). ", Under what circumstances this error message comes while faxing the remittance advice through payment run, and also how to rectify that? Regards,
-
Trying to use set_value in onChange event handler
Is it acceptable to use p_session.set_value in the onChange event handler? I am trying to do a couple of things in this event handler, I am trying to validate a code and if the code is invalid I wish to show an alert. If the code is valid I then wish
-
How to create automatically users&roles in CUA and child systems
Hi, i have a CUA on a 2 chlid R/3 systems (test and training) and 2 portal systems (test and training). i need to create a web application to create automatically users test and users training in CUA and see them in the R/3 chlid systems and at the s
-
Product Categories - Language Defect
Dear All, Imp Scenario:Standalone Users: Buyer When i am trying to create a shopping cart by describe requirement (Non Catalog Scenario) am unable to see product categories in chineese languae. But when i try to login with english language am able to
-
Hi, I did not find any JPA related forum, so, I'll try here. I'm trying to create a named query like: SELECT DISTINCT d FROM District d, district_municipality md WHERE md.districtID = :id But this will complain about district_municipality as it is no