XSD file conversion using stylus studio
Hi All,
I have created an Xsd file using stylus studio from XML file .I have given the destination properties as XML Schema file name and TYpe etc. But i am unable to see the structure of the table in the sydicator.can any one let me know what might be the problem?
I am able to see repository , language,table,role,port ,description etc in the destination items?
Please help me out.
You can create xsd file using java jar files. To do so follow the following steps:
1) Repository-> export repository schema->save it in java bin file
2) open cmd-> create xsd file using java jar files
3) Again in Console upload the path of the xsd file where it is saved.
4)Open Syndicator->Destination properties->xml schema-> schema file name. Root automatically gets populated.
I hope I am able to solve your problem
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0e8a97-0d01-0010-f0a2-af3b18b7f4eb
Similar Messages
-
Not in class path - XSLT Mapping using Stylus studio
Hello,
I am using Stylus studio for XSLT mapping. I have written a JAVA function and when I tried to execute, I am getting an error " ...... not inclasspath".
I have put JAVA file in the classpath as expained in the Stylus studio help documentation.
Can anyone help me on how to place the Java class file in the proper class path and how that java file has to be called from main XML program.
Regards and Thanks in Advance
ArvindHello sabarish,
I have tried already as explained in the link you have mentioned. But still not working. In fact i was thinking to zip xsl, class and java files together and upload to XI. But I want to ensure whether i have called the java extension properly from XSL file.
Request you check this:
Java file
package com.eds.ehro.ximapping;
import java.util.Map;
//import com.sap.aii.mapping.api.AbstractTrace;
//import com.sap.aii.mapping.api.StreamTransformationConstants;
import java.util.*;
import java.text.*;
public class Concat_Employee_Sydate_Sytime {
public static String concat(String empno)
return empno + "-" + System.currentTimeMillis();
XSL file
<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.gemsconsult.com/idoctofile/employee"
xmlns:javamap="com.eds.ehro.ximapping.Concat_Employee_Sydate_Sytime">
<xsl:template match="/">
<ns1:SetEmployeesDemographics_R xmlns:ns1="urn:EmpDemoVi">
<ns1:demographics0>
<ns2:address xmlns:ns2="urn:com.sap.eds_ehro.besrv.demographics">
<ns2:adressLine>
<xsl:value-of select="concat(ns0:MT_EMPDETAILS/AddressLine1,ns0:MT_EMPDETAILS/AddressLine2)"/>
</ns2:adressLine>
<ns2:countyCode>
<xsl:value-of select="ns0:MT_EMPDETAILS/Country"/>
</ns2:countyCode>
<ns2:postalCode>
<xsl:value-of select="ns0:MT_EMPDETAILS/Zipcode"/>
</ns2:postalCode>
</ns2:address>
<ns2:clientID xmlns:ns2="urn:com.sap.eds_ehro.besrv.demographics">200</ns2:clientID>
<ns2:employeeID xmlns:ns2="urn:com.sap.eds_ehro.besrv.demographics">
<xsl:param name="empno">
<xsl:value-of select="ns0:MT_EMPDETAILS/EmployeeNo"/>
</xsl:param><!xsl:value-of select="ns0:MT_EMPDETAILS/EmployeeNo"/>
<xsl:if test="ns0:MT_EMPDETAILS/EmployeeNo">
<xsl:value-of select="javamap:concat($empno)"/>
</xsl:if>
</ns2:employeeID>
<ns2:personName xmlns:ns2="urn:com.sap.eds_ehro.besrv.demographics">
<ns2:firstName>
<xsl:value-of select="ns0:MT_EMPDETAILS/FirstName"/>
</ns2:firstName>
<ns2:middleName>
<xsl:value-of select="ns0:MT_EMPDETAILS/LastName"/>
</ns2:middleName>
</ns2:personName>
</ns1:demographics0>
</ns1:SetEmployeesDemographics_R>
</xsl:template>
</xsl:stylesheet> -
Im using measurement studio c++ to create a application. How to save a randomly generated value which display in the CNumberEdit Control to a text file? how to do the coding part?
You can use the CNiFile class to write the value out to a file. For example, create a new Measurement Studio C++ project and follow these steps:
Add a CNiNumEdit to the dialog.
Add a member variable for the CNiNumEdit called m_numEdit.
Add a button to the dialog.
Double-click the button to add a message handler for the button's BN_CLICKED message.
Add the following code to the button's BN_CLICKED message handler:
CNiFile file("C:\\Values.log", CFile::modeCreate | CFile::modeWrite | CFile::typeText);
file << m_numEdit.Value << endl;
file.Close();
Run the application, edit the CNiNumEdit's value, and click the button. The value should be written to the Values.log
file as specified in the code above.
Hope this helps.
- Elton -
XML to flat file conversion using file content conversion in reciever CC
Hi,
Iam working on Idoc to File scenario.
Iam having a problem in the communication channel of reciever.
Iam using File content conversion in Reciever Adapter.
My xml format is asfollows:--
- <Header>
<FILLER1>KTP</FILLER1>
<YEAR_IDOC>YEAR 2006</YEAR_IDOC>
<FILLER2>FIRSTWEEKNUMBER</FILLER2>
<WEEK_IDOC>51</WEEK_IDOC>
<FILLER3>NUMBER WEEKS 26</FILLER3>
<PLANT_CODE>FACTORYM019</PLANT_CODE>
</Header>
- <Record>
<First_material>731000</First_material>
<First_quantity>0000.0</First_quantity>
<First_quantity>0001.9</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0020.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<First_quantity>0018.0</First_quantity>
<First_quantity>0000.0</First_quantity>
<Second_material />
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0011.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0049.0</Second_quantity>
<Seond_quantity>000000</Seond_quantity>
<Seond_quantity>000000</Seond_quantity>
<Second_quantity>0067.0</Second_quantity>
<Third_material />
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>0008.0</Third_quantity>
<Third_quantity>000000</Third_quantity>
<Third_quantity>000000</Third_quantity>
</Record>
The file format should be as follows:--
KTP YEAR 2006 FIRSTWEEKNUMBER 51 NUMBER WEEKS 26 FACTORYM019
731000 0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
0000.0 0000.0 0000.0 0008.0 0000.0 0000.0
Could some one help me in resolving this issue.
Regards
PraveenHi Praven,
couldn't you simply modify your target DATA type so it will be easier to handle?
For example something like:
<Header>
</Header>
<Record>
<Material>
<Number>..</Number>
<quantity>..</quantity>
<quantity>..</quantity>
</Material>
In this way file content conversion will be easier (easy)!
Regards,
Sergio -
How can i read data in pagemaker file (PMD) using Visual Studio C# NET ?
I have bunch of data in .PMD file (Page Maker Document). Which contains mathematical equations and chemistry formulas, I am a .NET developer, and I am writing code for one of the educational learning system. For that I need to read and store mathematical equations/ chemistry formulas from .PMD file into database then display on the browser page.
Is it possible to read data from .PMD file using C#.NET, do I need to use any external libraries. How can I import .PMD to MATHML (Mathematical Markup language)?
Any existing examples for C#.NET?
Please help me regarding this.I can't claim to know much about visual C# Net, but I do know a bit about pagemaker. It really can't handle equations. there are a few work arounds involving things like baseline shifts and multiple text boxes, but generally equations were created in different programs and placed in pagemaker in picture or eps files. Either way the chances of extracting usable data out of pagemaker is very slim.
Jay -
Stylus Studio: EDI-XML Conversion
Hello all,
I wanted to convert EDIFact and X12 files in appropriate .xml and .xsd.
However while using Stylus Studio for this i am encountering some problems.
File-> New-> Convert to XML. In this i used appropriate EDI format .txt file to convert. I simply go by default options and . After conversion if try to see preview it ask's to save in .conv format. !
Also File-> Doc Wizard-> EDIFACT to XML Schema where to find the correct version and whether to tick mark the below check boxes.
I am new to EDI. I tried searching for it but didnt got appropriate answers. Kindly help
Regards
ArpilPlease see this
go through below links may be too many but some of them are very useful.
/people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
/people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
/people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield
http://www.stylusstudio.com/edi/XML_to_X12.html
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
Details on XI EDI adapter from seeburger
Check this for Conversions-
/people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
SAP Adapters
EDI with XI
http://www.seeburger.com
http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
http://www.seeburger.com/fileadmin/com/pdf/SEEBURGER_SAP_Adapter_engl.pdf
http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
http://www.seeburger.com
http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
/people/lionel.biennier/blog/2006/07/21/sap-xi-supports-edi-x12
/people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
How to generate .xsd file using jaxb generated java files
Hi,
We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
pls let me know.
thanks,
ThiruObject-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
Generate Java classes with JAXB 2.0 xjc.
http://www.theregister.co.uk/2006/09/22/jaxb2_guide/ -
Hi all,
I want to read xsd file(3 xsd file with namespaces).
Each xsd file contains namespace uri.
I want to read these xsd files and i want to get all the child node and attributes of given parent node.
how to get the information about each and every element's attributs and its child etc.
Message was edited by:
b_prasad
Message was edited by:
b_prasadYou could use Stylus Studio for the same
-
hi,
I have a "EDI 850-XI-R/3" scenario. I have planned to use stylus studio to convert the EDI 850 into XML format.
My question is if I can call this conversion by stylus studio directly from XI, isctead of first converting it and then again using XI to transform it and post it in R/3.
It would be great if someone can giv me some other suggestion also......Hi,
I have tried this scenario using this blog
/people/ricardoandres.maienza/blog/2007/04/06/edifact-to-xml--stylus-studio-solution
But i was getting error because of unavailable API's in Stylus version 6. So kindly check it for the latest version.
Best will be to check this page:
http://www.stylusstudio.com/data_conversion.html
This explains how to do the conversion Stand-alone. I siggest if you are successful then go for adapter module.
Regards
Arpil
Reward points for useful answers -
XSD file Created in PI 7.0 is not working in MDM
Hi Experts,
Need your help on the below scenario:
I have created the data types in in PI 7.0 and exported XSD file but, while connecting to syndicator (by using XML Schema file option) system is giving root element is missg error message. But, if i create the XSD file By using 3rd party XSD tools that XSD file working fine..
Can any one let me know the reason why the XSD file created by PI System is giving the Problem ?
Thanks in Advance
MaheshHi Mahesh,
usually XSDs from PI do not contain the <xsd:element>Name your Root Element</xsd:element> definition that is required for MDM Syndicator. If you compare the files as suggested, you'll notice something like that in the XSD of the third party tool. Still you could add this definition manually to the XSD from PI. Then the XSD will work, too.
Best regards
Michael -
Hello Guys
Are there any instructions (Steps) out there to create an XSD file to use in SOAP adapter?
I have a table with the following fields and need to create an XSD file to import in ID to configure a sender SOAP adapter.
ID Type NUMC Lenth 10
FNAME Type CHAR Length 20
LNAME Type CHAR Length 20
Any feedback or response will be highly appreciated.
Thanks
RamHi,
Generally, adapters are independent of the message types that you want to exchange.
You have to create all necessary object in Integration Repository, here you can create either DataType based on an existing XSD or you can use data type editor, you can also import xsd as an external definition. Then you create message types, interfaces, mappings etc.
In Integration Directory you will configure earlier created objects and you will configure SAOP adapter as a communication channel of your Business System/Service.
Regards,
Jakub -
ODI : create an XML model with UBL technology instead of XSD file
Hello,
I have several xsd files which contain UBL (Universal Business Language) and all these files are linked between them. In Oracle Data Integrator, I would like generate a XML model from these files as I use to do with the standard xsd files. Unfortunately, it doesn't work with the driver I use usually.
Do you know if you can generate an xml model from xsd files which contain UBL and if yes, could you say me all the steps I must do to that successfully please?
Thank you in advance.
OlivierHello All,
What I mean is :
when an xsd file calls an other xsd files by using the namespaces (when 2 xsd files are linked), is there a way to create an xml model matching with the contain of these 2 xsd files?
Can someone say me if the only solution to generate a xml model is to have only one xsd file?
Thank you in advance -
Practical maximum size limit of imported XSD files
Can anybody tell me if there is a kind of upper limit on the size of XSD files that can be imported into XI and used without problems?
I have seen a comment before that states XI will 'choke' on large XSD files, and that enumerations were recommended to be left out of the file if there are a lot of them and it is possible to do so.
Also, if the same XSD file is used in many scenarios. is it loaded into memory once, or many times?
BR,
Tony.Use a JAVA memory profiler in your Netweaver J2EE instance. Run the scenario where it use the XSD structure and XML file. Look for the classes from SAP's XML processing related JAR files and see how profiler is reporting about these class object usage.
I am also seeing two different ideas getting mixed here in this thread.
An ideal class load into the heap and usage of a another properatory system to handle large processing are different ideas.
XSLT mapping and XSLT engine is a framework which use JAVA heap. However the Queues used in context with an XSLT mapping in XI is a properatory approach to efficiently handle multiple operations in a mapping process efficiently, so we have to differtiate both aspects of large size file we can handle in a Java engine.
Thanks -
How to convert cXML dtd files into xsd format and use them into BPEL application
Hi,
In my BPEL application I have to use cXML dtd files by converting them into xsd format.
I have used 'Microsoft Visual Studio' for converting cXML.dtd file into xsd format, for this 1 dtd file I am getting three xsd files (cXML.xsd, cXML1.xsd and cXML2.xsd).
Please check this once and let me know
1. why I am getting three xsd files for one dtd file,
2. how can I use cXML.xsd file in my application, do I ll have to use all the three files in my BPEL app and
3. what should I include in main xsd file (cXML.xsd) to import other two xsd files.
kindly check this once and let me know your suggestions .
ThanksHi,
While downloading the cXML dtd there will be example xml files. Using this xml's we can generate xsd.
Regards,
KANN. -
Tips for editing VOB files using Pinnacle Studio
Summary: Have trouble importing VOB files into Pinnacle
Studio for further editing? If so, follow the quick-start guide to learn
how to prepare VOB videos for editing in Pinnacle Studio without
quality loss.
I normally receive my stuff in a format I can stick on Pinnacle
Studio, but VOBs are not compatible. What I want to do with the current
project is take the VOB I have and convert it for use with Pinnacle
Studio. And what I need is a VOB converter I know.
After getting some reviews online and multiple testing, I found the
best and easiest way to import VOB files into Pinnacle Studio along with
the help from Brorsoft Video Converter.
It is an optimal VOB converter for you, which can help you change VOB
into a different format like MPEG-2, AVI with least quality loss. You
should then be able to import the new file into Pinnacle Studio with
smooth editing without any trouble. It will ensure a perfect VOB
importing, playing and editing workflow with Pinnacle Studio
9/11/12/14/15.
How to Convert VOB to Pinnacle Studio editable format
1. Download, install and run the VOB to Pinnacle Studio Converter; click "Add Videos" icon to load your source .vob videos.
2. Click “Format” bar and choose "Adobe Premiere/Sony Vegas
> MPEG-2 (*.mpg)” as output format on the drop-down menu. Of course,
you can also choose AVI, MP4, WMV from “Common Video” as the output
format.
3. Click “Settings” button if you’d like to customize
advanced audio and video parameters like Video Codec, aspect ratio, bit
rate, frame rate, Audio codec, sample rate, audio channels.
4. Click the convert button under the preview window, the
converter will start encoding VOB for importing to Pinnacle Studio. Soon
after the conversion is finished, just click "Open" button to get the
generated files for edit in Pinnacle Studio 14/15/16 perfectly.
Source: How to split large vob files to Pinnacle Studio
[quote] movies-videos-convert-tips.overblog.com/2014/02/how-to-make-video-object-.vob-format-is-it-editable-friendly-in-pinnacle-studio.html [/quote]If you have the VOB files is it on a pre-existing DVD that will play on a set top box? (i.e. a VIDEO_TS folder with the VOB of your film inside it?)
then you could use Toast or similar to do a copy of it.
Otherwise you can use a program like MPEGStreamclip to demux the VOB back to an m2v and AC3 (Video and Audio file) and use DVD-SP to make a new playable DVD. There would be no loss in quality if you are merely demuxing.
Maybe you are looking for
-
Anyone installed itunes on windows 8?
So I've got Windows 8 Preview running on a dual core AMD Dell Zino and everything was swell (well, nearly everything) until I tried to install iTunes, which is a big deal for this device, since it's supposed to be a server. Anyone installed iTunes SU
-
Do the Photo Booth effects apply to your builtin camera on yahoo messenger?
Hiya, Just got a G5 IMAC and was wondering if you select an "effect" in Photo Booth will it apply to your isight camera. Is that how you are seen or will it be just normal? I am using the BETA version of Yahoo Messenger. Will it owrk on any other cha
-
How do you start Oracle OEM in Linux?
Thanks in advance
-
Creative Cloud desktop application Error 1
When trying to download the Creative Cloud desktop, it won't work and says Error 1
-
1.4.0 ? Cant see paid apps
Hi, Recently purchased a non network Palm Pre p100ueu here in ireland, however it wont update to any verison later than 1.4.0. I also cant see any paid apps; Phone is running on Vodafone Ireland Network. any help is much appriciated. Post relates to: