KM Search API for "Date" Property
Hi,
I've a problem with the following code.
SearchQueryBuilder searchQueryBuilder = new SearchQueryBuilder();
Calendar c = new GregorianCalendar();
c.set(2005, 05, 30);
searchProperty = new SearchPropertyFormat();
searchProperty.setName("myProp");
searchProperty.setType(String.valueOf(IQueryEntry.PROPERTY_TYPE_DATE));
searchProperty.setValue(c.getTime().toString());
searchProperty.setOperator(String.valueOf(IQueryEntry.PROPERTY_OPERATOR_GREATER));
IQueryEntryList searchQueryEntries = searchQueryBuilder.buildSearchQueryEntries();
where the property "myProp" is defined as "Indexable" and its type is "Date".
This query doesn't retrieve any results.
Any idea?
Thanks,
Marco
See /thread/49078 [original link is broken]
Similar Messages
-
Hi,
I have created an iview in Visual Composer for a query. it contains date field on selection variable fomr. i tried entering date in various format, but it gives an error : variable expects interval value ; enter an interval".
can we provide search help for date field in VC?
Regards,
Sonali.Hi,
You have to create search help it avoid inconsistency.
Thanks & Regards,
Venkat. -
HI all,
I want to attach search help for a DATE field created in screen painter.
For PERNR, PREM is attached. Similarly what is the statndard search help name for DATE field?
Thanks,
Shanthi.Hi ,
Declare the date field as sy-datum ,
parameters : date type sy-datum .
This shud bring the standard search help for date .
Thanks ..Get back for any issues.
Anil -
To implement search help for date and time fields details
how can i implement search help for date and time fields in screen painter
Hi
Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
Aditya -
Search API for searching Business Objects in SAP R/3
Hi All,
As per my requirement i need to search Business Objects from a third party application by writing some java code.
I know only JCO which is useful for to establish a connection from Java to SAP Server and execute the RFC's or BAPI's which are reside in SAP Server.
Can any one help me, it is possible or not to search Business Objects in SAP for example Master Data( Like Employee, Vendor, Customer-) or Transactional Data ( like Sales Order, Purchase Order--), in case if it is possible any Search API is there to use on SAP System and what are the Prerequisites and the Feasibilty.
Its urgent---PLZ help me how to resolve this issue
Thanks in ADV
Regds
RajeshHi,
Good evening and greetings,
Please go through the following link
http://help.sap.com/saphelp_erp2004/helpdata/en/0d/afb8f627878b4fa71ac79508f2358a/frameset.htm
Please reward points if found useful
Thanking you
With kindest regards
Ramesh Padmanabhan -
Search help for date in module pool
Hi experts
i am developing a module pool prog, in the second screen 6 fields are displayed and one of them is date field. I wanna search help for that date field. Plz note the date field is populated from Work area of iternal table.
Plz help me out in solving the issue.
Thanks and Regards,
AlsonHi
We have a lot of Example programs in SAP, have a look at the demo program
<b>DEMO_DYNPRO_F4_HELP_MODULE</b>..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Regards
Sudheer -
Search help for date in ALV grid
I have ALV grid with field type date and search help for this:
ws_field-ref_table = 'ADCP'.
ws_field-ref_field = 'DATE_FROM'.
ws_field-inttype = 'D'
After I have clicked on this key F4 then I see a calendar and I have choosen some date, but in input grid field there aren't
choosen value. Why? Another search helps works perfect except this. Where is the problem?
Edited by: Kosmo on Jul 7, 2009 8:48 AMHi,
Find the code below
TYPE-POOLS: slis.
DATA: it_fcat TYPE slis_t_fieldcat_alv,
wa_fcat LIKE LINE OF it_fcat.
DATA: it_data TYPE vbap_t.
SELECT *
FROM VBAP
INTO TABLE it_data
UP TO 20 ROWS.
wa_fcat-fieldname = 'VBELN'.
wa_fcat-tabname = 'IT_DATA'.
wa_fcat-ref_fieldname = 'VBELN'.
wa_fcat-ref_tabname = 'VBAK'.
APPEND wa_fcat TO it_fcat.
clear wa_fcat .
wa_fcat-fieldname = 'POSNR'.
wa_fcat-tabname = 'IT_DATA'.
wa_fcat-seltext_l = 'Date'.
wa_fcat-ref_fieldname = 'ERDAT'.
wa_fcat-ref_tabname = 'VBAK'.
APPEND wa_fcat TO it_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_interface_check = sy-repid
it_fieldcat = it_fcat
TABLES
t_outtab = it_data
EXCEPTIONS
program_error = 1.
I have derived the above code from WIKi link
https://wiki.sdn.sap.com/wiki/display/Snippets/f4helpforalvgrid+display
Regards,
Murthy. -
How to use the API for DATE, MONTH AND YEAR
I would like to use the java api in .util.calender in the java api to get the date.
How to implement the API for the "DATE","MONTH","YEAR" which are available provide by java?
can someone give me in one complete code?From the Java Developers Almanac 1.4:
Calendar cal = new GregorianCalendar();
// Get the components of the date
int era = cal.get(Calendar.ERA); // 0=BC, 1=AD
int year = cal.get(Calendar.YEAR); // 2002
int month = cal.get(Calendar.MONTH); // 0=Jan, 1=Feb, ...
int day = cal.get(Calendar.DAY_OF_MONTH); // 1...
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // 1=Sunday, 2=Monday, ... -
Hi Gurus,
I have a screen containing fields from an internal table. As I cannot use the 'from dictionary' option in the screen painter attributes, (since internal table field is not in ABAP dictionary), I'm not able to display the search help for a field of type DATS. How can i access the stabdard date search help for my type DATS internal table screen fields?
assistance will be rewarded.
thanx in advance.Hi,
Try this:
On your customizing screen flow,
PROCESS ON VALUE-REQUEST.
Field T_ZT-SDATE " your date field
module create_dateselect.
In your main program:
module create_dateselect.
data:p_date like sy-datum.
CALL FUNCTION 'F4_DATE'
EXPORTING
holiday_calendar_id = 'CN'
display = ' '
IMPORTING
select_date = p_date
EXCEPTIONS
OTHERS = 4.
t_zt-sdate = p_date.
endmodule.
Regards,
Pole -
Customize search help for date.
Dear All ,
Any Idea how we going to customize / standard function the search help for the date by refering to the closing period month and year.
Example this month closing period is 'July 2009', so when user click on the screen search help date button, the search help will pop up only 'July 2009' calender. Not like standard one with different years and months.
I only want 1 month calender.
Any idea ??
Thanks.You may need to look into fm
CALL FUNCTION 'F4_DATE'
EXPORTING
date_for_first_month = sy-datum " <your date>
IMPORTING
select_date = l_select_date
select_week = l_select_week.
or use class CL_GUI_CALENDAR
a®s -
Search help for date field in Editable ALV
Hello Friends,
I am using editable alv using 'reuse_* '.
I have used date as input field. While creating fieldcatlog also i have declared dat as a mkpf-budat.
But i am not getting serach help for date in output.
Is it possible with reuse or i have to go by object oriented ?Hi,
Just pass the Edit option of the fieldcatalog for those specific fields...
fcat-edit = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND' "<---- pass this
i_callback_top_of_page = 'TOP'
is_layout = it_layout
it_fieldcat = it_fcat
i_default = 'X'
i_save = 'A'
it_events = it_event
TABLES
t_outtab = it_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
*& Form USER_COMMAND
* text
* -->R_UCOMM text
* -->RS_SELFIELD text
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&DATA_SAVE'. "<-------check this
PERFORM save_data.
ENDCASE.
ENDFORM. "USER_COMMAND -
Weird character in search result for HitHighlightedSummary property
We have a INTEG search center and display managed property 'HitHighlightedSummary', which is a out of box managed property
One of the results display as below in search result page:
"Issue 9 brings us the latest news from the Home Oxygen Service team … Don't forget to read CorpNEWS next week to get the latest Home Oxygen Service update.  "
Noticed that the last weird character? how does that happen? we have same setup in DEV env, but we don't get this issue, how to track down this issue.The Ascii code 8203 stands for line break :
http://www.fileformat.info/info/unicode/char/200b/index.htm
commonly abbreviated ZWSP ; this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification
A third party editor may be adding them , if they are not originally present in your script/code.
Are you using any such editor tools?
It will be helpful to open a troubleshooting ticket with Microsoft so that we can look at the issue in more depth.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/23804eed-8f00-4b07-bc63-7662311a35a4/why-does-sharepoint-put-in-character-code-8203-in-a-richtext-field?forum=sharepointdevelopment -
F4 ( Search Help ) for date field on the selection screen
Hi Freinds,
i have used WDR_SELECT_OPTIONS In my component, i have one date field on selection screen(BUDAT), for this date field i want seach help
this is my code
create a range table for Posting Date
lt_range_table = wd_this->m_handler->create_range_table(
i_typename = 'BUDAT' ).
add Posting Date to the selection
wd_this->m_handler->add_selection_field( i_id = 'BUDAT'
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
I_VALUE_HELP_ID = '??????'
I_DESCRIPTION = 'Posting Date'
it_result = lt_range_table ).
can any one help me
Thanks
Srinihi sarbjeet
i created search help in dictionary and i used that search help in my program, but still its now working , any other ideas
Thnx
srini -
Hi,
Is there any API/ FM to search for OrganisationUnits based on their Name/ Address?
Best regards, Girishhi
try using
RH_SEARCH_ORGUNIT
regards
Manish
Reward points if helpful -
i`m doing a real estate project using flex.
I need to have a search feature for my site..
so i want a search API for it...
i checked , but it was not successful....
can any one give me the link for it.?This is a very generic question. If you want to do searches of data in Flex, it's possible to search a datagrid for certain text or to search a TextArea. If you have thousands of records stored in a database server-side, they you'd need a server side solution or just a SQL query. Most likely, if you're trying to find a certain text match with items displayed in Flex, the search or match method of the String class will give you what you want.
-Marty [ http://www.theflexguy.com ]
Maybe you are looking for
-
Need help setting up a network with new Airport Extreme
Hey All I need some help. Networks, Wan, WPA it's all greek to me. Here's what I am trying to do, I have a newer imac, an ipod touch, a apple TV and the kids have a laptop running on Vista. I have a DSL internet connection through Verizon with a West
-
My itunes will not open on my laptop I have windows 7
-
How to create odbc (dsn) connection for OBIEE AND INFOR in unix environment
Hi, we are establishing OBIA in Unix environment we set all the things fine but we are getting problem how to create ODBC connection for INFORMATICA AND OBIEE. I searched some blogs thats telling there is a ODBC.INI file we need to configure. but i a
-
when turn imessage on there is a message saying waiting for activation but it doesnt change anybody knows why?
-
I've recently got my N8 and have successfully configured the email for my private account (Virgin) but can not get my business exchange setting to work. I also have an E72 which works well, so I've copied the settings, the problem is you can not set