Testing Inbound Proxy
Hi,
I hve created one inbound asynchronous proxy at my CRM end with a fault message type. NOw , I wanna test this proxy by sending message from XI (Test message in component moni in RWB).
HOw can i do it?
The appraoch I am following is by creating an outbound I/f at XI Business system with HTTP Adapter in its CC.
Plz help if anyone of you has worked on smthing like this.
Thanks,
Steffi
yes you do. Any interface flow in XI needs to have an outbound interface and an inbound interface.
Your Inbound proxy which you have implemented in your SAP system , how will the call start to it. Which is the application that triggers the call , in other words what is the sender system?
Irrespctive of whether you want to test your configuration using a HTTP Client or the RWB you need to have the Outbound Message interafce in XI and also the entire Configuration in Integration Directory.
If you just want to test yoyur Proxy code, then the blog by Michal should really help.
Regards
Bhavesh
Similar Messages
-
Issue while inserting a BDC program in Inbound Proxy.JDBC-- PI-- SAP.
The scenerio is jdbcsender-sappi-inboundproxy(ECC6.0).
The issue is related to SAP Plant Maintenance Module where We have a requirement for creating Maintenance item
programmatically from (SQLDatabase)Legacy Data for one of the interface.
since there are no standard BAPIS/Idocs or function modules available from SAP side for creating the maintenance item. So I
have written BDC program and with the help of submit statement in inbound proxy program, I am calling BDC program for
creation of the maintenance item.
When I tested the program independently on proxy side the Maintenance Item is getting created successfully but when I
executed from end-to-end ie. SQLDATABASE->SAP PI-->SAP. The message is getting strucked into the queue and queue got stopped on SAP.
ECC side and the status of the message is scheduled state on SXMB_MONI transaction of SAP ECC.
As the message is in scheduled state multiple number of Maintenance Items are getting created with the same values.
Has any one of our SAP friends, encountered this type of issue while inserting a BDC program in inbound proxy, please help
in fixing this issue. FYI... I am using sap pi7.0 with service pack 24 and ecc6.0
Waiting for your kind expert guidance...
cheers,
RamRaj,
Thanks for the reply. I have tried registering the queues but still the same problem. the message got stuck in the queue of ECC and showing below message in queue.
function module StatusText
SXMS_ASYNC_EXEC connection closed (no data)
I have checked in the forums especially for this issue but no one has provided the answer for this.
Thanks and Regards
Ram -
Special character " (quote) in inbound proxy
Hi folks,
We have a scenario in which inbound proxy is implemented on SAP side. I am getting following error:-
Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS9457077FA0DEC03F30D0 XML Bytepos.: 988 XML Path: MT_SLM_INT30_LUPReviewFromLUPS(1)Title(16) Error Text: Data loss occurred when converting PROPOSED 8" U/G HRDH & ROUTE Kernel ErrorId: CONVT_DATA_LOSS)) An error occurred when deserializing in the simple transformation program /1SAI/TXS9457077FA0DEC03F30D0 Data loss occurred when converting PROPOSED 8" U/G HRDH. KHUFF GAS WELL-1050 & COMMUNICATION ROUTE FOC TO HRDH RH-K6}
Could you please suggest me what is wrong in the data PROPOSED 8" U/G HRDH & ROUTE. I guess it is due to the use of " in the data. Could you please help me in this?
Regards,
Sami.Hi,
The problem was with the length of that field. That field was created in XI with max length 80. During proxy generation, corresponding abap field was created with 80 char. In the message, data for that field was 81 characters At runtime, when proxy runtime tried to map the xml to corresponding abap object, it failed.
While testing in Sproxy transaction when tried to execute after removing quote(") it was successful, as length was reduced to 80. So i went under impression that it is not working because of quote(").
Thanks for your rersponses. -
Program code for inbound proxy
Hello,
I would like to ask for your help. I am creating an abap program for an inbound proxy to update tables.
It doesn't get the value listed in the file. In the method section, I have created the following codes:
DATA: receipt TYPE zgiserdata-receipt,
material_slip TYPE zgiserdata-matslip,
plant TYPE zgiserdata-plant,
material_number TYPE zgiserdata-matno,
new_serial TYPE zgiserdata-new_serial,
old_serial TYPE zgiserdata-old_serial,
warrex_date TYPE zgiserdata-warrexdate,
posting_date TYPE zgiserdata-postdate.
Convert input parameters
receipt = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-reciept.
material_slip = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_slip.
plant = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-plant.
material_number = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_number.
new_serial = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-new_serial.
old_serial = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-old_serial.
warrex_date = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-warrex_date.
posting_date = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-posting_date.
Debugged on 'receipt', the value I got is 'This is a string 1' instead of the record that is in the file.
'This is a string 2' for 'material_slip', so on and so forth.
Checked on the XI side that the records in the file is being transmitted without any errors. I tested this through SPROXY. Got the message that is executed with no errors, however, I got the values mentioned above instead of the values in the file being sent to XI.
Can you please help me what needs to be checked in order to have the values that are in the file being sent to XI?
Thank you.Hi Jho,
>>>Debugged on 'receipt',
How did you try to debug the proxy? I belive you tried debugging the proxy using SPROXY transaction code. If you use SPROXY transaction code by default the values are filled as 'This is a string 1 .. n so on..
I would suggest you to copy the xml payload from XI and then in SPROXY transaction code paste the payload and then trigger the proxy in debugging mode.
Or search in sdn how to debug proxy. You can use that guide to debug proxy real time. Guide is also available in some SAP Note. Dont remember the Note number.
If there is anything else you want to know let us know.
Regards,
Sumit -
Call transaction in ABAP Inbound proxy
Hi All,
I am processing transaction KKPAN in inbound proxy. As per my knowledge, there is no BAPI or other way of processing this transaction. I have recorded a BDC, and I am calling this BDC using Call Transaction in my Inbound proxy.
The problem is, control never returns back to the proxy after I call this BDC using Call Transaction. However, interestingly, If there is an error in BDC, the control comes back to the proxy. Any ideas, why it does not successfully update data using BDC in inbound proxy?
Your inputs are appreciated.
Thanks,
NavdeepThanks for you response Akshay !
However, It didn't solve my problem. In my case, the inbound proxy class is being called successfully. The problem comes, when I use Call Transaction in the class. The call transaction works and returns error message, if there is some error in the processing; however, for when there is no error in the BDC data, the control never comes back after call transaction.
However, if I use SPROXY to test this interface, by copying the payload of the message and using the same user (As in Comm Channel), I am able to call Call Transaction without any problem. The data gets created successfully.
Now this is getting really tricky.
Still looking for ideas
Regards,
Navdeep
Message was edited by:
Navdeep Singla -
Hi All,
I have a file to ABAP Inbound proxy scenario for creating vendor in SAP.
When I execute from SPROXY test tab, vendor is created in SAP.
But when i test end to end i.e by feeding the file adapter with the vendor file i don't see the vendor creating in SAP.
The message is successful in PI moni and in ABAP moni. Cant see any errors
Appreciate your inputs in this solving this please
Keerthi>
Keerthika R wrote:
> The message is successful in PI moni and in ABAP moni. Cant see any errors
Hello Keerthi,
I was facing the same issue. I found that we can use SXMB_MONI and SMQ2 in the SAP side as well (Backend ABAP System where the Server Proxy is created). If you are able to see the messages in SXMB_MONI of the ERP system then your proxy is working fine however, have problems in ERP System. Follow through the error message it will be easy for you to perform error analysis.
You can ignore if you have already done it!
Thanks & Regards,
Anand Patil -
Hi All,
Inbound proxy failed in ECC with below error Please help.
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
<SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
<SAP:P2>ZCL_P2F_IS_AGILE_TO_SAP</SAP:P2>
<SAP:P3>P2F_IS_AGILE_TO_SAP</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error during proxy processing An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause The database returned a value containing an error</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
Chaitanya NaruHi Chaitanya,
Looks like the ABAP code failed during a call to DB. You would have to sit with ABAPer fot this to debug and see where exactly the exception is being raised. Set a debug point in Proxy code and debug the message. You can use sproxy to test this.
Regards,
Sanjeev. -
PI settings help
I am trying to transfer PR from ERP6.0 EHP4 to SRM7.0 using CPPR scenario.
I configured ERP/SRM and PI configuration in Integration directory.
But i get Reciever determination error in XML at ERP/SRM AND PI
RCVR_DETERMINATION">NO_RECEIVER_CASE_BE
Error Text: No receiver could be determined
In SRM, Inbound Message(reciever) is green but Call Inbound Proxy is giving below error.
<Trace level="1" type="System_Error">Application-Error exception return from pipeline processing! <Trace level="1" type="T">Application Error at Receiver... => ROLLBACK WORK</Trace>
<Trace level="1" type="T">System Error at Receiver... => ROLLBACK WORK</Trace>
I tested configuration in Integration directory.
Sender aggreeemnt is green
Reciever determination is red and giving below error.
Internal Error : You do not have sufficient authorization for this operation.
I have done below setting in Integration directory.
Business system setting.
1.Selected Business System BC_MM_MXX_594
2.Create communication channel(Gen_Rec_xi) as Receiver
for above Business system BC_MM_MXX_594.
-Use adapter type XI, http://sap.com/xi/XI/System SAP Basis7.xx and RFC MXX_Integration,
1.Selected Business System BC_SRM_SXX_300
2.Create communication channel(Gen_Rec_xi) as Receiver
for above Business system BC_SRM_SXX_300.
-Use adapter type XI, http://sap.com/xi/XI/System SAP Basis7.xx and RFC SXX_Integration.
-->>one doubt here? Should i have to create Comm channel for sender type also from ERP and SRM? pls confirm.
I created object in Integration directory as follows.
Create Object by selecting Business System BC_MM_MXX_594.
1)Selected Internal communication
2)Reciever Determination : BC_MM_MXX_594 PurchaseRequestERPSourcingRequest_Out
3)Specified Interface determination : BC_MM_MXX_594 PurchaseRequestERPSourcingRequest_Out BC_SRM_SXX_300.
4)Specified Reciever agreement BC_MM_MXX_594 BC_SRM_SXX_300 PurchaseRequestERPSourcingRequest_in(communication channel selected is Gen_Rec_xi)
5)Generated Objects and saved as CPPR_scenario.
6)Activated all objects created in CPPR_Scenario.
Pls suggest something wrong with Reciever determination?
How to find where the problem is located? at ERP or PI or SRM?.
Also onething i noted is Integrated configuration is empty in Integration directory.
Any configuration should be done for IOC.? pls confirm.
Regards
ChandraAlso i noticed below
In ERP xml ->Inbound message(SENDER).
Does this error indicate problem while sending from ERP to SRM or SRM to ERP.
because i can see sender service and interface is empty and SAP reciever is having ERP service.
however reciever does not fetched the corresponding(purchaseRequestxxxxxxx) interface names.
- <SAP:Sender>
<SAP:Service />
<SAP:Interface namespace="" />
</SAP:Sender>
- <SAP:Receiver>
<SAP:Party agency="" scheme="" />
<SAP:Service>BC_MM_MXX_594</SAP:Service>
<SAP:Interface namespace="http://sap.com/xi/APPL">QueryCodeList</SAP:Interface>
</SAP:Receiver>
<SAP:Interface namespace="http://sap.com/xi/APPL">QueryCodeList</SAP:Interface>
SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No receiver could be determined</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
Regards
Chandra -
Error/Exception handling in PI (Inbound Proxy)
Dear All,
I need some help in PI Error handling.
If PI sends data to an ABAP inbound proxy and an error occurs in PI because of type mismatch (e.g. Unable to convert date).
This error is persistent in the PI monitor, but how do I let the Sender know that an error has occured?
regards,
PiyushHi,
I understand that you have a doubt, if PI sends data to ABAP inbound proxy and an alert reaised due to type mismatch. Now, you would like to know how to acknowledge that sender to know about the alert?
First of all, get the payload and test in the message mapping, you will get know where exactly you got the error or check in the trace in Moni. You need to identify the issue and let the user know why exactly it failed. -
How to test server proxy in ECC 6.0 ?
Hi,
Please tell me how to test server proxy created in SPROXY of ECC 6.0 .
I am following this blog XI: Debug your inbound ABAP Proxy implementation .
When i am executing the test service provider i am getting an error with " program terminated " message creating a dump .
How to test it through this method ? Is there any other way to test in ECC6.0
Thanks,
Laawanya DHi,
I have put a breakpoint in my proxy code and when i am trying to execute only, i am getting the error "Program terminated" .
I am using ECC6.0 , so when i am clicking on Test Interface, i am not getting "Application Data Entry" parameters as given in Stefan's blog , but I am getting something like:
Input:
1.Generate template Data
2.Enforce Stylesheet generation
(I have checked both 1 & 2 .)
Error Handling:
1.Don't catch Application faults
if i check this and execute , my program gets terminated , leaving a dump and if i dont set it also My program gets terminated .
So what to do now ? -
Inbound proxy with system error.
Hi Experts,
I desighned an inbound proxy scenario which is file to ECC.
I test the proxy from 'SPROXY" t.code.
Because of wrong data, it throws an exception as below.
- <cls:CX_XMS_SYSERR_PROXY id="o125">
- <CX_ROOT>
<TEXTID>8BB7CA726FE56F43BC4A06197ABFE5FD</TEXTID>
<PREVIOUS href="#o117" />
<KERNEL_ERRID />
- <INTERNAL_SOURCE_POS>
<PROGID>242</PROGID>
<CONTID>668</CONTID>
</INTERNAL_SOURCE_POS>
</CX_ROOT>
<CX_STATIC_CHECK />
- <CX_XMS_SYSTEM_ERROR>
<ID>PARSE_APPLICATION_DATA</ID>
<P1>Request Message</P1>
<P2>CX_ST_DESERIALIZATION_ERROR</P2>
from above, we can tell this is a system error because this exception caught by class'CX_XMS_SYSTEM_ERROR'.
If this is a system error, it has to show a system log in 'SM21'.
but, it's not appearing.
if my understanding was wrong,let me know where it will display these logs.
please let me know your opinion on this.
regards
mahesh.hai
you can check the below link to debug the application
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d4900e81a30c
check the t.code sxmb_moni in the receiver SAP
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
Hi,
I need to test inbound ABAP Proxy from XI? My integration scenario is between WebService and ABAP proxy. Can I test Proxy from XI without the involvement of WebService?
Regards,
Ram<b>I would like to test the design & configuration objects in XI also</b>
u can test the message mapping and interface mapping ...but for objects like...Data Type ,message type,Message interface ...u cant test...i mean...u r only designing here....and in Directory....receiver D, Interface D etc...also u cant test... u can just check ..wheather u have given the correct entry or not....here u r just configuring.......To test ur whole scenario... u have to send data from sender system to receiver system via XI...
<b>Is there any way I can trigger a message as a sender?</b>
No u can't.....
Use a Good Subject Line, One Question Per Posting - Award Points -
Hi
I have SRM Scenario were I am sending a Z_CREAMAS_SUSMM IDOC from ECC 6.0 to SRM 5.5 SUS via PI 7.0 . There are no errors on the XI side and the sxmb_moni of the SRM side .The message shows a successful flag on the XI as well as the SRM side . But however the functionality of the idoc does not work ie the vendor is not created in SRM SUS.
When we try to test the inbound proxy from sproxy by copying the payload from sxmb_moni of SRM and then testing it we get a short dump with the following contents .
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "SET_METHOD" "(METHOD)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component.
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
"CL_PROXY_INBOUND_ADAPTER======CP" or "CL_PROXY_INBOUND_ADAPTER======CM00I"
"SET_METHOD"
Can any one please tell me what the error could be .
regards
Nilesh TaunkHi,
You program raise an exception as''CX_SY_REF_IS_INITIAL'.
this is due to null value passing to the object.
i hope, u r using intialization event in the custom ABAP code.
please try to change it.
warm regards
mahesh. -
Aysnch Proxy calling from Inbound Proxy
Hello Experts,
My scenario:-
Legacy sending File to Inbound proxy and from Inbound proxy I am calling the outbound proxy method to send the data back to Legacy system.
Its like File request -Inbound Proxy- Outbound Proxy Response- File.
FileRequest-Inbound Proxy----message in R3 as well in XI moni is successful.
File Outbound response-File-----message in R3 is coming as empty and because of this the message fails in Xi moni.
I tried to debug the scenario using test tab with the moni payload, I am able to see the data populated in debugging mode, But after the Outbound method is called the response message is coming is empty. commit work is also used inside outbound method.
I tried every possible ways,but not getting any clue.
chiragHi,
Just check...........in the inbound proxy code, the structure of the response msg is updated as the current structure of response msg.......may be you are filling the data in the old structure of response msg and then asssinging it in the outbound proxy call.......you need to fill the data in the new structure of response msg in your inbound proxy code.
Regards,
Rajeev Gupta -
Outbound proxy in Inbound proxy
Hi Experts,
I am doing two way interface. JDBC asyn - proxy-JDBC asyn
I am calling outbound proxy in inbound proxy here.
While i am calling it is giving HTTP connection error.
So can i call outbound proxy in inbound proxy ????
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
<SAP:P1>400</SAP:P1>
<SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>Outbound proxy inside inbound proxy scenario usually works fine. But few suggestions,
1. Check if the message is failing in request side of asynchronous scenario. If this is the case then I think the error which you are getting is probably due to improper channel configuration.
2. If problem is not the one mentioned in point 1 above then, test the proxy in transaction SPROXY of ECC as to whether outbound proxy is called while inbound proxy is executed manually in transaction SPROXY . Once you execute the inbound proxy then go to transaction "SXMB_MONI" of ECC to check whether a message which outbound proxy is required to send to PI appears over there, if it appears there that means there is no issue on programming of proxy.
Hope it might help in finding resolution.
Thanks,
Amit
Maybe you are looking for
-
How can I access Pandora with Apple TV?
How can I access Pandora with Apple TV?
-
Transaction failed for unknown reason (100) Unable to complete backup at this time. Does anyone know how to solve this issue? Thanks.
-
30EA3: UNLOAD. No longer able to export Excel format to clipboard
Hi, I have a little gripe about the new unload functionality. In SQL Dev 2, it was possible to export(unload) the datagrid to the clipboard in excel format. In SQL Dev 3EA3, this now gives the message "Saving as Clipboard is not supported for unlaodi
-
Data entry in array of clusters
Hi guys. I have 2 array of clusters in tab. My cluster have different types elements. I need get referance data entry. I can do it for one array of cluster with dynamic event structure but cant do it for other. My vi in attachment. Can anyone help
-
R3load -testconnect fails while doing the Export Prepare
Hi All, R3load -testconnect fails while doing the Export Prepare for the Unicode Conversion. I have upgraded the CRM system from CRM 4.0 to SAP Netweaver 7.0 with EHP1. Now I doing the Unicode Conversion. While using the sapinst as root to start the