Week End Date calculates dates in table issues
Greetings All,
I'm working on a LiveCycle Designer ES4 document that has a Week Ending Date MM-DD-YYYY (which need to always be a Saturday) selected in a subform.
I need this Week End Date to then calculate and display the selected Saturday and the previous days in a seperate subform with a table. The days need to display in seperate columns below the header.
This is what I have so far:
TopmostSubform.Page1.Requestor.WeekEndDate::exit - (FormCalc, client)
var endDate = Date2Num($,"MM-DD-YYYY")
var dayOfWeek = Num2Date(endDate, "E")
if (dayOfWeek <> 7) then
xfa.host.messageBox("Ending date must be a Saturday")
$ = null
xfa.host.setFocus("$")
endif
Page1.#subform[1].InputTable.Row1[0].Date7 = Num2Date(endDate - 0, "DD")
Page1.#subform[1].InputTable.Row1[0].Date6 = Num2Date(endDate - 1, "DD")
Page1.#subform[1].InputTable.Row1[0].Date5 = Num2Date(endDate - 2, "DD")
Page1.#subform[1].InputTable.Row1[0].Date4 = Num2Date(endDate - 3, "DD")
Page1.#subform[1].InputTable.Row1[0].Date3 = Num2Date(endDate - 4, "DD")
Page1.#subform[1].InputTable.Row1[0].Date2 = Num2Date(endDate - 5, "DD")
Page1.#subform[1].InputTable.Row1[0].Date1 = Num2Date(endDate - 6, "DD")
However I keep getting an error on the WeekEndDate when selecting a Saturday.
Does anyone have any idea what I'm doing wrong?
Thank you for any help!
-Michelle
Well, I never got an answer from the forum here, but to help out others - here is what I did:
This was all done in FormCalc.
The object WeekEndDate Date/Time Field has a set pattern date{MM/DD/YYYY} in the Object Field Pattern in LiveCycle.
BUT, the Scripting required the pattern to be YYYY-MM-DD
Why? I have no flipping clue. It won't work any other way for me.
Also this item requires a Saturday Date to be chosen. Days of the week are designated by numbers (Sunday = 1, Monday = 2, etc.)
The line <>7 means that if the day is not Saturday (7) then the error message "Ending date must be a Saturday" will appear.
This is the Exit event Script:
TopmostSubform.Page1.Requestor.WeekEndDate::exit- (FormCalc, client)
var endDate = Date2Num($,"YYYY-MM-DD")
var dayOfWeek = Num2Date(endDate, "E")
if (dayOfWeek <> 7) then
xfa.host.messageBox("Ending date must be a Saturday")
$ = null
xfa.host.setFocus("$")
endif
The individual Date cells are set to a Date/Time Field with no pattern set in the Object Field Pattern in LiveCycle.
The coding below designates a MM/DD pattern.
Each individual field has it's own scripting, with the appropriate minus calculation - #
This is the Calculate script for the Sunday cell:
TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date1::calculate - (FormCalc, client)
var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY") - 6
$.rawValue = num2date(dateNum,"MM/DD")
And the Saturday cell, that needed to display the Saturday End Date has the following Script, with NO minus number:
TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date7::calculate - (FormCalc, client)
var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY")
$.rawValue = num2date(dateNum,"MM/DD")
Why did I include this all here?
Because this whole project has been gawd-awful, and hopefully these insights can help another struggle forms designer understand the FormCalc scripting used.
-M
Similar Messages
-
Help needed! ADF Data Control: Navigation Buttons + Table issue.
Hey all!
We are working on a new application using ADF JSF+EJB 3.0 stack and are experiencing a problem with a simple feature we need to implement.
Scenario:
- Creating a data control for a facade session bean and drag a List returned by one of its methods as table;
- Dragging its corresponding navigation buttons (first, previous, next, last) from the data control onto the page.
Issue:
As we press those buttons, we see the page being submitted but but nothing changes in the table...It keep showing the same records all the time (buit-in range navigation works fine though). However, when we manage to drop the collection as a form (with nav buttons included), everything works fine.
We have inspected pagedefs for both cases and could not identify the difference.
Any help would be much appreciated as we need to address the issue asap..
Thanks in advance,
Gustavo
PS: Sorry for my English! ;)Hey, i have the solve to my problem.
In the definition page of the table page i change the propert Refresh (ifNeeded is his default value) to always of the iterator who im using to the table.But i use Toplink, then i had to change the property "Refresh Identity Map Results" to "enabled", that option is in the options of the named queries on queries in the toplinkmap of the current table who im using to my page.
i hope this will be util for you.
That's all
Dany -
Table for PR04 weekly trips with individual dates
We have a couple of ABAPS we are having issues with. these are using tables like PTRV_HEAD & PTRV_SHDR to get trip data. The problem with these tables is they only have a single entry for the week with a Week commencing and week ending date - The data is entered in the weekly view using transaction PR04
What I'm looking for is being able to get the actual day of the week the trip(s) were made, but I can't find where/how SAP stores the data for each individual trip in the week
As an example, if an employee does 1000 miles on Tue 2/8, and 500 on Thurs 4/8. The tables show
Trip 1234, BEGDA 1/8, ENDDA 7/8, Miles 1500
Is there a table that shows something like....
Trip 1234/1, Date 2/8, Miles 1000
Trip 1234/2, Date 4/8, Miles 500
Any help or advice you can give on getting to the individual dates would be appreciated
Thanks
GrahamHi Graham
I don't know if this can help you, because we don't use PR04.
"My" Abap programmer used a function called BAPI_TRIP_GET_DETAILS to get data of a concrete trip.
Best regards,
Paco M -
Hi -
I need to calculate weekending in OBIEE Answers.
The week will start with Sunday and end with Saturday. The week ending date for this week should be Friday of this week.
for example :
7th October 2012 (Sunday) - 13th October 2012(Saturday) Week Ending date should be (12th October 2012)
Thanks!user8021111 wrote:
Hi -
Sorry.. this doesn't solved my issue..
for example in column A I have dates like
Column A Column B(Should be populate the week Ending Date)
30 SEP 2012 05 OCT 2012
01 OCT 2012 05 OCT 2012
02 OCT 2012 05 OCT 2012
03 OCT 2012 05 OCT 2012
04 OCT 2012 05 OCT 2012
05 OCT 2012 05 OCT 2012
06 OCT 2012 05 OCT 2012
07 OCT 2012 12 OCT 2012
08OCT2012 12 OCT 2012
09 OCT 2012 12 OCT 2012
10 OCT 2012 12 OCT 2012
11 OCT 2012 12 OCT 2012
12 OCT 2012 12 OCT 2012
13 OCT 2012 12 OCT 2012
The week ending date should be considered as friday of the week..the week will start from sat and end with sund.. this all should fall under friday of that week..
Sorry for the inconvenience caused... Thanks again.
Thanks,Next time give the examples the first time, it'll be easier to see. Here is the formula for column B:
TIMESTAMPADD(SQL_TSI_DAY, DAYOFWEEK(column_A)*-1+6, column_A) -
Not displaying the data in to the table..wht is the issue
I have problem for the displaying the RFC Model object date in to the table.
I have created the Table in the view, Then i have choosed the "create binding" option in the outLine window to map the perticular RFC model object to the Table to display. The data is not displaying in the table . But the RFC model object contains data. when i am trying to display with MessageMaganger.reporSuccess(). it is diplaying the data.
Can any one tell me what is the issue.First, in your view layout in NWDS, look at the tableview, do you see fieldnames in the columns and rows. If so, then I believe that you have bound correctly. Also, in your executeBAPI method, make sure that it looks something like this.
public void executeBapi_Gl_Acc_Getlist_Input( )
//@@begin executeBapi_Gl_Acc_Getlist_Input()
try{
wdContext.currentBapi_Gl_Acc_Getlist_InputElement().modelObject().execute();
catch (Exception ex)
ex.printStackTrace();
<b> wdContext.nodeOutput().invalidate();</b>
//@@end
Regard,
Rich Heilman -
Day by Day Data exluding week ends and holidays.
Hi,
Can any give me solution for below requirement...
13/06/2007 14/06/2007 15/06/2006 18/06/2007 .. till 20 days
of Lines Processed 15 18 13 19 .........
of Units Processed 17 14 10 11 .........
of Lines P Received 16 19 20 16 .........
of Units P Received 19 22 40 17 .........
here the user will give the input of first value(13/06/2007), now we have to display 19 days after user input(13/06/2007) value and we need to skip the holidays and week ends in the report.
In the above report 16/06/2006 & 17/06/2006 are week ends thats why those 2 days data is not there.
Please suggest me how can we do it this requirement.
Thanks & Regards
Venkatbefore you get a dozen of answers using artifice like all_objects or connect by, I post you this one
create table date_table(d date primary key);
exec for d in 0..10000 loop insert into date_table values(date '1980-01-01'+d);end loop;commit
select d,count(hiredate) from date_table left join emp on (d=hiredate) where d between date '1980-12-01' and date '1980-12-31' group by d order by d;
D COUNT(HIREDATE)
01-DEC-80 0
02-DEC-80 0
03-DEC-80 0
04-DEC-80 0
05-DEC-80 0
06-DEC-80 0
07-DEC-80 0
08-DEC-80 0
09-DEC-80 0
10-DEC-80 0
11-DEC-80 0
12-DEC-80 0
13-DEC-80 0
14-DEC-80 0
15-DEC-80 0
16-DEC-80 0
17-DEC-80 1
18-DEC-80 0
19-DEC-80 0
20-DEC-80 0
21-DEC-80 0
22-DEC-80 0
23-DEC-80 0
24-DEC-80 0
25-DEC-80 0
26-DEC-80 0
27-DEC-80 0
28-DEC-80 0
29-DEC-80 0
30-DEC-80 0
31-DEC-80 0
31 rows selected.Message was edited by:
Laurent Schneider
primary key added for integrity and performance -
Find the data based on week-end ,week-day
Hi,
Db : 11.2.0.1
We have the table LX_CPU_TRACK_DLY
desc LX_CPU_TRACK_DLY
Name Null? Type
SYSTEMDATE DATE
HOST_NAME VARCHAR2(50 CHAR)
USR_PRCT NUMBER(10,5)
SYS_PRCT NUMBER(10,5)
WAIT_PRCT NUMBER(10,5)
IDLE_PRCT NUMBER(10,5)
PHYS_CPU_USD NUMBER(10,5)
RUN_Q NUMBER(10,5)
I want to fetch data based on week end(sat,sun) ,week day(mon-fri) on systemdate column for entire month in two seperate query.
Any suggestions
Thanks
Edited by: 922884 on Nov 22, 2012 11:01 AMHi,
Thanks
ilm-426 21-11-2012 20:38:00
ilm-426 21-11-2012 20:39:00
ilm-426 21-11-2012 20:40:00
ilm-426 21-11-2012 20:41:00
ilm-426 21-11-2012 20:42:00
ilm-426 21-11-2012 20:43:00
ilm-426 21-11-2012 20:44:00
ilm-426 21-11-2012 20:45:00
ilm-426 21-11-2012 20:46:00
ilm-426 21-11-2012 20:47:00
ilm-426 21-11-2012 20:48:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-426 21-11-2012 20:49:00
ilm-426 21-11-2012 20:50:00
ilm-426 21-11-2012 20:51:00
ilm-426 21-11-2012 20:52:00
ilm-426 21-11-2012 20:53:00
ilm-426 21-11-2012 20:54:00
ilm-426 21-11-2012 20:55:00
ilm-426 21-11-2012 20:56:00
ilm-426 21-11-2012 20:57:00
ilm-426 21-11-2012 20:58:00
ilm-426 21-11-2012 20:59:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-426 21-11-2012 21:00:00
ilm-429 21-11-2012 20:01:00
ilm-429 21-11-2012 20:02:00
ilm-429 21-11-2012 20:03:00
ilm-429 21-11-2012 20:04:00
ilm-429 21-11-2012 20:05:00
ilm-429 21-11-2012 20:06:00
ilm-429 21-11-2012 20:07:00
ilm-429 21-11-2012 20:08:00
ilm-429 21-11-2012 20:09:00
ilm-429 21-11-2012 20:10:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:11:00
ilm-429 21-11-2012 20:12:00
ilm-429 21-11-2012 20:13:00
ilm-429 21-11-2012 20:14:00
ilm-429 21-11-2012 20:15:00
ilm-429 21-11-2012 20:16:00
ilm-429 21-11-2012 20:17:00
ilm-429 21-11-2012 20:18:00
ilm-429 21-11-2012 20:19:00
ilm-429 21-11-2012 20:20:00
ilm-429 21-11-2012 20:21:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:22:00
ilm-429 21-11-2012 20:23:00
ilm-429 21-11-2012 20:24:00
ilm-429 21-11-2012 20:25:00
ilm-429 21-11-2012 20:26:00
ilm-429 21-11-2012 20:27:00
ilm-429 21-11-2012 20:28:00
ilm-429 21-11-2012 20:29:00
ilm-429 21-11-2012 20:30:00
ilm-429 21-11-2012 20:31:00
ilm-429 21-11-2012 20:32:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:33:00
ilm-429 21-11-2012 20:34:00
ilm-429 21-11-2012 20:35:00
ilm-429 21-11-2012 20:36:00
ilm-429 21-11-2012 20:37:00
ilm-429 21-11-2012 20:38:00
ilm-429 21-11-2012 20:39:00
ilm-429 21-11-2012 20:40:00
ilm-429 21-11-2012 20:41:00
ilm-429 21-11-2012 20:42:00
ilm-429 21-11-2012 20:43:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:44:00
ilm-429 21-11-2012 20:45:00
ilm-429 21-11-2012 20:46:00
ilm-429 21-11-2012 20:47:00
ilm-429 21-11-2012 20:48:00
ilm-429 21-11-2012 20:49:00
ilm-429 21-11-2012 20:50:00
ilm-429 21-11-2012 20:51:00
ilm-429 21-11-2012 20:52:00
ilm-429 21-11-2012 20:53:00
ilm-429 21-11-2012 20:54:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-429 21-11-2012 20:55:00
ilm-429 21-11-2012 20:56:00
ilm-429 21-11-2012 20:57:00
ilm-429 21-11-2012 20:58:00
ilm-429 21-11-2012 20:59:00
ilm-429 21-11-2012 21:00:00
ilm-495 21-11-2012 20:01:00
ilm-495 21-11-2012 20:02:00
ilm-495 21-11-2012 20:03:00
ilm-495 21-11-2012 20:04:00
ilm-495 21-11-2012 20:05:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:06:00
ilm-495 21-11-2012 20:07:00
ilm-495 21-11-2012 20:08:00
ilm-495 21-11-2012 20:09:00
ilm-495 21-11-2012 20:10:00
ilm-495 21-11-2012 20:11:00
ilm-495 21-11-2012 20:12:00
ilm-495 21-11-2012 20:13:00
ilm-495 21-11-2012 20:14:00
ilm-495 21-11-2012 20:15:00
ilm-495 21-11-2012 20:16:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:17:00
ilm-495 21-11-2012 20:18:00
ilm-495 21-11-2012 20:19:00
ilm-495 21-11-2012 20:20:00
ilm-495 21-11-2012 20:21:00
ilm-495 21-11-2012 20:22:00
ilm-495 21-11-2012 20:23:00
ilm-495 21-11-2012 20:24:00
ilm-495 21-11-2012 20:25:00
ilm-495 21-11-2012 20:26:00
ilm-495 21-11-2012 20:27:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:28:00
ilm-495 21-11-2012 20:29:00
ilm-495 21-11-2012 20:30:00
ilm-495 21-11-2012 20:31:00
ilm-495 21-11-2012 20:32:00
ilm-495 21-11-2012 20:33:00
ilm-495 21-11-2012 20:34:00
ilm-495 21-11-2012 20:35:00
ilm-495 21-11-2012 20:36:00
ilm-495 21-11-2012 20:37:00
ilm-495 21-11-2012 20:38:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:39:00
ilm-495 21-11-2012 20:40:00
ilm-495 21-11-2012 20:41:00
ilm-495 21-11-2012 20:42:00
ilm-495 21-11-2012 20:43:00
ilm-495 21-11-2012 20:44:00
ilm-495 21-11-2012 20:45:00
ilm-495 21-11-2012 20:46:00
ilm-495 21-11-2012 20:47:00
ilm-495 21-11-2012 20:48:00
ilm-495 21-11-2012 20:49:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:50:00
ilm-495 21-11-2012 20:51:00
ilm-495 21-11-2012 20:52:00
ilm-495 21-11-2012 20:53:00
ilm-495 21-11-2012 20:54:00
ilm-495 21-11-2012 20:55:00
ilm-495 21-11-2012 20:56:00
ilm-495 21-11-2012 20:57:00
ilm-495 21-11-2012 20:58:00
ilm-495 21-11-2012 20:59:00
ilm-495 21-11-2012 21:00:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:01:00
ilm-500 21-11-2012 20:02:00
ilm-500 21-11-2012 20:03:00
ilm-500 21-11-2012 20:04:00
ilm-500 21-11-2012 20:05:00
ilm-251 21-11-2012 20:01:00
ilm-251 21-11-2012 20:02:00
ilm-251 21-11-2012 20:03:00
ilm-251 21-11-2012 20:04:00
ilm-251 21-11-2012 20:05:00
ilm-251 21-11-2012 20:06:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:07:00
ilm-251 21-11-2012 20:08:00
ilm-251 21-11-2012 20:09:00
ilm-251 21-11-2012 20:10:00
ilm-251 21-11-2012 20:11:00
ilm-251 21-11-2012 20:12:00
ilm-251 21-11-2012 20:13:00
ilm-251 21-11-2012 20:14:00
ilm-251 21-11-2012 20:15:00
ilm-251 21-11-2012 20:16:00
ilm-251 21-11-2012 20:17:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:18:00
ilm-251 21-11-2012 20:19:00
ilm-251 21-11-2012 20:20:00
ilm-251 21-11-2012 20:21:00
ilm-251 21-11-2012 20:22:00
ilm-251 21-11-2012 20:23:00
ilm-251 21-11-2012 20:24:00
ilm-251 21-11-2012 20:25:00
ilm-251 21-11-2012 20:26:00
ilm-251 21-11-2012 20:27:00
ilm-251 21-11-2012 20:28:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:06:00
ilm-500 21-11-2012 20:07:00
ilm-500 21-11-2012 20:08:00
ilm-500 21-11-2012 20:09:00
ilm-500 21-11-2012 20:10:00
ilm-500 21-11-2012 20:11:00
ilm-500 21-11-2012 20:12:00
ilm-500 21-11-2012 20:13:00
ilm-500 21-11-2012 20:14:00
ilm-500 21-11-2012 20:15:00
ilm-500 21-11-2012 20:16:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:17:00
ilm-500 21-11-2012 20:18:00
ilm-500 21-11-2012 20:19:00
ilm-500 21-11-2012 20:20:00
ilm-500 21-11-2012 20:21:00
ilm-500 21-11-2012 20:22:00
ilm-500 21-11-2012 20:23:00
ilm-500 21-11-2012 20:24:00
ilm-500 21-11-2012 20:25:00
ilm-500 21-11-2012 20:26:00
ilm-500 21-11-2012 20:27:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:28:00
ilm-500 21-11-2012 20:29:00
ilm-500 21-11-2012 20:30:00
ilm-500 21-11-2012 20:31:00
ilm-500 21-11-2012 20:32:00
ilm-500 21-11-2012 20:33:00
ilm-500 21-11-2012 20:34:00
ilm-500 21-11-2012 20:35:00
ilm-500 21-11-2012 20:36:00
ilm-500 21-11-2012 20:37:00
ilm-500 21-11-2012 20:38:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:39:00
ilm-500 21-11-2012 20:40:00
ilm-500 21-11-2012 20:41:00
ilm-500 21-11-2012 20:42:00
ilm-500 21-11-2012 20:43:00
ilm-500 21-11-2012 20:44:00
ilm-500 21-11-2012 20:45:00
ilm-500 21-11-2012 20:46:00
ilm-500 21-11-2012 20:47:00
ilm-500 21-11-2012 20:48:00
ilm-500 21-11-2012 20:49:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-500 21-11-2012 20:50:00
ilm-500 21-11-2012 20:51:00
ilm-500 21-11-2012 20:52:00
ilm-500 21-11-2012 20:53:00
ilm-500 21-11-2012 20:54:00
ilm-500 21-11-2012 20:55:00
ilm-500 21-11-2012 20:56:00
ilm-500 21-11-2012 20:57:00
ilm-500 21-11-2012 20:58:00
ilm-500 21-11-2012 20:59:00
ilm-500 21-11-2012 21:00:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:29:00
ilm-251 21-11-2012 20:30:00
ilm-251 21-11-2012 20:31:00
ilm-251 21-11-2012 20:32:00
ilm-251 21-11-2012 20:33:00
ilm-251 21-11-2012 20:34:00
ilm-251 21-11-2012 20:35:00
ilm-251 21-11-2012 20:36:00
ilm-251 21-11-2012 20:37:00
ilm-251 21-11-2012 20:38:00
ilm-251 21-11-2012 20:39:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:40:00
ilm-251 21-11-2012 20:41:00
ilm-251 21-11-2012 20:42:00
ilm-251 21-11-2012 20:43:00
ilm-251 21-11-2012 20:44:00
ilm-251 21-11-2012 20:45:00
ilm-251 21-11-2012 20:46:00
ilm-251 21-11-2012 20:47:00
ilm-251 21-11-2012 20:48:00
ilm-251 21-11-2012 20:49:00
ilm-251 21-11-2012 20:50:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-251 21-11-2012 20:51:00
ilm-251 21-11-2012 20:52:00
ilm-251 21-11-2012 20:53:00
ilm-251 21-11-2012 20:54:00
ilm-251 21-11-2012 20:55:00
ilm-251 21-11-2012 20:56:00
ilm-251 21-11-2012 20:57:00
ilm-251 21-11-2012 20:58:00
ilm-251 21-11-2012 20:59:00
ilm-251 21-11-2012 21:00:00
ilm-425 21-11-2012 20:01:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:02:00
ilm-425 21-11-2012 20:03:00
ilm-425 21-11-2012 20:04:00
ilm-425 21-11-2012 20:05:00
ilm-425 21-11-2012 20:06:00
ilm-425 21-11-2012 20:07:00
ilm-425 21-11-2012 20:08:00
ilm-425 21-11-2012 20:09:00
ilm-425 21-11-2012 20:10:00
ilm-425 21-11-2012 20:11:00
ilm-425 21-11-2012 20:12:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:13:00
ilm-425 21-11-2012 20:14:00
ilm-425 21-11-2012 20:15:00
ilm-425 21-11-2012 20:16:00
ilm-425 21-11-2012 20:17:00
ilm-425 21-11-2012 20:18:00
ilm-425 21-11-2012 20:19:00
ilm-425 21-11-2012 20:20:00
ilm-425 21-11-2012 20:21:00
ilm-425 21-11-2012 20:22:00
ilm-425 21-11-2012 20:23:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:24:00
ilm-425 21-11-2012 20:25:00
ilm-425 21-11-2012 20:26:00
ilm-425 21-11-2012 20:27:00
ilm-425 21-11-2012 20:28:00
ilm-425 21-11-2012 20:29:00
ilm-425 21-11-2012 20:30:00
ilm-425 21-11-2012 20:31:00
ilm-425 21-11-2012 20:32:00
ilm-425 21-11-2012 20:33:00
ilm-425 21-11-2012 20:34:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:35:00
ilm-425 21-11-2012 20:36:00
ilm-425 21-11-2012 20:37:00
ilm-425 21-11-2012 20:38:00
ilm-425 21-11-2012 20:39:00
ilm-425 21-11-2012 20:40:00
ilm-425 21-11-2012 20:41:00
ilm-425 21-11-2012 20:42:00
ilm-425 21-11-2012 20:43:00
ilm-425 21-11-2012 20:44:00
ilm-425 21-11-2012 20:45:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:46:00
ilm-425 21-11-2012 20:47:00
ilm-425 21-11-2012 20:48:00
ilm-425 21-11-2012 20:49:00
ilm-425 21-11-2012 20:50:00
ilm-425 21-11-2012 20:51:00
ilm-425 21-11-2012 20:52:00
ilm-425 21-11-2012 20:53:00
ilm-425 21-11-2012 20:54:00
ilm-425 21-11-2012 20:55:00
ilm-425 21-11-2012 20:56:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-425 21-11-2012 20:57:00
ilm-425 21-11-2012 20:58:00
ilm-425 21-11-2012 20:59:00
ilm-425 21-11-2012 21:00:00
ilm-428 21-11-2012 20:01:00
ilm-428 21-11-2012 20:02:00
ilm-428 21-11-2012 20:03:00
ilm-428 21-11-2012 20:04:00
ilm-428 21-11-2012 20:05:00
ilm-428 21-11-2012 20:06:00
ilm-428 21-11-2012 20:07:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:08:00
ilm-428 21-11-2012 20:09:00
ilm-428 21-11-2012 20:10:00
ilm-428 21-11-2012 20:11:00
ilm-428 21-11-2012 20:12:00
ilm-428 21-11-2012 20:13:00
ilm-428 21-11-2012 20:14:00
ilm-428 21-11-2012 20:15:00
ilm-428 21-11-2012 20:16:00
ilm-428 21-11-2012 20:17:00
ilm-428 21-11-2012 20:18:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:19:00
ilm-428 21-11-2012 20:20:00
ilm-428 21-11-2012 20:21:00
ilm-428 21-11-2012 20:22:00
ilm-428 21-11-2012 20:23:00
ilm-428 21-11-2012 20:24:00
ilm-428 21-11-2012 20:25:00
ilm-428 21-11-2012 20:26:00
ilm-428 21-11-2012 20:27:00
ilm-428 21-11-2012 20:28:00
ilm-428 21-11-2012 20:29:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:30:00
ilm-428 21-11-2012 20:31:00
ilm-428 21-11-2012 20:32:00
ilm-428 21-11-2012 20:33:00
ilm-428 21-11-2012 20:34:00
ilm-428 21-11-2012 20:35:00
ilm-428 21-11-2012 20:36:00
ilm-428 21-11-2012 20:37:00
ilm-428 21-11-2012 20:38:00
ilm-428 21-11-2012 20:39:00
ilm-428 21-11-2012 20:40:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:41:00
ilm-428 21-11-2012 20:42:00
ilm-428 21-11-2012 20:43:00
ilm-428 21-11-2012 20:44:00
ilm-428 21-11-2012 20:45:00
ilm-428 21-11-2012 20:46:00
ilm-428 21-11-2012 20:47:00
ilm-428 21-11-2012 20:48:00
ilm-428 21-11-2012 20:49:00
ilm-428 21-11-2012 20:50:00
ilm-428 21-11-2012 20:51:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-428 21-11-2012 20:52:00
ilm-428 21-11-2012 20:53:00
ilm-428 21-11-2012 20:54:00
ilm-428 21-11-2012 20:55:00
ilm-428 21-11-2012 20:56:00
ilm-428 21-11-2012 20:57:00
ilm-428 21-11-2012 20:58:00
ilm-428 21-11-2012 20:59:00
ilm-428 21-11-2012 21:00:00
ilm-495 21-11-2012 20:01:00
ilm-495 21-11-2012 20:02:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:03:00
ilm-495 21-11-2012 20:04:00
ilm-495 21-11-2012 20:05:00
ilm-495 21-11-2012 20:06:00
ilm-495 21-11-2012 20:07:00
ilm-495 21-11-2012 20:08:00
ilm-495 21-11-2012 20:09:00
ilm-495 21-11-2012 20:10:00
ilm-495 21-11-2012 20:11:00
ilm-495 21-11-2012 20:12:00
ilm-495 21-11-2012 20:13:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:14:00
ilm-495 21-11-2012 20:15:00
ilm-495 21-11-2012 20:16:00
ilm-495 21-11-2012 20:17:00
ilm-495 21-11-2012 20:18:00
ilm-495 21-11-2012 20:19:00
ilm-495 21-11-2012 20:20:00
ilm-495 21-11-2012 20:21:00
ilm-495 21-11-2012 20:22:00
ilm-495 21-11-2012 20:23:00
ilm-495 21-11-2012 20:24:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:25:00
ilm-495 21-11-2012 20:26:00
ilm-495 21-11-2012 20:27:00
ilm-495 21-11-2012 20:28:00
ilm-495 21-11-2012 20:29:00
ilm-495 21-11-2012 20:30:00
ilm-495 21-11-2012 20:31:00
ilm-495 21-11-2012 20:32:00
ilm-495 21-11-2012 20:33:00
ilm-495 21-11-2012 20:34:00
ilm-495 21-11-2012 20:35:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:36:00
ilm-495 21-11-2012 20:37:00
ilm-495 21-11-2012 20:38:00
ilm-495 21-11-2012 20:39:00
ilm-495 21-11-2012 20:40:00
ilm-495 21-11-2012 20:41:00
ilm-495 21-11-2012 20:42:00
ilm-495 21-11-2012 20:43:00
ilm-495 21-11-2012 20:44:00
ilm-495 21-11-2012 20:45:00
ilm-495 21-11-2012 20:46:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:47:00
ilm-495 21-11-2012 20:48:00
ilm-495 21-11-2012 20:49:00
ilm-495 21-11-2012 20:50:00
ilm-495 21-11-2012 20:51:00
ilm-495 21-11-2012 20:52:00
ilm-495 21-11-2012 20:53:00
ilm-495 21-11-2012 20:54:00
ilm-495 21-11-2012 20:55:00
ilm-495 21-11-2012 20:56:00
ilm-495 21-11-2012 20:57:00
HOST_NAME TO_CHAR(SYSTEMDATE,
ilm-495 21-11-2012 20:58:00
ilm-495 21-11-2012 20:59:00
ilm-495 21-11-2012 21:00:00
1620 rows selected.
Thanks -
Get week ending date from Year and Week Number
I would like to display the week ending date in a Report.
My dataset query has grouped the results by year and week number, so I am trying to construct the week ending date from year and week number.Week end date can be got as below
=DateAdd(DateInterval.WeekOfYear,CInt(Fields!WeekNumber.Value) -1,DateAdd(DateInterval.Year,(Cint(Fields!Year.Value) - 1900),CInt("12/31/1899")))
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Hi All,
I have transaction line data for each day for our customer and i would like to group via Week Ending date. Our week runs from Sunday to Saturday.
If i Add the transaction date to the group expert it allows me to group via week(perfect) but does it via week commencing. I see you can group via formula, does any one know how you can get the grouping via Week Ending.
thanks for any help and advise.
mikeTry using this formula...
DateAdd("ww", DateDiff("ww", #1/6/1900#, {TableName.DateField}), #1/6/1900#)
This formula will calculate the "Following Saturday" for any given date. If the date supplied is a Saturday, it will return that same date.
So...
11/2/2010 > 11/6/2010
11/13/2010 > 11/13/2010
11/14/2010 > 11/20/2010
HTH,
Jason -
Sched.start date not allowing on week-ends for fwd scheduling process order
Hello Experts,
For a process order & scheduling typr forward/in time if I take sat or sunday as a start date then if I click on schedule, system changes it to previous workin day (friday). But however if i select backward/in time scheduling type & put week ends as finish day then system does not change this date.
How can I make system to allow schedule start date on week ends also for forward/in time scheduling type. in a factory calendor sat & sunday are holidays. while for work center, calender sat & sunday are marked as working days.
Thanks for advance,
Vijay.Hi
it depends upon client requirement.you must have defined the holiday calender as well.if you select the public holidays in your factory calender.then system will allow you to do your daily transctions on public holidays as well and vice versa.so better go with all options selected .and plz check at your end
plz revert back if it works
Regards
Anupam Sharma -
Space removed from character data type when move to internal table issue...
Hi Friends,
I converted material code and other details into internal table which have corresponding data types.But in internal table,I can see material code as left justified ,but after that space was removed.For example if material code is 'ABC' then rest of the space(material char(18)) are removed.But I need remaining spaces.I tried to concatenate material code with spaces (caoncatenate matnr ` ` int etc .. )at right side and moved to another internal table.Its working.But the problem is material codes have different values like one material 'ABC' and another like '123893-h' etc.So I need to calculate the space(out of char 18) dynamiclly and need to put space based on material code value.
<< Moderator message - Everyone's problem is important >>
.Thank you all..
Regards,
Kumaran..
Edited by: Rob Burbank on Oct 26, 2010 11:18 AMHi Ramkumaran,
You have not told the purpose of having these spaces.
is it for transfering to a file?
If that is the case, use a table with fixed lenght lines instead of many fields.
i.e. try something like this
DATA : i_tab type standard table of BUSDATA,
wa_tab type BUSDATA.
wa_tab+0(10) = material number.
wa_tab+10(10) = material code.
wa_tab+20(4) = company code...
append wa_tab to i_tab.
Thanks
Vimal -
Hi Experts,
why the delivery date is the same date as ‘transptn plan date” & loading date’ & ‘ good issue’ & GR end date’.
in shipping tab i can see Planned Deliv. Time 170 Days ... wat could be the reason.
Many Thanks:
Raj KashyapHi Jurgen,,
Thanks for quick reply!!
But i didnot find any things like that .. what could be the customizing .. and we are using GATP from APO side.
\Raj Kashyap -
Best way to derive a "week ending" date using the Derived Column Transformations
Hi, I have an interesting challenge. I am working on creating a BI DB that contains timesheet data. The data contains a column representing the date "worked" ([Date]. Nearly all output reporting is based on a timesheeting week that end on
a Wednesday. My thinking has been to create a derived column "WE" (week ending) that represents the entries of the preceding 6 days.
(Originally I entertained deriving this value view SQL view - however we are talking about a DB that is is a substantial DB (excess of 100M timesheet bookings) and an index on the WE field is warranted) so decided a derived WE column was best approach.
The Date field is represented from a SAP format (German long dated format) - however I cannot use the convert option ;( in the TE.
The Date field is derived via: (DT_DATE)(SUBSTRING([Date ],7,4) + "-" + SUBSTRING([Date ],4,2) + "-" + SUBSTRING([Date ],1,2))
I would welcome some recommendation on how to best derive a WE column. (The DT_DATE format is not susceptible to a /7, mod7 operation).
Thanks in advance,
/LTry this solution :
http://stackoverflow.com/questions/1803987/how-do-i-exclude-weekend-days-in-a-sql-server-query -
PDF form Week ending date auto populate
i have a pdf form i am doing. it has a java script to make the week ending date populate other fields and minus a day.
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 0, DateFmt(1));}
endif
this works for the first date, but when i change it to
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 1, DateFmt(1));}
endif
it does not work. any idea what i am doing wrong?
TinaHi Tina,
Well at first look, seems like you mixed FormCalc and JavaScript together...
Num2Date and Date2Num can only be used in FormCalc, and you can't use these { } in FormCalc
You should be using the if (), then, else, elseif, endif for FormCalc
if (WEEK_ENDING.rawValue == null) then
$.rawValue = ""
else
Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 1, DateFmt(1))
or
Num2Date(Date2Num(DateTimeField1.rawValue, "YYYY-MM-DD") + 1, DateFmt(1))
endif -
Week end Date Query...
Hi
I want Week end date for the following Condition.
1.If month start date from sunday or monday mean week end should be Current Sat date other wise i want next saturday as first week end date.
For Eg.. AUG 2006
O/P should be
12-aug-2006
19-aug-2006
26-aug-2006
31-aug-2006
2.If Months Starts from sun or monday mean i don't want last sat in the list
For Eg.. JAN 2006
07-jan-2006
14-jan-2006
21-jan-2006
31-jan-2006
Hlp me
Regards
ManikandanHi jeneesh,
Thanks for giving the query ... For the Below Same query i need
1.If the first week of the month is Sunday Or Monday then week1 ends on the first saturday else week1 ends on the second saturday of the month.
2. Week 2 ends on the next Saturday ( next to the one identified above)
3. Week3 ends on the next Saturday ( next to the one indentified in step 2)
4. Week4 ends on the last day of the Month.
For Eg of JAN-2006, i don't want to display last sat.. insteed of i want to display last day of the month ,
SELECT NEXT_DAY(TO_DATE('JAN-2006','mon-yyyy')+5+(N-1)*7,'SATURDAY') col1
FROM (SELECT ROWNUM N
FROM DUAL
CONNECT BY LEVEL <= 4)
WHERE NEXT_DAY(TO_DATE('JAN-2006','mon-yyyy')+5+(N-1)*7,'SATURDAY') <= LAST_DAY(TO_DATE('JAN-2006','mon-yyyy'))
Maybe you are looking for
-
Can't connect to the iTunes Store nor the AppStore
Since 2 or 3 weeks, I can't connect to the iTunes Store nor the AppStore. When I try to download any app or song, I get prompted to write my password, and as soon as I begin to write it down on the iPhone 4 GSM, the propmt window dissapears and I get
-
Hi, Can OBIEE 11.1.1.7 support authentication of EBS and LDAP together, like: 1. Users automatically logging into OBIEE from EBS 2. Users logging from OBIEE login screen as standalone with LDAP authentication I understand the responsibilities/groups
-
Does the addition of the depot repair module in addition to the customer service module improve the ability to get detailed reports on repairs. Also if you have a repair depot and you bring in a product where you have to fix more than one component,
-
No camera profile showing for Sony RX10 in LR 5.4
I cannot find the Sony RX10 in my camera profile list for lens corrections. I can see the Sony RX1 and Sony RX1r but absolutley nothing for the Sony RX10 which I have imported RAW files from.
-
Re: step by step WEBLOGIC -JMS configuration
Hi everybody I have committed Weblogic - JMS presentation.Plz help me ........... I am not familiar with weblogic server. have any tutorial for weblogic server send me. Thanks