Problem with reports in excel (using text_io)

we are using Report Builder 6.0.5.28.0 with Oracle9i Enterprise Edition Release 9.2.0.1.0. in a client/server evironment. I'm using 'TEXT_IO' to write the report output to a csv file.
The process runs ok but the only problem is that the first line of every page (other than the first) gets repeated.
can anyone out there tell me how to get over this problem.
Thanx in advance
Adolph

1. You first need to create a package in your report
PACKAGE conv_text IS
procedure fopen(fname varchar2);
procedure fclose(fname varchar2);
procedure fwrite_c(fname varchar2,
var_c varchar2);
procedure fline;
END;
PACKAGE BODY conv_text IS
o_file TEXT_IO.FILE_TYPE;
filename VARCHAR2(50);
procedure fopen (fname varchar2) is
begin
filename := fname;
o_file := TEXT_IO.FOPEN(filename,'W');
end;
procedure fclose (fname varchar2) is
begin
Text_IO.Fclose(o_file);
end;
procedure fwrite_c (fname varchar2, var_c varchar2) is
begin
          Text_IO.Put(o_file,var_c);
end;
procedure fline is
begin
     Text_IO.New_Line(o_file);
end;
2. In the "before report trigger" open the csv file (make sure the folder exists on the client m/c)
conv_text.fopen(:filename);
3. In the innermost frame(use the following,for all the fields u want in ur csv file) :
filename VARCHAR2(50);
begin
filename := :filename;
conv_text.fwrite_c(filename,:agency_name);
conv_text.fwrite_c(filename,',');
conv_text.fwrite_c(filename,:invoice_no);
conv_text.fwrite_c(filename,',');
conv_text.fline;
4. In the after report, close the file
conv_text.fclose(:filename);
good luck and let me know if get thru with the problem of the repeating record.
Adolph
[email protected]

