Two Dimensional Report - With FTP download and formatting in EXCEL

Hi all,
I have a ztable with customer,daily quantity , date as columns. I need to make a report with date as rows and customer as columns . If a new customer is added in the ztable , one more column should come in the report.
Basically the internal table should change <b>dynamically</b>.
I have to download this report into FTP and should save as .xls file. All formatting that are there in SAP has to appear in the Excel Sheet also.
Is there any function module for Dynamic Internal Tables and make <b>formatting changes in EXCEL</b> ??
Thanks in Advance..
Vivek Krishnan

for dynamic columns, i am explaining u how to create with an exmaple, check it,
suppose itab has fields A, B, C.
SO ITAB-C HAS THE VALUES OF C. NOW WE WANT A TABLE WITH VALUES OF C RIGHT!!.
NOW BUILD A FIELDCATALOG LIKE BELOW.
LOOP AT ITAB.
LS_FIELDCAT-FIELDNAME = ITAB-C.
LS_FIELDCAT-COL_TEXT = ITAB_C.
APPEND LS_FIELDCAT TO LT_FIELDCAT.
ENDLOOP.
DATA: DREF TYPE REF TO DATA.
FIELD-SYMBOLS: <TEMP_TAB> TYPE ANY.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = LT_LVCFIELDCAT
IMPORTING
EP_TABLE = DREF.
ASSIGN dref->* TO <TEMP_TAB>.
<TEMP_TAB> IS THE REQUIRED DYNAMIC INTERNAL TABLE.
NOW IF U WANT TO FILL THE DYNAMIC INTERNAL TABLE.
DO AS BELOW..
DATA: WA_DREF TYPE REF TO DATA.
FIELD-SYMBOLS: <WA_TAB> TYPE ANY.
CREATE DATA WA_DREF LIKE LINE OF <TEMP_TAB>.
ASSIGN WA_DREF->* TO <WA_TAB>.
FIELD-SYMBOLS: <FS1>, <FS2>.
LOOP AT ITAB.
ASSIGN COMPONENT ITAB-C OF STRUCTURE <WA_TAB> TO <FS1>.
<FS1> = {SOME VALUE}.
APPEND <WA_TAB> TO <TEMP_TAB>.
ENDLOOP.

