Problem when trying to load an XML document with DTD or XML SCHEMA
Hello
I have tried to load an XML document in Data Services, and I created the xsd file and Dtd file. (With altova xml spy software automatically) to import into SAP Data Services 3.2. .
In Data Services I created the dtd import file DTD and then called the XML file from the DTD (the xml file is validated vs the dtd file), and I could not read the xml correctly because it tells me that an ELEMENT called <item> expected joiners who did not come in the structure of import (dtd), but if the xml.
I understand that the document root is the label: CUSTOMER_FULL_2014, the data flow is as follows:CARGA_XML_CUSTOMER |
Turns out the joiners element is used to separate the xml elements are repeated, but is used at different levels. My idea is that the design will dtd second, or something I'm missing or is incorrectly stated.
Thank you.
xml
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="utf-8"?>
<CUSTOMER_FULL_2014>
<item>
<CUST_NO>202222</CUST_NO>
<ADDRESS>
<item>
<SHIP_TO>202222</SHIP_TO>
<NAME1>Henley.</NAME1>
<STREET>Vitacura #40</STREET>
<CITY>LIMA</CITY>
</item>
</ADDRESS>
<EQUIPMENT>
<item>
<EQUI_NO>81623</EQUI_NO>
</item>
<item>
<EQUI_NO>81633</EQUI_NO>
</item>
<item>
<EQUI_NO>81993</EQUI_NO>
</item>
<item>
<EQUI_NO>82003</EQUI_NO>
</item>
<item>
<EQUI_NO>82013</EQUI_NO>
</item>
<item>
<EQUI_NO>82103</EQUI_NO>
</item>
<item>
<EQUI_NO>82113</EQUI_NO>
</item>
<item>
<EQUI_NO>581203</EQUI_NO>
</item>
<item>
<EQUI_NO>900003-EMER</EQUI_NO>
</item>
<item>
<EQUI_NO>9000033-STOCK</EQUI_NO>
</item>
</EQUIPMENT>
<STORAGE_LOC>
<item>
<STOR_LOC_NO>0001</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
</item>
<item>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 henley</DESCRIPTION>
</item>
</STORAGE_LOC>
</item>
<item>
<CUST_NO>2007933434343</CUST_NO>
<ADDRESS>
<item>
<SHIP_TO>2007933434343</SHIP_TO>
<NAME1>Campos de Almacenaje SA</NAME1>
<STREET>Calacoto2, Calle 1</STREET>
<HOUSE_NO>Piso 1</HOUSE_NO>
<CITY>La Paz</CITY>
</item>
</ADDRESS>
<EQUIPMENT>
<item>
<EQUI_NO>90000-EMER</EQUI_NO>
</item>
<item>
<EQUI_NO>90000333-STOCK</EQUI_NO>
</item>
</EQUIPMENT>
<STORAGE_LOC>
<item>
<STOR_LOC_NO>00012</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
</item>
<item>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 henley</DESCRIPTION>
</item>
</STORAGE_LOC>
</item>
<item>
<CUST_NO>200801333</CUST_NO>
<ADDRESS>
<item>
<SHIP_TO>200801333</SHIP_TO>
<NAME1>CONSTRUCTORA SA.</NAME1>
<STREET>Ruta Panamericana Km 100</STREET>
<CITY>San Antonio 23</CITY>
</item>
</ADDRESS>
<EQUIPMENT>
<item>
<EQUI_NO>1507933</EQUI_NO>
</item>
<item>
<EQUI_NO>1509733</EQUI_NO>
</item>
<item>
<EQUI_NO>90000-EMER</EQUI_NO>
</item>
<item>
<EQUI_NO>90000333-STOCK</EQUI_NO>
</item>
</EQUIPMENT>
<STORAGE_LOC>
<item>
<STOR_LOC_NO>0001</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
</item>
<item>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 henley</DESCRIPTION>
</item>
</STORAGE_LOC>
</item>
</CUSTOMER_FULL_2014>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ARCHIVO DTD CREADO (automáticamente con xml spy)
<?xml version="1.0" encoding="UTF-8"?>
<!-- DTD generado con XMLSpy v2014 rel. 2 (x64) (http://www.altova.com) -->
<!ELEMENT CITY (#PCDATA)>
<!ELEMENT item ((SHIP_TO, NAME1, STREET, HOUSE_NO?, CITY) | (CUST_NO, ADDRESS, EQUIPMENT, STORAGE_LOC) | (STOR_LOC_NO, DESCRIPTION) | EQUI_NO)>
<!ELEMENT NAME1 (#PCDATA)>
<!ELEMENT STREET (#PCDATA)>
<!ELEMENT ADDRESS (item)>
<!ELEMENT CUST_NO (#PCDATA)>
<!ELEMENT EQUI_NO (#PCDATA)>
<!ELEMENT SHIP_TO (#PCDATA)>
<!ELEMENT HOUSE_NO (#PCDATA)>
<!ELEMENT EQUIPMENT (item+)>
<!ELEMENT DESCRIPTION (#PCDATA)>
<!ELEMENT STORAGE_LOC (item+)>
<!ELEMENT STOR_LOC_NO (#PCDATA)>
<!ELEMENT CUSTOMER_FULL_2014 (item+)>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The error of MONITOR Data Services
11676
5184
XML-240108
11-04-2014 17:34:16
|Data flow CARGA_XML_CUSTOMER|Reader READ MESSAGE customer OUTPUT(customer)
11676
5184
XML-240108
11-04-2014 17:34:16
An element named <item> present in the XML data input does not exist in the XML format used to set up this XML source in data
11676
5184
XML-240108
11-04-2014 17:34:16
flow <CARGA_XML_CUSTOMER>. Please validate your XML data.
11676
5184
XML-240307
11-04-2014 17:34:16
|Data flow CARGA_XML_CUSTOMER|Reader READ MESSAGE customer OUTPUT(customer)
11676
5184
XML-240307
11-04-2014 17:34:16
XML parser failed: See previously displayed error message.
The Error from Monitor
The metadata DTD
Thanks
Juan
Hi Juan Juan,
I generated a new XSD file using MS Visual Studio based on your XML file.
The empty spaces in the source is replaced with <Null> in the target table.
Here is the XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="CUSTOMER_FULL_20140207_033015_001">
<xs:complexType>
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="CUST_NO" type="xs:unsignedInt" />
<xs:element name="ADDRESS">
<xs:complexType>
<xs:sequence>
<xs:element name="SHIP_TO" type="xs:unsignedInt" />
<xs:element name="NAME1" type="xs:string" />
<xs:element name="STREET" type="xs:string" />
<xs:element minOccurs="0" name="HOUSE_NO" type="xs:string" />
<xs:element name="CITY" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EQUIPMENT">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="EQUI_NO" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="STORAGE_LOC">
<xs:complexType>
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="STOR_LOC_NO" type="xs:unsignedByte" />
<xs:element name="DESCRIPTION" type="xs:string" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
For Source XML
<?xml version="1.0" encoding="utf-8"?>
<CUSTOMER_FULL_20140207_033015_001>
<CUST_NO>200530</CUST_NO>
<ADDRESS>
<SHIP_TO>903533</SHIP_TO>
<NAME1>HENLEY - PART MAQUINARIAS S.A.</NAME1>
<STREET>Dean Camilo # 148, San Carlos</STREET>
<CITY>LIMA</CITY>
</ADDRESS>
<EQUIPMENT>
<EQUI_NO>4442</EQUI_NO>
<EQUI_NO>8163</EQUI_NO>
<EQUI_NO>8199</EQUI_NO>
<EQUI_NO>8200</EQUI_NO>
<EQUI_NO>8201</EQUI_NO>
<EQUI_NO>8210</EQUI_NO>
<EQUI_NO>8211</EQUI_NO>
<EQUI_NO>58120</EQUI_NO>
<EQUI_NO>90000-EMERGENCY</EQUI_NO>
<EQUI_NO>90000-STOCK</EQUI_NO>
</EQUIPMENT>
<STORAGE_LOC>
<STOR_LOC_NO>0001</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 HEN</DESCRIPTION>
</STORAGE_LOC>
<CUST_NO>200793</CUST_NO>
<ADDRESS>
<SHIP_TO>200793</SHIP_TO>
<NAME1>Minera San Cristobal S.A.</NAME1>
<STREET>Calacoto, Calle 90, Torre 2</STREET>
<HOUSE_NO>Piso 5</HOUSE_NO>
<CITY>La Paz</CITY>
</ADDRESS>
<EQUIPMENT>
<EQUI_NO>90000-EMERGENCY</EQUI_NO>
<EQUI_NO>90000-STOCK</EQUI_NO>
</EQUIPMENT>
<STORAGE_LOC>
<STOR_LOC_NO>0001</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 HEN</DESCRIPTION>
</STORAGE_LOC>
<CUST_NO>200801</CUST_NO>
<ADDRESS>
<SHIP_TO>200801</SHIP_TO>
<NAME1>ISEMAR S.A.</NAME1>
<STREET>Ruta Km 28.45</STREET>
<CITY>Don Torcuato Paraguay</CITY>
</ADDRESS>
<EQUIPMENT>
<EQUI_NO>15079</EQUI_NO>
<EQUI_NO>15097</EQUI_NO>
<EQUI_NO>90000-EMERGENCY</EQUI_NO>
<EQUI_NO>90000-STOCK</EQUI_NO>
</EQUIPMENT>
<STORAGE_LOC>
<STOR_LOC_NO>0001</STOR_LOC_NO>
<DESCRIPTION>01 Parts Center</DESCRIPTION>
<STOR_LOC_NO>0056</STOR_LOC_NO>
<DESCRIPTION>56 HEN</DESCRIPTION>
</STORAGE_LOC>
</CUSTOMER_FULL_20140207_033015_001>
Output:
Regards,
Akhileshkiran.
Similar Messages
-
GenericServiceFactory initialization problem when trying to load Web servic
Hi,
I am making a Guided procedure that calls a webservice. I have created a new Destination Template and was able to load the webservice definition successfully, but when I test the callable object I created for that same webservice y get the error:
GenericServiceFactory initialization problem when trying to load Web service model for WSDL.
Somehow I think there is something wrong with the user authentication. The Destination template has a user and password but somehow I think the callable object test is not using this information at all.
Can anyone help ?
Thanks in advanceHi Hans,
Have you verified if you can call any external web service calls from your J2EE engine? Go into the SOA Management / Global settings (if you are on CE - if you're on 7.0 it's in manage WS desintations).
Look at your proxy settings and set them like your web browser that enables external calls. For example, in the SAP network I set my global proxy settings on my local J2EE engine to be:
Proxy host: proxy
Proxy port: 8080
Exclude list: *.sap.corp
Does that make sense - have you verified if your settings are correct for your company?
Regards
Ginger -
Crystal Reports XI R2 Server problem when trying to load groups from LDAP
Hi,
I'm using Crystal Reports XI R2 SP4 on RedHat Linux. My users are being authorized through LDAP (OID). My problem is that after removing all groups (right now no groups/users are visible in CMC) in CMC Authentication tool and then trying to add them again I'm receiving following error:
"LDAP: Failed to commit objects to server : Duplicate object name in the same folder."
I've checked connectivity to LDAP server and it's ok. Could it be connected to CMS problems/corruption? Any help/suggestions would be appreciated.
Regards,
MarcinThe only personal folders visible from under Admin panel are for users Administrator and Guest. I've tried to query CMS tables but these store entries not in plain text so I cannot identify entries connected to personal folders. I have also tried to do this via Query Repository tool but all returned entries were ok.
I have also noticed that when trying to load group from LDAP after it returns error "LDAP: Failed to commit objects to server : Duplicate object name in the same folder." entry for this group is created in CMS table. Also this group is then visible in admin Groups panel. No users are created with the group and when I'm trying to list users belonging to added group it returns "internal secLDAP security plug-in error" but without any other suggestion what went wrong. -
LabView hangs when trying to load the same VI with a different user logged onto Win2k
When 'User A' is logged onto Win2k, a particular VI loads and runs fine. When 'User B' logs onto the same Win2k box, LabView hangs when trying to load the VI.
I'm also not seeing the setup channels in the Data Neighborhood in MAX when logged on as 'User B'. I tried loading the configuration when logged on as 'User B' that I think is being used for 'User A', but nothing happens.
Where are the configuration files (of whatever type) that tell LabView which user is logged on?
Thank you!There are no configuration files that tells LabVIEW what users are logged on. It is Win2K permissions settings that allow different users access to different folders and applications. Try changing the permissions for the LabVIEW folder and see if that doesn't fix your problem.
-
Creation of a XML Document with DTD entry
I am trying to create a XML file on the fly. I use the
NodeFactory to contruct a document (createDocument()). I have
then setStandalone("no") and setVersion("1.0"). when I try to
add a DOCTYPE node via appendChild( new XMLNode("test",
Node.DOCUMENT_TYPE_NODE)), I get a ClassCastException.
This is using the 1.0.1.1.0 xml parser.
What is the mechanism to add a node of this type? I noticed that
the NodeFactory did not have a machanism for creating a DOCTYPE
node.
nullNestor Dutko (guest) wrote:
: I am trying to create a XML file on the fly. I use the
: NodeFactory to contruct a document (createDocument()). I have
: then setStandalone("no") and setVersion("1.0"). when I try to
: add a DOCTYPE node via appendChild( new XMLNode("test",
: Node.DOCUMENT_TYPE_NODE)), I get a ClassCastException.
: This is using the 1.0.1.1.0 xml parser.
: What is the mechanism to add a node of this type? I noticed
that
: the NodeFactory did not have a machanism for creating a DOCTYPE
: node.
There is no mechanism to create a new DOCUMENT_TYPE_NODE object
via DOM APIs. The only way to get a DTD object is to parse the
DTD file or the XML file using the DOMParser, and then use the
getDocType() method. Note that new XMLNode("test",
Node.DOCUMENT_TYPE_NODE) does not create a DTD
object. It creates an XMLNode object with the type set to
DOCUMENT_TYPE_NODE, which infact should not be allowed. The
ClassCastException is raised because appendChild expects a DTD
object (based on the type).
Also, we do not do any validation while creating the DOM tree
using the DOM APIs. So setting the DTD in the Document will not
help in validating the DOM tree that is constructed. The only way
to validate an XML file is to parse the XML document using
DOMParser or SAXParser.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
Validating a xml document via dtd or xml schema
hi.
i am trying to validate a xml document's structure via dtd or xml schema. unfortunately i dont have a clue how to do this. although i read some documents about it i didnt find a way to it yet.
i am using dom4j to build a org.dom4j.Document from a String.
my expectations were like this:
- read data into string
- create org.dom4j.Document from a string
- after successfully creating the document calling document.validate(xmlSchema) throwing a ParseException (or something like this when the xml doesnt meet the requirements given by the schema)
please help!Class org.dom4j.Document does not have a validate() method.
-
This is the second time I've been here for help and I have had to use IE for the past few weeks because I still have this problem. The images on E-Bay's individual auctions begin to load then stop, I believe it is a Javascript problem. I've already tried the troubleshooting tips for "images don't display" AND I have uninstalled/reinstalled Firefox to no avail. My Space doesn't seem to be displaying properly either, for example, if I want to change the color of a font in a message the boxes appear, but no color...please SOMEBODY HELP! Thank you!
== URL of affected sites ==
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=230497781181&ssPageName=ADME:B:SS:US:1123Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window - See http://kb.mozillazine.org/Resetting_preferences -
Problems when trying to load a flat file
I am trying to preview a flat file which I am able to preview on an existing BW system but not on a replacement system (which is a 3.5 system). The structures are identical. The message that I get is below: The infoobject definition for 0CALMONTH is the same in both systems i.e.
Input: 6
Conversion routine: PERI6
Output length: 7
Can someone assist? Thanks
Error in conversion exit
CONVERSION_EXIT_PERI6_INPUT
Detailed message:
Error in conversion exit CONVERSION_EXIT_PERI6_INPUT
Message no. RSAR137
Diagnosis
An error occurred in record 1 during execution ofconversion exit CONVERSION_EXIT_PERI6_INPUT for field CALMONTH.
Procedure
Check that the record where the error occurred has the correct format, and correct it accordingly.Hi Niten,
Goto the transfer rules -> Data str/tranger structure tab -> and check whether the 0CALMONTH has any conversion exit assigned. You can remove that and retry.
Bye
Dinesh -
Problems when trying to connect over TCP/IP with DHCP
Hello everybody,
I have problems to get a TCP/IP connection to my Blackfin board.
There is an error message, see in the attached files.
I have also Problems with the UART Interface can't run it with the Code Examples!
Best Regards,
Johannes
Attachments:
TCP IP Faults.doc 146 KBJohannes,
The Blackfin lwip stack expects a DHCP server to assign it an IP, you cannot just connect a crossover cable between your computer and the EZKIT (unless your computer happens to be running a DHCP server). Connect your computer and the EZKIT and your computer to a router/switch so that the DHCP server on it can assign IPs to both. Also, you appear to be using the code from the example called Print EZKIT IP Address.vi. I recommend putting this code into a while loop with a wait.
Message Edited by Michael P on 07-27-2006 10:57 AM
Michael P
National Instruments -
Parse XML document with LINQ TO XML
Hello,
I need to parse an XML Feed that looks like this:
<ContentAPI xmlns="http://www.geneity.co.uk/genbet/ContentAPI" status="OK" timezone="UTC" msg_stamp="NzMzNzUzNzE6MTAyMTppdA==" version="1.0" request="get_sports">
<Sport sport_code="FOOT" name="Calcio" has_events="Y" disporder="-2"/>
<Sport sport_code="TENN" name="Tennis" has_events="Y" disporder="1"/>
<Sport sport_code="BASK" name="Basket" has_events="Y" disporder="2"/>
<Sport sport_code="VOLL" name="Pallavolo" has_events="Y" disporder="4"/>
<Sport sport_code="HAND" name="Pallamano" has_events="N" disporder="5"/>
<Sport sport_code="ICEH" name="Hockey su Ghiaccio" has_events="Y" disporder="6"/>
<Sport sport_code="AMFO" name="Football Americano" has_events="N" disporder="7"/>
<Sport sport_code="BASE" name="Baseball" has_events="Y" disporder="7"/>
</ContentAPI>
I want to use LINQ TO XML in order to read it into an object var.
This is the code that i wrote but i doesn't work...
XDocument xdoc = XDocument.Load(string.Format("myURL....."));
var Sport = from feed in xdoc.Descendants("Sport")
select new
_sport_code = feed.Attribute("sport_code").Value,
_name = feed.Attribute("name").Value,
_has_events = feed.Attribute("has_events").Value,
_disporder = feed.Attribute("disporder").Value
foreach (var s in Sport)
The program doesn't run inside the foreach loop...
for sure the problem is on the linq to xml query...
Thanks for your helpHello, I'm back again...
Now I have to parse a second file XML with some little differences on the track:
<ContentAPI xmlns="http://www.geneity.co.uk/genbet/ContentAPI" status="OK" timezone="UTC" msg_stamp="NzM1NTQ5MDQ6MTAyMTppdA==" version="1.0" request="get_classes_for_sport">
<Sport sport_code="FOOT" name="Calcio" disporder="-2">
<SBClass sb_class_id="12432" name="Italia" has_events="Y" disporder="-9999"/>
<SBClass sb_class_id="14603" name="Euro 2016" has_events="N" disporder="-1000"/>
</Sport>
</ContentAPI>
The C# code to get the SBClass elements is this:
XDocument xdoc = XDocument.Load(string.Format(url_Get_Region_By_Lang_Sport, pCodLang, pCodSport));
var SportRegion = from _SportRegion in xdoc.Descendants(XName.Get("Sport", "http://www.geneity.co.uk/genbet/ContentAPI")).Descendants("SBClass")
select new
CodSport = _SportRegion.Attribute("sport_code").Value.Trim(),
SbRegionId = _SportRegion.Attribute("name").Value.Trim(),
Region = _SportRegion.Attribute("has_events").Value.Trim(),
HasEvents = _SportRegion.Attribute("disporder").Value.Trim(),
RegionOrder = _SportRegion.Attribute("disporder").Value.Trim()
foreach(var sptr in SportRegion)
The program doesn't step inside the foreach loop...
Thanks again! -
When trying to load my recently puchased Apps this is the message that appears---Please adavise. Thank you. Richard (New Boy on the Block)
The IP address shown is 192.168.0.1:80. This is an address on your local network and is probably the address of your router. The port number shown is port 80 which is the standard HTTP (web server) port. It looks like your router thinks that you are attempting to open an administrative browser session with it. Since this is incorrect your router or possibly your iPad may be having some problem. Try restarting your router by removing power to it for 30 seconds and restarting. I would also suggest resetting your iPad.
Reset iPad: Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears - ignore the power off slider. -
Bw problem/error when trying to load data
hi experts i suddenly have this issue when trying to load data anywhere in my bw system (psa,ods,infocubes) i get the following abap runtime error:
SNAP_NO_NEW_ENTRY
runntime error,short dump could not be written
and bellow that it generally says that SNAP is full and i need to create more free space
any suggestions what i should do?
ps.i ve tried the re-organize option and no luck, i need to take more drastic measures
thankscheck the below thread...
[SNAP_NO_NEW_ENTRY; -
Problem when trying to print standart invoice crystal report for SAP
Hi All, I have the following problem when trying to print a system invoice report in crystal reports for SAP
I pass params and load the report using this code
Private Sub DisplayThreadReportSeq()
Dim oView As New frmViewReport
Dim strReportPath As String = ""
Dim strParamName As String = ""
Try
Dim CR As New ReportDocument
CR.Load(oReport.CrstPath)
' Declare the parameter related objects.
SetReportValues(CR)
Dim crParameterDiscreteValue As ParameterDiscreteValue
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldLocation As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
' Get the report's parameters collection.
For Each oPar As cslParam In oReport.Params
crParameterFieldDefinitions = CR.DataDefinition.ParameterFields
crParameterFieldLocation = crParameterFieldDefinitions.Item(oPar.ParName)
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = oPar.Value
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
Next
If pPrint Then
If oReport.Printer "" Then
CR.PrintOptions.PrinterName = oReport.Printer
End If
CR.PrintToPrinter(IIf(oReport.Copies = "", 1, oReport.Copies), False, 0, 0)
SBO_Application.StatusBar.SetText("Printed Document Successfully", SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
Else
oView.Text = pReport
oView.TopMost = True
oView.Viewer.ReportSource = CR
oView.Hide()
oView.ShowDialog()
End If
Catch ex As Exception
Util_GenErrorLog("DisplayReport", ex)
End Try
End Sub
This code works fine when the report invoke to print is developed in crystal reports version for .net 2008 or .net 2005
when trying to print a report standart getting from SAP BO 8.8.1 using this code I getting the following error:
Error in File C:UsersecombaAppDataLocalTemp5ARInvoiceStandartSap {300B9A68-DF05-4D7B-8F3B-1670A4493BEE}.rpt:
Error in formula .
'Shared numberVar SectionTotalMaxHeght;
A number, currency amount, boolean, date, time, date-time, or string is expected here.
This report is the standart report that SAP 8.8.1 includes and works fine on SAP.
I referenced this dlls CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.CrystalReports.Shared, version 10.2.3600
How I can get these dll´s version for Crystal Report 2008 for SAP Business one or How I can solve this problem
thanks in advance,
Ezequiel.Hi Ezequiel,
You can try to search in SAP Business One Reporting & Printing forum section or post there.
nd.Q -
Hi There, I have a problem when trying to print either Email or from a web page.
Hi There,
I have a problem when trying to print contents fro either Email's or from web pages, the problem started after i opened Google earth and it down loaded Google Chrome i do not like Google chrome so i removed it from my pc via add and remove programmes since then when i try to print an email i get what looks like the computer settings for writing the email and not the text same for web pages, as anyone come across this problem before i can print any word or spreadsheet documents but problem is with email's and web pages.
Many Thanks.Something changed on your system, possibly when Google Chrome installed. It could be many things, but what it boils down to, is it needs to go back to the way it was. Either by removing whatever else might still be left from the install, or maybe by reinstalling the printer itself.
007OHMSS
I was a support engineer for HP.
If the advice resolved the situation, please mark it as a solution. Thank you. -
Hi all,
On Windows Platform, encounters error when trying to open an Indesign document in INDD format created from Mac. Error received "Either the file does not exist, you do not have permission, or the file may be in use by other application". I am currently using Adobe Indesign CC 9.2 Trial version.
Kindly advise how can i open this document on windows platform and allows me to edit the document.
Thanks!
With Rgds,
Fiona ChoyNormally there is no problem to open any INDD opening on Windows, when created on the Mac.
But Mac user are often not aware on the naming limitations. A file name must not contain /, \, |, :
It should not contain any extended character, it is not a primary problem but will be, if something links to that file, so avoid also: ÄÖÜäöüß+&
You can use all other non A-Z a-z, 0-9 and - and _
I personally would also recommend to avoid spaces.
This is valid for the INDD file itself but also for all linked content.
Maybe you are looking for
-
Dear experts, the following funktion has 3 inputs an one output. It shall forward input 3 if input 2 is found in input 1. public void take3IfFound2In1(String[] a, String[] b, String[] c, ResultList result, Container container) throws StreamTransforma
-
Embedding logo in a JSP file created by JDev2
I am using HTML code(as usual) in a JSP file to create a e-Commerce site. I want to show company logo which is a .jpg file and also the company name in a single frame. Can someone please tell me how I embed logo and text in this single frame? Suntae
-
I need to add flash to my BuildKit website
I am just curious if anyone has worked with buildkit, it is a service to build webpages effortlessly online offered by hostgator and others. I ultimatly want to dress up our website but I am not sure of compatibility. You can view the site in questio
-
How to Call Center Opens at a diffrent times 1st and 3rd Tue. of the Month
Hello all, I'm new to UCCX and doing my best to understand scripting. I've created a script that's is normally open 7am to 12pm closed from 12pm to 1pm for lunch then open from 1pm to 5pm then closed again until 7am. Now every 1st and 3rd Thursday of
-
About a month ago, I upgraded my webserver to ColdFusion MX7.0.1. I have also upgraded my development and test server as well. My test and development servers work fine, and have no issues at all. The production server has a major issue though. When