11-30-2009 2:16 AM
hello everyone
when I consume a web service in abap ,then it occured a erro.
string '2009-11-30' is not valid ALL xsd type
the web service was developed by .net ,the paramter type is datatime. but in abap ,there is no datatime type .
i try string,char,XSDDATETIME_Z. the problem also occured.
please do me a favor.
thanks advance!
11-30-2009 2:33 AM
if you can play with the string replace the - with space and condense.
replace all occurrence of '-' from string with space.
condense string.
11-30-2009 2:52 AM
thanks a lot J@Y
I tried it again using what you said.bu t the problem also occured
CONCATENATE '2009 11 30' '10:00:00' INTO l_base2-clzzrq
SEPARATED BY SPACE.
condense l_base2-clzzrq.
11-30-2009 3:17 AM
U did not mention u had time as well... check for some FM's which will help you...
[Click here >>>|http://www.google.com/search?hl=en&q=sap%3Afmfortimestamp&aq=f&oq=&aqi=]
11-30-2009 3:30 AM
thank you J@Y
I have tried fm 'CACS_DATE_GET_TIMESTAMP' and
CONVERT DATE i_date TIME i_time INTO TIME STAMP o_tstamp TIME ZONE l_zone.
there was also no effect
is there any mehod,exception change the web method paramter type into string,but the changing ,we cannot choose.
11-30-2009 7:32 AM
Please post your questions in one forum only. Duplicates have been deleted.
matt