cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with dates.(DEC AND DATS)

former_member185875
Contributor
0 Kudos

hai abap gurus,

i wanted to consume a webservice which is developed in nwds7.1 (using ejbs).

i generated proxys sucessfully.

but problem with the date.

one of the method in the web service

i must send a created date (field name is created_date).

when i am try to send the date

it rasie CX_AI_SYSTEM_FAULT . exception.

otherwise it not shown any exception and it is working fine.

in the proxy the field domain is:

Domain             XSDDATETIME_Z                  Active
Short Description  XSD Date/Time (UTC): yyyy-mm-ddThh:mm:ssZ  [ext.]




   Data Type        DEC        Counter or amount field with comma and sign
   No. Characters       15
   Decimal Places        0


   Output Length        19
   Convers. Routine

i am getting the createdate from a ztable

and the createdate type DATS

finally i sended the created date to webservice proxy.

could please help me,

lakshman

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Its not related answer ,plz check answer once while u send

Moderator.

Former Member
0 Kudos

Check ur System Date formate and change to ur related format

U have asked "Read xls data into abap" see this,

TYPE-POOLS: TRUXS.

data: trd type TRUXS_T_TEXT_DATA,

fnm like RLGRAP-FILENAME.

data: BEGIN OF tcd OCCURS 0,

col1(255),

col2(255),

col3(256),

END OF tcd.

fnm = 'c:\siva.xls'.

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

EXPORTING

i_tab_raw_data = trd

i_filename = fnm

tables

i_tab_converted_data = tcd

EXCEPTIONS

CONVERSION_FAILED = 1

OTHERS = 2.

LOOP at tcd.

WRITE / tcd-col1.

WRITE / tcd-col2.

WRITE / tcd-col3.

ENDLOOP.

This is escapically related to Xls data into ABAP not related ur question.(sivakumar,MobileOne)

former_member185875
Contributor
0 Kudos

hai abap gurus,

i wanted to consume a webservice which is developed in nwds7.1 (using ejbs).

i generated proxys sucessfully.

but problem with the date.

one of the method in the web service

i must send a created date (field name is created_date).

when i am try to send the date

it rasie CX_AI_SYSTEM_FAULT . exception.

		OBJECT	                              
		CX_ROOT	                              
		          CX_ROOT	                              	16AA9A3937A9BB56E10000000A11447B
		          TEXTID	                              	F63AFF63DBE4BB4786A7F52CC4167145
		          PREVIOUS	                              	{O:INITIAL}
		          KERNEL_ERRID	                              
		          IS_RESUMABLE	                              
		          INTERNAL_SOURCE_POS	                              	Structure: flat, not charlike
		CX_STATIC_CHECK	                              
		CX_AI_SYSTEM_FAULT	                              
		          CX_AI_SYSTEM_FAULT	                              	F63AFF63DBE4BB4786A7F52CC4167145
		          CODECONTEXT	                              	http://www.sap.com/xml_errorcodes
		          CODE	                              	SOAP:1.001
		          ERRORTEXT	                              	CX_SY_CONVERSION_NO_DATE_TIME:XSLT exception.An error occurred during serialization in the simple transformation program /1SAI/TASDA0D391B8E55B346F817.The value 11122008 is not a valid date with time according to the XML format for ABAP
		          LANGUAGE

otherwise it not shown any exception and it is working fine.

in the proxy the field domain is:

Domain             XSDDATETIME_Z                  Active
Short Description  XSD Date/Time (UTC): yyyy-mm-ddThh:mm:ssZ  [ext.]




   Data Type        DEC        Counter or amount field with comma and sign
   No. Characters       15
   Decimal Places        0


   Output Length        19
   Convers. Routine

i am getting the createdate from a ztable

and the createdate type DATS

finally i sended the created date to webservice proxy.

could please help me,

lakshman

Former Member
0 Kudos

first of all check the date format of system you are trying to send data through your proxy.If the format system accepting is different from yours then do some coding change to convert to the desired format.

thanks

Snehasish

Former Member
0 Kudos

Most likely that type the ABAP proxy uses expects a trailing Z for the xsd:datetime element, but receives none.

You can change ABAP proxy to use a xsd:datetime without the Z by doing the following

1. Start sproxy

2. Open the service interface

3. Go to external view tab

4. Expand the port, operation and input and for each xsd:datetime element do the following

5.In ABAP attributes change the Techn. Type from XSDDATETIME_Z to XSDDATETIME_ISO

Dagfinn