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,
Oliver
Hi,
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
Similar Messages
-
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 -
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. -
How to create an XML File Port in we21
Hi firends,
Can any one help me in creating the XML FILE PORT
Its Urgent
Thanks
GaneshHi Ganesh,
Directory
The file is uniquely identified via the directory ("path") and their names.
For IDoc files you may also use a "logical directory", which you assign in transaction FILE dependent on operating system "physical" directories.
Outbound file
There you can specify a fixed name for the file,
Thanks
Ravee.. -
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 -
Automate flat IDOC to XML IDOC using one interface
Hello all,
We are currently going through a migration process where XI will be replacing a legacy system. As part of our testing procedure, we are using historical data pairings from the legacy system and using an automated tool to compare if the interfaces we develop in XI match. The catch is we need the data that we are comparing in XML format for the automated tool to be able to do the comparison, and unfortunately the legacy data is a flat format. So now I would like to automate a way to convert this data to XML format.
Specifically for IDOCs, I would like to have an interface which picks up the flat files, transforms them to XML, and then drops them back into another file directory in the XML format. It would need to be able to pick up any kind of IDOC (given that XI has the metadata already imported), recognize what message type it is, then do the conversion.
I have been reading on SDN and found that there is a standard tool to do the conversion, but it appears it can only handle one kind of IDOC at a time, and it appears it only picks up one specifically named file at a time.
Has anybody tried to implement a scenario like this? Any help is appreciated (A walkthrough would be the best!).
Thanks in advance,
MikeMike,
What version of PI will you be using? PI 7.11 can now auto-convert Flat File IDocs to XML IDoc and vice versa.
Here is the documentation:
http://help.sap.com/saphelp_nwpi711/helpdata/en/b5/bd93642dd3410f90ebea702399fac4/frameset.htm (flat to XML)
http://help.sap.com/saphelp_nwpi711/helpdata/en/74/a45bc07e2043fb9b63295229178903/frameset.htm (XML to flat)
I have not tried this personally, but seems like you might be able to use a "File to File" scenario with no mapping, and use the "IDOCFlatToXmlConvertor" Module in your File Adapter Comms Channel and it may just work, giving you files that are the IDoc XML version of the flat file it is reading. It looks like it does an RFC call to the back-end SAP system where the IDocs are originally from (or could be any system as long as you know the IDocs in there are identical), and reads the IDoc metadata (which has always included flat file field offsets for each IDoc Segment Field), and applies that either to convert from flat file IDoc to XML IDoc, or XML IDoc to flat file IDoc.
It does mention that there is a limitation that there can only be one IDoc in the source flat file - could be a problem if you have many in one file, which is pretty typical.
Regards,
Brendan -
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 -
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 sHi 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 -
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 -
Retrigger failed IDOC with XML HTTP port
Hi Friends,
Can anyone suggest me how to retrigger failed IDOCS in we05 with XML HTTP port, any other than we19 to retrigger? I have already gone through all the links in sdn, nothing seems to work, have tried program RSMIPROACT also.
Thanks & Regards
RidhimaHello,
Please check the below SAP Note:
857321 - Resending HTTP IDocs automatically in status 02
-Rahul -
Hi All,
I want to define a port of type XML File in we21 of my R/3 system. Can I make it point to a non-local directory? (i.e. a directory that resides on a system on the network).
I tried to assign a Logical Directory in we21.I assigned an existing Logical File Path (T-code <b>FILE</b>) to a valid network path. But I get the error:
<i>Access to a stored directory not possible in this environment.</i>
How do I go about assigning a network path in we21?
Regards,
Puloma.Hi,
Try this way
Define a Partner of type FILE
In WE21 under that you create a port for the partner FILE
Select physical directory and give the directory as
<XI Install dir>:\usr\sap\X3A\DVEBMGS31\data
and the file name in outbound file.
or any path from XI installation directory.
Once this is done try sending out the IDOC and see.
Thanks,
Prakash -
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. -
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 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
Maybe you are looking for
-
How can I stop all tracks on an album playing automatically?
I use my iPod Classic to play backing tracks in my band. I have all our songs in one Album and want to be able to trigger tracks one at a time. But as one track ends the next one starts automatically. I want to be able to trigger the next track mysel
-
Nxt2004 (nxt200x) dvb woes
I'm going to send this to [email protected], but I wanted to check here if anyone knows what's going on. I have a pair of K-World ATSC 115 cards for my mythtv setup. Here's a wiki link to the card: http://www.mythtv.org/wiki/Kworld_ATSC_11
-
Sound levels on the Shuffle are inconsistent and troubling
Hi, I'm a new iPod owner. I've been using iTunes for over a year and a half, but only recently got a Shuffle for a gift. I love the little thing, but it has an odd quirk. The volume seems to get higher and lower depending on the album I'm listening t
-
How do I return to Snow Leopard from Yosemite? Yosemite is too slow on my MacBook.
How do I reinstall Snow Leopard now that I have Yosemite?
-
Query to find when the given schema last refreshed ?
I need to find out the given database schema, when did last get refresh using impdp or import or SQL Loader?