on 12-05-2006 10:58 AM
Hello all,
I have problem which drives me crazy... I set up processs with async file read (purchase order), sync BAPI call (BAPI_SALESORDER_CREATEFROMDAT2) and async message write to file.
Process as process works fine, file is read, bapi is called and respone is written in file.
Problem is that obviously, mapping inside RFC adapter does not work - transformed message which goes to RFC adapter looks like this:
<?xml version="1.0" encoding="utf-8" ?>
- <p1:BAPI_SALESORDER_CREATEFROMDAT2 xmlns:p1="urn:sap-com:document:sap:rfc:functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <ORDER_HEADER_IN>
<DOC_TYPE>ZPOR</DOC_TYPE>
<SALES_ORG>PH10</SALES_ORG>
<DISTR_CHAN>05</DISTR_CHAN>
<DIVISION>20</DIVISION>
<REQ_DATE_H>06-12-2006</REQ_DATE_H>
<PMNTTRMS>ID18</PMNTTRMS>
<PURCH_NO_C>0000197478</PURCH_NO_C>
<DOC_DATE>04-12-2006</DOC_DATE>
</ORDER_HEADER_IN>
--- the rest of the message is cut ---
and response is always the same:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:SO_response_MT xmlns:ns1="http://gbs.com/PlivaItaly/LabSo">
<SALESDOCUMENT />
- <RETURN>
- <item>
<TYPE>E</TYPE>
<ID>V1</ID>
<NUMBER>312</NUMBER>
<MESSAGE>Sales document type is not defined</MESSAGE>
<LOG_NO />
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1 />
<MESSAGE_V2 />
<MESSAGE_V3 />
<MESSAGE_V4 />
<PARAMETER />
<ROW>0</ROW>
<FIELD />
<SYSTEM>QPWCLNT500</SYSTEM>
</item>
</RETURN>
</ns1:SO_response_MT>
Document type ZPOR exists, and BAPI works when called with SE37 from the R/3. Also, when I try to put some other document type in SE37, I get response 'Sales document type <wrong type> is not defined', and clearly, in the message from response, it's a blank field.
Does anyone knows what can it be?
Best regards,
Ivan
Pay attention, the field DOC_TYPE is based on data element AUART tha has a conversion exit!
You must to manage this with XI, the field is also Language Dependent. Check the table TAUUM in the back-end, and verify in with language the system user log-on to SAP to make the RFC.
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ivan,
I have worked on similar type of requirement :
But we went for ABAP Proxy inside which we called the BAPI . a concept of wrapper bapi and writing back response in a file .
and it is running perfectly . 10 out of 10
Advantage we got :
1. Simple mapping
2. Any issues related to data we handled at BAP code level.
3. very easy in debugging.
Give a thought to this ...
Regards,
Try doing this for debugging the RFC call and tracing the actual values if you are sure the mapping is correct.
/people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check out the RFC adapter metadata.. You can refresh this with Integration builder>Administration>XI Cache Overview-- and refresh all the caches
Also refresh the CPACache Refresh.
One more option is to restart the RFC adapter from the J2EE engine..
I think problem may be because of the Cache Refresh
Regards,
moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.