cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_TRIP_CREATE_FROM_DATA works in SE37, but not from external program

Former Member
0 Kudos

BAPI_TRIP_CREATE_FROM_DATA works in SE37, but gives error when calling from external program.

The error is "Deserialisation failed". I have the WSDL generated by a Web Service wizard in SE 37,

so there should not be any problem like element name or case(upper/lower) mismatch etc. I populate all mandatory fields.

I am using the web service created by wizard in a InfoPath form.

This is the exact error:

The SOAP response indicates that an error occurred:

Deserialisation failed

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi MB,

take a look to the code of the OBA Sample Application for SAP v1.0 on http://msdn.microsoft.com/en-us/cc442491.aspx, here you will find the complete code of the sample application and in htis code we used the Trip Create via Web Services, hope that helps. You can download the complete sample and run it on your machine, just change the parameters for the Web Service proxy to your environment.

- Juergen

Former Member
0 Kudos

Thanks for this pointer. I downloaded the code and looked at the same. It very useful as conceptual and coding guidance. However, there are many BAPis working in our product already, only a few return the same error "Deserialisation failed" The sample you pointed out uses BAPI_FLTRIP_CREATE but we have problem with the following BAPIs:

BAPI_TRIP_CREATE_FROM_DATA

BAPI_ADDRESSEMP_CREATE

BAPI_FAMILY_CREATE

All of them give error similar to following:

Deserialisation failed

<detail>

<n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">

<MainName>/1BCDWB/WSS0071212021944898000</MainName>

<ProgName>/1BCDWB/WSS0071212021944898000</ProgName>

<Line>170 </Line>

<Valid>X</Valid>

<ReferenceFault>

<DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText>

<RefName>EMPLOYEENUMBER</RefName>

</ReferenceFault>

<Caller>

<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>

<Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions>

</Caller>

</n0:SimpleTransformationFault>

</detail>

Any more suggestions are most welcome and highly appreciated.

Former Member
0 Kudos

Have you checked that the field employeenumber is in the response and that it is at the level the WSDL told you? I had the experience in 1 or 2 cases that the response was not in the format the WSDL had. I would recommend checking the response in the ICM monitor and compare it with the WSDL, maybe that helps. Set the log level to the highest level (transaction SMICM).

Former Member
0 Kudos

Looks like the SOAP response is having error

This is part of the trace (I don't know how to analyse the trace correctly)

Logon Error Message< META http-equiv= Content-Type c ontent="text/htm l;charset=UTF-8" >

Anmeldung fe hlgeschlagen

Was ist passiert ?

Der Aufruf de r URL http://sap ecc6:8000/sap/bc /srt/rfc/sap/Z_T OPAZ_ESS_PERSONA LDATA_BDC wurde aufgrund fehlerh after Anmeldedat en abgebrochen.< /p>

< strong>Hinweis

Die A nmeldung wurde i m System EC6 aus gef..hrt. Hierbe i wurden keine A nmeldedaten bere itgestellt.

&nb sp;

< /p>

Was k..nn en Sie tun ?

Falls Sie noch ..ber k eine Benutzerken nung verf..gen, so wenden Sie si ch an Ihren Syst emadministrator.

Fehlercode: ICF- LE-http-c:800-l: -T:-C:3-U:-P:-L: 6

HT TP 401 - Unautho rized

Ih r SAP Internet C ommunication Fra mework Team

< /td>

Former Member
0 Kudos

Is there any particular profile to be added to the user for all CREATE operations in Employee Self Service?

Particularly I want to concentrate on only one BAPI BAPI_ADDRESSEMP_CREATE

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

As described in the SAP Online Help a user needs the roles

SAP_BC_EMPLOYEE and SAP_ESSUSER in the backend.

http://help.sap.com/erp2005_ehp_03/helpdata/EN/38/1a245ac90211d3b587006094b9c9b4/content.htm

Best regards,

Andre

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

The message

"Die A nmeldung wurde i m System EC6 aus gef..hrt. Hierbe i wurden keine A nmeldedaten bere itgestellt. "is German and it tells you that you have not provided any credentials (for example username and password) when you tried to log on.

Best regards,

Andre

Former Member
0 Kudos

Adding these rolesdid not change the error. Are there other roles I should add and try ? Thanks for the continuing support and help.

Former Member
0 Kudos

Hi MB,

Did you finally solved this problem? If so, could you please tell me how?

Thanks in advance.

Former Member
0 Kudos

Hi

Anybody finally solved this problem? If so, could you please tell me how?

Former Member
0 Kudos

Deserialisation failed

detail

Simple Transformation Fault

Former Member
0 Kudos

detail

SimpleTransformationFault

MainName 1BCDWB/WSS0071212021944898000

ProgName 1BCDWB/WSS0071212021944898000

Line 170

Valid X

ReferenceFault

DescriptionText Error accessing the ref. node 'EMPLOYEENUMBER'

RefName EMPLOYEENUMBER

Caller

Class CL SRG RFC PROXY CONTEXT

Method IF SXML PART-DECODE

Positions 1

Former Member
0 Kudos

I found SAP Note number 830340 exactly describing this problem, so I will try to follow that and then update this thread with my findings/results.