Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

string '2009-11-30' is not valid ALL xsd type

Former Member
0 Kudos

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!

5 REPLIES 5

former_member156446
Active Contributor
0 Kudos

if you can play with the string replace the - with space and condense.

replace all occurrence of '-' from string with space.

condense string.

0 Kudos

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.

0 Kudos

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=]

0 Kudos

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.

matt
Active Contributor
0 Kudos

Please post your questions in one forum only. Duplicates have been deleted.

matt