FBRA issue with document date
HI Guys: When I reverse & reset a document using FBRA, I want the document date of the reversed document to have the same date as the posting date.
Standard SAP puts the document date as that of the document which is being reversed.
Any user exit or BTE I can use?
thanks
Brian
Hi,
Pls check the reasons for reversal (financial accounting>GL accounting>business transactions>Adjustment posting/reversal>define reasons for reversal ).You can specify an alternate posting date there
Regards,
Shafiqa
Similar Messages
-
Issue with 2LIS_02_SCL Data source
Hi Everybody,
I am facing the below 2 issues with 2lis_02_scl data source,
1) This is fetching only the records ETENR (Delivery Schedule Line Counter) value with ' 1 ', It is ignoring others ex:2,3 and 4. Hence Data is not reconciling with ECC system.
2) The standard field GLMNG is not getting any data, Data was existed in table(EKET) level. So i have written the code and data is coming now. But the problem is, This is not considering the ROCANCEL indicator it seems. All the other key figures values are coming in with Negative sign When ROCANCEL Value is ' X ' or ' R ', But this field is getting all the positive values irrespective of ROCANCEL indicator. Hence showing the incorrect values compared to the ECC.
Can anybody help me on this,
Regards,
GopinathHi Gopinath:
Have you already applied any SAP Note to solve this problem?
Please check if the SAP Note below is applicable to your system.
668177 - "LIS BW: wrong quantity for documents with invoice plan"
Regards,
Francisco Milán. -
MIRO (Invoice Date) should be updated with Document date in MIGO Transactin
Hi all,
Please helo me in the issue . I need to replace the MIRO (Invoice Date) (INVFO-BLDAT)with Document Date in MIGO Transaction (MKPF-BLDAT). Can anyone suggest me the Userexit/ BADI for acheiving the same.Hi,
We have same requirement that MIRO date should not be lesser than GRN date. How could you solve your problem/
rajeswari -
I am having a issue with getting data useage alerts for my iphone 4s
I am having a issue with getting data useage alerts for my iphone 4s from AT&T. I do not download anything huge at all.
I looked into it and figured out that the phone dials out nightly at 12:29am every night. I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this. I then clicked don't send...but I am still getting useage alerts. Can anyone help me please...
ThanksHonestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
Little to nothing in that thread indicates an issue beyond inept consumers. Yes, I read several pages on the incessant gripes. Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement. Whining will get nothing accomplished. -
Has anyone had issues with Administration\Data Import/Export\Data Import???
I have a client who has recently upgraded from V2007 to V8.81. They were succesfuly using this standard function to import supplier prices to their master price list, but now it has failed?
I have looked at the file they are importing and it appears to be fine.
On closer inspection, it did contain approx 46,000 entries, so I took the first 1,000 and created a test file, which imported fine.
The only issue I found was Speed, with the test file of 1,000 records taking about 30 Mins to import. This appeared to get slower and slower the further through the file it got!
Based on this, I have estimated that the whole file would takle about 13 hours to import. The client say that when they used to run it on version 2007 it was far quicker?
In practice, it does appear to run, but the speed is the issue. Having said this, I set the whole file to run last night (over night)and this morning it had appeared to hang after about 2,307 rows, with nothing else being updated.
Has anyone any ideas or is aware of performance issues like this?
Thanks,
IanAlways an option, but would you give your clients access to this tool?
Not sure really.
I have uploaded a copy of their database onto my test system and run the same routine. Its equally as SLOW
I can't gauage if its an issue with 8.81 that 2007 didn't have, as I only have the client's word on it, however I have no reason to disbelieve them.
Kind regards,
Ian -
CVC creation - Strange issue with Master data table of 9AMATNR
Hi Experts,
We have encountered a strange issue with Master data table (/BI0/9APMATNR) of info object 9AMATNR.
We have a BADI implemented for checking the valid Characteristic before creation of the CVC using transaction /SAPAPO/MC62. This BADI puts a select on master data tab of material /BI0/9APMATNR and returns no value. But the material actually exists in the table (checked through SE16).
Now we go inside the info object 9AMATNR and go to the Master data Tab. There we go inside the master table
/BI0/9APMATNR and activate that. After activating the table it is read by the select statement inside BADI (Strange) and allows the CVC to be created.
Ideally it should not allow us to activate the SAP standard table /BI0/9APMATNR. I observed that in technical settings of this table it has single record buffering as switched on. (But as per my knowledge buffer gets refreshed every 2 to 4 mins and not in 2 days or something).
Your expert comment is valuable to us. Thanks.
Best Regards,
Chandan DubeyHi Chandan,
Try to use a WAIT statment with 5 seconds before your select statment.
I'm not sure whether this will work. Anyway check it and let me know the result.
Regards,
Siva. -
Issue with xsd Data type mapping for collection of user defined data type
Hi,
I am facing a issue with wsdl for xsd mapping for collection of user defined data type.
Here is the code snippet.
sample.java
@WebMethod
public QueryPageOutput AccountQue(QueryPageInput qpInput)
public class QueryPageInput implements Serializable, Cloneable
protected Account_IO fMessage = null;
public class QueryPageOutput implements Serializable, Cloneable
protected Account_IO fMessage = null;
public class Account_IO implements Serializable, Cloneable {
protected ArrayList <AccountIC> fintObjInst = null;
public ArrayList<AccountIC>getfintObjInst()
return (ArrayList<AccountIC>)fintObjInst.clone();
public void setfintObjInst(AccountIC val)
fintObjInst = new ArrayList<AccountIC>();
fintObjInst.add(val);
Public class AccountIC
protected String Name;
protected String Desc;
public String getName()
return Name;
public void setName(String name)
Name = name;
For the sample.java code, the wsdl generated is as below:
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
name="SimpleService"
targetNamespace="http://example.org"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://example.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
>
<wsdl:types>
<xs:schema version="1.0" targetNamespace="http://examples.org" xmlns:ns1="http://example.org/types"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://example.org/types"/>
<xs:element name="AccountWSService" type="ns1:accountEMRIO"/>
</xs:schema>
<xs:schema version="1.0" targetNamespace="http://example.org/types" xmlns:ns1="http://examples.org"
xmlns:tns="http://example.org/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://examples.org"/>
<xs:complexType name="queryPageOutput">
<xs:sequence>
<xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="accountEMRIO">
<xs:sequence>
<xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
<xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
<xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
<xs:element name="fintObjInst" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="queryPageInput">
<xs:sequence>
<xs:element name="fPageSize" type="xs:string" minOccurs="0"/>
<xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
<xs:element name="fStartRowNum" type="xs:string" minOccurs="0"/>
<xs:element name="fViewMode" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://example.org" xmlns:ns1="http://example.org/types">
<import namespace="http://example.org/types"/>
<xsd:complexType name="AccountQue">
<xsd:sequence>
<xsd:element name="arg0" type="ns1:queryPageInput"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="AccountQue" type="tns:AccountQue"/>
<xsd:complexType name="AccountQueResponse">
<xsd:sequence>
<xsd:element name="return" type="ns1:queryPageOutput"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="AccountQueResponse" type="tns:AccountQueResponse"/>
</schema>
</wsdl:types>
<wsdl:message name="AccountQueInput">
<wsdl:part name="parameters" element="tns:AccountQue"/>
</wsdl:message>
<wsdl:message name="AccountQueOutput">
<wsdl:part name="parameters" element="tns:AccountQueResponse"/>
</wsdl:message>
<wsdl:portType name="SimpleService">
<wsdl:operation name="AccountQue">
<wsdl:input message="tns:AccountQueInput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
ns1:Action=""/>
<wsdl:output message="tns:AccountQueOutput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
ns1:Action=""/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SimpleServiceSoapHttp" type="tns:SimpleService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="AccountQue">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SimpleService">
<wsdl:port name="SimpleServicePort" binding="tns:SimpleServiceSoapHttp">
<soap:address location="http://localhost:7101/WS-Project1-context-root/SimpleServicePort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
In the above wsdl the collection of fintObjInst if of type xs:anytype. From the wsdl, I do not see the xsd mapping for AccountIC which includes Name and Desc. Due to which, when invoking the web service from a different client like c#(by creating proxy business service), I am unable to set the parameters for AccountIC. I am using JAX-WS stack and WLS 10.3. I have already looked at blog http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html but unable to solve this issue. However, at run time using a tool like SoapUI, when this wsdl is imported, I am able to see all the params related to AccountIC class.
Can some one help me with this.
Thanks,
Sudha.Did you try adding the the XmlSeeAlso annotation to the webservice
@XmlSeeAlso({<package.name>.AccountIC.class})
This will add the schema for the data type (AccountIC) to the WSDL.
Hope this helps.
-Ajay -
Hi,
Since an upgrade from Word 2003 to Word 2010, we are experiencing printing issues with certain
documents that have a page width greater than its page height.
In Word 2003, it was no problem to set the page width greater than the page height while setting the page orientation to "portrait".
In Word 2010, this seems impossible: despite leaving the page orientation to "portrait", if one changes the page width/height as stated,
Word 2010 automatically adjusts the orientation to "landscape". Resetting the orientation to "portrait" will flip the page's width/heigth settings.
This behaviour causes printing problems: the page prints out 90° rotated.
I do not believe this is a printer driver issue: I tried several different printer drivers, and all give the same (bad) result. Setting the printer driver's page orientation settings (before printing) makes no difference, as
Word 2010 seems to force the page orientation settings.
Inserting the documents 90° rotated is not an option, since it causes problems with the printing margins.
This is very annoying, since we have to print official documents of a municipality (driver's licences).
Is there a workaround for this issue?
Regards,
Laurent Grandgaignage
Sysadmin Gemeentebestuur Stabroek, BelgiumHi
Thank you for using
Microsoft Office for IT Professionals Forums.
From your description, we can follow these steps to test this issue
Step 1: Repair Office 2010
1.
Click
Start, and then click Control Panel.
2.
Click
Programs and Features.
3.
Click the
Office 2010 program that you want to repair, and then click
Change.
4.
Click
Repair, and then click Continue. You might need to restart your computer after the repair is complete.
Step 2:
Rename the global template (Normal.dotm)Follow the steps for the operating system that you are using:
Windows Vista and Windows 7
a)
Exit Word 2010
b)
Click
Start.
c)
In the
Start Search box, type the following text, and then press
ENTER:
1.
%userprofile%\appdata\roaming\microsoft\templates
d)
Right-click
Normal.dotm, and then click Rename.
e)
Type
Oldword.old, and then press ENTER.
Microsoft Windows XP
a)
Exit Word 2010
b)
Click
Start, and then click Run.
c)
In the
Open box, type the following text, and then press ENTER:
%userprofile%\Application Data\Microsoft\Templates
d)
Right-click
Normal.dotm, and then click Rename.
e)
Type
Oldword.old, and then press ENTER.
f)
Close Windows Explorer.
How to troubleshoot print failures in Word 2010, Word 2007, and Word 2003
http://support.microsoft.com/kb/826845
Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
I can do for you, please feel free to let me know.
Hope that helps.
Sincerely
William Zhou CHNPlease remember to mark the replies as answers if they help and unmark them if they provide no help. -
Issue with the data of attachment of the mail with FM 'SO_NEW_DOCUMENT_ATT'
Hi Gurus,
I am developing my program in SAP R/3 4.7 system.
I have a requirement to attach a txt file to the email. I am able to attach the file and fill the contents of the file.
But the issue is with the data in the file. There are no line breaks in the data of file and all the words are saperated by space.
For EG: If I have filled 2 records(line1,line2) in the internal table provided to content_bin field, the data in the attachment looks like this.
l i n e 1 l i n e 2
but I want the data to be like below:
line1
line2
Below is my code:
Fill the document data and get size of attachment
DATA:w_cnt TYPE i.
DATA: WA_ATTACH LIKE LINE OF P_ATTACHMENT.
DESCRIBE TABLE p_attachment LINES w_cnt.
READ TABLE p_attachment INTO WA_ATTACH INDEX w_cnt.
Fill the document data and get size of attachment
gd_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( WA_ATTACH ).
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'EMAIL'.
gd_doc_data-obj_descr = sub.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
clear it_packing_list.
refresh it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
describe table it_message lines it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
append it_packing_list.
Create attachment notification
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
it_packing_list-obj_descr = 'Job Log'.
it_packing_list-obj_name = 'Job log'.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
Add the recipients email address
clear it_receivers.
refresh it_receivers.
loop at i_t_list_of_emailids INTO i_t_list_of_emailids_wa.
it_receivers-receiver = i_t_list_of_emailids_wa-emailid.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
it_receivers-express = 'X'.
append it_receivers.
ENDLOOP.
data: new_object_id like sofolenti1-object_id.
Call the FM to post the message to SAPMAIL
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
COMMIT_WORK = 'X'
importing
sent_to_all = gd_sent_all
new_object_id = new_object_id
tables
packing_list = it_packing_list
contents_bin = p_attachment
contents_txt = it_message
receivers = it_receivers
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.
Kindly let me know to procedure to solve the iisue
Thanks in advance,
Kiran Kumar KHi Kira,
you can try to use a CR_LF to separate the records.
constants: con_cret type c value cl_abap_char_utilities=>CR_LF.
And when you append your record to the internal table add to the end the con_cret.
LOOP AT t_build into wa_charekpo.
CONCATENATE wa_charekpo-order wa_charekpo-kunnr
wa_charekpo-sel
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP. -
Issues with Infoview data refresh on Crystal Reports based on BW BeX query
Hi all,
We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
The data refresh would not work in Infoview.
The data refresh would work using the Crystal Reports designer gui on local machine.
regards,
AbhishekHi all,
This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
Please use below notes for the BW transport task of patching BOE Integration toolkit.
Refer to Note#1472104 which explains about loading the
transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
regards,
Abhishek -
Issue with Excel data-chains via SharePoint
I'm having issues with a coulpe of Excel (2010) data-chains through SharePoint at my work. When i set up a chain it shows for instance [Sheet2.xlsx] and fetches data just fine. But when I close and re-open the sheets, the chain code is changed to the
entire http-adress, such as "http://company.com/controlling/[Sheet2.xlsx], and gives a VALUE-error instead of fetching the data.
Is my problem connected to Excel or Sharepoint? And what can i do to make the chains work?
Thanks in advance, and please excuse if some of the mentioned terms are inaccurate. I use Excel in my native language (danish), but the Danish community in here is not very large :)Hi,
Are you using some formula(Such as Vlookup) to link the Excel date which shored in the SharePoint?
If it is, we may try to use the full URL in the formula. Here are some samples, we may refer to:
http://social.msdn.microsoft.com/Forums/office/en-US/f94d25b6-749c-470c-837d-32bcf570bfd3/vlookup-to-look-at-a-excel-document-stored-on-sharepoint?forum=exceldev
http://social.msdn.microsoft.com/Forums/office/en-US/1b946199-7c65-45d1-ae1a-a845aa03d463/vlookup-issue-to-a-sharepointstored-file?forum=exceldev
Regards,
George Zhao
TechNet Community Support -
Performance issues with Planning data load & Agg in 11.1.2.3.500
We recently upgraded from 11.1.1.3 to 11.1.2.3. Post upgrade we face performance issues with one of our Planning job (eg: Job E). It takes 3x the time to complete in our new environment (11.1.2.3) when compared to the old one (11.1.1.3). This job loads then actual data and does the aggregation. The pattern which we noticed is , if we run a restructure on the application and execute this job immediately it gets completed as the same time as 11.1.1.3. However, in current production (11.1.1.3) the job runs in the following sequence Job A->Job B-> Job C->Job D->Job E and it completes on time, but if we do the same test in 11.1.2.3 in the above sequence it take 3x the time . We dont have a window to restructure the application to before running Job E every time in Prod. Specs of the new Env is much higher than the old one.
We have Essbase clustering (MS active/passive) in the new environment and the files are stored in the SAN drive. Could this be because of this? has any one faced performance issues in the clustered environment?Do you have exactly same Essbase config settings and calculations performing AGG ? . Remember something very small like UPDATECALC ON/OFF can make a BIG difference in timing..
-
Performance issue with Oracle data source
Hi all,
I've a rather strange problem that I'm stuck on need some assistance on.
I have a rules file which drags data in via an SQL data source thats an Oracle server. If I cut/paste the 3 sections of "select" "from" and "where" into SQL-Developer and run the query, it takes less than 1 second to complete. When I run the "load data" with this rule file or even use the "Retrieve" with the rules file edit, it takes up to an hour to complete/retrieve the data.
The table in question being used has millions of rows and I'm using one of the indexed fields to retrieve the data. It's as if the Essbase/Rule file is ognoring the index, or I have a config issue with the ODBC settings on the server that is causing the problem.
ODBC.INI file entry for the Oracle server as follows (changed any sensitive info to xxx or 999).
[XXX]
Driver=/opt/data01/hyperion/common/ODBC-64/Merant/5.2/lib/ARora22.so
Description=DataDirect 5.2 Oracle Wire Protocol
AlternateServers=
ApplicationUsingThreads=1
ArraySize=60000
CachedCursorLimit=32
CachedDescLimit=0
CatalogIncludesSynonyms=1
CatalogOptions=0
ConnectionRetryCount=0
ConnectionRetryDelay=3
DefaultLongDataBuffLen=1024
DescribeAtPrepare=0
EnableDescribeParam=0
EnableNcharSupport=0
EnableScrollableCursors=1
EnableStaticCursorsForLongData=0
EnableTimestampWithTimeZone=0
HostName=999.999.999.999
LoadBalancing=0
LocalTimeZoneOffset=
LockTimeOut=-1
LogonID=xxx
Password=xxx
PortNumber=1521
ProcedureRetResults=0
ReportCodePageConversionErrors=0
ServiceType=0
ServiceName=xxx
SID=
TimeEscapeMapping=0
UseCurrentSchema=1
Can anyone please advise on this lack of performance.
Thanks in advance
BagpussOne other thing that I've seen is that if your Oracle data source and Essbase server are in different geographic locations, you can get some delay when it retrieves data over the WAN. I guess there is some handshaking going on when passing the data from Oracle to Essbase (either by record or groups of records) that is slowed WAY down over the WAN.
Our solution to this was remove teh query out of the load rule, run it via SQL+ on a command line at the geographic location where the Oracle database is, then ftp the resulting file to where the Essbase server is.
With upwards of 6 million records being retrieved, it took around 4 hours in the load rule, but running the query via command line took 10 minutes, then the ftp took less than 5. -
Data load issue with export data source - BW 3.5
Hi,
We are facing issues in loading data with the help of export data source.
We have created export data source of 0PCA_C01 cube. With the help of this export datasource, we are loading data to other custom cube. Scenario is working fine in development server.
But when we transported objects to quality server data is not getting loaded to custom target cube.
It is extracting zero records. All transports are ok and we have generated export datasource in quality before transports .Also regenerated export datasource after transport and activated infosource, update rule via RS* programs. Every object is active but data is not getting extracted.
RSA3 for 80PCA_C01 datasource isn't extracting any record in Quality. Records getting extracted in development. We are in BW 3.5 with patch level 19.
Please guide us to resolve the issue.
Thanks,
AdityaHi
Make sure that you have relevant Role & Authorization at Quality/PRS.
You have to Transport the Source Cube first and then Create a Generate Export Data Source in QAS. Then, replicate data sources for BW QAS Soruce System. Make sure this replicated Data Source in QAS. Only then can transport new update rules for second cube.
Hope it helps and clear -
10g Reports issue with XML Data Source
Hi,
Has anybody ever encountered an issue with Oracle 10g report using an XML as the data source? What happens is, some of the values in the XML are printed to the wrong column.
One of the elements in our XML file is a complex type with 10 elements under it. The first 5 are picked up properly, but the last 6 are not. Elements #6 to #9 has a minimum occurence of 0. What happens is when element #6 is present, but #7 is, the value for element #7 is passed on to element #6.
The XSD and XSL files are both valid since the reports were working when we were still using 9i. There is no hidden logic in the report which might cause this issue to come up, i.e., the report just picks up the values from the XML and prints it to the appropriate columns.
Any help will be greatly appreciated.XSD used
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!-- trade instructions detail & trailer -->
<xs:element name="TradeDetail">
<xs:complexType>
<xs:sequence>
<xs:element ref="TradeType"/>
<xs:element ref="TradeID"/>
<xs:element ref="TradeDate"/>
<xs:element ref="FundID"/>
<xs:element ref="FundName"/>
<xs:element ref="DollarValue" minOccurs="0"/>
<xs:element ref="UnitValue" minOccurs="0"/>
<xs:element ref="PercentageValue" minOccurs="0"/>
<xs:element ref="OriginalTradeID" minOccurs="0"/>
<xs:element ref="CancellationFlag"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Instruction">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element ref="TradeDetail" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- overall trade instruction message -->
<xs:element name="InterchangeHeader">
<xs:complexType>
<xs:sequence>
<xs:element ref="Instruction"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- definition of simple elements -->
<xs:element name="FundID" type="xs:string"/>
<xs:element name="TradeType" type="xs:string"/>
<xs:element name="TradeID" type="xs:string"/>
<xs:element name="TradeDate" type="xs:string"/>
<xs:element name="FundName" type="xs:string"/>
<xs:element name="DollarValue" type="xs:decimal"/>
<xs:element name="UnitValue" type="xs:decimal"/>
<xs:element name="PercentageValue" type="xs:decimal"/>
<xs:element name="OriginalTradeID" type="xs:string"/>
<xs:element name="CancellationFlag" type="xs:string"/>
</xs:schema>
XML used
<?xml version = '1.0' encoding = 'UTF-8'?>
<InterchangeHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TradeInstruction.xsd">
<Instruction>
<TradeDetail>
<TradeType>Purchase</TradeType>
<TradeID>M000038290</TradeID>
<TradeDate>20061201</TradeDate>
<FundID>ARO0011AU</FundID>
<FundName>ABN Fund</FundName>
<DollarValue>2111.53</DollarValue>
<CancellationFlag>N</CancellationFlag>
</TradeDetail>
<TradeDetail>
<TradeType>Redemption</TradeType>
<TradeID>M000038292</TradeID>
<TradeDate>20061201</TradeDate>
<FundID>ARO0011AU</FundID>
<FundName>AMRO Equity Fund</FundName>
<UnitValue>104881.270200</UnitValue>
<CancellationFlag>N</CancellationFlag>
</TradeDetail>
<TradeDetail>
<TradeType>ISPurchase</TradeType>
<TradeID>M000038312</TradeID>
<TradeDate>20061201</TradeDate>
<FundID>MLC0011AU</FundID>
<FundName>Cash Fund</FundName>
<OriginalTradeID>M000038311</OriginalTradeID>
<CancellationFlag>N</CancellationFlag>
</TradeDetail>
</Instruction>
</InterchangeHeader>
XSLT used
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<InterchangeHeader>
<xsl:for-each select="InterchangeHeader/Instruction/TradeDetail">
<xsl:sort select="FundName"/>
<xsl:sort select="TradeDate"/>
<TradeDetail>
<TradeType><xsl:value-of select="TradeType"/></TradeType>
<TradeID><xsl:value-of select="TradeID"/></TradeID>
<TradeDate><xsl:value-of select="TradeDate"/></TradeDate>
<FundID><xsl:value-of select="FundID"/></FundID>
<FundName><xsl:value-of select="FundName"/></FundName>
<DollarValue><xsl:value-of select="DollarValue"/></DollarValue>
<UnitValue><xsl:value-of select="UnitValue"/></UnitValue>
<PercentageValue><xsl:value-of select="PercentageValue"/></PercentageValue>
<OriginalTradeID><xsl:value-of select="OriginalTradeID"/></OriginalTradeID>
<CancellationFlag><xsl:value-of select="CancellationFlag"/></CancellationFlag>
</TradeDetail>
</xsl:for-each>
</InterchangeHeader>
</xsl:template>
</xsl:stylesheet>
Maybe you are looking for
-
Hi thr, I have this strange problem where a credit block is coming up on Ship-to. This custoemr has account grp as 0002 which is an exclusive ship-to and when I use VA01 and try to create a sales order and first input ship-to it says order receipt/de
-
Acrobat 9 exended crashes after 10-15 secconds of opening.
I just insalled the acrobat 9 extended. It went through the installation Ok. Serial number validation and activation seems fine. I havent registered yet . I opened the program and after 10-15 seconds it always crashes out. I clicked on a PDF file. It
-
Opening Blanace for PLA Account
Dera All, When I enter the Opening balance how do I enter the opening balance of PLA Account. Generally when the payment to PLA is made there is a discretion that the PLA is being paid against which components (like BED, Cess & HCess). But when I put
-
Favicons in address bar not updating
My apologies in advance for not being all that computer literate. I updated to version 28 yesterday. Everything seemed fine until we experienced an internet outage in my service area. I received the notification from NetGear that there were problems
-
Hy everyone!!!...please, help me,i realy dont no what else can i do,the phone its block i think,cus give me the1611 code error at the time i want to reiniciatet or restarded(with itunes or without);thanks!