How to get accurate date on current-dateTime function?
I am new to oracle ESB. Using a DBAdapter, was trying to populate a table row column with sysdate. So, used current-dateTime in xsl mapping. Works well, I can insert time, but this time is always 1 hour greater than current time. Is there something I need to do without substracting 1 hour from it?
We have the server & the application running in the same time zone.
Please suggest.
ESB is always trouble when trying to debug these issues.
If you go to enterprise manager. When you login you should see a link to oc4j_soa, select this. If not select home.
Select the Administration tab.
Select the Logger Configuration link.
search on esb, make sure it is lower case.
Find the entry oracle.tip.esb.server.service, make change the logging level to fine.
This should display the variables being passed in the xml.log file.
Is the time zone the same as the database?
Its looking like you might have to raise a SR for this as the application should not be changing the time.
cheers
James
Similar Messages
-
How to get the date starting from 1 to the current date from the system dat
Dear all,
Please tell me how to get the date starting from 1 based on the system date
and it should come with respect of time also.
example.
suppose today is 6 Dec, 2006
so ABAP report should find the 1 dec. 2006.
Please help me as soon as possible.
Regards,concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
or yo ucan use the fm:
HR_JP_MONTH_BEGIN_END_DATE
usage:
call function 'HR_JP_MONTH_BEGIN_END_DATE'
exporting
iv_date = sy-datum
importing
ev_month_begin_date = gv_begda
ev_month_end_date = gv_endda.
Regards,
Ravi
Message was edited by:
Ravi Kanth Talagana -
How to get purchasing data from SAP R/3 to OWB (Oracle warehouse builder).
Hi,
My name is Pavan Tata. I work as a SAP BW developer. Here is the situation at my client place. Client decided to retire BW system and wants to replace with OWB(Oracle warehouse). In all this currently we have purhchasing application in BW production system and wants to move this application to OWB for the same type of reporting what they are getting currently.
Here is my question:
How to get purchasing data from SAP R/3 to OWB(Warehouse) with initial full loads and deltas mechanism in the same way as we do in BW.
Please help on this, also send me any documentation about this if you have.
Thanks,
Pavan.Hello,
here is a short report which converts S012 entries to strings with separator semicolon. Perhaps this will help you?
Regards
Walter Habich
REPORT habitest2 LINE-SIZE 255.
TYPES:
strtab_t TYPE TABLE OF string.
CONSTANTS:
separator VALUE ';'.
DATA:
it_s012 LIKE s012 OCCURS 0,
wa_s012 LIKE s012,
strtab TYPE strtab_t,
strele TYPE string.
SELECT * FROM s012 INTO TABLE it_s012 UP TO 100 ROWS.
PERFORM data_to_string
TABLES
strtab
USING
'S012'. "requires it_s012 and wa_s012
LOOP AT strtab INTO strele.
WRITE: / strele.
ENDLOOP.
*& Form data_to_string
FORM data_to_string TABLES strtab TYPE strtab_t
USING ittab TYPE any.
DATA:
h_zaehler TYPE i,
line_str TYPE string,
l_tabellenname(10) TYPE c,
l_arbeitsbereichsname(10) TYPE c,
h_string TYPE string,
h_char(255) TYPE c.
FIELD-SYMBOLS: <l_tabelle> TYPE ANY TABLE,
<l_arbeits> TYPE ANY,
<feldzeiger> TYPE ANY.
CLEAR strtab.
CONCATENATE 'IT_' ittab INTO l_tabellenname.
ASSIGN (l_tabellenname) TO <l_tabelle>.
CONCATENATE 'WA_' ittab INTO l_arbeitsbereichsname.
ASSIGN (l_arbeitsbereichsname) TO <l_arbeits>.
LOOP AT <l_tabelle> INTO <l_arbeits>.
CLEAR: h_zaehler, line_str.
line_str = ittab.
DO.
ADD 1 TO h_zaehler.
ASSIGN COMPONENT h_zaehler OF
STRUCTURE <l_arbeits> TO <feldzeiger>.
IF sy-subrc <> 0. EXIT. ENDIF.
WRITE <feldzeiger> TO h_char LEFT-JUSTIFIED. "#EC *
h_string = h_char.
CONCATENATE line_str separator h_string INTO line_str.
ENDDO.
APPEND line_str TO strtab.
ENDLOOP.
ENDFORM. "data_to_string -
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get communication data in CRM 7.0
In CRM 7.0 with CCS active.
How to get communication data (Current phone #) that is presently active while creating Interaction Record or during account confirmation.
Thanks,
Nilesh P.Hi,
This problem is related to IC and not related to Marketing Campaign.
At this movement I hv resolved this problem by storing phone # in memory variable by some other way.
But I would be more interested to know Communication Data in 'Context area' of IC.
Thanks & Regards,
Nilesh P. -
[ASK] How to get system date and substring / concate in data manager dynami
Hello guys.
I want to run package DM with the input have default value.
The selection is look like this :
Dimension : CATEGORY
Source : PLAN_2011
Destination : FORECAST_2011
Dimension : TIME
Source : 2011.JAN,2011.FEB,2011.MAR,2011.APR,2011.MAY,2011.JUN,2011.JUL,2011.AUG,2011.SEP,2011.OCT,2011.NOV,2011.DEC
Destination : <same>
How to get system date year and do the substring / concate ?
So dimension category source will be PLAN_<YYYY>, destination = FORECAST_<YYYY>
Dimension source = <YYYY>.JAN,<YYYY>.FEB,<YYYY>.MAR,<YYYY>.APR,<YYYY>.MAY,<YYYY>.JUN,<YYYY>.JUL,<YYYY>.AUG,<YYYY>.SEP,<YYYY>.OCT,<YYYY>.NOV,<YYYY>.DEC
Depend on year system date.
Thank you.Stuart,How are you storing OnSaleDate. If you are using OnSaleDate as an attribute dimension then you can write a Custom Defined Function to either:1- query your system for the current date and return the number of seconds that have elapsed since 1/1/1970. This is by definition the begining of the Epoch and how Essbase treats Attribute Dimensions of the Date type.public static long getDateInSeconds() { Calendar cal = Calendar.getInstance(); return cal.getTime().getTime()/1000;}2- Write a Custom Defined Function that will accept the OnSaleDate and return the number of days sincepublic static double daysSince(double myDate) { return (getDateInSeconds()-myDate )/86400;}
-
How to get currect date by using month and year
hai,
By using month like 'Jul' and year like 2007 i want to get full date like 01/06/2007(format).Please give me query for this?My fields for month and year are respectively vr_mnth(varchar) and in_year(number)i used to_date function but it accepts only one string .if i give like this
to_date(vr_mnth,in_year,'dd/mm/yy') it will gives me syntax error.
If i give like this vr_mtnh='Jan'
to_date(vr_mtnh,'Mon') it will give output
01/01/2008 it shows me current year
if i choose from table wich is strored with month-'Jul' and year=2006 it shows me
01/07/2008 only .It doesn't shows me that 2006 year
If i give in_year in to_date it gives me that currect year.
Ex:to_date(in_year,'YY')..............>01/01/2006
Individually to_date function works fine but i want to club both to get accurate date format of specified month and year.Is there any function for that in sql to get 01/07/2006? -
HI All,
I have an query, i have data like how to get filtered data
i have data like below
we have started this report with below data for Oct 2014 to Dec 2014
QUARTER
STATE
COUNT
Oct 2014 - Dec 2014
U.P
70
Oct 2014 - Dec 2014
M.P
0
Oct 2014 - Dec 2014
BIHAR
3
Oct 2014 - Dec 2014
MAHA
50
Oct 2014 - Dec 2014
RAJ
3
so it was very easy to generate report
then we get data for Jan 2014 to March 2014
QUARTER
STATE
COUNT
Oct 2014 - Dec 2014
U.P
70
Oct 2014 - Dec 2014
M.P
0
Oct 2014 - Dec 2014
BIHAR
3
Oct 2014 - Dec 2014
MAHA
50
Oct 2014 - Dec 2014
RAJ
3
Jan 2014 - Mar 2014
U.P
77
Jan 2014 - Mar 2014
M.P
1
Jan 2014 - Mar 2014
BIHAR
4
Jan 2014 - Mar 2014
MAHA
77
Jan 2014 - Mar 2014
RAJ
5
so we applied filter on quarter manually for generating the report
now we have data like below
QUARTER
STATE
COUNT
Oct 2014 - Dec 2014
U.P
70
Oct 2014 - Dec 2014
M.P
0
Oct 2014 - Dec 2014
BIHAR
3
Oct 2014 - Dec 2014
MAHA
50
Oct 2014 - Dec 2014
RAJ
3
Jan 2014 - Mar 2014
U.P
77
Jan 2014 - Mar 2014
M.P
1
Jan 2014 - Mar 2014
BIHAR
4
Jan 2014 - Mar 2014
MAHA
77
Jan 2014 - Mar 2014
RAJ
5
Apr 2014 - Jun 2014
U.P
186
Apr 2014 - Jun 2014
M.P
18
Apr 2014 - Jun 2014
BIHAR
74
Apr 2014 - Jun 2014
MAHA
189
Apr 2014 - Jun 2014
RAJ
68
now as per new requirement they want only this quarter data of Apr 2014 to Jun 2014
Apr 2014 - Jun 2014
U.P
186
Apr 2014 - Jun 2014
M.P
18
Apr 2014 - Jun 2014
BIHAR
74
Apr 2014 - Jun 2014
MAHA
189
Apr 2014 - Jun 2014
RAJ
68
and requirement like we have to automate this process . means report should contain only current quarter value.
so my query is how to achieve this
please suggest
I am using SAP BO 3.1
Thanks in advance
JeetHi Jeet,
You can try this-
Create variable
V_Quarter= if Left(<QUARTER>,3)="Jan" then 1 elseif Left(<QUARTER>,3)="Apr" then 2 elseif Left(<QUARTER>,3)="Jul" then 3 else 4
V_Year= Right(<QUARTER>)
V_CurrQuarter=Quarter(CurrentDate())
V_CurrYear=Year (CurrentDate())
Apply filter on report
V_Quarter= V_CurrQuarter and V_Year=V_CurrYear
-Anuj -
How to copy actual data into current forecast period
Hi gurus.
I need your guidance on how to copy actual data into current forecast period.
This is my case. Let's say I have the following figures for my actuals:
January 2007 Actual = $110,000.
February 2007 Actual = $120,000.
March 2007 Actual = $80,000.
April 2007 Actual = $100,000.
Now, my user want to choose any month as the basis for her forecast for the remaining periods. Let's say, she wanted to choose April 2007 Actual as the basis for the remaining forecast periods, so I should be able to display the following figures in my planning folder:
May 2007 Forecast = $100,000.
June 2007 Forecast = $100,000.
July 2007 Forecast = $100,000.
August 2007 Forecast = $100,000.
September 2007 Forecast = $100,000.
October 2007 Forecast = $100,000.
November 2007 Forecast = $100,000.
December 2007 Forecast = $100,000.
Can someone guide me on how to do that?
Points will be given to good and best answers.
Thanks.Hi Fulham,
Technical answer:
First, you need to allow your user to indicate wich month is the reference for the copy. I suggest you to add a new key figure in your actual layout (a 'customizing' layout) that your user will use as a flag:
January 2007 Actual = $110,000
January 2007 Flag = 0
February 2007 Actual = $120,000
February 2007 Flag = 0
March 2007 Actual = $80,000
March 2007 Flag = 0
April 2007 Actual = $100,000
April 2007 <b>Flag = 1</b>
<i>(Help to a fox or an abap exit you can check that only one month is 'flagged')</i>
Then, in the corresponding level for the data input, you use a function exit in Abap, which will:
- read the previous customizing layout help to API_SEMBPS_GETDATA so you can get the flagged month and its actual amount ($100,000)
- generate the news rows into the table XTH_DATA which will be automatically posted in the level with the actual amount
Is that clear?
Regards, -
How to get changed data in ALV in Web Dynpro for ABAP
METHOD on_data_check .
DATA:
node_spfli TYPE REF TO if_wd_context_node,
node_sflight TYPE REF TO if_wd_context_node,
itab_sflight2 TYPE if_display_view=>elements_sflight.
node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
CALL METHOD node_sflight->get_static_attributes_table
IMPORTING
table = itab_sflight2.
this code is ..get all data(changed and not changed)
but i want get changed data only, not all data.
how to get changed data?
Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AMHi,
To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
To this please do the following in the ALV initialization of the ALV table settings :
lr_table_settings->set_data_check(
IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
You may also do this:
lr_table_settings->set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
In this Event handler, you would find an importing parameter R_PARAM which is a ref type of IF_SALV_WD_TABLE_DATA_CHECK.
The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values. -
How to get all data from nokia to i5s
how to get all data from nokia E71 to i5s???
if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.
-
How to get the data from multiple nodes to one table
Hi All,
How to get the data from multiple nodes to one table.examples nodes are like A B C D E relation also maintained
Regards,
IndraHI Indra,
From Node A, get the values of the attributes as
lo_NodeA->GET_STATIC_ATTRIBUTES( IMPORTING STATIC_ATTRIBUTES = ls_attributesA ).
Similarily get all the node values from B, C, D and E.
Finally append all your ls records to the table.
Hope you are clear.
BR,
RAM. -
How to get the data from pcl2 cluster for TCRT table.
Hi frndz,
How to get the data from pcl2 cluster for tcrt table for us payroll.
Thanks in advance.
Harisumanth.ChPL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
~Suresh -
How to get the data from Pooled Table T157E.
Hi Experts,
How to get the data from Pooled Table T157E.
Any help.
Thanks in Advance,
Ur's Harsha.create some internal table similar to T157E and pass all data as per SPRAS.
After that use internal table in your program as per the requirement.
Regds,
Anil -
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/
Maybe you are looking for
-
Hello,, I have 1 question please,,, does the new 2011 imac 27 inch from USA support or lay any PAL signal ?? as for example I have a friend who lives in the middle east & has kanex xd & he wants to connect it with the imac 27 inch from Satellite rec
-
Dear Apple, I have an iPhone 4 32GB (black), i bought from softbank, japan. Now, I have recently finished a graduate and i'll comeback home in Laos. But i can't continue to use my iphone. Could you please help me to unlock my phone so I can use it wi
-
Hello there, I have recovered data from a bad disk and would like to save it as a movie with QuickTime. But it is always giving me this error message at the end, almost before it finishes saving the file: The movie "Caribou_migration4" could not be s
-
Problem with Adobe in Webdynpro
Hi ya, I deployed a project in which there is an Adobe page where the values are populated by context value attributes. I just configured my SLD and ADS. When I run the project I am able to see the pdf just as a layout without the actual values or im
-
Can Indesign CC 2014 run on a Intel Celeron Processor?
Can Indesign CC 2014 run on a Intel Celeron Processor?