XML XI IDOC
Hi All,
I am new to SAP xi.I need information about XML to XI to IDOC Scenario.(Step by Step)
appreciate your help.
regards,
F.Kökce
Hi Fatih,
Just adding on to what the others have told...These are also a few information that will come to use.
<u>
<b>TCODES for File>XI>IDoc</b></u>
SM59-rfc destination on recving side
IDX1-port on recving side
IDX2-load metadata
Bus. service adapter specific Identifiers-->Logical sys name (check this blog:/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system )
we05-IDoc status records
BD54-Create Partner Number
We20-Create Partner Profile
and also go thru this blog...
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
when configuring the Receiver IDOC adapter follow these steps:
1. create a port in TCODE - IDX1
to your r/3 server
http://help.sap.com/saphelp_nw04/helpdata/en/3b/beb13b00ae793be10000000a11402f/content.htm
2. use this port and RFC dest (to the r/3 server)
while configuring receiver idoc adapter
http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm
Also go thru these links for step by step procedure to do the same:
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
http://help.sap.com/saphelp_erp2005/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
I guess they are of help to you.
Regards,
abhy
Message was edited by: Abhy Thomas
Similar Messages
-
Scenario is IDOC to File. My ABAP team given some ref Idoc numbers which are there in R/3 system for test data.They are not posting Idoc from R/3 system to XI.They are asking me to take the data from R/3 system and post it thru XI RWB.
So,how can I get xml (of Idoc) from R/3 system.so that i can the xml(of idoc) from RWB.Hi Naresh,
Hasnt ALE configuration been done?
I think you cant download XML if you have IDoc numbers.
If ALE Configuration has not been done. Do the same. Wont take more than 10-15 minutes to do.
Then using WE19 you can send the idocs.
Regards,
Sumit -
Message split - XML to IDOCs - (1:n) mapping
I have to split an incoming XML(in idoc DEBMDM format) from MDM to 2 Idocs (ADRMAS & DEBMAS).
Target message set to occurences "0:unb".
Have tested my graphical-mapping in IR and its working fine. Tested the configuration and got error in IB.
In SXMB_MONI i find the error message,
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="OUTBINDING">CO_TXT_MMF_ENGINETYPE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Messages in multi-message format can only be sent to one Adapter Engine</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Read in few threads about creating a "custom adapter module"...is this right? if so.... how to proceed ?
Appreciate any help.Ram,
Message Split using Graphical Mapping that ur using now supports adapter which are on same J2EE engine .
In ur case Ur trying to post IDOCS ( I suppose ) which is not
supported in using Graphical mapping.
U need to change the design.
-- Kavitha -
XML to IDOC : Hierarchy mapping help needed
Hi All,
I am trying to complete graphical mapping for an XML to IDOC structure. Both structures are EXACTLY same, but data is not populating in IDOC as desired.
My incoming XML structure and IDOC structure is
Header
Data_header (1 -- 999)
|_Data_item (1 -- 3)
Trailer
If I have only 1 header, then IDOC data is populated correctly.
But when I have multiple headers and theer items, the Headers are getting populated, but items do not get populated correctly.
*Example My Input is:*
Header
Data_header
|_Item_1
|_item_2
Data_header
|_item_3
Trailer
My output is (IDOC)
Header
Data_header
|_Item_1
Data_header
|_Item_2
Trailer
As seen above Item3 of Data_header2 has gone missing._
For Data Header, I am using REMOVE_CONTEXT function and for ITEM I am using SPLITBYVALUE. Thought this should have helped, but am struggling.
Any tips, help, greatly appreciated.
Many thanks
ShirinHello,
Have you done one to one mapping, as u mentiong they are exactly same..
if that's the case, then mapping test should be successful.
If there is any diffrence in occurences of target structure or any other difference and let me know.
If possible send me the target structure...
Regards,
Sreenivas. -
How to encode XML to Idoc and decode Idoc to XML in business connector?
Hi all,
first of all: thanks for all, who are reading and perhaps responding this question!
Here some facts and my question(s):
The facts:
- I have the business connector version 4.6!
- I'm not working with any SAP Netviewer!
- I have XML files on an FTP-server and Idoc-files on an FTP-server --> so no connection between SAP and business connector, meaning: the files are just on the ftp-server!
What am i doing and what is working properly:
- Business connector logs in into the FTP-server (with FTP-service: pub.client.ftp:login)
- gets the file (with FTP-service: pub.client.ftp:get) (the idoc-file, when i want to convert it into XML or the XML-file, when i want to convert it into idoc-format)
- puts the file into another place in the server (with service wm.PartnerMgr.gateway.transport.FTPTransport:OutboundProcess)
!!!So far only getting and putting of the file works!!!
What is missing between getting the file in one format - for example idoc-format - and putting the file into the server in the other format - for example XML-format is:
CONVERSION FROM XML INTO IDOC AND VICE VERSA
My question:
- which services i have to use between getting and putting the files?
Thanks to all,
TamerHi,
I have the same problem. I do fix it?
Thanks
Wilson Xavier
Brazil -
HI....PI Experts
I am early bird on PI space,
My boss just given me a XML file and asked to convert into XML using PI System.
We have a readily installed PI System in place.
What other information i have to get , know, discover to convert the XML to IDOC.
I understand ...some explicitly mapping to my XML to IDOC document structure is required. ..am i right ?
if some explain more about this, We will be greatful and move further in this requirement.
I tried this but was really not useful
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Regards
PRwhich is your target IDoc ?
How you are picking this XML ?
If you are picking that from folder as ABC.xml, so scenario is XML file to IDoc.
If you are picking up that directly from MQSeries, so you will make connections between MQSeries & SAP PI.
Take help for that from the link for making connection between MQSeries & SAP PI :
How to use MQseries with PI?
make scenario using XSD Schema of sender side IDoc. -
How to convert XML into idocs and post in ECC using PI
Hello All,
I want to configure the scenario like this MDM->PI->ECC. Using FTP I am getting able to fetch the xml file from MDM Server Ready folder. Now, I need to convert this XML file into Idocs and post it in ECC. Can anyone provide me step by step configuration in PI to achieve this. I have configured communication channel with adapter type Idoc in Itegration Builder. But, I am not sure where it will do the conversion of XML into Idoc and how do post it to ECC. I am working first time on PI 7.1. I have worked on XI 3.0 in 2006-2007. Any help to configure this step by step shall be appreciated.
Thanks & Regards,
HemalIn you have the XML from MDM you have to use the mapping provided by the funtionals in the Funtional specification documents. once you did it you must configure the Receiver IDoc Adapter. and later dont fonget to configure properly the ReceiverAgreement.
as you receive the docuement from MDM via FTP, thats not a SAP System that means that you have to define PI as the sender of the IDoc,otherwise you will have the Error "Unable to convert the sender service to an ALE logical system"
to do that in the receiver Agreement>Header Mapping>Sender System-->Select PI server.
Take in mind to send IDocs to any SAP System, the system that send it must be a SAP system too. thats why you configure it
http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
Another thing is you have configure the ALE distribution Model.
se this:
http://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
Let us know
Rodrigo P-. -
Multimapping n:1 (XML to IDOC) Issue - Cannot use map in the scenario
Hi! I have created a multimapping in the directory. Source message is 0...unbounded and destination message is 1. The intention is to bring a single file into XI that contains mutliple XML messages. I then need to map this into a single IDOC. I have the mapping working. However, when I try and bring this into my integration scenario, XI cannot find the message interface.
I am not 100% convinced that this will all hang together =) But Cannot even prove that 'cos I cannot set this up in the scenario.
Any ideas would be greatly appreciate and rewarded.
Thx
DuncanApologies for getting all my terminology screwed up. Here is what I have:
<u>Integration Repository</u>
Imported Objects - Target IDOC
Interface Objects : External Definitions - XML schema of source message
Interface Objects : Message Interface - For source XML; Outbound + Asynch
Message Objects : Message Mapping - XML (0..unbounded) to IDOC (1) map
Message Objects : Interface Mapping - XML message interface (0..unbounded) -> XML to IDOC mapping -> IDOC (1)
<u>Integration Directory</u>
Interface Determination...
I select Type of Interface Determination = Extended but when I pull down the dropdown I do not see the multimap.
I have this working OK for one IDOC to multiple XML messages, doing the same as above. I have checked SCV, namespace etc... and they are correct. I am sure I am missing something very simple.
Again, any ideas appreciated.
Thx
Duncan -
Hi,
Sender is a 'party' which generates an Idoc. Some of the fields from this idoc has to be fetched by XI and passed to the receiver R/3 system.
Requirement :
Party -
> Idoc-xml -
>XI--> Idoc--
> R/3
(XI - Adapter Sender) ( IDOC Recevier Adapter)
1) what are the initial setting to be done in Xi & R/3 systems?
2) Any authentication details of the party is needed? ( as the XI sender adapter doesn't have many parameters to eneter in comm channel)
Also, here party is an 'R/3 system', who sends the data as an Idoc.
3) How should i convert the idoc to Idoc-xml? In other words how would i create my source DT,MT and MI ?
Appreciate Ur comments,
Thanks,
RaggyHi,
Here are the answers pointwise.
1) what are the initial setting to be done in Xi & R/3 systems?
Initial settings are Port and partner configuration in both XI and R/3 systems. You have to configure the RFC destication also.
2) Any authentication details of the party is needed? ( as the XI sender adapter doesn't have many parameters to eneter in comm channel)
Also, here party is an 'R/3 system', who sends the data as an Idoc.
Why are you using XI - adapter???any specific reason?
If party is an R/3 system then you can use IDOC adapter and if not then you can use FILE adapter to pick up the IDOC-XML file.
3) How should i convert the idoc to Idoc-xml? In other words how would i create my source DT,MT and MI ?
You do not need to convert the idoc to idoc-xml. IDOC adapter will do it automatically.
IDOC will act as a MT and also as a MI.
Hope it clarifies your doubts.
Br,
Madan Agrawal -
Xml to idoc for iincoming invoices
I am quite a newbie.
I am interested how to convert xml to idoc without XI (now PI). Probably there is an ABAP possibility(exmple).
Is there another way?
I have in mind incoming invoices.Hello,
Have you done one to one mapping, as u mentiong they are exactly same..
if that's the case, then mapping test should be successful.
If there is any diffrence in occurences of target structure or any other difference and let me know.
If possible send me the target structure...
Regards,
Sreenivas. -
XML to IDOC scenario in SAP PI 7.31
HI Team,
I am new to Sap PI. I have one scenario xml to idoc in sap pi. Can anyone please help me step by step for this scenario.
Thanks in Adnavce
KalluThere are ample examples on the internet. Search by giving your exact requirement.
Try this and see if it helps.
XI/PI: Simple IDoc Communication using SAP XI -
Hi all,
for a customer I'm building an xml to IDoc scenario. The xml-file looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<ROOT>
<ROW>
<_5731 />
<_5735 />
<EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
</ROW>
</ROOT>
The message type I created in the message mapping looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ROOT xmlns:ns0="http://wartsila.com/i-protect">
<ROW>
<_5731 />
<_5735 />
<EMPLOYEE_SALARYNR>test</EMPLOYEE_SALARYNR>
</ROW>
</ROOT>
My problem is I'm not able to translate the customer xml-file in my message mapping, unless I add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by deleting the namespace declaration in the message mapping. After that I receive an error when I import the changed structure into the message mapping.
Is anyone familiair with this problem? Is there someway to add a namespace to the sourcefile or to change the message mapping such a way that it corresponds to the source file?
Thanks in advance!
Regards,
Ivo van EeMy problem is I'm not able to translate the customer xml-file in my message mapping, unless I
add the namespace "xmlns:ns0="http://wartsila.com/i-protect"" to the file. I tried to solve the problem by
deleting the namespace declaration in the message mapping. After that I receive an error when I import
the changed structure into the message mapping.
Since you have created a Message Type corresponding to the sender structure you have the option of deleting the namespace from the Message Type itself.....it is not to be deleted from the message mapping as you mentioned above.....changes made to the MT may cause an initial inconsistency in the mapping......but once done it will be fixed :)...just refer the blog given by Aamir...
Regards,
Abhishek. -
Hi Gurus,
Need to import an XML format IDOC into SAP,
does anyone has any idea???
Thanks,
sachin soniHi sachin,
If u want to import the from Prsentation server just follow these procedure.
frist use the gui_upload function module..
data type is .dat....
Earilier i have done same requirement plz gimme ur mail id so that iwl sendu that code to ur mail........
Regards,
jayan. -
When add messge type and profile parter to IDOC regarding xml to IDOC .
Hi all:
There is a business requirement to pass xml to IDOC using xi, can you tell me when the message type and profile partner information is added to IDOC? this work is done by Xi or sap?
Thank you very muchHi Jingying ,
There is a business requirement to pass xml to IDOC using xi, can you tell me when the message type and profile partner information is added to IDOC?
--> at one end XML is available at the other end we need to import the Idoc in XI . Inside XI mapping will take place which will take care of your XML to IDoc passing . Partner Profile Information is maintained at ECC end only. But we need to pass the Logical system details at XI end i.e SLD/Adapter specif indentifers
this work is done by Xi or sap?
-->SAP only !!
Regards , -
IDOC_XML_FROM_FILE Error while loading XML as IDOC to ECC 6.0
I have successfully converted IDOC to XML file.
Getting Error while converting XML back to IDOC in ECC 6.0 using function: IDOC_XML_FROM_FILE
Segment EDI_DS40 is not defined.....I am really not sure about the error as this idoc was previously posted to the same ECC 6.0...
Exception SEGMENT_ERROR
Message ID: EA Message number: 721
Message:
The segment EDI_DS40 is not defined.
Secondly is there a way to load XML file via WE19?
Tx
SalmanThanks alot Oliver for taking a stab...
I created the XML file from within SAP by using the functionailty of this function module:-
IDOC_XML_TRANSFORM
I created my ZIDOC_XML_TRANSFORM and just added file download facility in that the rest is the same as the orignal function.
Is there any way for me to supress generation of ED_DS40 segements in the XML file?? -
Mapping from nested to one table (sales order) XML to IDOC
Hello,
I have to map a xml file to the IDOC SALESORDER_CREATEFROMDAT2.SALESORDER_CREATEFROMDAT202.
How I can map the the longtext from the XML file to the IDOC struktur.
Part of the XML file, there could be n times BPosition with n times longtext. The longtext must be map with a table. I some case its a mapping from nested to mornal table.
<BPosition>
<lpos>1</lpos>
<bbl_sap_nr/>
<milvonr/>
<kurztitel/>
<anzbest/>
<anzliefer/>
<kostenpflichtig/>
<longtext>
<line>pos1 zeile1</line>
<line>pos1 zeile 2</line>
</longtext>
</BPosition>
thanks for your help.Hi, I have to map this 1 XML to 1 IDOC
XML:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Milver xmlns:ns0="http://ccssap.bfi.admin.ch/milver">
<bestellung>
<besteller>
<bestellnr/>
<auftragdefit/>
<wempfdebit/>
<bestelldat/>
<lieferdat/>
<anzpos/>
<language/>
<adrzeile1/>
<adrzeile2/>
<adrzeile3/>
<adrzeile4/>
</besteller>
<Kopf>
<Lkopf>Kopf1 zeile1</Lkopf>
<Lkopf>Kopf1 zeile2</Lkopf>
</Kopf>
<BPosition>
<lpos>1</lpos>
<matnr/>
<milvonr/>
<kurztitel/>
<anzbest/>
<anzliefer/>
<kostenpflichtig/>
<bemerkung>
<line>pos1 zeile1</line>
<line>pos1 zeile 2</line>
</bemerkung>
</BPosition>
<BPosition>
<lpos>2</lpos>
<matnr/>
<milvonr/>
<kurztitel/>
<anzbest/>
<anzliefer/>
<kostenpflichtig/>
<bemerkung>
<line>pos2 zeile1</line>
<line>pos2 zeile 2</line>
</bemerkung>
</BPosition>
</bestellung>
</ns0:MT_Milver>
IDOC:
The Idoc have a segment for the longtext (table).I have to map, lpos, line into E1BPSDTEXT from SALESORDER_CREATEFROMDAT2. Its now more clear?
Maybe you are looking for
-
Standard vs Retina Display?
Which is better and why?
-
Good day, I have created an XML iView to an RSS feed according to the Blog 'Implementing A RSS Feed Reader In The Portal' and I have set up my proxy settings but I still get the error: Error while using XML iView, please contact your system administr
-
Hi, I am trying to migrate 6i libraries to 10g in Orcle forms, in one of the pll it is using below procedure. In this it is calling wi_api_utility.get_parent_window procedure, which is part of d2kwutil. Now I have to use webutil instead of d2kwutil,
-
I am fairly new to the iPhone and noticed yesterday up by the Bluetooth icon a small circle that is 90% complete and has an arrow at the end and a small lock in the middle. I have made no changes in my settings and cannot figure out what this is. A
-
Ipad 3 screen cracked. what would be approx price in Indian Rs to get is changed?
ipad 3 screen cracked. what would be approx price in Indian Rs to get is changed?