IDOC to xml file
hi,
my name is avinash.i m new to xi.i have few qs regarding it.
1.what is third party?
2.what are adapters?where are they located?
3.what is IDOC?
4.how is IDOC converted to xml file?
pls reply.its urgent.
thanks in advance.
Message was edited by:
avinash s
Hi avinash s ,
>>1.what is third party?
third party is middleware or intermediate software which takes data from sender & transfers to a reciever in his understandable format.
For Example
Suppose think that there r 3 different people who speak different languages.
Say User A understands french language,
User B understands french , german, english language
User C understands german language
& User A and C want 2 communicate . Hence their languages r different they can't understand. If they take the help of User B, He undertands the language of User A & converses to User C in german.
User B is the 3rd Party here.
This example can be viewed in terms of systems who r having different platforms & they want 2 exchange messages with each other.
Examples of 3rd party include:
TIBCO,XI,EDI.....
>> 2.what are adapters?where are they located?
Adapters enable communication between the XI integration engine and an application system. This leads to the compatibility between heterogeneous systems.Adapters convert the XI protocol (SOAP with attachments over HTTP) to the protocol spoken by the application system and vice-versa.The key purpose of XI is to integrate heterogeneous systems and adapters are the key enabler to achieving this goal
Adapter Categories
Application adapters provided by SAP (IDoc and RFC) and 3rd party vendors (Seeburger, Siebel, Oracle, ...)
Technical adapters relate to specific protocols
File systems (FTP / File)
RDBMS systems (JDBC)
Messaging systems (JMS)
Web services (SOAP)
Mail servers (SMTP)
SAP Business Connector
Marketplaces
Industry standard adapters
RosettaNet
CIDX
The Adapter Engine
The XI Adapter engine is the home of the majority of the XI adapters. Only the IDoc adapter and the plain HTTP adapter do not reside on the adapter engine. They reside on the Integration Server.
It is fully integrated in to the XI landscape with tools provided for configuration, logistics and monitoring. It's Adapter Framework is based on the JCA.
SAP XI requires an adapter framework to communicate outside of the SAP system. These adapters translate code from external applications to an XML message for NetWeaver processes using the Java Connector Architecture.It is a part of the Adapter Engine, which provides interfaces for configuring, managing, and monitoring adapters.
The following r good websites which give complete overview of Adapter:
Structure of the Adapter Framework
http://help.sap.com/saphelp_nw04/helpdata/en/fd/16e140a786702ae10000000a155106/content.htm
Adapter for SAP XI environment
http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst11.htm
List of all adapters compatible with XI 3.0
http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1229988_tax304527,00.html
Adapter and Module Development
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
Legacy Integration with the SAP XI Adapter
http://www.makdata.de/www_makdata/sites/www.makdata.de/en/solutions/solutions02/downloads/SAP_XI_Adapter_mak_data_news_23_en.pdf
Installing the SAP XI Integration Components of the XI Adapter
http://documentation.softwareag.com/crossvision/xio311/install/sapXiInstall.htm
>>3.what is IDOC?
IDoc is a container that carries the data thru 2 methods : either thru ALE or EDI.
>> 4.how is IDOC converted to xml file?
Pls go thru the following websites :
A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Introduction to IDoc-XI-File scenario and complete walk through for starters.
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
cheers!
gyanaraj
****Pls reward points if u find this helpful
Similar Messages
-
Regarding receiver determination problem in IDOC-XI-XML file scenario
Dear All ,
In IDOC-XI-xml file scenario , I have configured SLD , IR . But in ID , after file adapter , reciever agreement configuration when I am doing receiver determination configuration I am not able to insert mapping program in configuration overview of receiver determination as I am not getting "New Specific" option in mapping .
Can anybody suggest what could be the reason behind this .
Thanks in Advance
PrabhatHi PRabhat,
In RCVR determination, you need to select the party & service (as appropriate) save the obeject
then refresh the configuration overview of recr det.
then you can see the partner/service
then you can open it & add the necessary objects.
Regards
Vishnu -
IDOC to XML file scenario with party
Hi All,
I am developing a IDOC to XML file scenario with party in which I have extended the MATMAS idoc and configured the receiver FILE communication channel.
But its giving me the error *"No receiver could be determined"* with party. If I run the same scenario without the sender party its working fine.
And sender is my R/3 system under party P_Party and receiver is my third party system under P_Party.
Thanks in advance.
GaurangU can give a try as follows.
In the Partner Profile of Sender R/3 system,
Give the Receiver Party P_Party in the PartnerNo. Give the 'Business Partner' as logical System type.
In XI, Party Definition of P_Party
Give the following Alternative Identifier
Agency - Sender R/3 Business System
Scheme - ALE#GP
Value - P_Party -
How to create Inbound Idoc from XML file-Need help urgently
Hi,
can any one tell how to create inbound Idoc from XML file.
we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml' we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
Please let me know the process to trigger inbound Idoc with out using XI and any other components.
Thanks in advance
Dora ReddyHi .. Did either of you get a result on this?
My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
I see lots of mention of using a Function Module.
Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
Or is there something tht can be done with Standard SAP?
Thanks
Lee -
Automatically process IDoc to XML File port
Hi everybody,
I want to send two different IDocs via "XML File" port using change pointers and the distribution modell (one SAP standard, one custom).
I maintained the distribution model and created outbound parameters in partner profile (WE20). Both are set to "Transfer IDoc Immed.".
1.
Now I change some master data and the change pointers are created. I run RBDMIDOC for both message types and both IDocs are created. But unfortunately they stuck at staus "30 - Idoc ready for dispatch" (yellow). I need to run RSEOUT00 to create the XML files.
Is it possible to avoid a job that runs this report? I want the IDocs to be processed automatically right after creation.
The really strange thing about this is, that it used to work for the standard IDoc (BOMMAT). But I might have changed some settings to get my custom IDoc work too and now both stuck at status 30?! This is what bothers me most...
2.
When the XML files are created (at the moment after running RSEOUT00) the status in WE05 is "03 - Data passed to port OK" (yellow).
Why is this light still yellow? Everything is fine, the file was created, it should be green. Is there anything I can do?
Thanks and best regards,
OliverHi,
thanks for your suggestions.
Unfortunately this did not solve my problems.
1)
OUTMOD for both messages was 2 (which should be ok). Changing it to 1 did not have any affect.
At least BOMMAT works again (both with OUTMOD 1 and 2). But my custom IDoc still does not get processed automatically.
2)
Running report RBDMOIND did not change the status of my IDocs. Please keep in mind that it is no tRFC port, but XML File port.
Best regards,
Oliver -
Hi,
I want to create Scheduling Agreement from idoc using XML file means i am receiving XML file and i want to convert this XML file into IDOC and finally process this IDOC to craete scheduling agreement.
But i don't have any idea for this.pl. tell me what should i do for this.
Thanks,
RahulHi,
You are receiving XML file and you want that to converted into the IDOC and inturn to be processed in your system, for this you need to create an XML port and you need to read the file from that port then an IDOC will be created. Create an XML file port in WE21 transaction and then goto WE16 transaction and you can use that transaction to upload a file as an IDOC into the SAP system.
Once the IDOC is created rest of the activity is same.
Thanks,
Mahesh. -
Howto transform a Sales Order (idoc) into xml file and download it?
I need to tranform a Sales order into an xml file such that I could download the file onto my disk. I try to transform an IDOC.
I do the following from an example and I get an xml document on screen but I do get get any file downloaded:
DATA: document TYPE REF TO if_ixml_document.
document = g_ixml->create_document( ).
DATA: ostream TYPE REF TO if_ixml_ostream.
ostream = g_stream_factory->create_ostream_uri(
system_id = 'file://C:\test.xml' ).
DATA: renderer TYPE REF TO if_ixml_renderer, rc TYPE i.
renderer = g_ixml->create_renderer( ostream = ostream
document = document ).
rc = renderer->render( ).
document->render( ostream = ostream recursive = ' ').
Is there something else I should do? Is there another approach for transforming a sales order to an xml file.
The R/3 4.6 system is used.
Thank you
-eglese-Hi Eglese,
Another option could be to use XML port configured for the IDOC and use the XML files generated be extracted from Web Dynpro using a file download UI element.
Thanks and Regards,
Sam Mathew -
Add XML Tag to XML File (Idoc to XML File)
Hi there.
Just a question regarding the addition of a tag header in an XML file please?
Idoc - > XI -> file (XML File)
We have a need to add something like this below in bold to XML Tag Header in the inbound file:
<?xml version="1.0" encoding="UTF-8"?>
<?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
MSGTYPE="ORDERS"?>
Any ideas on how this can be managed would be apreciated please?
Thank you.
Mick.Hi Carlos.
Thanks for your reply. I like what you are suggesting, however, I have no knowledge of Java and how to implement this Java addition to the mapping interface.
I would appreciate any hints you may have. The value that I am trying to add to the tag header is exactly as it is below(the value in bold) and it can in fact be fixed, i.e. I am not looking to dynamically determine the values in the additional tag but just add the value as it is below...
<?xml version="1.0" encoding="UTF-8"?>
<?POSTEN SND="SE03220037090" SNDKVAL="1" REC="SE03220669500"
MSGTYPE="ORDERS"?>
I would appreciate any input from you on that.
Thanks in advance Carlos.
Mick. -
hi,
I have to export production order data to an xml file and to do this I want to use an IDoc but I don't know how I can map an Idoc to an XML document after I created it. Please help meHi,
I created a custom IDoc for a production order and its segments, now I have to export this IDoc to an XML file at the same time to a print process which is start from an existing report and to do this I'd like to insert the code to fill the IDoc in an internal form of the existing report and than I could associate the IDoc to a message type that is associate to the function module "IDOCS_OUTPUT_IN_XML_FORMAT" to create the XML file from IDoc. can you tell me if I can proceed in this way to realize my project and how I can send my IDoc from the same form where I fill it. thank you -
Hi Experts,
I have created a custom IDOC message type and send as XML file outbound. In the XML file, there are other details as follows just before my header data. Is there any filter for this? The requirement is only send the header and item data.
Please note that these fields are not defined in my custom IDOC type.
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>200</MANDT>
<DOCNUM>0000000000250025</DOCNUM>
<DOCREL>700</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>ZIDOCTYP</IDOCTYP>
Thanks in advance.Hi,
in XI side don't map control data field to your traget strucutre
Thanks
Amit -
Hi.
I'm trying to transformate an IDoc in SAP to a XML file and vice versa by Business Connector. I have configured a routing in BC for export IDoc to a XML file by FTP and then appear a flow service in BC Developer within a map and a TransportService for a OutboundProcess, but I don't know how to continue by there.
I have run a lookup service and return IDoc OK.
Thanks.Hi Julio,
Take a look to this thread
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
There you will find what you want! Go to Documents > here you can find templates for XI and I think you have one or two templates ffor your scenario.
If it helps, don't forget the points.
Regards,
Ricardo -
Conversion of inbound IDOC into XML file
Hi experts,
We have an inbound idoc (FIDCC2) that starts and triggers the creation of an FI document. We would like now, that, instead of creating the FI document, the inbound IDOC creates an XML file on a given directory, with the contents of the idoc. Can anybody explain how to configure this?
Many thanks in advance,
John De Coninck.John,
Firstly, need more information. If I understand you correctly, you are getting an inbound FI document that is created as an IDOC and it posts into FI (using an underlying FM/transaction etc). Now you want to convert this IDOC into XML on a folder (which can be found on AL11 (a.k.a App Server)).
Question 1: Where are you getting this IDOC from? Is it through EDI/ALE? What is your interfacing server (the one that is sending you this IDOC.
Question 2: What format is this IDOC coming in? Is it flat/XML etc?
Question 3: Is this an internally created IDOC? Is there an attached partner profile in WE20? If there is a partner profile that exists and you're using this to create the inbound IDOC, then there are process codes available to forward these IDOC's (e.g ED08).
There are many ways you can achieve this but everything depends on how your system is configured and how this processing is going on. -
Problem in creatinga sales order idoc into XML file in the same appl server
Hai....friends....
I am tring to send an sales order as iDOC to a xml port in the same application server....
1. have created a xml port with path..\usr\sap\RRM\SYS\global\.
2. assigned it to logical system.
3.Have a RFC destination of TCP/ip(LOCAL_EXEC)
but in bd64 after creating model view when i am generating partner profiles a tRFC PORT has been automatically created.
then finally the IDOc has been created but its saying....IDOC CANNOT OR SHOULD NOT BE SENT...
Pls help me regarding this...
thx,
ramHi Thanks for your updates,
But I got the same error, while pass the data from abap into XML.
error message,what I am getting is
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'file:///C:/tempcustomers.xml'. Line 1, Position 1
#<?xml version="1.0" encoding="utf-16"?>
Thanks
Gowrishankar -
IDoc-To-xml File Dynamic Configuration
Hi all.
a few days ago i posted a thread about file-to-file dynamic configuration.
now i have to do the same but with difference that my inbound document is an IDOC, so message_header information cant be use!
i've seen some blog like
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2161. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
ussing file convertion, XI save a plain text document, no xml.
What you sugguest to do?
Rgds
RPhi RAJEEV GUPTA .
you said do this?
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//get Key of Directory File name
DynamicConfigurationKey keyF = DynamicConfigurationKey.create( URLFile, "FileName");
//get Key of Directory
DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");
//Replace value of Filename
conf.put(keyF,file);
//Replace value of Directory
conf.put(keyD,dir);
the problem in this case is there no Key, because there no message_header.
do you know the sentence to generate a new key for file name and Directory?
Rgds!
Rp
Message was edited by:
Rodrigo Pertierra -
Send out failed IDOCS as XML files or as email from production client
Hello Gurus,
We run SAP R/3 in a Retail environment and use MS BizTalk as the interface tool to our POS system.
We have a requirement to be able to send out failed IDOCs to developers / interface team for verification. This is not a regular task, but needs to be done once in a while.
Please advice how this can be achieved in a production region, where the IDOCS can be converted into XML format or emailed out for verification. How are such situations handled at other sites?
All help provided will be useful and rewarded well.
Many Thanks,
Regards,
NischHi Nisch,
I hate to write custom program,as i did lot of R&D On this ,there is no sap standard transaction,you can monitor by using WE02 or WE05 ,see each you can able to see one idoc completely by using WE02 or WE05 ,you can not send the data .
Thanks
Seshu
Maybe you are looking for
-
I have two questions: 1. Java use socket mechanism to form a connection.Is Java has its own connection mechanism beneath socket or it calls the API from operating systems? 2. When in Windows OS, can a Java program know the exact connection error type
-
Some questions about FIFO implementation
Hi, I'm working on a project to control an industrial manipulator using Labview. At this stage, I'm able to transmit linear and angular velocities from the compactRIO through the LAN to the actual robot, which processes the data and then moves accord
-
Can I get a new iphone 5 if my lock button came to me barley working?
So once I got my iphone I didn't touch it till I got a case... Anyways, I had problems with my lock button as soon as I clicked it.. It wasn't easy or smooth to press down it was always hard now I have to use my teeth to press it down to turn it on..
-
Why is my iPad so slow using verizon 3g verses wifi
why is my iPad so slow using verizon 3g verses wifi?
-
Every time I attach a photo to an email it logs me out