Sort order help for date string in crosstab
Hello All,
I need to calculate the number of calls for service for the last 13 months. Display the number in the report footer by month and year in a grid similar to a crosstab and in ascending date sort order.
Example:
May 2008 1,400
Jun 2008 1,287
Jul 2008 1,290
all months through last full month
May 2009 1,385
I can calculate the number of calls per month and display the month and year by converting the month and year to text. However, I cannot seem to find a way to sort the month and year without some kind of on-going manual intervention. I need to make the report maintenance free for monthly scheduled e-mail distribution in business objects enterprise. Specified order does not work since the column headers will change each month. It needs a sort order formula, but I am not sure how can this be done inside a cross tab?
Any help or suggestions are appreciated!
Thanks,
Wendy Douglass
Hi,
I have a similar cross tab in my report. but only problem is grouping is done based on a parameter GroupBy, which has Day, Week, Month values.
if user selects day or week, cross tab should display column in dd/mm/yy format, if its month, MMM-yy format.
I have created a date formula , GroupBy = Day then Opendate
GroupBy = Week then opendate -dayofweek(opendate)+1
GroupBy = date(year(opendate),month(opendate),1)
and used this date formula as column in cross tab. I tried to format using custom date style...but its not working in cross tab.
if I use totext to format the date formula, data will not be in sorted order...ex, its showing jul-99 before jun-99
can anyone help?
Thanks in Advance,
Jyothi
Edited by: Jyothi Yepuri on Jul 8, 2009 5:27 AM
Edited by: Jyothi Yepuri on Jul 8, 2009 6:10 AM
Similar Messages
-
Error: The sort order specified for distinct count records is incorrect
When processing a measure group with a distinct count measure in it, i get the following error:
"The sort order specified for distinct count records is incorrect."
I have no idea what this means - any ideas?I had the same problem and your fix worked. In more detail, the problematic field was contract_no. I added a named calculation to the table in the Data Source View with the formula CHECKSUM(contract_no). Then I created the distinct count measure on that named calculation. And, lo and behold, the errors disappeared!
Thank you to Frank.
- CindyCindy P Hoskey -
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 -
F4 help for date in select options..
Hi Gurus,
I want a search help for date field which belongs to select options.
I know if it is a parameter we directly map the attribute value to that data element.
Can some help me with this..
Best Regards,
Navin Fernandes.Hi Gurus,
The select options works for date.. I got the solution.
It directly relates to the default data dcitionary help.
Got it from this example: WDR_TEST_SELECT_OPTIONS
Best Regards,
Navin Fernandes. -
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. -
Can Reminders in ML sort/order items per dates?
Can Reminders in ML sort/order items per dates? It was possible when it was part of Calendar in its previous incarnation. Doing it manually is a drag (no pun intended). Seeing uncompleted reminders as well as what is imminent, without sifting through the whole list would be very useful.
ops
i mean
about the 1 screenshot
can i have the list
caeram data exit
iptc core
camera raw
file properties
second screeshot
can i have the filter list
aperture value
exosure time
file type
keywords
and so on
thanks -
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 -
Validation For Date,String and Date in a reports Region
Apex 4
Good day to all apex users How do I validate a apex_item.text if the value is string the user can only input a string value if it is number then the user can input numbers only and if it is a date the user can only input a date values?APEX_ITEMS are not part of the default apex gui... In fact they are just functions which returns html.
You can however do some stuff with the attributes parameters. You can find some cool stuff over here: Re: Validation For Date,String and Date in a reports Region
If you want apex validation you need to create a page validation and loop over your apex_items with apex_application.g_f0x
Br,
Nico -
Hi All,,
i want to add F1 help for data elements.How can i do this.Kindly suggest me the steps to perform this.hi
use this link
http://help.sap.com/saphelp_nw04/helpdata/en/a4/d47ee849e111d189730000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/45/11e39c459d7201e10000000a155369/frameset.htm
Cheers
Snehi
Edited by: snehi chouhan on Jul 24, 2008 11:10 AM -
Problems with F4 help for dates
Hi all.
In a redesign project we use a new structure for the bsp pages. Since the redesign every F4 help for dates is giving us a java script error.
Row: 689
Column: 3
Error: 'document.all.sapDate.style' is NULL or no object
Code: 0
URL: http://<server>:<port>/wbw(bD1..)/main.do
In the first version it was a view with some page fragments included containing the F4 helps.
The new application is a main view containing a changing view over command <bsp:call comp_id="...
Does the difference in place used matter?
I also removed the attribute themeRoot from <htmlb:content ...
Thanks for every hint,
Timo.I have exactly the same problem, someone can tell me how to fix it please ?
Here is my code for the "date" field :
CASE p_column_index.
WHEN 1.
DATA: tv_col1_inputfield TYPE REF TO cl_htmlb_inputfield.
CREATE OBJECT tv_col1_inputfield.
tv_col1_inputfield->id = p_cell_id.
tv_col1_inputfield->cellvalue = 'TRUE'.
tv_col1_inputfield->value = '20000131'.
tv_col1_inputfield->type = 'DATE'.
tv_col1_inputfield->showhelp = 'TRUE'.
tv_col1_inputfield->disabled = 'FALSE'.
p_replacement_bee = tv_col1_inputfield.
Edited by: BB.Fethi on Feb 8, 2010 2:10 PM
Ok sorry for this post, i haven't see the "remove tag htmlb:page"....
Edited by: BB.Fethi on Feb 8, 2010 2:13 PM -
Help for date field not working after upgrade
hi experts,
In our BSP application for a page we had an inputfield (date).
Onvaluehelp for input field we were calling the saphelpdate function.
however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
we have upgraded to SPS 16 recently.
please help me.
regards,
Arvind.Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
DATA: BEGIN OF T_PCONT OCCURS 0,
PCONT LIKE ZPSPERMISOS-PSOBKEY,
END OF T_PCONT.
DATA: BEGIN OF T_FIELDS OCCURS 0.
INCLUDE STRUCTURE help_value.
DATA END OF T_FIELDS.
DATA: BEGIN OF T_VALUES OCCURS 0,
VALUE(60) TYPE c.
DATA: END OF T_VALUES.
DATA: N TYPE i.
SELECTION-SCREEN BEGIN OF BLOCK b20 WITH FRAME TITLE text-b02.
SELECT-OPTIONS:
P_CONT FOR ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
P_INT FOR ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
P_FEC FOR ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,
P_RAZ FOR ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b20.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
PERFORM P_HELP_P_CONT USING P_CONT-LOW.
*& Form P_HELP_P_CONT
FORM P_HELP_P_CONT USING P_P_CONT.
DESCRIBE TABLE T_PCONT LINES N.
IF N EQ 0.
T_FIELDS-FIELDNAME = 'PSOBKEY'.
T_FIELDS-TABNAME = 'ZPSPERMISOS'.
T_FIELDS-SELECTFLAG = 'X'.
APPEND T_FIELDS.
CLEAR T_FIELDS.
SELECT PSOBKEY FROM ZPSPERMISOS
INTO TABLE T_PCONT.
SORT T_PCONT BY PCONT.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
CUCOL = 10
CUROW = 1
TABNAME = 'T_PCONT'
FIELDNAME = 'PCONT'
IMPORTING
SELECT_VALUE = P_P_CONT
TABLES
FIELDS = T_FIELDS
VALUETAB = T_VALUES.
ENDFORM. " P_HELP_P_CONT
Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM -
hi all;
I was working on ESS Leave Request, i am using the standard program SAPMWS20000081H and the service template WS20000081.
Now in the EP view i am unable to get the F4 help for the date field 'Absence From' & 'Absence To'. i have checked the data element used it is 'DATS'.
How to get the F4 help in the view, please help me its of high priority.Hi, I can tell you what we have done. I can see that the original template displays the "Absence from" field this way :
<tr> <td>`SAP_TemplateEditableField("FromDay", fieldLabel=ABSENCEFROM030150.label, fieldLabelWidth="170", name="ABSENCEFROM030150", value=ABSENCEFROM030150, size="10", maxlength="10", marginTop=9, inspectionText=ABSENCEFROMDAY, align="",
required="", width="", onchange="update_checkn(this.SAP_value, this)" )` </td>
</tr>
We modified the template to display it like this :
<tr><td> `SAP_Field("ABSENCEFROM030150","ABSENCEFROM030150", DynproLabelWidth="170")` </td></tr>
We did the same for ABSENCETO040150. So you can play around with the template to generate the F4 button. ( Note that we also added the ~webgui parameter in the service file and set it to 1, this in order to generate the calendar ). Good luck ! -
Help for date compare in sqlite?
Hi all,
How to decide a date is between two date or not? for example, I want to query the tasks in the next week from the sqlite db, how to do?
SELECT * FROM TASK_TD WHERE TASK_DATE > NOW AND TASK_DATE < NEXTWEEK_DATE
That does not work!
Anybody can help me?Thanks a lot.
DavidIf you're using ActionScript (Flex or Flash) for your database, you could also declare your columns as "Date" (i.e. the ActionScript Date class). AIR has added support for Date as a recognized data type in its SQLite implementation:
http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html#columnAffinity
http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html#additionalSQL
By using statement parameters to pass in Date data the ActionScript Date objects are converted when you insert data, and when you retrieve data it automatically comes back as ActionScript Date objects.
Internally in the database, the Date values are stored as SQLite REAL (Unix epoch format) so date comparisons should work fine. For instance, if you want to find all rows with a date in a certain range, you could use this SQL:
SELECT *
FROM mytable
WHERE datecolumn BETWEEN :startdate AND :enddate
Then you'd need to specify the :startdate and :enddate values as parameters:
sqlStatement.parameters[":startdate"] = new Date(2000, 3, 15);
sqlStatement.parameters[":enddate"] = new Date(2005, 6, 13);
2. Add a custom SQLite function for this purpose (see more about it in http://sqlite.org/cintro.html under 'Extending SQLite' section). Note that in such case you'll suffer slow performance if you have large tables (since dates are not indexed correctly).
Unfortunately AIR doesn't support custom functions in SQLite. -
F4 help for Date field and Validation
Hi Friends,
I am new to BSP programming .I knew getting F4 help in normal ABAP.But i don't know in BSP .
I want simple steps to get F4 for a field on Page as well as date field .
and How to valid those entered dates.
Presently i am using length 10 character variable for DATE without F4 help and No validation.
I think you guys will help me out.
Thanks,
Venkat.OWelcome to SDN.
for F4 help with validation for dates you can use the following code.
<htmlb:inputField id = "wf_ad_date"
type = "date"
showHelp = "TRUE"
value = "<%= sy-datum %>"
visible = "true"
disabled = "false"
required = "true"
maxlength = "10"
size = "10"
doValidate = "true"
design = "standard" />
For other type of fields check out this weblog by Thomas Jung
<a href="/people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30 Value Input Help Popups Version 3.0</a>
Regards
Raja
Maybe you are looking for
-
Hi, Need diagnosis with the following error, please: When I perform the steps in the link below and send the text file to my internal ca (by going to submit new request and selecting the txt file), I get the following error: http://technet.microsoft.
-
Parsing xml in clob field remove non utf-8 characters
hi all, i have an issue where a stored procedure runs during a nightly process and parses xml contained in a clob field. There are some records that contain non-utf8(they paste characters from word)characters and therefore the parse fails when using
-
Caution icons while making a book in iPhoto 5
hello. I've been working on two books (large hardbound), and both book layouts are littered with caution icons. For one of the books, it's for all of the images. For the other, they're scattered around. Most of these pictures are at least 1000x1000 p
-
Hello, Here is my client side RMI program: import java.rmi.*; public class MyRemoteClient { public static void main(String args[]) { MyRemoteClient mm = new MyRemoteClient(); mm.go(); public void go(){ try{ MyRemote service2
-
Looking for app: show # of files inside folder
Does anyone know of an app that will show the number of files contained inside a folder on the desktop? I'm looking for something along the lines of the new-mail indicator for the Mail dock icon. Thanks!