Similar Messages

  • I would like to execute an existing BW report from Excel (using VBA).

    I would like to execute an existing BW report from Excel (using VBA) and download the results into Excel.  I understand that there is an Excel Add-In which (I believe) should allow me to do this.  I am an experienced user of Excel / VBA but I have virtually no experience with SAP.  If someone could point me to any source of information or specific instructions I would be extremely appreciative.  I've done multiple searches on the internet but everything I find seems to assume more knowledge of SAP and SAP acronyms than I possess. 

    Paul,
    If your company (or your client's company) has an SAP license (I assume this is the case, since there would be no other reason for you to want to access an SAP system using Excel), there is a person in your company who can request an ID for you.  It is called a SAP Service Marketplace userid, more commonly called an 'S' number.  This person in your company is usually a Basis Administrator.  Go to your SAP Basis team and ask them for access to Service Marketplace.
    The common solution for your Excel analysis problem is to install the Bex Analyzer on your PC.  You will need these same guys (Basis Team) to help you with getting the required SAP access, and to install the associated SAP software onto your PC.
    In the meantime, here is some bedtime reading for you.
    Analysis & Reporting: BEx Analyzer - Business Intelligence - SAP Library
    Best Regards,
    DB49

  • Problems with a VBA Userform using Multipage (2) and DTPicker.

     
    Hi
    Problems with a VBA Userform using Multipage (2) and DTPicker (4)
    On Page1 I've got 2 DTPicker, one for the date and the second for the time.
    Same thing on Page 2.
    Problem:
    Only one set will work, if I close the Userform with" MultiPage"on page2, only that set will work.
    Same thing if I close on Page 1 then just the set on Page 1 will work.
    As anyone seen this problem and any work around you may think would help.
    I'm using Windows 7 , Ms Office Pro. 2003
    same problem on Windows Vista , XL2003
    Cimjet

    There are a number of issues relating to the way that date pickers are handled, but the most important is that their output is text. In order to get the values into Excel, you need to format the Excel columns as Date and Custom (time format) and convert
    the output to the worksheet from text to date values.
    Date pickers also display a few anomalies on multi-page forms, so you need a belt and braces approach. Personally I would put the code to call the form and enter the values in a standard module (as now in the example) and use a belt and braces approach to
    maintaining the format.
    I think you will find the example now works.
    Revised Example
    Graham Mayor - Word MVP
    www.gmayor.com

  • Problem in reports 6i  while using delimiter option.

    Hi,
    I am facing problem in report writer while using delimiter option.
    Report summary
    ==============
    In my report I am having two queries in data model and two different repeating frame for each in layout.
    These quires are called based on the user parameter. That means if user parameter is 1 then query 1 is called and the report is kick off and same for query 2 when user parameter is 2).
    Problem Encountered
    =================
    Both these reports are running fine while using pdf option to generate report .
    While using delimiter option only one of the query is able to generate report (based on which ever is created first and rest will give 0 byte file).
    I have also trapped it while using messages and it is logically flowing fine.
    I think report writer does not support such scenario.
    please expedite on this.
    thankx
    peyush

    Hi,
    There are no such limitations with Reports. If I understand properly, you run the Report twice, in each run, you are trying to execute different query, and you generate two dilimited Reports output files? This should work fine. Try out the latest Reports 6i patch-10 for this. You can even approach Oracle Support with your testcase. FYI, with Reports 6i patch-11, a new feature "dlimited data" is introduced which will give delimited output with a data dump i.e it would not be dependent upon the Reports layout. You can probably try out this new feature also.
    Thanks,
    Rohit Hi Rohit,
    Thanks for the information.
    well I am generating single output file on each run .
    the problem is somewhat funny.
    I have build query2 in data model after query1.
    query 1 is giving me correct output both in .PDF and delimiter version.
    But query2 is giving me 0 byte file for delimiter version although in .PDF it is running fine.
    When I took out query2 to another module it is running fine for both.
    I hope this make sense.
    Moreover if u still not clear about the problem and thinks that u can help me out please send me ur mail id so that I can send you the RDF copy.
    Thanks
    Mohit...

  • Exporting CRM 2011 SSRS 2008 report to excel uses old Excel 1997-2003 version

    The Notes field is appearing cut off on the exported excel spreadsheet. I am wondering if it is related to the version of excel when exporting from CRM report. The only option is MS Excel 1997-2003, when in fact we have MS Office 2010 installed. How can
    I get the report export to excel to use the 2010 version? Will this clear up the issue of the excel cell from being too small to dispay the entire field? Any help would be appreciated, Thank you, Mark A M

    Hi Mark A M,
    In SQL Server 2008 Reporting Services, the Excel rendering extension renders a report that is compatible with Microsoft Excel 1997-2003. This is the unique renderer for Excel renderer in SSRS 2008. Since SSRS 2012, the default Excel renderer is the version
    compatible with Microsoft Excel 2007-2010. So we cannot export the report to excel use Microsoft Excel 2007-2010 version in SSRS 2008. This is by design.
    As to your issue, please note that the width of the column in Excel which inherit the width in the report. So we need make sure the cell width is sufficient to display the Notes field in report.
    Reference:
    Exporting to Microsoft Excel (Report Builder 2.0)
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • TS3899 With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this pro

    With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.

    Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad.  Pay real close attention to the outgoing server name, and port.  You may need to change in on the pad. 

  • Problems with a shared calendar using Outlook 2007 and Exchange 2010

    Hello all,
    We are having a problem with sharing a calendar using Outlook 2007 and Exchange 2010.
    I will start with some background. I have just started my position with this company. I have been working with networks for awhile at the small business level. I have not had much production experience with exchange. There is only myself and my supervisor
    who has inherited a midsized network which was built by five previous techs that are no longer with the company. Of course, the previous techs did not leave much documentation, so the original hows and whys for our system setup has been lost.
    One of the managers has a calendar she shares with some of our users. I believe this calendar has been in use since sometime in 2006. A mailbox was created to hold this calendar to keep it separate from the managers calendar. I am not sure what version
    of exchange they were using at that time, but I assume there was one or two migrations of it getting to its current state on our exchange 2010 server. At some point it was observed that the other workers she was sharing with were not able to access it correctly.
    I am not fully sure what the original problem was (possibly some people not being able to see or connect to the calendar), but it was decided to give everyone who needed access to this calendar full access permissions through exchange. Correct me if I
    am wrong, but I believe that gave everyone connected the ability to do anything with the calendar. Of course the manager was not happy about that. This is where I started working on the problem.
    I removed everyone, except the manager who wants to control the calendar, from having "Full Access Permissions". This did have the effect of making some people just able to see the calendar and not make changes. Though there were others that were
    able to connect to the calendar who I thought would not be able to. The manager that originally created the calendar did try to manage access to it through the Outlook interface, though it currently does not seem to be fully in effect.
    So, to get to the point of what we are trying to do, is there a way to get the original manager back into control of the calendar though Outlook? It would be preferred to be able to keep the history of what they tracked of this calendar, so starting a new
    one would be something we would rather avoid. After that, getting all of the users that need to connect to the calendar reconnected with the correct access permissions and making sure they are all synchronized.
    I realize this is a big mess, and your help would be greatly appreciated.

    Hi Nigel,
    How is the impact, just one user or all users, Outlook or OWA?
    If just one user, it seems like an issue on the Outlook Client side.
    Please trying to re-create new profile to fresh the caches.
    Please runing Outlook under safe mode to avoid some AVs, add-ins and firewall.
    Found a similar thread for your reference:
    Calendar Sharing not available error message
    http://social.technet.microsoft.com/Forums/exchange/en-US/d9b33281-d7bb-4608-8025-16fb26643d0d/calendar-sharing-not-available-error-message?forum=exchangesvrclientslegacy
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • Both xp and windows 7 have video problems with my VGA connection using TV

    both xp and windows 7 have video problems with my VGA connection using TV as my monitor when it gets to starting up windows no matter what version it will not I have let my mac on all night and still says starting windows or the windows 7 logo and nothing else will happen also when I use a 3rd patty software like peraills or other it works like a charm how to fix it?

    To map the drive on your computer click on Start - RUN - type "\\192.168.1.1" and click ok... When prompted for Username and Password type "admin" and click ok... Now you will be able to see the folder which you have shared on  your router, right click on it and select "Map network drive" and click on finish.
    Now it will map the drive on your computer and you should be able to transfer the file from your computer to the USB drive.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Problem with Pole zero analysis using multisim

    Problem with Pole zero analysis using multisim
    When I tried to find input impedance function's pole zero of a parallel LC network using Multisim
    pole zero analysis, I get following message
    | | doAnalyses: matrix is singular
    | |
    | |
    | | pz simulation(s) aborted "
    The circuit as well as log file attached.
    How to correctly perform pole zero analysis?
    Solved!
    Go to Solution.
    Attachments:
    Parallel LC.JPG ‏8 KB
    parallel LC.txt ‏7 KB

    dear sir,
    thanks for your earlier reply to my question on pole zero analysis
    one more problem on pole zero analysis ;
    i tried to do pole zero analysis for circuit(shown in attached file where C1=1/6F(167mF) C2=5/18F(278mF) for which
    z(s)= (s^2+9)(s^2+1)
               s(s^2+4)
    for which zeros are at  +/-3j ,+/-1j
                  poles at       0 ,+/-2j          as per theory:
    But multisim gives different values (shown in attached file)
    what is the problem?
    please clarify.
    thanks & regards
    sagar vanarase
    Attachments:
    1portLC.JPG ‏219 KB

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Is anyone using iPhoto having a problem with the slide show using shatter where it does not let you put a title over photo?

    Is anyone using iPhoto having a problem with the slide show using shatter where it does not let you put a title over photo? It use to work but it no longer lets you place a title over the opening photo.

    Is your signature still current?(iPhoto '08, OS X Mountain Lion (10.8.4))    I can confirm this for iPhoto '11; Shatter will only show the text slide title between the slides. Ken Burns and Classic theme can still be set to overlay the caption and title directly over the slides.

  • I had a problem with slowness so I used "reset". The popup ran forever so I stopped it. Now I can't remove or add the program.

    I had a problem with slowness so I used "reset". The popup ran forever so I stopped it. Now I can't use, remove, or add the program. How do I proceed?
    TIA,
    BWSwede

    You can paste that path in the command line in the Windows Explorer file manager.

  • Using Mac Office connecting to win 2000 share problems with links in Excel.

    I open up an excel document from a win 2000 server using AFP and click on a link and it does not work.
    It works using a windows xp pro client and excel.
    However, the Mac excel software seems to enterpret the link differently.
    Any thoughts out there?
    ~EJXPDOCS

    I think originally Excel uses a date epoch based on January 0 1900 whereas Apple OS uses January 1 1904. There is an option in excel to use the 1904 epoch format but once saved as such you can't return to the Microsoft favoured 1900 format...
    When importing into Numbers the date epoch is automatically changed to suit Appe's preferred format (1904). This does not present any particular problem for complete imports, it only fouls up when you try copy/pasting individual dates from one type of worksheet into the other type as you are trying to do.
    I suggest you try importing complete sheets and then do the merging within Numbers.

  • Problems with report builder 3.0 in SCCM 2012 R2 CU2

    Hi All
    I have problems with editing  (Using Report builder) existing reports  or creating new ones in SCCM 2012 R2 CU2
    We version of SQL we use is SQL 2008 R2 SP2
    I already asked this question in the SCCM 2012 forum but the problem is not related to SCCM but has something to do with application report builder
    I changed the registry key and edited the Microsoft.ConfigurationManagement.exe.config.xml as described in the following link
    http://blogs.technet.com/b/smartinez/archive/2012/07/03/system-center-2012-configuration-manager-create-report-don-t-work-what-do-i-do-now.aspx
    Afterwards I try to edit an report I see report builder is being downloaded and after it generates the following error “Application did not succeed. Unable to continue”
    Error details are
    Following errors were detected during this operation.
    * [22-7-2014 13:55:07] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
    at System.Deployment.Application.ComponentVerifier.VerifyComponents()
    at
    System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions
    options)
    at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
    at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
    at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    And in the SmsAdminUI.log I noticed the following error
    [16, PID:4460][07/21/2014 14:11:43] :[ReportProxy] - User-specified default Reporting Point [Server1.local.nl] could not be found, [Server2.local.nl] is now the default Reporting Point.
    [1, PID:4460][07/21/2014 14:11:11] :System.InvalidOperationException\r\nThere is an error in XML document (1, 1).\r\n at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    I removed the reporting point no luck -> I already installed report builder 3.0 local on my computer still no luck.
    I hope someone can give me some advice , I am lost with this error
    Thx in advance
    Regards
    Johan

    Hi Miss Katherine,
    1. I went through the SQL steps in the link you posted
    2. I updated the Reg Key and Microsoft.ConfigurationManagement.exe.config file with 3.0 on both the
    server and the console machine.
    3. I copied the .DLL file from your OneDrive and replaced the existing one on the server.
    4. I uninstalled and re-installed the reporting role on the server and received the 1015 in the log.
    5. I restarted the server and the client machine
    I do get a slightly different error now after using the new DLL
    Errors With Original DLL
    ERROR DETAILS
    * [9/30/2014 8:42:03 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.DeploymentERROR DETAILS
    Errors With New DLL
    ERROR DETAILS
    Following errors were detected during this operation.
    * [9/30/2014 9:17:13 AM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    - Reference in the manifest does not match the identity of the downloaded assembly Microsoft.DataWarehouse.dll.
    - Source: System.Deployment

Maybe you are looking for