on 11-07-2008 2:20 PM
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
Hi balanagu,
refer this link, its will be help you.
http://help.sap.com/saphelp_nw2004s/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
Regards,
Dhanu MobileOne
Edited by: Dhananjaya on Nov 13, 2008 6:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.