on 11-20-2006 5:59 AM
HI,
When doing the exercise in TBIT40, I meet with a problem in HTTP to RFC. It always returns me such error msg in the html client: <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException</SAP:AdditionalText></SAP:Error>
I don't know what's the exact reason for that, however, I am sure the BAPI program is not called. Using SXMB_MONI, we can see the response message (from Service: HEDCLNT001 Namespace: urn:sap-com:document:sap:rfc:functions Interface: ZBAPI_PO_CREATE) with above error and no XML payload at all. There's no error in the request message. I suspect if the communication channel is not created correctly as the document doesn't give a clear description on creation steps.
My question:
1. Is there any method to test if the RFC could be called properly from XI side using the communication channel I created?
2. What is the possible reason for the error I just met with? Any available solution?
Thanks & Best Rgds,
Jerry
Hi,
First make sure that the system in which BAPI is there is up or not.
Then check if the BAPI alone is executing correctly.
The error you have given suggests that BAPI was not called from XI . The most probable reason could be you have not properly configured your communication channel.
Please refer this link on how to create RFC receiver CC.
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Regards,
Sudheer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudheer,
1. The system with BAPI inside is surely up.
2. I have tried to run BAPI alone with the converted message (Using test function in IR), it did return my expected result.
3. I am trying to verify the receiver CC again according to the document. But how can I know my configuration is correct? Is there any way to test the CC seperatedly?
Thanks!
Jerry
The error segment in the response message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Jerry
Thank you all guys.
I finally got my problem solved by modifying the XSL file.
I am using a XSL mapping in this scenario and the XSL file is provided by the instructor. I didn't realize the issue lies here at the beginning. However, after running the scenario successfully using Message Mapping, I believe I have found the problem. By comparing the 2 generate results from same input XML, XSL Mapping's has some tiny difference from Message Mapping's. When I modified the XSL to make 2 results to be almost same, my problem is solved certainly.
Thank you again for your helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. The SAPCategory specifies that the error is in the XIAdapterFramework.
Recheck the parameters that have been provided in the rfc communication channel.
2. Are you sure that the BAPI is returning a value for the response?
Recheck this, by executing the BAPI in the end system.
3. Try testing your mappings in the repository, with the RFC request payload from sxi_monitor
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Jerry,
Some more
-Did you specify your RFC channel as synchronous ?
-Are you giving a response in the BAPI ?
-Are you using the expected BAPI response fields ?
rgds
Dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Sorry, I didn't find any place to specify RFC CC as synchronous when I configure it in Integration Directory.
2. The BAPI has an export parameter for response. As the BAPI is imported to XI, I didn't create any response message type.
3. Both request and response message mapping could pass the test successfully in Integration Repository.
Jerry
HI Jerry,
Some tips :
-Since you have this message in 'response' , I would advise to check ST22 in your target system for dumps when you execute a message flow.
-Alternatively you can activate a trace on the RFC destination to know 100% is something is received or not
-Does your user in the channel has the necessary authorizations ? ( try with a SAP_ALL user to exclude this type of problems )
regards
Dirk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you can test BAPI_USER_DISPLAY function...
thanks
venjamin
null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.