Mapping Cust Mast XML (Generated from MDM) to IDOC
Question: I am having trouble mapping the KNVI segment (repeating node) to the Cust Master (DEBMAS) idoc. MDM does not support nested repeatable records (qualified records) on their end. I have the KNVI records generated (serially) in MDM. I want to map these to the repeating node idoc structure. I am very new to SAP (so, I hope the explanation of my problem makes sense). Thanks! I want to map individual KNVI segments (i.e. Tax Country1/Tax Category1/Tax Classif. 1; Tax Country 2/Tax Category 2/Tax Classif. 2; etc.... to the repeating node in the idoc KNVI segment (ALAND/TATYP/TAXKD). Is there a way to handle in XI?
Thanks for any insight!
MMF
Hi, any feedback in this one ?
Similar Messages
-
How to include CDATA in xml generated from XQuery
I need to include Cdata in the xml generated from my xquery which is given below:
I tried using XMLCDATA, but not getting the desired output. What am I doing wrong?
SELECT XMLQuery('<InsUpdDel>
for $crv in ora:view("RELATION")
return
<first>
<eff_date>{$crv/ROW/EFF_DATE/text()}</eff_date>
<source>{$crv/ROW/SOURCE/text()}</source>
<key>
<fld>
<id>from_type</id>
<val>XMLCDATA({$crv/ROW/FROM_ENT_TYPE/text()})</val>
</fld>
<fld>
<id>from_ent_id</id>
<val>{$crv/ROW/FROM_ENT_ID/text()}</val>
</fld>
</key>
</first>}</InsUpdDel>'
RETURNING CONTENT)
FROM dual;
The output I get is XMLCDATA(C), while the desired output is <![CDATA[C]]>Forgive me my vanity to think I can contribute by kicking doors open that are probably already wide open....I might create more confusion, but perhaps it helps some of the readers of this thread....
In general it is not such a good idea to use "string" functions to create (serialized) XML. XML tools (including Oracle XML DB) go through a lot of effort to make sure that when a "native" XML structure is serialized to a string, the XML rules are strictly obeyed (e.g. special character escaping).
Just assume e.g. that the $i/Reference from above contains something like ]]><
The resulting XML would not be valid.
More info on serializing XML in the context of XQuery is available from
- http://www.w3.org/TR/xquery/#id-serialization
- http://www.w3.org/TR/xslt-xquery-serialization/
- http://www.w3.org/TR/xslt-xquery-serialization/#XML_CDATA-SECTION-ELEMENTS
Unfortunately I do not think Oracle XML DB currently implements these parts of the spec (perhaps 11g will)...leaving the OP's question unanswered.
Anyway, if going the route of serializing the XML through string functions, it is always good to realize the dangers of such an approach.
Peter -
Any way to insert the XML generated from dataTable into the oracle?
Hi guys,
I want to know if there is a way to insert the XML generated from dataTable(dataTable.GetXML()) into the oracle?
Thanks in advance,There is o extractor to load assessment cycles; instead you can load dtaa after the assesment cycle is complte in R/3. You can schdeule the job in BW accordingly.
May I know what exactly is the requirement.
Ravi Thothadri -
Export Master Data Model from MDM solution.
Hello,
I have been assigned the requirement to integrate our product with your “Master Data Management” solution. To be more specific, I need to import the Mater Data structure (model), from your companies MDM solution, into our product to build its table/column structure. What I am looking for is technical documentation that will help me make this possible.
Here is a list of some questions I have that technical documentation could address:
• Does your MDM solution have the capability to export the underlying Master Data structure (model)?
• What form is the data structure exported (db schema, data dictionary, etc)?
• What format would the exported information be in (XML, delimited text file, SQL DDL)?
• If the format is XML, is there an XML Schema that defines what it will look like?
• Do you have any sample export files that I can work with?
• Is there technical documentation that would help me make this possible?If you want to integrate with DRM I would suggest using the API (check out the SDK). This is the preferred and supported way to inject or extract from DRM from an integration standpoint. You can also do imports/exports, for example exporting a hierarchy in XML, to a table, etc.
Directly modifying the tables is not supported or encouraged; the DRM engine enforces many rules like validations, keeps multiple versions, tracks changes in transaction logs, etc, besides the fact that the database structure can change during upgrades. Additionally, due to the dynamic configuration capabilities some things like property values are stored in a one-to-many table that may be pivoted from what you expect. -
Where is XML generated from PO Output for Communication
I looked in $COMMON_TOP/admin/out and opened orequestid.out file, but its not xml
can someone tell me where does it get stored ?
thanksHi,
I am not using a barcode font. I am using RenderX's XSL stylesheets to generate the barcode. As I said, the barcode generate's fine in the PDF on my computer but does not appear in the PDF when the code is moved to Oracle.
Thanks,
Suzanne -
Creating Index on a XML generated from Dataset
HI mark,
I have an XMLTYPE table that contains data of the following format
<ROWSET>
<ROW>
<column1>1</column1>
<column2>2</column2>
</ROW>
<ROW>
<column1>1</column1>
<column2>2</column2>
</ROW>
<ROW>
<column1>1</column1>
<column2>2</column2>
</ROW>
</ROWSET>
the size of the XML is around 6.6 GB
I have to index it on column 1..
Is it possible?
If so how should be my schema?
and table creation procedure?
Can I create a clustered index on column 1 (it contains unique value)
I am using an XMLTYPE table
thanks
KathirThanks Marco and you caught me right..
I am a microsoft user..
As you said I tried creating function based index(2 to 3) but when I run a query on that table and draw explain plan it shows full table access. I didnt understand what exactly the problem is and why it didnt use the index..
would be great if some one can help me out with this...
I created index like this
Create INDEX Dataplace_Index1 on Dataplace e(e.existsnode('//syougou2')
the query goes like this(worst possible query)
select extractvalue(value(x),'//syougou2'),extractvalue(value(x),'//company_code'),extractvalue(value(x),'//address') from company_details c, table(xmlsequence(extract(value(c),'/COMPANY_DETAILS/COMPANY'))) x where
rownum < 250
and
(extractvalue(value(x),'//gyousyu_code') LIKE '%1%' OR extractvalue(value(x),'//gyousyu_code') LIKE '%2%' OR extractvalue( value(x),'//gyousyu_code') LIKE '%3%')
and
extractvalue(value(x),'//city_code') IN ('3501','3502','3503')
and
extractvalue(value(x),'//g_rieki5') NOT IN ('1')
and
extractvalue(value(x),'//jugyoin') > 1
and
extractvalue(value(x),'//g_uriage5') > 1
and
extractvalue(value(x),'//sihon') > 2
and
extractvalue(value(x),'//company_code') > '01-003541-9'
order by extractvalue(value(x),'//company_code') , extractvalue(value(x),'//g_rieki5')
and yet times a join..
My question is will functional index be helpful..
and if so is something wrong with the way I created a Fucntional Index..
why does the explain plan give Full table access
thanks
kathir -
Getting xml generated from ColdFusion
I am trying out the the framework and I created a cfm page
that creates xml to send back to the page. If I goto the page that
generates the xml it loads fine and in IE displays the xml tree.
But when I call the same page using XMLDataSet, I get an
onLoadError... but, if I take the generated xml and save it as an
xml file, it loads just fine... I turned debugging off in CF so the
only thing being written to the page is the xml..
Question 1, why would I get this error? and 2, how do I see
what the error is?"grumpee" <[email protected]> wrote in
message
news:epb7pf$9ng$[email protected]..
>I am trying out the the framework and I created a cfm
page that creates xml
>to
> send back to the page. If I goto the page that generates
the xml it loads
> fine
> and in IE displays the xml tree. But when I call the
same page using
> XMLDataSet, I get an onLoadError... but, if I take the
generated xml and
> save
> it as an xml file, it loads just fine... I turned
debugging off in CF so
> the
> only thing being written to the page is the xml..
>
> Question 1, why would I get this error? and 2, how do I
see what the error
> is?
Most likely you aren't serving the data using the correct
mime-type. Try add
something like this to your CFML code:
<cfcontent type="application/xml; charset=iso-8859-1">
The code above use iso-8859-1 (Latin-1), change it to the one
that fits your
application (utf-8 or whatever).
This custom tag could also make your life easier:
http://www.olimpo.ch/tmt/tag/spryxml/
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com -
Flash won't load xml generated from coldfusion
I have a swf file that used to load in xml files. It worked
perfectly fine. However, I then realized it would make more sense
to have the flash load a cfm file that creates xml on the fly.
My cfm page is creating perfectly fine xml but the flash
won't load it. WHY!?
Here is the path to my xml...
http://www.flyfishingcommunity.com/newsite/widgets/reports/pictures_widget_fly_fishing.cfm
In my flash file I load the cfm the way I used to load the
xml and its not working.mikejjr wrote:
> Ever since I loaded the new Internet Explorer, 7.0, my
FLASH won't load. When
> I go to a site requiring FLASH, it tells me that the
site requires FLASH, and I
> need to downloaded it from Macromedia... I have download
it twice, and still
> NO luck.
>
> Any suggestions? Can anyone help?
adobe.com/support/flash
look for links for player installation troubleshooting.
Also make sure that anti spy ware / ad ware and other that
type
of tools are not set to block flash content.
Some of these tools do that by default
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
XML alignment problem when opening with notepad - XML generated from SAP
Hi all,
I am sending a mail with attachment as XML format by using the function module SO_NEW_DOCUMENT_ATT_SEND_API1.
I am getting the xml file in mail and it was properly aligned when i open it. But when i open it with notepad the alignments are changing.
Below is the code for sending a mail. The content of the XML file populaed in int. table lt_attachment.
lt_attachment[] = pt_attachment[].
LOOP AT lt_attachment INTO ls_attachment.
ls_objtxt-line = ls_attachment-container.
APPEND ls_objtxt TO lt_objtxt.
CLEAR : ls_attachment, ls_objtxt.
ENDLOOP.
Creating the document to be sent
ls_mailsubject-obj_name = 'MAILATTCH'.
ls_mailsubject-obj_langu = sy-langu.
ls_mailsubject-obj_descr = 'You have got mail'.
ls_mailsubject-sensitivty = 'F'.
lv_cnt = LINES( lt_objtxt ).
ls_mailsubject-doc_size = ( lv_cnt - 1 ) * 255 + STRLEN( ls_objtxt ).
DESCRIBE TABLE lt_objtxt LINES lv_tab_lines.
Header of the email
ls_objpack-transf_bin = space.
ls_objpack-head_start = 1.
ls_objpack-head_num = 0.
ls_objpack-body_start = 1.
ls_objpack-body_num = lv_tab_lines.
ls_objpack-doc_type = lc_raw.
APPEND ls_objpack TO lt_objpack.
CLEAR ls_objpack.
ls_objpack-transf_bin = lc_x.
ls_objpack-head_start = 1.
ls_objpack-head_num = 1.
ls_objpack-body_start = 1.
ls_objpack-body_num = lv_tab_lines.
ls_objpack-doc_type = 'XML'.
ls_objpack-obj_name = 'data'.
ls_objpack-obj_descr = 'data'.
ls_objpack-doc_size = ls_objpack-body_num * 255.
APPEND ls_objpack TO lt_objpack.
CLEAR ls_objpack.
Add Recipients
ls_reclist-rec_type = 'U'.
ls_reclist-com_type = 'INT'.
ls_reclist-receiver = pv_mail.
APPEND ls_reclist TO lt_reclist.
Mail Contents
ls_mailtxt-line = 'Please find attached your XML doc.'.
APPEND ls_mailtxt TO lt_mailtxt.
CLEAR ls_mailtxt.
ls_mailtxt-line = lc_regards.
APPEND ls_mailtxt TO lt_mailtxt.
CLEAR ls_mailtxt.
ls_mailtxt-line = lc_dewa.
APPEND ls_mailtxt TO lt_mailtxt.
CLEAR ls_mailtxt.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_mailsubject
put_in_outbox = lc_x
commit_work = lc_x
TABLES
packing_list = lt_objpack
contents_bin = lt_objtxt
contents_txt = lt_mailtxt
receivers = lt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
COMMIT WORK.
SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
pv_return = 'Success'.
ELSE.
pv_return = 'Failed'.
ENDIF.
CLEAR: ls_objtxt,ls_reclist, ls_objpack ,ls_doc_chng.
REFRESH: lt_objtxt,lt_reclist,lt_objpack.
Could any one help me on this.
Thanks & Regards,
Vineel.Can't you PREVIEW your question before posting? Here you have more than 2500 characters, so we can't read your code.
Your "problem" seems normal to me (you shouldn't open an XML file with Notepad). Could you give an example how it looks like and how you'd like to make it appear? -
Validating an XML message from Outbound Interface.
Hi All,
I hav an xml generated from an outbound interface and is to be validated against a BC Schema that hav been specifically created from the sample XML docs.I'm strucked at how to validate the XML in XI against the xsd file. Can anyone pls help me out in this regard.It's a bit urgent.Hi Anil,
When you create a dataType by yourself, then XI generates the XSD.
Instead, you could create the dataType by importing a XSD. Two ways:
1. While creating a new dataType, Goto Tools->'Import XSD' and select your XSD file.
2. You can import your XSD as 'External Definitions'
In these 2 cases, the dataType will be as per your XSD. Then use this dataType for receiving the data into XI.
XI validates against that dataType XSD, which is your XSD.
Hope this helps!
regards,
Pops V -
How to configure idocs to Syndicate masterdata objects from MDM to ECC
Hi Experts,
How can we configure the IDOC to syndicate the master data objects from MDM to ECC.
can anyone explain step by step procedure to achieve the same?
Thanks in advance
SSHi Sandhya
R/3-XI-MDM (Outbound Scenario) :
/people/balas.gorla/blog/2007/02/05/r3-xi-mdm-outbound-scenario
MDM-XI-R/3 Integration
/people/balas.gorla/blog/2006/09/27/mdm-xi-r3-integration
For any other info please refer the links below:
http://help.sap.com/saphelp_mdm550/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
https://websmp102.sap-ag.de/~sapidb/011000358700001855352008E
These 2 links are the fundamentals for MDM and cover almost everything.
Thanks-Ravi -
Source of xslt mapping and XSD/ XMT target structures for standard Idocs
Hi,
I am working on R/3 - XI - ICH scenario. I need xslt mapping and XSD/ XML target structures for standard IDoc like PROACT01,DELFOR01, DELVRY03. I tried to search it on marketplace but couldn't find it there. As per configuration document, these things are shipped with XI mapping content in live cache CD. But I don't have this CD with me. Can anybody tell me the source for these target structures and mapping program. ( Please share marketplace, site link or send me across the mail [email protected])
Thank you in advance.
Anand More.Anand the other option is to import the corresponding idocs into your integration repository and then you can view the generated XSD there.
As regards XSLT mapping, you need to basically first identify as to what form you want to transform your source idoc into.
For some help on XSLT mapping check the following threads,
https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/topusers.jspa%3FforumID%3D44
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-6&contenttype=url&content=https://Process Integration (PI) & SOA Middleware
Also have a look at my code samples,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic xslt mapping in sap xi, part i.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
cheers
Sameer -
Generate XML Schema from Java classes?
Hi,
Considering an XML Mapping, i would like to generate a default XML Schema from my Java class.
Is there a tool in toplink (10.1.3) to do that or does anyone have an easy way to generate this XML schema?
Thanks,
LudovicHi Ludovic,
We don't have support for schema generation from Java classes in TopLink 10.1.3. It's required for JAXB 2.0 so it will be available in a future release.
--Shaun -
Best Practices:: How to generate XML file from a ResultSet
Hi all,
Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
1. Write order details then
2. Through an iterator write line items of that order to an XML file.
I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
alexUse a OracleWebRowSet in which an XML representation of the result set may be obtained.
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm -
Error while generating an XML Document from XML Schema with JAXB
Hi,
I am following this OTN tutorial to generate the XML document from Java classes got from the XSD document.
http://www.oracle.com/technology/pub/notes/technote_jaxb.html
I am able to generate all the Java classes but getting error on compiling the XMLConstructor.java class which is use for generating the XML document :
I am using JDK 1.5 and
Oracle 10g XML Developer's Kit (XDK) Production for Java. xdk_nt_10_1_0_2_0_production
(though these are warnings I am not able to run it.)
Error
C:\Prototype\classes\jaxbderived\catalog>javac -Xlint XMLConstructor.java
warning: [path] bad path element "%CLASSPATH%": no such file or directory
XMLConstructor.java:42: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
journalList.add(journal);
^
XMLConstructor.java:46: warning: [unchecked] unchecked call to add(E) as a membe
r of the raw type java.util.List
articleList.add(article);
Thanks
Sanjeev ([email protected])Use JDK 1.4.
Maybe you are looking for
-
So I am sure Jonathan groans when he sees my name pop up, but I found another ComboBox issue and I am looking for help finding a workaround. (I opened a JIRA - http://javafx-jira.kenai.com/browse/RT-27654) Seems that calling clearSelecion() on a Comb
-
Hello all, First off im pretty new to Apex and the Apex forums so Hello!<br> Im currently trying to create an Application which contrains a report. Now the report has a Source which contains the following: <br><br> SELECT 'a href="f?p=' || v('APP_ID'
-
I switched over my iPhoto library to Aperture but realized about 20% of the entire library contains thumbs but no image. These missing photos have size (e.g. 1MB) but no resolution (it says 0 x 0 px). Also all of these photos have the dot inside the
-
Crashes whenever I try to attach anything to an email
I can send and receive emails, but if I attempt to attach anything to an email, it locks up Firefox completely as soon as I click on the ATTACH button. I can only get out of it if I repeatedly click on the X in the upper right corner and repeatedly c
-
HT1414 Trying to upload software updates on ipad2 when screen froze
Trying to upload software updates on ipad 2 when the screen froze with the message iso6 and an arrow and configure. When pressed the message becomes update complete just a few more steps to follow. But it will not continue and will not escape when pr