Developing AIF Inbound Synchronous Proxy interface
Hello! I'm trying to develop simple AIF Inbound Synchronous Proxy interface, but there is absolutely no information about it. Cookbook just covers async interfaces.
So, I just have Inbound sync ABAP-Proxy. I developed inbound AIF interface, entered the inbound proxy class. My interface is working, FM in Action is calling and works correctly.
But, I have two problems:
1) I don't understand, how should I get back a response to the Proxy?
2) I can't see a payload of my interface in AIF Monitoring.
SP level of AIF is 04.
Thank you in advance.
1) I don't understand, how should I get back a response to the Proxy?
I really want to know how did you implement in you proxy class. In general, if you call /aif/cl_enabler_proxy=>process_message, this doesn't support your synchronous interface.
My idea is, in proxy class, you could call CALL FUNCTION '/AIF/FILE_PROCESS_DATA' to process your input request and add you own coding to get back a response or another function module /AIF/FILE_TRANSFORM_DATA to transform your own SAP data to your response data structure(This need you to define another outbound interface and mapping).
Brecht is right, this is similar to his outbound synchronous interface.
You could refer to function module /AIF/SEND_WITH_PROXY. This function module is designed to support synchronous outbound interface
2) I can't see a payload of my interface in AIF Monitoring.
If you want to see input and output structure in Error Handling, I think you need to use XML persistency engine to save your own payload and save this payload via class /aif/cl_persist_engine_xml method /aif/if_persistency_engine~update.
This also could be found in function module /AIF/SEND_WITH_PROXY for example.
Best Regards,
Eric.
Similar Messages
-
Regarding inbound synchronous proxy
Hii All,
Can anyone help me regarding inbound synchronous proxy (request-response scenario)
Regards,
RajHi Raj,
We declare flat structure like this :
wa_input like input-mt_get_notification-message_payload.
To move the data from proxy to work area :
move input-mt_get_notification-message_payload to wa_input.
Now ucan do your desired operation in a method passing it the input and receiveing the output from the method.
call method me->get_task_det_for_notif_no
exporting
p_input = wa_input
importing
p_output =
output-mt_notification_response-message_payload-sapresponse
Hope this will help.
Still you face any issue , please feel free to ask.
Regards ,
Vivek
Reward if Useful -
Inbound synchronous ABAP proxy in PI 7.1?
Hi All,
Can anyone provide me sample ABAP proxy code for inbound synchronous. I have created inbound synchronous service interface, generated proxy in ABAP system. It has only one method in ABAP proxy class with input and output. When I write code ti take the input, process and send an output, its not getting delivered.
Please help me with sample code or guidence on this. Looks like there are changes in 7.1 when compared with previous versions that EXECUTE_SYNCHRONOUS doesn't exist anymore.Do we just eed to write code in single method with in the class?
Regards,
N@v!nOn Sproxy - >
Focus on your interface - >
go to your inbound interface name(service interface) -> double click
On PROPERTIES TAB -> INTERFACE -> PROVIDER CLASS -> DOUBLE CLICK ON IT ->
Now One method name is coming - > Double click on it ->
Congarts ! you will write your code Here ...
I am Pasting a sample code used in my case , similarly you can compare for your self. :
__________________________________________________________ Declare Area
DATA: IT_INPUT TYPE ZPROCESS_ORDER_FILE_ROW_TAB2,
WA_INPUT TYPE ZPROCESS_ORDER_FILE_ROW2.
DATA: IT_FINAL TYPE ZPROCESS_ORDER_RESPONSE_RO_TAB,
WA_FINAL TYPE ZPROCESS_ORDER_RESPONSE_ROW.
I get this Types from
go to your inbound interface name(service interface) -> double click
USED OBJECT TAB
Here you will get 2 table type Structure for Internal table Finaland Input Both.
as well as Work area Types.
_________________ Actual Code -
IT_INPUT = INPUT-PROCESS_ORDER_FILE-ROW.
This Structure you get in
go to your inbound interface name(service interface) -> double click
USED EXTRENAL VIEW TAB.
Use ABAP NAME HERE ..
Populate IT_FINAL according to you and pass it out.
SImialry for sending Out ....
OUTPUT-PROCESS_ORDER_RESPONSE-ROW = IT_FINAL.
Hope it help...
Still Doubts , Write here ...
Regards
Prabhat Sharma. -
Exception Handling in Inbound Synchronous ABAP Proxy
Hi All,
I am implementing inbound synchronous proxy which has inbound ,outbound and fault message ( same of SAP-PI).
I am calling a FM inside inside the method. All the business logic is coded in the FM which also handles the exception.
The exception raised in the FM is captured in the MESSAGE table of type BAPIRET2.
During testing I found that the exception raised inside the FM( Message Table) is not passed to Fault message
which is in the proxy method( If sy-subrc 0, raise excption type MT_FaultMessage was coded after FM).
I found 5 instance under the Fault message exception.IF_MESSAGEGET_TEXT , IF_MESSAGEGET_LONGTEXT ,IF_AI_APPLICATION_FAULT~GET_RT_FAULT_TEXT,
GET_SOURCE_POSITION and CONSTRUCTOR.
Kindly provide the input how to pass the error text captured in MESSAGE TABLE of FM to the exception message MT_FaultMessage of Proxy
Regards
Alice RebeccaHi Alice ,
Please have a look at the below document which contains ways to handle different errors and exception.If you still have doubts please revert back .
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502a7f0e-e5d9-2910-5aa2-976a8ed8384f?QuickLink=index&overridelayout=true]
For more specific i.e to handle the retrun message from a BAPI go through the below link .I assuming that you have exception class already created and it is available in the Exception tab of the execute_synchronus .
[http://help.sap.com/saphelp_nw04/helpdata/en/25/a45c3cff8ca92be10000000a114084/frameset.htm]
Thanks,
Anjaneya .
Edited by: Anjaneya Bhardwaj on Jan 13, 2012 6:26 AM -
Can I supress BPM for Asyn outbound and syn inbound proxy interface
Hi all,
Is there any other alternate to remove the BPM at asyn outbound and syn inbound proxy interface. Reason because I can create another outbound proxy interface at the receiver. But at receiver side we already invested huge code to develop the sync server proxy. So the intension is, with out disturbing the code Can I make the message flow with out BPM?
Because the reason of removing BPM is for a simple interface like this I don't want to use BPM. souce is JDBC and receiver is ECC 6.0. I know with out BPM it can not be achieved but in PI 7.1 EHP 1 by any chance can we do?
I mean during response mapping from server proxy shall we use look up function to achieve?This bean I have to use at sender channel right?
Yes
I mean is it is limited to JMS adapter?
No
You can find more information in the Wiki which deals with FILE to RFC synchronous...using the above Module -
HTTP timeout issue in synchronous Proxy to HTTP interface
Hi All,
I am working on an Proxy(interface - TCode-sproxy) to HTTP Synchronous scenario.
In few cases the target API link takes 15-30 minutes to respond back.
But I'm getting timeout error saying that connection timed out within 5-6 minutes only.
What parameters(eg.integration engine configuration) I need to set in SAP CRM as well as in SAP PI so that the correct response should get updated into SAP CRM system and for not having timeout problems?
Regards,
Amit PHi All,
I have got below mentioned error response after 10 minutes in SAP PI PRD system. But HTTP_TIMEOUT value is set as 72,00,000 in sxmb_adm. Is there any other parameter set which is overwriting the above parameter value.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Call Adapter
-->
<SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_CLIENT</SAP:Code>
<SAP:P1>402</SAP:P1>
<SAP:P2>ICM_HTTP_TIMEOUT</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>HTTP client code 402 reason ICM_HTTP_TIMEOUT</SAP:Stack>
<SAP:Retry>A</SAP:Retry>
</SAP:Error>
Also in SAP CRM system, (after 7 minutes) response not received has got updated in the database table. Don't know about parameters set in SAP CRM system.
But my target HTTP system is still processing the request and yet to respond. Mostly it'll respond after around 30 minutes.
We'r monitoring in the target system also.
Please guide me to resolve this issue at the earliest since this is the Production system's issue.
Regards,
Amit P -
Debugging of inbound ABAP proxy
Please To show the debugging of inbound ABAP proxy, the implementation of the demo scenario is used. The demo scenario is available in any installation WebAS 6.40 or higher.
follow this method and check debugging mode.
Debugging of inbound proxies in WebAS 6.40 or higher
To show the debugging of inbound ABAP proxy, the implementation of the demo scenario is used. The demo scenario is available in any installation WebAS 6.40 or higher.
At first you have to set a break point in the ABAP code. Call transaction SPROXY. Expand the namespace http://sap.com/xi/XI/Demo/Airline, the node Message Interface (inbound) and the interface FlightBookingOrderRequest_In.
Double click on interface II_SXIDAL_FBO_REQUEST and get the view of the proxy object properties.
Double click on the implementing class (ABAP name) and then double click on the method name (this class has only one method).
Now you are in the inbound proxy implementation. Set the break point on the first executable line.
With help of the back button (F3) go back to the transaction SPROXY. Here you choose from menu Proxy -> Test Interface
In the next pop up check the field XML Editor to maintain the payload.
In the next screen apply suitable values or upload the XML payload of the SXMB_MONI (after mapping).
Now the inbound proxy processing should stop at the break point.
If the processing does not stop at the break point, there might be an error in the XML. Check at the result page for error messages.
Debugging of inbound proxies in WebAS 6.20
You set the break point the same way as described above.
To start the proxy test you call the report SPRX_TEST_INBOUND.
As parameters you enter the name of the ABAP interface and the method name of of the ABAP interface and check the parameter Edit Native XML
In the next screen you apply suitable values or upload the XML payload of the SXMB_MONI (after mapping).
Then you click first on save button (F11), then on back button (F3).
Now you should see your debug session. If not, check if the XML is valid. BAPI_GOODSMVT_CREATE to post Goods Movement
The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
BAPI TO Upload Inventory Data
GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
02 - MB31 - Goods Receipts for Prod Order
03 - MB1A - Goods Issue
04 - MB1B - Transfer Posting
05 - MB1C - Enter Other Goods Receipt
06 - MB11
Domain: KZBEW - Movement Indicator
Goods movement w/o reference
B - Goods movement for purchase order
F - Goods movement for production order
L - Goods movement for delivery note
K - Goods movement for kanban requirement (WM - internal only)
O - Subsequent adjustment of "material-provided" consumption
W - Subsequent adjustment of proportion/product unit material
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
endform.
*--- End of Program
Finding the user-exits of a SAP transaction code
Finding the user-exits of a SAP transaction code
Enter the transaction code in which you are looking for the user-exit
and it will list you the list of user-exits in the transaction code.
Also a drill down is possible which will help you to branch to SMOD.
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Difference Between BADI and User Exits
Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
As with customer exits two different views are available:
In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.
SAP guarantees the upward compatibility of all Business Add-In interfaces. Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces. You do not have to register Business Add-Ins in SSCR.
The Business Add-In enhancement technique differentiates between enhancements that can only be implemented once and enhancements that can be used actively by any number of customers at the same time. In addition, Business Add-Ins can be defined according to filter values. This allows you to control add-in implementation and make it dependent on specific criteria (on a specific Country value, for example).
All ABAP sources, screens, GUIs, and table interfaces created using this enhancement technique are defined in a manner that allows customers to include their own enhancements in the standard. A single Business Add-In contains all of the interfaces necessary to implement a specific task.
The actual program code is enhanced using ABAP Objects. In order to better understand the programming techniques behind the Business Add-In enhancement concept, SAP recommends reading the section on ABAP Objects.
What is difference between badi and user-exists?
What is difference between enhancements and user-exists? and what is the full form of BADI?
I have another doubt in BDC IN BDC WE HAVE MSEGCALL (i did not remember the > correct name) where the error logs are stored, MSEGCALL is a table or structure.
What is the system landscape?
1) Difference between BADI and USER-EXIT.
i) BADI's can be used any number of times, where as USER-EXITS can be used only one time.
Ex:- if your assigning a USER-EXIT to a project in (CMOD), then you can not assign the same to other project.
ii) BADI's are oops based.
2) About 'BDCMSGCOLL' it is a structure. Used for finding error records.
3) Full form of BADI 'Business addins'.
3) System land scape will be depends on your project
Ex:- 'Development server'>'Quality server'-> 'Production server'......
List Of User Exit Related to VL01N
I need to some restriction in fields ( Actual GI Date, T-Code:Vl01n ).
How do you find out whcih user exits belongs to VL01n ?
Here is the list of user exit related to VL01N :
V02V0001 - Sales area determination for stock transport order
V02V0002 - User exit for storage location determination
V02V0003 - User exit for gate + matl staging area determination
V02V0004 - User Exit for Staging Area Determination (Item)
V50PSTAT - Delivery: Item Status Calculation
V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
V50R0001 - Collective processing for delivery creation
V50R0002 - Collective processing for delivery creation
V50R0004 - Calculation of Stock for POs for Shipping Due Date List
V50S0001 - User Exits for Delivery Processing
V53C0001 - Rough workload calculation in time per item
V53C0002 - W&S: RWE enhancement - shipping material type/time slot
V53W0001 - User exits for creating picking waves
VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound) -
Synchronous Proxy to Synchronous JDBC scenario
Hi,
I have a scenario for a synchronous PROXY to a synchronous JDBC scenario. I have set 4 message types .
MT_PROXYOUT u2013 o/b synch with a response MT_PROXYIN
MT_JDBC - i/b synch with a response MT_JDBC_RESPONSE
I then set up an interface mapping for both the request and response message interfaces. The design looks good but I got stuck in the configuration part.
Since itu2019s a proxy sender, the sender agreement is not needed(Correct me if I am wrong). In the interface determination, there is provision for only the inbound interface which in case would be the JDBC (request/response) back to the proxy and the interface mapping is applied.
So do I need just one interface determination from the proxy as sender and jdbc as receiver and also one receiver determination again with the proxy as sender and the jdbc as receiver. I am confused here because when I try to create a receiver determination for the response back from JDBC to proxy receiver , the interface mapping comes blank. Is it taken in account by the single receiver determination in synchronous to synchronous scenarios??
TeresaHi Teressa,
Java Proxy to Synchronous JDBC scenario and SAP XI:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
ABAP proxies-
Client proxy:
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Server Proxies
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
Cheers
Sunil -
Hi
Can anyone tell me the steps for working on Synchronous ABAP Proxy.What are the design and configuration steps which i have to follow for the same.
Thanks
AbhishekHi,
Check below links for PROXY senarios.
Concepts and examples for Proxy, Abap Client Proxy and Abap server Proxy
Asyn Inbound java proxy
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File
ABAP Proxy
How do you activate ABAP Proxies?
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
ABAP Proxy Runtime
http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
ABAP CLIENT PROXY
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
ABAP SERVER PROXY
/people/siva.maranani/blog/2005/04/03/abap-server-proxies. [original link is broken]
To test a connection - /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies
XI: Debug your inbound ABAP Proxy implementation
Testing proxy - /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
JAVA Proxies:
Asynchronous inbpund java Proxies
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
Proxy Generation- For ABAP and Java proxy, create a Message Interface and then generate a proxy for that message interface.
http://help.sap.com/saphelp_nw2004s/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm
More on Java Proxy-
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
ABAP Proxies:
Integration Builders through proxy server (Part - 2)
/people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Regards,
Phani
Reward Points if Helpful -
Error in SOAP receiver channel in Synchronous Proxy to SOAP scenario
Hi all,
We are experiencing an issue with a synchronous Proxy to SOAP scenario. Getting below error message in the SOAP receiver communication channel for the response message.
SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: com.sap.aii.utilxi.misc.api.ResourceException: Could not determine mapping steps for message 1364b76e-ecbf-11e4-85f4-000023acfde6.
We are running PI 7.4.
Any help is appreciated.
Thanks,
PushpaHi,
Seems the Receiver Webservice is not reachable. Did you try to test it using SOAP UI tool.
1. Test a fresh message from local SOAP UI tool.
2. Pick 3rd party WSDL file and Import in SOAP UI tool.
3. Put some dummy data for mandatory fields
4. Trigger it msg and ckh if you get successful / response msg.
5. Check if firewall is open and that URL is not blocked.
Hope it helps
Regards,
Azhar -
Hi All,
I have an inbound ABAP proxy as the receiver. The class, interface, structure and tables are generated when I created the proxy.
I edited the method execute_asynchronous to collect the data from the table and send it to another RFC.
When I tried to populate my internal table using the data from table generated during proxy generation, it gives me an error like"zjssrc_dt-header_tab" is not defined in the ABAP dictionary as table, projection view or database view. But it doesn't give me an error while declaring my internal table of the type "zjssrc_dt-header_tab".
Any inputs on this will be of great help.
Thanks & Regards,
Jai Shankar.Hi,
When you generate your Proxy, there will be some structures created. Here you can see the name of the table type.
Just create a work are for the same table type and one internal table.
<i>eg.
DATA: i_data_records TYPE TABLE OF zback_dt_data_records.
DATA: wa_data_records TYPE zback_dt_data_records.</i>
Now move the data from the proxy to your internal table
eg.
i_data_records = input-mt_val_in-data_records.
Now this value <i>input-mt_val_in-data_records</i> for you would be input_<MessageType>_<segmentName thats repeating>
Now loop through the Internal table and move the data to Work area and then update your table.
I have taken second weblog as eg. Just see that weblog and read this.
Regards
Vijaya
Message was edited by: vijaya kumari -
Synchronous - asynchronous interface (RFC - XI - jdbc)
hello to everybody!
i want configure a synchronous - asynchronous interface (RFC - PI - jdbc) whit my PI 7.1
This RFC send 2 output tables to PI/XI and i want write it into 2 different tables in a SQL Server Database.
How can i do it?
i tried whit one mapping to a unique outbound datatype...but only header table was insert and not rows.
i tried whit 2 Receiver Interfaces but i have on mapping the follow error:
Multiple inbound interfaces not supported for synchronous calls
so??
other possibility?
BPM?
please help me
Thanks
AlessandroHi,
I have a similar problem; I have JMS - PI - RFC synchronous scenario. I will receive message from JMS, and depending on the data received, I should call either of two RFCs (NOT BOTH). The BAPI return message should then be sent back to JMS.
Hence, I have one "Sender/Outbound" Message Interface, one receiver determination for that Message Interface - in which there is "one" receiver (backend SAP system).
In "Interface Determination", I specifed the two BAPIs as two Interfaces, and defined conditions based on "context objects" - since I need to know the Interface Mapping "dynamically"
However, I get the error - "Multiple inbound interfaces not supported for synchronous calls ". any suggestions on how to proceed?
I am posting this question here as it is a related issue. Hope it is fine.
Thanks,
Archana -
Getting Inbound Java Proxy Exception in method "onMessage"
I have built an Inbound Java proxy, deployed the EJB, viewed it in the J2EE admin tool, registered the JPR settings (also listAll, reviewed results, looks OK), configure the XI scenario. When I run the XI scenario using the Runtime workbench I get the following error in the BPM Synchronous Send step (calling the Java Proxy)
"com.sap.aii.af.ra.ms.api.DeliveryException: Exception in method onMessage".
Does anyone have any suggestions?
What causes an "onMessage" Exception?Thanks Sudhir Here is the process I am following to deploy my Proxy, would you please validate it. Created EJB Project in NWDS, unziped XI gened proxies into ejbModule folder, renamed *PortTypeImpl.template to *PortTypeImpl.java (will add real code later), compiled all code (no errors), edited ejb_jar.xml to match your suggested format, can view EJB Candidates (and see my Proxy Bean), built EJB.JAR file (via Wizard), created new Enterprise Application Project and pointed build path to my EJB Project, within the Enterprise Application Project I built an EAR file (which includes the "EJB Project JAR File", Deployed Enterprise Application Project to the XI J2EE Engine. I can log into XI J2EE Admin and see my EJB Project and the Proxy Bean I am trying to execute. Is this the process you used to deploy the proxy bean?
Also you you turn on JPR Tracing to see what parameters are passed into the JPR engine? -
No response in sysnchronous proxy interface,not delivering
Hi All,
I have a synchronous contract interface with http to proxy scenario. In few cases like when contract has max line items, it is not delivering to target system and message in RWB Integration engine it is showing status as to be delivered delivered., also showing in XI sxmb_moni entry as log version and no response. When messages with few line items its working fine without any issue and getting response back as well. Also , i have same issue in http to rfc scenario.
Can you please help me to fix this issue, how to make these pending messages in XI to deliver to tartget system and get response back.
Thanks in advance.
Regards,
RajeshFirst thing is XI is not supposed to use for Mass data uploads.
for your problem...
did you check Moni on SAP side? check moni of SAP for any errors? if you don't find anyting...go to SMQ2 and check the queues, if you find messages struck in queue, delete them..if you face same problem after refreshing the queue then ask your basis to increase the number of queues.if still your problem presists, then only solution is sending data in small chunks.
i mean you have split data into parts and send it...hope your problem will be solved... -
Regarding Inbound and outbound interfaces in ABAP HR
Hi,
Iam new to SAP. Can you send the document related to Inbound and Outbound Interfaces in detail.
i.e What these interfaces comes under and steps to develop these inerfaces.
Thanks&Regards,
B.Thulasi.Hi,
Iam new to SAP. Can you send the document related to Inbound and Outbound Interfaces in detail.
i.e What these interfaces comes under and steps to develop these inerfaces.
Thanks&Regards,
B.Thulasi.
Maybe you are looking for
-
I'm running tomcat and apache and basic servlets work fine, however when I try the usebean tag; I get an error message "CLASS not found". The class object is in the same directory as the servlet? Any suggestions? Kurt Radamaker Orlando FL
-
Where did page up/down go?
I may be crazy, but if I remember correctly I could use fn up or down to page up or down on keynote (to move between slides from the canvas area without having to click on the navigator. I'm going nuts with this, fn up/down doesn't seem to work anymo
-
Problem while creating infocube in BI 7
hello, while loading transaction data from flat file ...i have a problem with infocube creation..i have created datasource sucessfully..iam able to c data in preview also..but while creating infocube iam unable to see my infoobjects in the mibble pa
-
BDC extracting data on APO (Listcube)
Hi, I'm trying to create a BDC program that can extract data by calling transaction listcube automatically. The only thing is that it stops at the second screen, because the selection screen of listcube is dynamically generated (Starting with GP*****
-
How to laod Master Data using Flexible Update
Hi, I have created 35 Characteristics and now i need to create a structure using 35 characteristics. I am unable to use the Direct Update because it is asking the Reference Object and Attributes But the 35 characteristics are not attributes. So how t