Date/hour CRM's format
Hello,
I am developing a WebService and I would like to update a field with the current date and hour.
This file has Date/hour format.
I have trying with different formats, but anyone is ok:
- MM/DD/YYYY hh:mm:ss
- MM/DD/yyyyy hh:mm:ss
- MM/DD/AAAA hh:mm:ss PM
etc.
Could you provide me the date/hour CRM's format?
Thank you and regards.
This format will work for a 1.0 WSDL
<act:Date>11/01/2010 12:00:00</act:Date>
For a 2.0 WSDL, I set this in the add:
<data:CustomDate0>2011-11-11T12:06:31-10:59</data:CustomDate0>
And when I queried it back I received this
<CustomDate0>2011-11-11T02:06:31Z</CustomDate0>
Similar Messages
-
How to get the Date in a particular format?
Hi,
How to get the Date in the below format? I will be passing the year in my method..
2/10/2003 9:46:52 PM
D/M/YYYY H:M:S A
public Date getDate (String year) {
Here i want to get the Date in this format
2/10/<Passed Year> 9:46:52 PM
ThanksThis is my code
public static Date getCalendar(Calendar calendar,int getYear) {
String formatted_date="";
int year = getYear;
int month = calendar.get(Calendar.MONTH+1);
int day = calendar.get(Calendar.DATE);
int hour = calendar.get(Calendar.HOUR);
int min = calendar.get(Calendar.MINUTE);
int sec = calendar.get(Calendar.SECOND);
int am_pm =calendar.get(Calendar.AM_PM);
formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
System.out.println("formatted_date is "+formatted_date);
o/p : formatted_date is 1/4/2006 1:44:21 PM
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
// DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
Date passdate = new Date();
try {
passdate = dateFormat.parse(formatted_date);
} catch (ParseException e) {
System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
return passdate;
Expected O/P is 3/1/2006 1:44:12 PM
} -
Request: Problem in Extraction of data from CRM to BW
Hi Gurus
I have problems in extracting the data from CRM to BW.I thought you are the one who can solve them:
1) When I check the data in the datasource in RSA3 i can see all records as well as i can see complete data in that but when i extract and check the data in cube i can see all records but i cannot see the complete data i.e some data is missing.
2)And another problem is that In report i have 2 characteristics(DATS) start date and end date now i am trying to get number of days from start date to end date.
I appreciate you in advance. If u find any good documentation please send me to [email protected]
With regards
Nagamani.Hi krishna,
yes we did enhancement to this data source. In PRDOCTION its taking 27 hours time to load data.
For extraction from source system (CRM) its taking nearly 24 hours time as per JOb LOG .
08/05/2010 11:53:08 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 10,849 records
08/05/2010 12:02:02 Result of customer enhancement: 10,849 records
08/05/2010 12:02:03 PSA=0 USING & STARTING SAPI SCHEDULER
08/05/2010 12:02:03 Asynchronous send of data package 1 in task 0002 (1 parallel tasks)
08/05/2010 12:02:06 IDOC: Info IDoc 2, IDoc No. 1576298, Duration 00:00:01
08/05/2010 12:02:06 IDoc: Start = 08/05/2010 10:26:37, End = 08/05/2010 10:26:38
08/05/2010 13:02:38 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 10,958 records
08/05/2010 13:11:48 Result of customer enhancement: 10,958 records
08/05/2010 13:11:52 Asynchronous send of data package 2 in task 0003 (1 parallel tasks)
08/05/2010 13:11:53 tRFC: Data Package = 1, TID = 0AA00D0301984C5AEE8E44DB, Duration = 00:16:
08/05/2010 13:11:53 tRFC: Start = 08/05/2010 12:02:19, End = 08/05/2010 12:18:27
08/05/2010 14:30:13 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 11,296 records
08/05/2010 14:39:53 Result of customer enhancement: 11,296 records
like this its taking 24 hours in extraction its self.
Edited by: kotha123 on Aug 10, 2010 12:08 PM
Edited by: kotha123 on Aug 10, 2010 12:09 PM -
Refresh buffer when rfc gets data from crm and the data was updated from R3
hi all
I have a program in r3 for maintenance of partners, so the user can create or update a CRM partner from the R3 system. if you are updating a partner, the program gets the data from CRM via RFC and saves the changes via zBDoc. if the user modify a partner and then try to check if the info were updated, he needs to leave the transaccion and run it again in order to the RFC gets the data updated. how I can avoid to leave the transaccion? i tried with a buffer refresh and commit but it doesn't works.... any idea?
tnksHi Alan,
THANK YOU for that hint. That brought me a giant step further, seriously! Many thanks! Now my report is running and hourly creating an instance, reeally nice!
But of course, the next problem is arising rapidly: Now that I got my report creating instances, the funny thing happening is the following: I created the WebI report with the WebI-Rich Client and then saved it to the server. In InfoView I scheduled the instance creation and the strange thing is now: The values differ. In the original report the values for some percentage ratios (e.g. 50%) show up as they should with four decimals: 0,5000 (German way of displaying numbers with decimals). BUT: In the instances of the same report, exactly these numbers would appear as 0,0000. So the numbers would just not be displayed! But all other numbers (all numbers not having decimals) would show up as they are supposed to even in the instances of the report.
This is kind of strange to me. Does anybody have a clue what the problem might be?
Many thanks again! And I hope I am not bothering you guys with these "newbie" questions.
Thanks and best regards,
Kai -
Excel date to Numbers text format troubles
I've been sent an Excel .xls document which I'm opening in Numbers '09 (2.1).
The spreadsheet has a date column which I need to be in text format as dd/mm/yyyy. I expected the original Excel document to have the dates already in text format but Numbers says the fields are 'Custom' and shows the dates in US format: 11/04/2011, even although my Mac is set to UK format. No matter, I can set the cells to text format, however that results in the date being shown as 04/11/00002011.
Where did those extra zeros in the year come from!?
How can I reformat the dates to the dd/mm/yyyy format as text?
I've tried a couple of formula to create a new column
=Year(A1)
for example and I think I could recreate the date like that, but the cell must be text format.
DGHere is the script required to peek dates from Numbers then poke them in Numbers.
--{code}
Apply this script to a Numbers table containing :
B2 : 1943/12/31 23:59
B3 : 1789/07/14
B4 : 2010/01/01 00:12
B5 : = NOW()
set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
repeat with r from 2 to 5
set thenumbersdate to value of cell r of column 2
set value of cell r of column 3 to thenumbersdate as text
set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
tell cell r of column 4
set format to text
set value to thenumbersdate as text
end tell
tell cell r of column 5
set format to text
set value to short date string of thenumbersdate
end tell
end repeat
end tell
--=====
set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
Handlers by Nigel GARVEY
http://macscripter.net/viewtopic.php?id=36449
(* Convert an ISO-format date string to an AppleScript date. *)
on isotToDate(isot)
set n to (text 1 thru 8 of isot) as integer
set ASDate to (current date)
tell ASDate to set {day, year, its month, day} to {1, n div 10000, n mod 10000 div 100, n mod 100}
if ((count isot) > 8) then
set n to (text 10 thru 15 of isot) as integer
set ASDate's time to n div 10000 * hours + n mod 10000 div 100 * minutes + n mod 100
end if
return ASDate
end isotToDate
--=====
(* Transpose an AppleScript date/time from the given time zone to GMT. *)
on TZtoGMT(TZDate, TZ)
-- The difference between TZDate when it's local and the GMT date we want is usually
-- the same as the difference between the local date when TZDate is GMT and TZDate itself …
set GMTDate to TZDate - (GMTtoTZ(TZDate, TZ) - TZDate)
-- … but not around the time the clocks go forward. If the GMT obtained doesn't reciprocate to TZDate,
-- shift to a nearby local date where the above DOES work, get a new GMT, unshift it by the same amount.
set testDate to GMTtoTZ(GMTDate, TZ)
if (testDate is not TZDate) then
if (GMTDate > testDate) then -- "Clocks forward" is towards GMT.
set shift to GMTDate - testDate
else -- "Clocks forward" is away from GMT.
set shift to -days
end if
set nearbyDate to TZDate + shift
set GMTDate to nearbyDate - (GMTtoTZ(nearbyDate, TZ) - nearbyDate) - shift
end if
return GMTDate
end TZtoGMT
--=====
(* Transpose an AppleScript date/time from GMT to the given time zone. *)
on GMTtoTZ(GMTDate, TZ)
-- Subtract date "Thursday 1 January 1970 00:00:00" from the GMT date. Result in seconds, as text.
copy GMTDate to date19700101
tell date19700101 to set {year, its month, day, time} to {1970, 1, 1, 0}
set eraTime to (GMTDate - date19700101)
if (eraTime > 99999999) then
set eraTime to (eraTime div 100000000 as text) & text 2 thru 9 of (100000000 + eraTime mod 100000000 as integer as text)
else if (eraTime < -99999999) then
set eraTime to (eraTime div 100000000 as text) & text 3 thru 10 of (-100000000 + eraTime mod 100000000 as integer as text)
else
set eraTime to eraTime as text
end if
return isotToDate(do shell script ("TZ='" & TZ & "' /bin/date -r " & eraTime & " +%Y%m%dT%H%M%S"))
end GMTtoTZ
--=====
--{code}
Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:14:26
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
Changing my current system date to a different format
Hello to all. I am posting a question that you may find to be an easy answer, but I have been trying to figure this out for quite awhile now. I cannot figure out how to take my current system time and change it to the format I want it to be. My code is as follows:
public void changeCurrentTimeFormat()
Date date = new Date();
System.out.println(date);
String strDate = date.toString();
DateFormat df = new SimpleDateFormat("EEE/MMM/dd hh:mm aa");
df.parse(strDate, new ParsePosition(0)); // also tried: df.format(strDate);
System.out.println(date)
This is not changing anything I have looked everywhere and I can't find any help on this. Help on this would be great. Thanks.so if I wanted to compare two dates I could take the current date:
String strDate1;
Date date1 = new Date();
strDate1 = date1.toString();
DateFormat df = new SimpleDateFormat("EEE/MMM/ddd hh:mm");
strDate1 = df.format(strDate1);Then I could take a user inputted date such as:
System.out.println("Please enter your date: day/month/date hour:minutes");
Scanner keyboard = new Scanner(System.in);
String strDate2 = keyboard.nextLine();Then I could compare the date by instead comparing the strings?
strDate2.compareTo(strDate1); -
Hello guru's
I have a requirment like when i execute bw report that report data should be called to crm.
1.Please tell me which functional module to be used or suggest me any procedure.
2.Tell me how to populate the report data into a table.And can we pull that bw table data into crm z table
Help me..
Thanks
VenkatHi Venkat,
For 2 point:
if you are in release < 3.5 you can use Tcode RSCRM_BAPI to produce a flat file from a query in CSV format.
if you are already in => 3.5 you can check for APD.
You can also use Openhub-InfoSpoke to produce flat file to feed other SAP systems.
Ciao.
Riccardo. -
Extraction of data from CRM to BW for datasource 0crm_quotation_I
Hi,
Extraction of data from CRM to BW for data source 0CRM_QUOTATION_I is taking 27 hours of time to load data into ODS for 1 million records.
Here I am doing FULL LOAD with 4 Infopackages in parllel with different select-options.Even I tried DELTA load but it hasn't worked out properly.
Is there any solution to reduce time from Datasource to ODS with FULL LOAD. Please help me.Hi krishna,
yes we did enhancement to this data source. In PRDOCTION its taking 27 hours time to load data.
For extraction from source system (CRM) its taking nearly 24 hours time as per JOb LOG .
08/05/2010 11:53:08 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 10,849 records
08/05/2010 12:02:02 Result of customer enhancement: 10,849 records
08/05/2010 12:02:03 PSA=0 USING & STARTING SAPI SCHEDULER
08/05/2010 12:02:03 Asynchronous send of data package 1 in task 0002 (1 parallel tasks)
08/05/2010 12:02:06 IDOC: Info IDoc 2, IDoc No. 1576298, Duration 00:00:01
08/05/2010 12:02:06 IDoc: Start = 08/05/2010 10:26:37, End = 08/05/2010 10:26:38
08/05/2010 13:02:38 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 10,958 records
08/05/2010 13:11:48 Result of customer enhancement: 10,958 records
08/05/2010 13:11:52 Asynchronous send of data package 2 in task 0003 (1 parallel tasks)
08/05/2010 13:11:53 tRFC: Data Package = 1, TID = 0AA00D0301984C5AEE8E44DB, Duration = 00:16:
08/05/2010 13:11:53 tRFC: Start = 08/05/2010 12:02:19, End = 08/05/2010 12:18:27
08/05/2010 14:30:13 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 11,296 records
08/05/2010 14:39:53 Result of customer enhancement: 11,296 records
like this its taking 24 hours in extraction its self.
Edited by: kotha123 on Aug 10, 2010 12:08 PM
Edited by: kotha123 on Aug 10, 2010 12:09 PM -
0CRM_SALES_ACT_1 takes a long time to extract data from CRM system
Hi gurus,
I am using the datasource 0CRM_SALES_ACT_1 to extract activities data from CRM side. However, it is taking too long time to get any information there.
I applied the SAP NOTE 829397 (Activity extraction takes a long time: 0crm_sales_act_1) but it did not solve my problem.
Does anybody knows something about that?
Thanks in advance,
Silvio Messias.Hi Silvio,
I've experienced a similar problem with this extractor. I attempted to Initialize Delta with Data Transfer to no avail. The job ran for 12+ hours and stayed in "yellow" status (0 records extracted). The following steps worked for me:
1. Initialize Delta without Data Transfer
2. Run Delta Update
3. Run Full Update and Indicate Request as Repair Request
Worked like a champ, data load finished in less than 2 minutes.
Hopefully this will help.
Regards.
Jason -
Failed to load data from CRM On Demand. ServerThe server is temporarily una
Hi,
I would just like to ask if any of you are encountering this error when sending SOAP requests to CRMOD. Is this just because CRM On-Demand is down?
Failed to load data from CRM On
Demand. ServerThe server is temporarily unavailable. Please try again later.
thanks,
JohnHi Royston,
The instance that we are accessing is: https://secure-ausomxdsa.crmondemand.com.
I assume that it's a test environment. So I navigated to (https://ebusiness.siebel.com/odcustomercare/support/alerts/staging/index.asp) "Staging & Test Environments" -> "Planned Maintenance - Staging" (since there is no Testing link) and saw a calendar of downtimes which didn't quite match-up to the date when we encountered the error. We encountered the error on November 25, which was marked on the calendar as a planned 8-hour downtime. During that day we didn't encounter continuous downtime but just erratic spurs of the the error. Am I looking in the right place? Thanks -
Need info on Standard Web services to pull Order data in CRM from external applications
Hi Gurus,
I have a requirement to pull Order data in CRM from external non-sap application using Web services. Are there any standard SAP provided web services to pull order data based on some input? If yes, can you provide me any kind of documentation related to this?
Appreciate your help on this.
Thanks
LakshmanHi Lakshman,
I have checked further.
Please review below link of the SAP Help documentation :
http://help.sap.com/saphelp_nw70/helpdata/en/47/3a989cbcef2f35e10000000a1553f6/content.htm?frameset=/en/46/97218e79f115eae10000000a114a6b/frameset.htm¤t_toc=/en/d1/802cfc454211d189710000e8322d00/plain.htm&node_id=439&show_children=false
and also the link :
–http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=347DD31EB5AB4BC592BD8B29C0981A1B
Hoping that this will be helpful.
Best regards - Christophe -
Problem with upload data from CRM to BI system
When I try to perform full upload data from CRM to BI system with data source 0BPARTNER_ATTR (active version: Excutable). I waited for a long time but there are not any records were transfered (total records need to upload are 130) . I checked the log and can't find any errors.
Pls help me solve this problem.
Thanks and regardHi,
on the next day, the process finished with status not success.
The detail errors is:
Extraction(messages): Missing messages
Missing message: Request received
Missing message: Number of sent records
Missing message: Selection completed
Transfer (IDocs and TRFC): Errors occurred
Data package 1: arrived in BW; Processing: Selected number does not agree with transferred n
Request IDoc: Application document posted
Info IDoc 2: sent, not arrived; Data passed to port OK
Info IDoc 1: sent, not arrived; Data passed to port OK
Info IDoc 3: sent, not arrived; Data passed to port OK
Info IDoc 4: sent, not arrived; Data passed to port OK
However, the data has been uploaded to infoobject. Pls explain to me about this error and why the data can be uploaded with this error.
Regard -
Restored our SSRS 2008 R2 from one server to another; Dates are in UK format and not US
We have restored our SSRS 2008 R2 from one server to another. The original server was in US locale/culture. The new server was in UK locale/culture, when the restore happened. However it should have been in US locale/culture. We have made this change and
new reports work OK.
However existing reports (i.e. saved by a user) are still trying to use the US dates in a UK format and as a result throwing a date cant be below 1753 error.
Has anyone seen this issue before or have any idea what we need to do to fix it?
Thanks
KimberladHi Kimberlad
Have you checked any changes in the Collation?
Please verify Reporting Server Databases and Server Collation is there any mismatch with your Source Server.
and also please post complete Error message..
Nag Pal MCTS/MCITP (SQL Server 2005/2008) :: Please Mark Answer/vote if it is helpful :: -
External table: How to load data from a fixed format UTF8 external file
Hi Experts,
I am trying to read data from a fixed format UTF8 external file in to a external table. The file has non-ascii characters, and the presence of the non-ascii characters causes the data to be positioned incorrectly in the external table.
The following is the content's of the file:
20100423094529000000I1 ABÄCDE 1 000004
20100423094529000000I2 OMS Crew 2 2 000004
20100423094529000000I3 OMS Crew 3 3 000004
20100423094529000000I4 OMS Crew 4 4 000004
20100423094529000000I5 OMS Crew 5 5 000004
20100423094529000000I6 OMS Crew 6 6 000004
20100423094529000000I7 Mobile Crew 7 7 000004
20100423094529000000I8 Mobile Crew 8 8 000004
The structure of the data is as follows:
Name Type Start End Length
UPDATE_DTTM CHAR 1 20 20
CHANGE_TYPE_CD CHAR 21 21 1
CREW_CD CHAR 22 37 16
CREW_DESCR CHAR 38 97 60
CREW_ID CHAR 98 113 16
UDF1_CD CHAR 114 143 30
UDF1_DESCR CHAR 144 203 60
UDF2_CD CHAR 204 233 30
DATA_SOURCE_IND CHAR 294 299 6
UDF2_DESCR CHAR 234 293 60
I create the external table as follows:
CREATE TABLE "D_CREW_EXT"
"UPDATE_DTTM" CHAR(20 BYTE),
"CHANGE_TYPE_CD" CHAR(1 BYTE),
"CREW_CD" CHAR(16 BYTE),
"CREW_DESCR" CHAR(60 BYTE),
"CREW_ID" CHAR(16 BYTE),
"UDF1_CD" CHAR(30 BYTE),
"UDF1_DESCR" CHAR(60 BYTE),
"UDF2_CD" CHAR(30 BYTE),
"DATA_SOURCE_IND" CHAR(6 BYTE),
"UDF2_DESCR" CHAR(60 BYTE)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER DEFAULT DIRECTORY "TMP"
ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE
CHARACTERSET UTF8
STRING SIZES ARE IN BYTES
NOBADFILE NODISCARDFILE NOLOGFILE FIELDS NOTRIM
( "UPDATE_DTTM" POSITION (1:20) CHAR(20),
"CHANGE_TYPE_CD" POSITION (21:21) CHAR(1),
"CREW_CD" POSITION (22:37) CHAR(16),
"CREW_DESCR" POSITION (38:97) CHAR(60),
"CREW_ID" POSITION (98:113) CHAR(16),
"UDF1_CD" POSITION (114:143) CHAR(30),
"UDF1_DESCR" POSITION (144:203) CHAR(60),
"UDF2_CD" POSITION (204:233) CHAR(30),
"DATA_SOURCE_IND" POSITION (294:299) CHAR(6),
"UDF2_DESCR" POSITION (234:293) CHAR(60) )
) LOCATION ( 'D_CREW_EXT.DAT' )
REJECT LIMIT UNLIMITED;
Check the result in database:
select * from D_CREW_EXT;
I found the first row is incorrect. For each non-ascii character,the fields to the right of the non-ascii character are off by 1 character,meaning that the data is moved 1 character to the right.
Then I tried to use the option STRING SIZES ARE IN CHARACTERS instead of STRING SIZES ARE IN BYTES, it doesn't work either.
The database version is 11.1.0.6.
Edited by: yuan on May 21, 2010 2:43 AMHi,
I changed the BYTE in the create table part to CHAR, it still doesn't work. The result is the same. I think the problem is in ACCESS PARAMETERS.
Any other suggestion? -
How to read data in CRM Activity relationship tab.
Hello friends,
I have a requirement to read data from CRM Activity relationship tab.
Mainly i have to read Transaction No/object refernced trans field of CRM Activity relationship tab.
Could anybody help me?
Thanks,
BunnyHi,
have you found in the meanwhile a good solution?
I have also a similar requirement.
At the moment I'm using the view CRMV_ACTFORGP to get the activities associated to a BP (by the way you have many filters that can be used) and then for each GUID (order guid - CRMD_ORDERADM_H-GUID) I call the fm BAPI_REL_GETRELATIONS to get the list of relationships.
Regards
Diego
Maybe you are looking for
-
ITunes stalls when inserting/ejecting CDs
Whenever I insert a CD to rip (just about any CD), the iTunes interface locks up (if I'm listening to music, it continues to play, but the iTunes screen becomes unresponsive). Eventually (2-3 minutes later, sometimes more, sometimes less) the window
-
My swf is not showing up in my index page
I just switched to a VPS and my index page loads but without the .swf. I know the page loads fine/the connection etc. is correct but it's a no-go on my swf file, which is the only thing on the page. Take a look-see, www.monkeypunk.com. I called my ho
-
After renaming a file extention from .jpeg to .jpg I can no longer type in any of the finder related editable fields/boxes. I can still type in my open applications fields. This problem also happens when I happen to find a file that has been named, f
-
My iPad mini won't charge at all. I got it for Christmas off my dad and it is still in brand new condition. Until the other day it has been working fine but until yesterday or the day before my charger went all funny. In order to charge my iPad mini
-
Advice on buying a 13" MacBook Pro
Hey everybody! I am currently getting ready to buy my wife and I our first Mac. But I need some advice in making sure I'm picking the right one. I'll give you the rundown: I'm looking at the 13" MacBook Pro because I'm double majoring in communicatio