Case Sensitive problem in Select Option for wild card search
Hi,
Can anyone please let me know how to make the wild card search in any select-option non case-sensitive. What I mean by this is for eg. we want to find out all the POs with short text containing the word 'process', what we do we populate a range with OPTION = 'CP' and LOW = 'process' and select EKPO with short text in this range. This select is however case-sensitive and POs with short text containing 'Process' is not retrieved. But my requirement is that this should be non case-sensitive and both the POs should be in the result set.
Hi,
Hope this helps you
CS:
You can select characters in operand2 for a direct comparison by adding the escape symbol "#" before the required characters. For these characters, upper/lower case is taken into account, wildcard characters and the escape symbol itself do not receive special treatment, and trailing blanks in operands of type c are not cut off.
Covers Pattern: True, if the content of operand1 fits the pattern in operand2. Wildcard characters can be used for forming the operand pattern, where "" represents any character string, and "+" represents any character. Upper/lower case is not taken into account. If the comparison is true, sy-fdpos contains the offset of operand2 in operand1, whereby leading wildcard characters "" in operand2 are ignored if operand2 also contains other characters. If the comparison is false, sy-fdpos contains the length of operand1.
Regards
Krishna
Similar Messages
-
Hi Experts !
Hi Experts!
I have used EVS in table column. When I click that particular column, it shows pop window correctly.
It contains the data like that in pop window.
"A" -
> Apple
"B" -
> Ball
"C" -
> Cat
My problem is when I enter the value directly into that column instead of selecting value from pop up window , I face case sensitive problem. For example if I enter
"a" instead of "A" i got the following error <b>The stringer "a" does not occur in the quantity of the permitted values</b>
How to solve this error?
pl help me.
Advance Thanks. -
How to create select-options for 3 fields out of 5 by FREE_SELECTIONS_INIT
Hi Experts,
I am using the Function Modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG to create the select-options dynamically on the selection screen.
My problem is that I am passing a field list of 10 fields in the FIELDS_TAB of the function.
Now it creates the select-options for all 10 fields. I want to create select-options for only 5 fields initially and let the user select out of the remaining 5 fields to create the select-options.
How to achieve this.?
I tried by passing the 5 fields in FIELDS_NOT_SELECTED table but they get hidden and once hidden I am not able to get them back in my field list.
Please help me out.
Useful answers will be suitably rewarded.
Thanks in advance.
Regards,
HimanshuHi Experts,
I am using the Function Modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG to create the select-options dynamically on the selection screen.
My problem is that I am passing a field list of 10 fields in the FIELDS_TAB of the function.
Now it creates the select-options for all 10 fields. I want to create select-options for only 5 fields initially and let the user select out of the remaining 5 fields to create the select-options.
How to achieve this.?
I tried by passing the 5 fields in FIELDS_NOT_SELECTED table but they get hidden and once hidden I am not able to get them back in my field list.
Please help me out.
Useful answers will be suitably rewarded.
Thanks in advance.
Regards,
Himanshu -
Validation of Select Options for a field
Hi All,
I need to write a validation logic for a select option for VTWEG (Distribution Channel).
select-options: s_vtweg for komg-vtweg.
I need to check whether the user has entered the correct value based on the search help. The check table of this particular field is TVTW.
Following is the code i wrote under the AT SELECTION-SCREEN block:
IF NOT S_VTWEG-LOW IS INITIAL.
SELECT SINGLE VTWEG INTO KOMG-VTWEG FROM TVTW
WHERE VTWEG IN S_VTWEG.
IF SY-SUBRC NE 0.
CONCATENATE ' Please enter the correct
Distribution Channel '
Z_MSG INTO Z_MSG.
SET CURSOR FIELD 'S_VTWEG-LOW'.
MESSAGE E000 WITH Z_MSG.
ENDIF.
ENDIF.
It works fine when the user enters a wrong value in the S_VTWEG-LOW field, where as if i gives more than one wrong value in the range or giving individual values its not working. Let me know how to do the validation check for multiple values entered individually or in ranges.
Could you please suggest how to resolve this problem.
Thank You,
SureshYou could do something like this.....here looping at the select-option table and check the values for low and high.
report zrich_0003.
tables: komg.
data: z_msg(100) type c.
select-options: s_vtweg for komg-vtweg.
at selection-screen.
loop at s_vtweg.
if not s_vtweg-low is initial.
select single vtweg into komg-vtweg from tvtw
where vtweg = s_vtweg-low.
if sy-subrc ne 0.
concatenate ' Please enter the correct
distribution channel '
z_msg into z_msg.
set cursor field 'S_VTWEG-LOW'.
message e001(00) with z_msg.
endif.
endif.
if not s_vtweg-high is initial.
select single vtweg into komg-vtweg from tvtw
where vtweg = s_vtweg-high.
if sy-subrc ne 0.
concatenate ' Please enter the correct
distribution channel '
z_msg into z_msg.
set cursor field 'S_VTWEG-HIGH'.
message e001(00) with z_msg.
endif.
endif.
endloop.
Regards,
Rich Heilman -
Select option for selection valid and invalid data.
Hi All,
Any one pleas help in validating following case :-
In the selection screen there is a select option for equipment number like EQUI-EQUNR
if any user will give wrong equipment no. It will generate an error message from the range of equipment no.
and put it to an internal table it error.
and if any value in between the select option(equipment no) is correct then that value I need to proceed for some other logic.
Iu2019d appreciate if some one help me in generation code for the above case or logic.
ThanksHi,
Use FM 'RS_REFRESH_FROM_SELECTOPTIONS'
DATA: RSPAR TYPE STANDARD TABLE OF RSPARAMS.
REFRESH RSPAR.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
CURR_REPORT = 'prog name'
IMPORTING
SP =
TABLES
SELECTION_TABLE = RSPAR
EXCEPTIONS
NOT_FOUND = 1
NO_REPORT = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE I000.
ENDIF.
In table parameter you ll get the all entries entered .
Check out the values with respective tables.If value is not correct tk it into internal table
else proceed ahead. You can Remove incorrect entries this way.
regards,
ajit. -
I have a problem in select-options
hi frns,
i am facing a big problem in select-options
the requirement is such that
i have 2 select-options
one for matnr and the other for maktx
so wen the clent select matnr with f4
in the maktx the similar description should come by using f4
pls help me outhi,
TYPES DECLARATION
types: begin of tp_marc,
matnr type marc-matnr,
werks type marc-werks,
end of tp_marc.
INTERNAL TABLE AND WORK AREA DECLARATION
data: t_marc type standard table of tp_marc,
wa_marc type tp_marc.
data : dd like table of dselc with header line. "*--- IMPORTANT
data : ft like table of dfies with header line.
data : t_makt like table of makt with header line.
parameters : matnr like makt-matnr .
parameters : maktx like makt-maktx.
at selection-screen output.
loop at screen.
if screen-name = 'MAKTX'.
screen-input = 0.
modify screen.
endif.
endloop.
at selection-screen on value-request for matnr.
SELECT matnr maktx FROM makt INTO TABLE makt up to 500 rows.
select *
from makt
up to 500 rows
into table t_makt
where spras = syst-langu.
if sy-subrc <> 0.
message 'INVALID MATERIAL NUMBER' type 'E'.
endif.
IMPORTANT
refresh dd.
dd-fldname = 'MATNR'.
dd-dyfldname = 'MATNR'.
append dd.
dd-fldname = 'MAKTX'.
dd-dyfldname = 'MAKTX'.
append dd.
*------- IMPORTANT
refresh ft.
ft-tabname = 'MAKT'.
ft-fieldname = 'MATNR'.
append ft.
ft-tabname = 'MAKT'.
ft-fieldname = 'MAKTX'.
append ft.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
ddic_structure = 'T001' "*----- IMPORTANT IF STANDARD STRUCT
retfield = 'MATNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'MATNR'
value_org = 'S'
tables
field_tab = ft "*---- IMPORTANT
value_tab = t_makt
dynpfld_mapping = dd "* IMPORTANT
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
start-of-selection.
select matnr
werks
from marc
into table t_marc
where matnr = matnr.
if sy-subrc <> 0.
message :'no results IN MARC' type 'E'.
endif.
write: at 1(36) sy-uline.
format intensified on color = 7.
new-line.
write :sy-vline,at 10 'MATERIAL NUMBER',at 29 sy-vline, at 30 'PLANT',sy-vline.
new-line.
write: at 1(36) sy-uline.
format intensified off color = 4.
loop at t_marc into wa_marc.
new-line.
write :sy-vline,at 10 wa_marc-matnr ,sy-vline, at 30 wa_marc-werks, at 36 sy-vline.
endloop.
new-line.
write: at 1(36) sy-uline.
reward points if useful.
regards,
Vinod Samuel. -
MSS Time Approval - multiple (different) selection options for manager?
Hi all
I am setting up MSS Time Approval delegation in ERP2005 without workflow, leave request, nor portal development environment set up.
In this case, the customer needs to have multiple selection options for who to approve:
1. The manager's direct reports (standard functionality)
2. All subordinates, all levels down
3. Delegate's (manager or non-manager) view of a particular (other) manager's direct reports
3b. This might extend to a set of different delegation selections
4. Add or remove certain individuals
Now, getting 3. and 4. to work was simple using the BAdI (I think the enhancement spot is named APPR_CUST), method ...-edit_selection, but I am having difficulties with 2. and 3b. Now I am thinking along these lines, and I would greatly appreciate your input:
A. It seems that the MSS "Approve working time" app only loads the data selection at the entry into this screen (INIT command from portal), using the start perspective determined for example by the IMG for defining the approval profile <-> view. My debugging suggests that the view change from the drop down menu (CHANGE_PERSPECTIVE command) only picks a different way to present the same data set.
Could anybody please confirm or contradict this conclusion?
B. Is it possible to present the entire "Approve working time" section in MSS in multiple different copies so that they would all generate an INIT command? Or is it possible to copy and modify the entire MSS tab, resulting in an ESS tab, one MSS, one "D"SS, one "A"SS (well, not suggesting that the top manager is one, but you get the drift...) and so on?
If either of this were possible, it would be simple to make two modifications, one at the beginning of the FM called by the portal and one at the FM that returns the start perspective.
So far I have been trying to catch and alter the CHANGE_PERSPECTIVE command into an INIT in the back end, but the Time Approval functionality is a bit too complex for me to feel entirely comfortable with this approach.
Your input is much appreciated!
Kind regards
Niclas ArndtWe too are using MSS for time approval of time entered via ESS. We are on ECC 6.0 for the backend (no enhancement packs, at least not yet), currently sp stack 10 with hrsp 24, and EP 7.0 with stack 10 for the ESS/MSS business packages. We are using the standard MSS UWL functionality for the approval, so it is workflow-based in my understanding.
In other parts of MSS, the managers can see a few levels deep in the organization structure, based upon the definition we gave for their structural profiles. For instance, in the team calendar/overview, or other team information, they have a choice for multiple levels or only direct reports. However, in the time approval application, only direct reports are shown, so if a manager goes on vacation, at present the only way to cover time approvals for that manager's employees appears to be to temporarily assign a new 'chief' to that org unit, so HR involvement becomes necessary. The manager doesn't have any method for delegating the approval or other MSS authorities. We were hoping that by allowing multiple levels in the structural profile, such approvals would "roll up" to the next level, i.e. the manager's supervisor, so the next level manager could act as a backup to his/her managers on vacation. That doesn't work, however.
We have heard that a delegation feature for MSS will be available in an upcoming release, but I haven't found any information regarding whether that requires an upgrade, an enhancement pack, a later service pack level, or what or when that functionality will be available. Does anyone know anything about that?
Regards,
Matt -
Case Sensitivity problems using OAS
I developed a small application in JDeveloper
& deployed that application ( or alternatively I have a small application HelloWorld )
When I tried to execute the application on Oracle Web application Server using JWeb Cartridge it seems that while giving the URL
it needs the exact name & case. If I give like test/java/HelloWorld it will execute
But If I will give like test/java/helloworld
it doesn't respond.
Is this a case sensitivity problem or what ?
Please help
Sandeep
nullKevin,
This looks like a networking issue. You may want to start with the basics like telnet using port 12503. Netstat may be helpful as well. You can turn up the logging level to finest and obtain more detailed information to post here. Below find a logging and debugging URL (for 9i but still relevant).
http://www.oracle.com/technology/tech/java/oc4j/htdocs/oc4j-logging-debugging-technote.html-Michael -
Any ideas on which data element to be used for select-options for timestamp on the screen so that a user is able to f4 help too.
i am using data element 'tzntstmps' but i am not getting f4 help for it.Hello Trivenn
I do not think it makes sense to search for any other timestamp data element which might be part of a search help.
TZNTSTMPS = UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
How could such a search help look like? A calendar control combined with some kind of "time control"?
You may facilitate the entry of time stamps in such a way that if the user enters only a date in the LOW field (e.g. 20080422 without time) you change it AT SELECTION-SCREEN (PBO of your selection screen to 20080422000000).
Correspondingly, you change a date value (e.g. 20080422) at the HIGH field into 20080422235959).
If, however, the user enters already a complete timestamp you do not change anything.
Regards
Uwe -
Hi all,
How can I define select-options for a method in a global class.
And how can I pass these select-options from a report.
Thanks & Regards
EshwarHi all,
How can I define select-options for a method in a global class.
And how can I pass these select-options from a report.
Thanks & Regards
Eshwar -
Multiple select options for an input field
Hi All,
We have a requirement where in we need to provide multiple select options for an input field in a BSP application and get output relevant to all the given inputs(do not require range).
Please do let me know how to solve this.
Thanks & Regards,
Lavanya .Hi,
The requirement is : Suppose there is a input field PLANT.
If we give input for plant it gives related output.
Now if it is required to give 5 or 6 inputs..like plant1,plant2...plant6 and get the output related to all 6 inputs.
(Like we implement in ABAP)
Please do let me know how can this be implemented in BSP.
Thanks & Regards,
Lavanya. -
Select-options for date field.
Hi all,
i need to give select options for Date field.How can i give that.
Thanks & Regards
Ravi.Hi Ravi,
Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
3. View: Properties Tab:Create Controller Usage and select
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
5. View Attributes Tab: Create Following two attributes:
M_HANDLER type IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
7:CREATE_SELECTION_SCREEN: Write following Code:
* Data Declaration
data:
lt_range_table TYPE REF TO DATA.
data:
lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
* Execution
* Create Used Component
lr_componentusage = wd_this->wd_cpuse_select_options( ).
if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
lr_componentusage->create_component( ).
endif.
* Get pointer to interface controller of select options
wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
* initialize selction screen
wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
* Create Range Table for: Date
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'DATS'
RECEIVING
RT_RANGE_TABLE = lt_range_table.
* Add Selection Field for: Date
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = '<name of date attribute in the context>'
* I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
* I_DESCRIPTION =
* I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = lt_range_table
* I_OBLIGATORY = ABAP_FALSE
* I_COMPLEX_RESTRICTIONS =
* I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
* I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
* I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
* I_VALUE_HELP_ID =
* I_VALUE_HELP_MODE =
* I_VALUE_HELP_STRUCTURE =
* I_VALUE_HELP_STRUCTURE_FIELD =
* I_HELP_REQUEST_HANDLER =
* I_LOWER_CASE =
* I_MEMORY_ID =
* I_NO_EXTENSION = ABAP_FALSE
* I_NO_INTERVALS = ABAP_FALSE
* I_AS_CHECKBOX = ABAP_FALSE
* I_AS_DROPDOWN = ABAP_FALSE
* IT_VALUE_SET =
* I_READ_ONLY = ABAP_FALSE
* I_DONT_CARE_VALUE =
* I_EXPLANATION =
I_TOOLTIP = 'Select Date'.
8: To Fetch Data entered in the selection field, write following code on action of button click:
data:
lt_date type REF TO DATA.
FIELD-SYMBOLS:
<fs_date> TYPE table.
* retrieve Date from Select Options
CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = '<attrib_name>'
RECEIVING
RT_RANGE_TABLE = lt_date.
* assign Date Field Symbol
ASSIGN lt_date->* to <fs_date>.
9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of WDR_SELECT_OPTIONS component.
Regards,
Reema. -
Restrict Select-Options for Logical Database field
The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
Thanks,
Falguni
Edited by: Falguni V on Nov 13, 2010 6:42 AMYou can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.
-
I have problem in select options
Hi All,
i did one report, i have one one variable that is ranges:R_TRNTYP FOR J_1IEXCDTL-TRNTYP.
R_TRNTYP contains values(10,11,12,20,21,30,31).when i give 10 then only 10 will be come but 10 ,11,20
values are coming in out put .what can i do .give me suggitions.
Thanks .Hi,
If the value is present in the ranges it will take all of them.. You cannot control that.. Instead its better to use select options for proving range.. If you want the value like ' 10,11,12,15,16'.. in your output then while testing just add the value from 10-16 in the GREEN tab in ranges of select-option in the selection screen and enter the value '13,14' i.e. the one's which you dont want in the RED tab for either single/range value..
Hope i am clear.. -
Requirement to maintain select-options for multiple fileds in webdynpro aba
Hello Gurus,
We have a requirement to maintain select-options for multiple fileds in webdynpro abap.
now we are able to create select-options for a single field using wdr_select_options componet usage.
how can we achive this select-options feature for multiple fields.
Could anyone please suggest solutions?
and if possible send me the sample code for this requirement.
Thanks in Advance for your replies.
Regards,
ShyamHi,
Nothing different for more fields, same. some declaration changes.
For example code i am using.. in WDDOINIT method.
TYPES:
fiscal_year TYPE RANGE OF GJAHR,
S_KUNNR TYPE RANGE OF J_3RS_KUNNR,
S_VKORG TYPE RANGE OF VKORG_RAN,
status type PVWTY-RETPA,
ty_r_date TYPE RANGE OF s_date,
ty_s_date TYPE LINE OF ty_r_date.
DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* Reference variable used instantiate the select-options component
DATA
lr_cmp_usage TYPE REF TO if_wd_component_usage.
* Variables used to create the select-options fields and
* define its initial values
DATA:
lr_field TYPE REF TO data,
ls_date TYPE ty_s_date.
FIELD-SYMBOLS:
<fs_field> TYPE ANY,
<fs_range> TYPE INDEX TABLE.
* Instantiate the select-options component
lr_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
lo_interfacecontroller = wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_sel_opt = lo_interfacecontroller->init_selection_screen( ).
data : vhelp type wdy_md_value_help_mode_enum .
* Sets the helper reference
wd_this->m_sel_opt1 = wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_helper = wd_this->m_sel_opt1->init_selection_screen( ).
* Hide the standard select-options components.
wd_this->m_helper->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
lr_field = wd_this->m_helper->create_range_table( `KUNNR` ).
wd_this->m_helper->add_selection_field(
i_id = `KUNNR`
I_DESCRIPTION = 'Customer Code'
* i_within_block = `BL01`
it_result = lr_field ).
FREE lr_field.
lr_field = wd_this->m_helper->create_range_table( `VKORG` ).
wd_this->m_helper->add_selection_field(
i_id = `VKORG`
I_DESCRIPTION = 'Sales Organization'
* i_within_block = `BL01`
it_result = lr_field ).
FREE lr_field.
Go through this..
http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages
Cheers,
Kris.
Maybe you are looking for
-
Disk Repair-Repair Permissions
Half-way through the process I get an error message. I've used Disk Warrior, re-booted, and I still get the same thing. Should I try using the system disk as a boot disk and repair permission from there? Any other ideas? I have a pretty funky collect
-
How do I stop a pop up window that states java - 80x24 on startup?
-
Extending Employee End Date...urgent!!
Hello I saw that there is APPS.HR_PERSON_API.This has update_person and update_us_person procedures for extending the end_date of an employee. May I know which one is the correct one to use please advice thanks Edited by: user8612301 on Dec 28, 2011
-
I am at a little stopping point and could use some asistance... I am configuring remoted management for our various systems. I utimately need to only allow certain users to "ard_interact" on certain machine and other users to "ard_manage" / "ard_admi
-
Dear All, Can you give pointers how do I get a list of all sap standard objects, which have been changed by the customer. Regards