Adding new coloumns at run time in report

hi friends,
i wan to knw, how to add coloumns at runtime in the report.
the requirement is like,,the user wll enter the cost center group in selection screen n i have to show all the cost elements in tht cost elements group as different coluomn, with the name of the costelement as the coloumn header.
so it is not fixed tht how many coloumn wll be there in report.
so plz help me out.
good points wll be rewarded for helpful ans....
thankx
brij

Hi John,
   I dont think, you can find any method for that,
one way what I can suggest is
Get the selected row index.
Insert the blank row in your internal table at this index
Refresh the container.
Hope  this will help.
Thanks,
Anmol.

Similar Messages

  • Adding new rows at run time in alv oops

    HI ALL,
    I have a created an editable alv report in oops. Now i have to add a new row having similar values as the previous row at run time when a custom button is clicked in the output and after entering some values in the new row and pressing the database must be updated and also the internal table at run time itself.
    for example let us suppose i have the following row in the alv output.
    MATNR                          DESCRIPTION                             NAME                             DATE
    001                                 TEST                                        MATRIKS                      10092001
    NOW if we click the custom button added on the alv toolbar, it should a new row at the run time similar to previous row as shown below
    MATNR                          DESCRIPTION                             NAME                             DATE
    001                                 TEST                                        MATRIKS                      10092001
    001                                 TEST                                        MATRIKS                      10092001 -> NEW ROW.
    can we do it in alv oops? pls let me know the soln or any helpful links
    thanks
    john

    Hi John,
       I dont think, you can find any method for that,
    one way what I can suggest is
    Get the selected row index.
    Insert the blank row in your internal table at this index
    Refresh the container.
    Hope  this will help.
    Thanks,
    Anmol.

  • Adding a button at run time

    I know that you can add components at run time (I've done it with a tree for instance) but how do you link a run time added component with an action handler?
    For example, when you use the designer, you just double click on a button to get an action handler built that automatically gets called when the application is deployed and that button is clicked. Well, when you add a button at run time, you have no way of doing this.
    Just how do you link a dynamic button to an action handler then?
    Thanks

    Hi,
    I generate a table at runtime and also bind it to a dataprovider at runtime and display the records in a table. It works find and I have no problem with that.
    I am trying to add a new column with the button in them, i generate the buttons at runtime. Even this works fine. Along with the data in the table i have the last column with all buttons.
    I am having problem binding the method to the button at runtime. My code is something like this...
         for (int i = 0; i <= numOfCols ; i++) {
              //add the delete button as the first column
              if( i == 0 ){
              TableColumn column = new TableColumn();
              column.setHeaderText("Delete");
              Button st = new Button();
              st.setText("Del");
              st.setId("del");
              MethodBinding mb = (MethodBinding) context.getApplication().createMethodBinding("#{Page.delete_action}", null);
              st.setAction(mb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
              } else{
              TableColumn column = new TableColumn();
              column.setHeaderText(rsm.getColumnLabel(i));
              log("rsm.getColumnLabel("+i+"): "+rsm.getColumnLabel(i));
              column.setNoWrap(true);
              column.setSort(rsm.getColumnName(i));
              ValueBinding vb = app.createValueBinding("#{currentRow.value['" + rsm.getColumnName(i) + "']}");
              StaticText st = new StaticText();
              st.setValueBinding("text", vb);
              column.getChildren().add(st);
              getTableRowGroup1().getChildren().add(column);
    public String delete_action() {
    log("Inside delete_action().");
    return null;
    The method delete_action() is not called at all.
    It would be appreciated if someone could help me with this problem of mine.
    Thanks,
    Adi.

  • Insert new page at run time to pull in images

    Hello ,
    I'm using Adobe LC Designer 8.2, and wondering if there is a way to insert a new page - not in design view but at run time since I have a dynamic plot as image (jpg) to bring into a form (1 image per page).  How would l load the image in & create those pages for these plots - it's going to be different amount of images/plot each time when the form run.  I know that I have to use script some how, but I'm new at this. Greatly appreciate all the help!
    Thanks,
    Trang

    One idea would be.....housing the image alone in a subform and set the subform to use "Top of the next Page" under "Object>>Pagination>>Place:". Also you may have to play with "Object>>Pagination>>After:" option to get things in your favor.

  • Open GRPO run time correct report

    Query expert,
    We are using SAP B1 9.0
    We need Open GRPO Report run time query
    Example - We made GRPO on 01/09/14 with 5 line items after that we made A/P Invoice on 05/09/14 with 3 line items
    If we generate open GRPO report as on 05/09/14 than GRPO showing Open for 2 line item but next date we made again rest 2 line item A/P Invoice
    on 08/09/14
    Finally after few date we want to generate how many open GRPO as on 05/09/14 than 2 line item data not showing in Open GRPO list but actual 2 line item closes on 08/09/14.
    Please help how to made such run time query so that we get correct open GRPO report from SAP.
    Thanks
    Regards
    Mukesh Singh

    Hi,
    Try this,
    /*select from opch a */
    Declare @tilldat Datetime
    /* where */
    set @tilldat=/* a.Docdate  */'[%0]'
    SELECT A.DocNum,A.DocDate,B.ItemCode,B.Dscription,B.Quantity,
    CASE WHEN B.Quantity - ISNULL(C.Qty,0)=0 THEN 'Closed' else 'Open' End LineStatus,c.Docdate 'InvoiceDat'
    FROM OPDN A INNER JOIN PDN1 B ON A.DocEntry=B.DocEntry
    LEFT OUTER JOIN
    (SELECT SUM(B.Quantity) Qty,B.BaseEntry,B.BaseLine,Max(A.DocDate) Docdate
    FROM OPCH A INNER JOIN PCH1 B ON A.DocEntry=B.DocEntry WHERE A.DocType='I' AND B.BaseType='20'
    GROUP BY B.BaseEntry,B.BaseLine) C ON C.BaseEntry=B.DocEntry AND C.BaseLine=B.LineNum
    WHERE A.DocType='I' AND ISNULL(C.Docdate,@tilldat)<=@tilldat
    Thanks & Regards,
    Silambu

  • Adding DVM values at run time

    Hi,
    I am trying to adding domain values to DVM at run time,
    it is getting added to DVM at that movement ,bt
    when i redeploy the service I am not able to see the changes.
    so help required regarding this

    Hello
    That is the solution to his problem, by the sounds of it when he redploys his code he gets the old values (the one in his code) if he migrates it to the MDS when he redeploys it won't change. This will seperate his deployment from run time configuration values which is a good idea.
    Best Regards Tristan

  • Run time for Report saved in local machine and Database

    Hello,
    I have a report that runs in 5 seconds in Discoverer Desktop. When I saved the same report in database(File->Save As - in Database) it takes more than 40 mins. I haven't made a single change to the report before saving to Database. Has anybody come across this? Please help me find the problem.
    Thanks.

    Hi,
    this is just how the Internet works and also how file displays work. Everything you view, listen to etc. in your browser gets saved as a temporary file on your computer. You can't even view a simple html page without having it saved on your computer for a short time. I can't think of anything to prevent this from happening.
    Also, if you generated the file yourself, how is that a security threat to your client? He should be sure the file is safe.
    Best regards!

  • Adding new customized column in the Bex Report

    Hi Experts,
    I have an existing column (say A ) in Bex and I want to add one more column (say B) based on the values that I have in column A.
    For e.g.,
    A          B  
    5          5   (=A1)
    8          3   (=A2 - A1)
    15        7   (=A3 - A2)
    I am able to create a new column B and bring the values based on above formula to get the expected results. Though the results are correct and also I saved the report as workbook, when I try to refresh the query again and open the workbook, the new column 'B' is getting disappeared.
    Could someone please help me on this?
    Thanks in advance for your help.
    Bregards,
    Krish

    Hi Pavel
    I'm hitch-hiking on this thread.
    Can you please explain what do you mean by "the grid becomes static" when you use "Convert to Formula"?
    I'm studying Excel integration in the BEx Analyser and it seems to me that when you select Convert to Formula and save the query, then you load new records into the Cube, when you open the query again it's no longer refreshed (even if you select "Refresh Workbook on Open". Is it what you mean?
    I'd appreciate more detailed explanation. I'd appreciate too this documentation about BExGetData.
    Thanks
    César Menezes

  • Adding new field KUONR in VF05 Standard Report from table VBRK

    Hello All,
    I need to add the Assignment Number Field KUONR from the table VBRK into VF05 standard Report and show the respective Assignment Number for the Billing Document.
    Please suggest the exact OSS note and the process
    The SAP Version is SAP ECC 6.0.
    Thanks and Regards
    Karthik

    Hi Karthik,
    Welcome to the forum!
    Please refer to the thread given below. Hope it helps.
    How to Add new fields to display in VF05
    Regards,
    Sridhar

  • Adding new field(material Desc) in pricing report.

    Hi Experts!
      I want to add material decsription in Pricing report,Report name 28.Is it possible to add this field in report 28.Else i want to  create new report as like report28 additionaly which includes material description.But my problem is i didnt find any field for material description when creting a report.How to add new field?Can anyone pl help me in this issue?
    Thanks in advance.

    Hi viswanth,
             Thanks for ur reply.I am not creating any z-report.I am creating new pricing report through t.code v/la.In that  they have provided some tables and its fields to create  a trerport. I didnt find fied respect to material description.I want to know how to add makt table there?.Is it possible to add new ?
    Edited by: Ranganayahi Chandirasekaran on Nov 26, 2008 9:46 AM

  • Run time errors Reports 3.0

    When using the output viewer at runtime I get R30run32 performed illegal operation when I try to print or use printer setup. If I try to output to a PDF file, I get an error that say's that one of my column formulas has no PL/SQL. Neither of errors occurs in the development environment. Is there an update that I can download? Am I doing something wrong or missing something?
    Thank you in advance. Ed

    For anyone experiencing same problem:
    Make a call to R30RUN32.EXE with parameters
    MODULE=report object.RDF USERID=username/password@instance
    BATCH=YES
    DESFORMAT=PDF
    DESTYPE=FILE
    DESNAME=output path.pdf
    null

  • Run time column attach to apex report

    Hello everyone,
    can it be possible to make a function in a apex which will return a column value in report, like wise we use in report builder. I know we can do this directly in report query... however i want to make a some process may be, through which i can get a column value.
    My requirement is.... i am having a PO report where columns are Header_id, Segment1, Vendor_id, Vendor_site n Amount.
    I can have every column data from PO_header_all except amount for which i need to use.. PO_lines_all whose would be depend on header_id.
    Now.. i can do this directly in query.. but here i don't want to.. use a po_lines_all in report query. I want to call the Amount column attach at run time to report.
    Pls tell me how can i do this??
    I don't know whether it is possible or not... if it is then how can i do this.
    Regards,
    UKJ

    Hi,
    Do you mean something like:
    SELECT H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITE, SUM(A.AMOUNT) TOTAL_AMOUNT
    FROM PO_HEADER_ALL H
    LEFT OUTER JOIN PO_LINES_ALL A ON H.HEADER_ID = A.HEADER_ID
    GROUP BY H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITEThis will return the header_id, segment1, vendor_id and vendor_site values from po_header_all and a total of amount from po_lines_all
    Andy

  • How to get report (SQL Query) generating Run Time

    There is a Standard report of Payroll which show employee transfer information on the bases of location, grade job or organization, now to get actual query which is generated by run time in report builder including whether single column parameter or lexical parameter " because currently the query in not complicate but the parameter and lexical parameter is much more due to this not quite easy to under stand just copy past it into toad or pl/sql developer,
    Kindly share your experience to get such kind of query in you working time.
    thanks

    Here i try to explain contain of query.
    Parameter
    P_DEPTNO = 10
    P_WHERE_CLAUSE := ' AND EMPNO IS NOT NULL AND SALARY > 100'
    SELECT * FROM EMP
    WHERE DEPTNO = P_DEPTNO
    &P_WHERE_CLAUSE
    REPROT WILL GENERATE QUERY AT RUN TIME IS LIKE THAT
    SELECT * FROM EMP
    WHERE DEPTNO = 10
    AND EMPNO IS NOT NULL AND SALARY > 100
    Now i want to get this query out(Run time) by doing any oracle database feature or sth similar.
    thanks

  • Adding new tests at runtime?

    I am considering using TestStand but need to do the following ; Develope a test sequence or suite that will test a base UUT configuration and deploy this as a test application. The UUT configuration can vary hardware wise. It will sometimes consist of just the base configuration and other times it will take on different forms, but alway contain the base configuration.  I would like to then develope other deployable TestStand tests, that depending on the UUT configuration could at run time be added to suppliment the base configuration tests or could at least be executed as well under programatic control of the original TestStand application. 
    In LabWindows I can do this pretty easily with a Plug In type architecture. The base application would support the base UUT tests. If it is discovered at runtime that the UUT is base config plus optional components, the base application will load one of several possible supplemental test DLL's that will programatically add new tests to the base application, inserting them into the test sequence. It can also programatically modify the base apllication UI.
    So I guess the question is : Can a deployed TestStand application modify it's test sequence with additional new tests at run time. The new tests would be unknown at the time the TestStand application is built and deployed.
    Thanks alot
    JeffM

    Jeff, I like the idea of using a sub-sequence that uses an expression to load a sequence file.  You would have a main sequence that gets deployed to test the base unit.  In this main sequence you have an expression that creates an array of sequence file names based on the options on the UUT.  Then create a loop around a Call Sequence File step.  This call sequence file is set to dynamically load a file.  I have attached a demo of this method.
    To implement this, you would need to come up with a standard for option sequence file names so your main sequence would be able to find them.  A property file with an array of structures that describe each sequence file might work, but this would need to be updated with every new option.  Even better would be a step that can index the sequences in a specific directory and create this array of structures dynamically.  The structure would contain the filename and the option that it tests.
    This is something that I put together in about 10 minutes this morning.  The report looks a little ugly...  If you implement any of the above ideas or have improvements please let me know.  This is an interesting set up. 
    I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
    Attachments:
    PlugInDemo.zip ‏18 KB

  • Why does RT 2011 Sp1 tell me that I need a newer version to run an app?

    After installing RT 2011 SP1 on a laptop, I get an error that I need a newer version of Run time when i try to run an application created from LV 2011 SP1. Any ideas why?

    Hi,
    Try to verify the version of LabVIEW installed in your controller (NI-MAX >> Remote System >> [Your Real-Time Target] >> Software >> LabVIEW Real-Time). Your controller should still be running the previous version of LabVIEW Real-Time. Try to install the new version in your target.  
    http://digital.ni.com/public.nsf/allkb/D170D1AF82303EA086256B4200780579?OpenDocument
    Regards,
    MCOTO

Maybe you are looking for

  • Can't view duplicates in iPod or iPod selection

    iTunes 7.3.2 seems a little odd, everything looks and seems to work differently - I don't seem to be able to have any control over the ipod (4 gig mini) contents unless I select "manually manage" - in the older versions, it seemed to be a mixture, yo

  • On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."

    On my iPad, when I try to open a movie I purchased from iTunes, I get "The requested URL was not found on this server."  It's on my laptop but when I play it there, it 'jerks' every couple of seconds.  How can I fix both these issues?  Thanks!!

  • Error code 8103010d appear on my lumia 920!!

    so happy to get this handset!!! but there are few problems with it!! can someone help me out plz!! 1st the battery life is so short! i got only 13 hours when i have 100% barttery  2nd is the internet sharing doesnot work!! my iphone 4 can connect the

  • A suggestion about statspack...

    Hi , I need a suggestion in statspack and sql tuning/db performance when an application runs...... Imagine that I run some forms/reports e.t.c. developed with Developer Suite 10.2 , say form1 , form2 , form3 , form4 .... form15 in a time of 10 minute

  • Oracle 8.1.6.0.0 in HP-UX 11

    When I am installing oracle8i on HP-UX machine, after copying all the files when trying to link the oracle protocol support 8.1.6.0.0, it pops up with the following error: "Error in invoking target ntcontab.o of makefile /oracle/orasoft/network/lib/i