File to server abap proxy
in my file to server abap proxy scenario,<b>filexisap .</b>
i have some doubt in configuration part.
i have to create one http destination but not clear where it should be created?in xi or in sap system??
Hi
you can either key in the Details of the R3 system in the XI adapter directly or you can maintain a HTTP destination on your XI in SM59 and use this in the XI adaper.
regards
krishna
Similar Messages
-
Access/set dynamic configuration in client/server abap proxy
Hi,
I have 2 question regarding reading/setting dynamic configuration in ABAP proxies:
1) Is it possible to set dynamic configuration objects in a server abap proxy (SAP --> XI)?
When looking at the class CL_PROXY_FRAMEWORK is looks as if it is possible. This class has en attribute IF_XMS_MAIN~DY which is a reference to the class CL_XMS_MSGHDR30_DYNAMIC.
I'm not sure if I'm supposed to try and access the dynamic configuration objects via this class or if I'm supposed to use the GET_PROTOCOL method in some manner as suggested by:
http://help.sap.com/saphelp_nw04s/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
Above link is for client proxies not server, and I've been unable to find any documentation on this for server proxies.
2) The same question goes for server proxies (XI --> SAP), though now I would like to set some dynamic configuration data.
This I believe should be done using get_protocol( if_wsprotocol=>ws_header ) as indicated by before mentioned link.
However in both cases I'm not sure of if it is indeed possible and which road to choose for sure. So a hint or 2 would be really nice.
Best Regards,
Daniel
ps. maybe I should just mention that I am pretty new to the ABAP world, so bear with me.The link that you gave does give you an example for both server and client proxies:
Accessing Protocol Classes for Client Proxies
In client proxies, you access the protocol class by using the GET_PROTOCOL method. Below is an example for the IF_WSPROTOCOL_PAYLOAD protocol:
DATA:
lo_clientProxy TYPE REF TO co_clientProxy,
lo_payload_protocol TYPE REF TO if_wsprotocol_payload
lo_payload TYPE REF TO if_ws_payload.
CREATE OBJECT lo_clientProxy.
Get Protocol Class Using Method GET_PROTOCOL
lo_payload_protocol ?=
lo_clientProxy->get_protocol( if_wsprotocol=>payload ).
CALL METHOD lo_clientProxy->execute_synchronous
EXPORTING output = ls_request
IMPORTING input = ls_response.
Use Protocol Methods
lo_payload = lo_payload->get_sent_request_payload( ).
Accessing Protocol Classes for Server Proxies (XI Only)
Within the implementation of a server proxy, you get the protocol class by using the CL_PROXY_ACCESS=>GET_SERVER_CONTEXT( ) method:
DATA: lo_server_context TYPE REF TO if_ws_server_context,
lo_payload_protocol TYPE REF TO if_wsprotocol_payload.
lo_server_context = cl_proxy_access=>get_server_context( ).
lo_payload_protocol =
lo_server_context->get_protocol( if_wsprotocol=>payload ). -
FILE TO INBOUND ABAP PROXY - " LOOP_IN_MESSAGE_ROUTING ERROR "
Hi ,
Getting the following Error in *FILE TO INBOUND ABAP PROXY* which is updating a Database table in R/3.
<?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>XIProtocol</SAP:Category>
<SAP:Code area="MESSAGE">LOOP_IN_MESSAGE_ROUTING</SAP:Code>
<SAP:P1>is.01.lgscms</SAP:P1>
<SAP:P2>IS</SAP:P2>
<SAP:P3>XI</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>XI protocol error</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
How to rectify the Error..
Regards,
RaviHi Ravi !
Check if the url for the receiver is
http://<host>:<port>/sap/xi/engine?type=receiver
or
http://<host>:<port>/sap/xi/engine?type=entry
if using XI 3.0
Regards,
Matias.
Edited by: Matias Denker on Feb 25, 2008 2:12 PM -
File/FTP to ABAP Proxy (file as attachment)
I have the following scenario: File/FTP -> XI -> ABAP Proxy but not the normal case. What I need is the picked file as attachment and the file name. I hope this is possible.
I have found the following blogs:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
I have no idea where I have to start. How I should define the sender and receiver message interface? How I have to configure the sender file/ftp adapter?
I'm using PI 7.1 SP 7.At the moment I have the following problem. I always get an error during mapping the request message. This is the error message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Mapping der Request-Message
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MT_SCANFILE_to_MT_SAP_SCANFILE_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.ParserE</SAP:P3>
<SAP:P4>xception: XMLParser: No data allowed here: (hex) ~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Während des Anwendungs-Mappings com/sap/xi/tf/_MT_SCANFILE_to_MT_SAP_SCANFILE_ ist eine RuntimeException aufgetreten. com.sap.aii.utilxi.misc.api.BaseRuntimeException:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) ~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
And if I use transaction sxmb_moni I see that the payload MainDocument is my pdf document and I can read it.
MG%PDF-1.3
%âãÏÓ
2 0 obj
/WinAnsiEncoding
endobj
3 0 obj
<<
%Devtype POST2 Font COURIER normal Lang DE
/Type /Font
/Subtype /Type1
/BaseFont /Courier
/Name /F001
/Encoding 2 0 R
>>
endobj
4 0 obj
<<
/Length 5 0 R
u2026.
I believe there is still an error at my communication channel configuration of the ftp sender adapter. -
FILE TO INBOUND ABAP PROXY - error
Hi,
Getting the following Error in FILE TO INBOUND ABAP PROXY which is updating a Database table in R/3.
Error:
com.sap.aii.utilxi.misc.api.BaseRuntimeException
thrown during application mapping
com/sap/xi/tf/_file2proxy_mm_: RuntimeException in
Message-Mapping transformatio~
How to rectify the error...
RaviHi,
The error mentioned is indicating about the Message Mapping error.
I think you need to test your Message Mapping with test tab.
Here Goto SXMB_Moni and select the related message and double click on it.
It will show you the various steps in Message flow.
Take the Inbound Message and look for Payload in it. Open it in right side window and right click on it to see source code.
Copy it in Message Mapping and test it
Thanks
swarup -
Process a PDF File to an ABAP Proxy
Hello,
Does anyone know how to process a pdf file straight to an abap proxy.
With just a flat sender file adapter without conversion to a xsd:Base64Binary field straight to a Abap-proxy.
Error message :
SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
<SAP:P1>Request Message</SAP:P1>
<SAP:P2>CX_ST_MATCH_ELEMENT</SAP:P2>
<SAP:P3>/1SAI/TXS00000000000000000543</SAP:P3>
<SAP:P4>XML Bytepos.: 0 XML Path: Error Text: Element 'mt_pdf' expected</SAP:P4>
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS00000000000000000543 XML Bytepos.: 0 XML Path: Error Text: Element 'mt_pdf' expected)) Element 'mt_pdf' expected</SAP:Stack>
I HAVE READ ALL the possibilities with java coding in the module tab etc. etc.
JUST is there "simple' way to solve this.
regards meinhartHi Meinhart,
I think you need to go with Conversion agent here.
Ref: http://www.saptechnical .com/Tutorials/XI/PDF/Index.htm
This would help you....
Thanks, -
Hi Experts,
I have a scenario like File to ABAP Proxy. Input file is huge like 60 MB and it's a XML file. Currently, it's consuming large resources in both XI & R/3 system.
I would like to use the option of Recordsets per message using the File Content Conversion. As the Input file being the XML, how the parameters under the File Content Conversion can be handled? Can you please throw some input on this?
Thanks,
Kumar.Hi Kumar,
I guess u cannot use File Content Conversion for an input file which is in XML format. But if ur concern is to handle the large file then, u can go thru the following link which talks abt handling large files...
<a href="/people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover:///people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
Regards,
Akshay -
File to ABAP Proxy (problem with inbound queues in R3)
Hi,
In File-XI-ABAP proxy scenario, XI is successfully picking up file and sending it to R3.
But in R3, an inbound queue is created in SMQ2 transaction code and I solved the same to automatically process the Queue by registering that in SMQR transaction code. But even though the inbound queue doesn't appear in SMQ2 (which means that it is processed successfully) it doesn't call the method EXECUTE_ASYNCHRONOUS. Can anyone help me whether I need to do any settings to run that method?
Also can anyone help me, after the inbound queue is successfully processed in SMQ2 transaction, what would be the next step to watch what exactly that queue has done?Hi,
Please check the program code for Server ABAP proxy.
This will show you the trigerring of Proxy on inbound side.
ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
For Queues, you can go to SMQR and check for the register queue. Select and double click on it. If anything is stuck up then you can see in it. Even same with SMQ2
Thanks
swarup -
ABAP Proxy generation terminated (WSDl choice element not supported)
Hello
Im trying to generate ABAP proxy from WSDL file (A valid XSD file has imported as External definitions in to XI Integration Repository and created Out bound Interface which gives WSDL file for Proxy generation in SPROXY).
Unfortunately one of the WSDL file element "<choice>" not supported by ABAP Proxy Generation. it gives the following error.
Proxy generation terminated: WSDL error (<choice> not supported)
Message no. SPRX038
Syntax of <choice> element code in WSDL file:
<xsd:choice minOccurs='1' maxOccurs='1'>
<xsd:element name='Employees' minOccurs='1' maxOccurs='1'>
</xsd:element>
</xsd:choice>
Can some one please help if already come across this kind of problem.
Please suggest me if there any alternate element for WSDL <choice>.
Regards
RajeshHi Aamir
Thanks for your help...
I have gone through attached thread.
Does It means should i change <choice> element with any alternate element. If it is the case can u suggest me any alternate to <choice> element.
Can u pls tell what are all changes i need to do in WSDL file to support ABAP proxy generation.
Regards
Rajesh -
WSDL error during generation of ABAP proxy for web service
Hi friends,
I am getting error during the generation of ABAP proxy object for web service developed in .NET .
Error : Proxy generation terminated: WSDL error (<extension> not supported).
How to make this WSDL file compatible for ABAP proxy.
I have tried to edit WSDL file in XML Spy but did not get any option to replace/remove the tag <extention>.
If any one worked on this. Please help me its urgent.
Thanks and regards,
Shivanand.HI ,
I am having the same issue!!!
Does ABAP Proxy Generation support <extension> ?
Is there a list available of what is supported and what not (please consider I do not have access to sap notes)?
Thanks -
What is a Proxy, specifically ABAP Proxy?
Hi,
Friends, I need some basics about proxy , ABAP Proxy with respect to SAP XI.
1.Why do we need a ABAP proxy?
2.For what do we use a proxy and what are the uses and applications of proxy?
3.What all do we need to create in IR and ID to work with ABAP proxy?
If we have any good blogs giving a detailed explanation of all the queries, it would be highly helpful.
Thanks in Advance.
YounusHi Younus,
There are two types of proxies in ABAP:
1)ABAP Client Proxy
2)ABAP Server Proxy.
ABAP Client Proxies are used to communicate the R/3 system to XI. And where as ABAP Server proxy is used to communiate the XI system to the R/3 system.
ABAP Client Proxies are created using the Outbound Message Interfaces and ABAP Server Proxies are created using the Inbound Message Interfaces in the Application system using sproxy Tcode.
These proxies will directly hit the integration engine of the XI server and thus reduces the use of adapters.
When you generate the proxies using Tcode SPROXY in ur application system then u have to:
>>> write your own abap code in the interface to manage data if that is an Inbound Message Interface.
>>> In the case of Outbound interface then write a report and invoke the appropriate method (eg:execute_asynchronous or execute_synchronous) to trigger the proxy.
The great advantage of proxies is XI native protocol usage. It doesn't require more ABAP. The ABAP code is the same you would put in a function module.
>>><b>What all do we need to create in IR and ID to work with ABAP proxy?</b>
If u r defining the Client abap proxy then no need of sender communication channel and sender agreement.
While in the case of Server abap proxy u need an XI adapter in the receiver communication channel to communicate with the R/3 system.
The use of adapter here is to communicate the IS with respective to the application s/y.
Remaining all the stuff is same as the normal scenario.
<u>Check out dis blog for ABAP Client Proxy:</u>
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
<u>ABAP Server Proxy:</u>
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
Hope it is clear.
Regards,
Prasanthi. -
PCK XI adapter - ABAP Proxy to File Scenario How to?
Hi there,
We want to implement the following sceanrio; SAP ABAP outbound proxy to Flat-File scenario. A (sender) SAP system will trigger an outbound proxy which will send outbound data to a (receiver)file system via the PCK and Central Integration Server.
SAP (ABAP proxy) -> PCK-> XI -> File System
My question is; The PCK documentation suggests that the XI adapter included in the PCK can only be used to send/forward messages to the central integration server.
Does that means that one cannot use the same XI adapter on the PCK to redirect ABAP proxy messages to the Integration server?
Thanks,
RobertoThe PCK cannot be used as a replacement for XI Integration server. PCK is only a type of adapter engine that can run independantly. It is intended for partners who cannot use XI server. So PCK can not in itself execute interfaces. It can just forward all the messages received to the XI Integration server. PCK can only run your sender or receiver adapter all the mappings can only be executed on the integration server. So PCK just converts from the native format to XI format and forwards to the Integration Server.
Hope that carifies your question .
Thanks,
Kalyan Musunuri -
Problem receiving acknowledgement: abap proxy == file adapter
Hi experts,
I am developing an asynchrone interface using PI 7.0. The scenario is: SAP ==> FILE.
In SAP I have created an abap proxy in wich I requested an acknowledgement when calling from the abap code. In PI I have created an Integration Process with a receive step, and a send step. In de send step I am asking for a transport acknowledgement.
When I test the interface and I look in the SXMB_MONI in PI, I see the acknowledgement given back to the IP, but in the SAP backend system I don't receive anything in the abap proxy which had send the original message. In de SXMB_MONI from SAP I see a "?" Still awaiting acknowledgement.
Can anyone help me with this scenario? I really need an acknowledgement from the file adapter in the calling abap proxy.
Regards, JeroenYou need to crate a REceiver Agreement for this sender...
The Integration Server sends an acknowledgment message back to the sender (CENTRAL_BACK). It uses the name of the sender system for logical and technical backward routing.
If the sender is addressed using an ABAP proxy, you must define a corresponding receiver agreement for this sender.
http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm
-SM -
File to Abap Proxy Scenario : No message log in SXMB_MONI
I have a PI Scenario in which a FTP server is polled every 5 minutes, and when it receives any file, file is archieved and abap proxy is called. Few days back it was running perfectly fine. But For last couple of days I am facing strange error.
My File is archived but abap proxy isnot called, neither I get any message in SXMB_MONI.
any guesses what should I do?
Jawed AliHi Jawed,
HOLD means you have given QoS as EOIO in sender channel and the first message got failed and hence all messages are waiting..
Check this thread
Re: PI 7.1 Messages stuck into the Queue of the Adapter Engine
Try resending the messages through runtime workbench->message monitoring->adapter engine
Regards
Suraj -
File to ABAP proxy as attachment
Hello PI expert,
I have requirement to FTP file from FTP server to ECC server. But because of some security, we can not get FTP permission on ECC server.
What i want to do is, get the file from FTP server as it is, and send it using abap proxy as attachment. I don't want to do any content conversion or xml conversion because I want to transfer file as it is.
Any suggestion.
Thanks,Hi,
if your PI version is at least "SAP NetWeaver PI 7.1 SP3"
create sample Data type structure with one node and one field, and use this for both proxy and file service/message interfaces.
Pick the file from FTP. No graphical mapping. Use Java Mapping. Read the input stream and create an attachement from this and attach it to the message. pass some static values for the output (proxy) structure using output stream. Thats all.
http://help.sap.com/javadocs/pi/SP3/xpi/index.html
Methods:-
com.sap.aii.mapping.api --> OutputAttachments --> create(String contentId, byte[] content) / create(String contentId, String contentType, byte[] content)
Maybe you are looking for
-
How do I fix my iMessage on iPhone 5s?
My iMessage has stopped working on my iPhone 5s, but only with ONE person. I have reset it multiple times, i reset the network, and I reset all the setting on the phone. I'm quite confused and need to know what's going on.
-
Can't publish photos to my homepage
After I publish my photos to my webpage, I go to the new webpage & the photos are not there- just a question mark sign. Are they doing maintainance to the server? Is it just me? Help!
-
Extractor 2LIS_03_BF
Hi all, We have recently upgraded our R/3-system to ver ECC 6.0 and are runing BW in version 3.5. After this upgrade we have discovered differences in our Inventory management in BW in extractor 2LIS_03_BF. Does anyone know if there has been any chan
-
QM process in Raw material procurement
Dear friends I wanted to know what is the QM role in procurement of Raw Material. I know that at the time of GRN, we can post the GRN to Quality stock( blocked stock). But after that what would be the process from a QM perspective. Do we need to tran
-
Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem