on 12-01-2006 4:54 AM
hi all,
I am sending a request from XI to bapi and it is going but the response is not coming from the BAPI.Below is the structure of the response bapi which is required
<i><?xml version="1.0" encoding="UTF-8" ?><ns0:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<EQUIPMENTID>
<item>
<EQUIPID/>
</item>
</EQUIPMENTID>
<LOCATIONID>
<item>
<LOCID/>
</item>
</LOCATIONID>
<OILID>
<item>
<OILID/>
</item>
</OILID>
<OUTPUT>
<item>
<ZSAMPLEID>22</ZSAMPLEID>
<ZSAMPLEDUEDATE>20061205</ZSAMPLEDUEDATE>
<VCODE>55</VCODE>
<KURZTEXT>ww</KURZTEXT>
<ZEQUIPDES>dddd</ZEQUIPDES>
<MAKTX>33</MAKTX>
<ZPLANID>3</ZPLANID>
<ZPLANIDESC>hhh</ZPLANIDESC>
</item>
</OUTPUT>
<RETURN>
<item>
<TYPE/>
<CODE/>
<MESSAGE/>
<LOG_NO/>
<LOG_MSG_NO/>
<MESSAGE_V1/>
<MESSAGE_V2/>
<MESSAGE_V3/>
<MESSAGE_V4/>
</item>
</RETURN>
</ns0:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response></i>
Equip id,loc id and oil id are mapped in the request mapping and in response we need the output fields.But during runtime we get the below as the payload structure
<i><?xml version="1.0" encoding="UTF-8" ?>
- <rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <EQUIPMENTID>
- <item>
<EQUIPID />
</item>
</EQUIPMENTID>
- <LOCATIONID>
- <item>
<LOCID>1</LOCID>
</item>
- <item>
<LOCID>2</LOCID>
</item>
- <item>
<LOCID>3</LOCID>
</item>
- <item>
<LOCID>4</LOCID>
</item>
- <item>
<LOCID>5</LOCID>
</item>
- <item>
<LOCID>6</LOCID>
</item>
- <item>
<LOCID>7</LOCID>
</item>
- <item>
<LOCID>8</LOCID>
</item>
- <item>
<LOCID>9</LOCID>
</item>
- <item>
<LOCID>10</LOCID>
</item>
</LOCATIONID>
- <OILID>
- <item>
<OILID>BP260</OILID>
</item>
</OILID>
<OUTPUT />
- <RETURN>
- <item>
<TYPE />
<CODE />
<MESSAGE />
<LOG_NO />
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1>Invalid Customer Number</MESSAGE_V1>
<MESSAGE_V2 />
<MESSAGE_V3 />
<MESSAGE_V4 />
</item>
</RETURN>
</rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response></i>
Can anyone plz help me out
thanks and regards,
Nisheeta
Hi Nisheeta,
In R/3 it will take as 1000 only,but if we want execute it through XI we have to provide 10 digit number.
As you are getting correct output in R/3 means there is something wrong with your response mapping for sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shweta,
I did the whole mapping again.When i am giving EO the request message is going but when i am changing it to BE the response is showing 2errors in moni.One is
<i>com/sap/xi/tf/_Lspm_Response_SampledueGrid_MM_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</</i>
and the other is the no response message.
I am dealing with a custom Bapi,where else is a possibility of an error...can you please help??
Hi Nisheeta,
Can you reimport your bapi structure and redo all ur request and response mapping?Check ur source and target structure thoroughly for every mapping.
Again check in interface determination if ur specified msg mapping is correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nisheeta,
This is surely error of your response message mapping.
You are not getting the expected XML payload for response message.
Check your target structure,check all your nodes and subnodes in response.
tally your coming response to mapping's target response as they are incorrect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi all,
also this error is being shown in moni
<i>Lspm_Response_SampledueGrid_MM_</Trace>
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:Lspm_Response_SampledueGrid_MT/SAMPLEID. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start</i>
Am not able to understand what it means can anybody help??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nisheeta,
Try to execute this bapi in R/3 system with same KUNNR.
If it is working fine over there,it means there is something wrong with your mapping.
And then check your response mapping in XI.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should give correct customer number.
If it is a 10 digit number then prefix your customer number with zeros.
For eg. as vendor number is 10 digit number ,we have to give prefix to this vendor number from XI like 0000012356.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shweta,
I was not giving a 10digit number as KUNNR so the error was coming but now the output is still not coming.the payload is showing as
<i><?xml version="1.0" encoding="UTF-8" ?>
- <rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <EQUIPMENTID>
- <item>
<EQUIPID />
</item>
</EQUIPMENTID>
- <LOCATIONID>
- <item>
<LOCID>1</LOCID>
</item>
- <item>
<LOCID>2</LOCID>
</item>
- <item>
<LOCID>3</LOCID>
</item>
- <item>
<LOCID>4</LOCID>
</item>
- <item>
<LOCID>5</LOCID>
</item>
- <item>
<LOCID>6</LOCID>
</item>
- <item>
<LOCID>7</LOCID>
</item>
- <item>
<LOCID>8</LOCID>
</item>
- <item>
<LOCID>9</LOCID>
</item>
- <item>
<LOCID>10</LOCID>
</item>
</LOCATIONID>
- <OILID>
- <item>
<OILID>BP260</OILID>
</item>
</OILID>
<OUTPUT />
<RETURN />
</rfc:ZLS_BAPI_SAMPLE_DUE_DATE_CHK.Response></i>
am i doin anythin wrong with the mapping??
Hi,
Check if your input values are correct.
Because you are requesting response for the value which is not there in the system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
I can see error as invalid customer no.So please check it.
Thanks,
Tuhin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.