Similar Messages

  • Automatcially Execute Report (with input parametrs) and Save to Excel/PDF

    I have an SSIS package that does this in SQL 2008 R2 by means of a Script Task that uses ReportExecution2005. I cannot get this to work in SQL2012. It the script builds without error but reports a compile error when I close the Script Task, with the dreaded
    red X in the Control Flow window.
    It has occurred to me that perhaps I can do the same thing using SSRS Web Service, supplying the necessary information in the URL. I know how to supply parameter values and tell it to render in Excel (or PDF) format but user action is still required to
    save the file. Is there a way to provide an output file name in the URL so that the file is automatically saved without even displaying the report?
    I an also looking at PowerShell/ReportExcution2005 as an option and will raised separate post on that subject.
    R Campbell

    Hi Dick Campbell,
    According to your description, you want to export report to Excel/PDF from the a web site and save it without displaying the report, if that is the case, we can use ReportExcution2005.asmx as the report rendering web service.
    SQL Server Reporting Services is essentially implemented as a set of Web services, commonly referred to as SOAP API. In order to use the endpoints from Visual Studio, please refer to the following steps:
    Add Web reference to the endpoints.
    Then we need to initialize the report by calling the LoadReport() method.
    If the report contains parameters, we need to declare and populate an array of ParameterValue objects. Once the parameters are set up, we can call the SetExecutionParameters() method and pass them in rsExec.SetExecutionParameters(executionParams, "en-us").
    Call the Render() method. This method renders the report and returns it as a byte array that we can save into a file.
    The following code is for your reference:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using WebApplication3.ReportExecution2005;
    using System.IO;
    namespace WebApplication3
    public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
    ReportExecutionService rsExec = new ReportExecutionService();
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Url = "http://servername/ReportServer/reportexecution2005.asmx";
    string historyID = null;
    string reportPath = "/multi-value parameter/sub";
    rsExec.LoadReport(reportPath, historyID);
    ReportExecution2005.ParameterValue[] executionParams;
    executionParams = new ReportExecution2005.ParameterValue[1];
    executionParams[0] = new ReportExecution2005.ParameterValue();
    executionParams[0].Name = "group";
    executionParams[0].Value = "Europe";
    new ReportExecution2005.ParameterValue();
    rsExec.SetExecutionParameters(executionParams, "en-us");
    string deviceInfo = null;
    string extension;
    string encoding;
    string mimeType;
    ReportExecution2005.Warning[] warnings = null;
    string[] streamIDs = null;
    string format = "Excel";
    Byte[] results = rsExec.Render(format, deviceInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
    FileStream stream = File.OpenWrite("c:\\Users\\Reports\\report.xlsx");
    stream.Write(results, 0, results.Length);
    stream.Close();
    For more information, please refer to the following document:
    http://www.experts-exchange.com/Programming/Microsoft_Development/Q_27581973.html
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • My iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them.

    my iWeb image names are incompatible with FTP servers and must be renamed but I can't find the images in iWeb. I can upload to a desktop file and change them there but then I would need to download them to a new site in iWeb to publish them. 
    What's the answer?
    Thanks 

    Many thanks to  responded to my question and sorry not to get back sooner.
    Yes, I discovered by this unfortunate experience that the names of photos are a serious issue if the site is to ever go to an FTP server.  Apple should discuss this carefully in their "manual".
    One more question:  I uploaded the website to a folder on my desktop. When I open it, unlike the photos in iWeb, there are folders for each page which have all the photos in them. I went through each folder and changed the names to be FTP compatible. I'm using iWeb SEO Tool which allows one to upload from this local folder to an FTP server but having trouble.
    Is this because there is an imbedment in iWeb that uses the old photo names to link to the actual photos and it can't find them because of the name changes?
    Thanks again for your help ...
    Phil McP

  • Run Report with Pass Number and Varchar Lexical Parameter values

    Dear Sir/Madam
    Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
    Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
    Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
    Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;          
    NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
    Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
    Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
    Hope to hear form you soon.
    Kind regards
    Andrew Mason

    Dont Worry I've worked it out...

  • Call Report with ParamForm=yes and Rep-52007

    I have forms and report services 10.2.0.2 installed on my Win2003 server.
    Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
    This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
         repid REPORT_OBJECT;
         rep_status varchar2(30);
         v_rep VARCHAR2(100);
         vjob_id varchar2(100);
         v_reportserver varchar2(50):=pRptServer;
         v_runformat varchar2(50):= pRptFormat;
         hidden_action varchar2(1000);
         v_report_other VARCHAR2(4000) :='';
    begin
                   repid := FIND_REPORT_OBJECT(pRptObj);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
                   --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
                   -- code for pfaction
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
                   hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
                   hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
                   hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
                   hidden_action := hidden_action ||'&'||v_report_other;
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
                   rep_status := REPORT_OBJECT_STATUS(v_rep);
                   while rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   loop
                        rep_status := REPORT_OBJECT_STATUS(v_rep);
                   end loop;
                   if rep_status = 'FINISHED' then
                        WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
                        message('Finished');
                   else
                        message('Error');
                   end if;
    end;
    Edited by: Zahid Rahim on Oct 2, 2009 10:39 AM

    but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page
    for Paramform=yes u have to enter values manually.
    open the following link.
    REP-52007: Parameter form format error
    http://www.orafaq.com/forum/t/97088/2/
    sarah

  • Project mat. proc. report with monthly breakup and cumulative for year

    Hi All,
    can any body suggest a report for  "Project material procurement report  with monthly breakup and cumulative total for a financial year "
    Thanks in Advance.
    Regards,

    Hi Ahmed,
    Thank you very much for the response.
    I am seeking the std sreport which can give the details for the project material consumption report with monthly breakup with the cumulative month total to year.
    ex. jan 10 units , june -10 units , nov 10 units, total (year) =30
    regards,

  • Please help to get onhand stock report with last purchase and billed date warehouse and item wise

    please help to get onhand stock report with last purchase and billed date warehouse and item wise

    Hi Rajeesh Ambadi...
    Try This
    SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',  
      T1.LASTPURDAT ,t1.LastPurPrc
    FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
    INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
    WHERE
    T0.ONHAND>0
    AND T0.WhsCode ='[%0]'
    Hope Helpful
    Regards
    Kennedy

  • I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    I have two different accounts with I-tunes and I want to link both purchases for my music to one account. How can I do this?

    You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
    My Apple ID

  • I selected update option and it erased my ipod with all downloaded and paid materials...any ideas for how to restore?

    I selected the update option and it erased my ipod with all downloads and other materials lost...any ideas on how to restore?

    Everything should be on your computer.  Just sync it back.
    Did you fail to make sure that everything was on your computer before updating?

  • I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard.

    Good Morning,
    I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard. I shut it off took out the battery, reinstalled the battery. Then I put in the Snow Leopard CD and booted up to disk utility and The Snow Leopard partion would not show up?? I do see the microsoft partion.
    I also rebooted holding down the shift key and still no Snow Leopard
    Could you please tell me what I can do, what keys do I press on restart any advice to get Snow leopard back.
    thank you.

    Have you restarted holding down the Opt key?  That procedure should give you a gray screen with all of the partitions that exist.  Then select the SL partition for boot.  Also go to System Preferences and Startup Disk, unlock the lock and select the SL partition as the default boot partition, then relock.

  • Summary Report with 4 Dimensions and 5 Facts

    Hello OBIEE Czars:
    I have a problem.
    I am trying to make a summary report with 4 Dimensions and 5 Facts.
    Out of that only 2 Dimensions are Confirmed.
    Now when I try to bring in all the facts, I get view display error.
    I searched forum for similar issues.
    So I have tried following so far.
    1) Add other dimensions as source and set level to Total for those dims.
    - After doing this, I dont get view display error, but I get blank rows for couple of facts.
    2) I am already aggregating all the measures.
    Please help me out.
    This forum has been very helpful so far.
    Thanks.
    ~Vinay

    Hi
    This method seems fine until you run a request that includes a filter on an unconformed dimension.
    The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
    SELECT
    x.dim1, x.dim2
    x.fact1_agg_measure
    y.fact2_agg_measure
    FROM
    SELECT
    dim1, dim2
    SUM(fact1.measure) fact1_agg_measure
    FROM
    dim1,
    dim2, --UNCONFORMED+
    fact1
    WHERE
    .... .... join fact1 to dimensions as normal
    AND dim2 = 'BUSINESS_IDENTFIER'
    GROUP BY
    dim1, dim2
    ) x,
    SELECT
    dim1
    SUM(fact2.measure) fact2_agg_measure
    FROM
    dim1,
    fact2
    WHERE
    .... .... join fact2 to dimensions as normal
    GROUP BY
    dim1
    ) y
    WHERE
    x.dim1 = y.dim1
    The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
    Just wondering if anyone else has come across this issue?
    cheers
    Tony

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • Report with material number and planned delivery time

    Is there any standard report with material number and planned delivery time ?

    Hi,
    I do not know any standard report. Please try SE16 + MARC...
    BR
    Csaba

  • I have a report with 2 queries and prompts on same object tell me how many times it request for I/P?

    Hi
    i have a report with 2 queries and prompts on same object tell me how many times it request for I/P? can any one please guide me.
    Regards,
    Mahendra

    Is this question related to Dashboards or webi ?

  • Last time my lack of an admin password to alter the desktop interfered with the download and now it says the invitation has already been accepted so I can't retry... The team administrator says there's no resend option. What do I do?

    Last time my lack of an admin password to alter the desktop interfered with the download and now it says the invitation has already been accepted so I can't retry... The team administrator says there's no resend option. What do I do?

    Moving this discussion to the Adobe Creative Cloud forum.

Maybe you are looking for

  • ASA 5505, error in Access Rule

    Hello. Tha ASA 5505 is working, but I try to allow http and https from internet to a server running 2012 Essentials. The server has the internal IP 192.168.0.100. I have created an Object called SERVER with IP 192.168.0.100 The outside Interface is c

  • Photo Slide Show Timings

    Have loaded both stills and video on the timeline. Used the Ken Burns effect on most photos. All the photos have reverted to 1 sec of playback even if I manually edit the timing. What gives? Is it not allowing the overall project time to increase? if

  • What is meant by 'Business Area'

    Hi all what is meant by 'Business Area' in discoverer? Because i have installed BI Tools Discoverer Admin and Desktop but unable to figure out what Business Area atcually is!!!! Thanks in advance Regards

  • Insufficient memory 6230

    i keep on getting insufficient memory when i try to transfer music to my 6230. i know that i have about 29Mb memory free. why do i keep getting this message??? please help

  • Pls send me PDF'S for Integration Repository and Mapping

    Hello All, I need to make presentation. Pls send me different PDF'S for Integration Repository and Mapping Regards