How to create a first row in crystal report as opening balance which contains two columns with debit and credit

I have created a crystal report with credit and debit column. Balance column created on the report. Report running with cummulative balance. THis report contain an option for date range. If i filtered this report its not showing the actual balance. I need
a first row to indicate previous balance as opening balance in this report.  And following is the formula for balance column.
Whileprintingrecords;
Shared Numbervar balance;
Shared Numbervar display;
balance:={@debit}-{@credit};
display:=display+balance;
display

As this question is out of the T-SQL queue, thus I would suggest you consult Crystal Report questions to the correct forums.
C#
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
VB
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
people there have more knowledge on Crystal Report.

Similar Messages

  • How to Create a Linked Subreport in Crystal Report for Enterprise

    Hi All
    I am developing a monthly report grouped by cost centre, I want to create a second table for each cost centre showing year to date, underneath the monthly data for that cost centre.  My thoughts on how to achieve this is to create a linked subreport in the group footer of the cost centre grouping.  However every time I try to set this up the report crashes.  Am I doing something wrong, can this be done in crystal reports for enterprise?  Can anyone give me a pointer on how to set up a linked subreport so that it passes the particular cost centre the report is grouped upon into the subreport so it only shows data relevant to that cost centre?
    Any help will be appreciated as I am going in circles at the moment.
    Thanks
    Neil
    Edited by: SmiddyLad on Feb 6, 2012 2:49 AM

    Hi Neil,
    You are doing right. You can create linked subreport in crystal report for enterprise.  Please refer below link to see the elearning tutorial  in which a simiar scenario is explained step by step. Here its an unlinked subreport. Enable subreport filter to make it linked and try. It should work.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200c56fc-5a02-2e10-36a1-ba3d28e31fc2]
    Hope it helps you.
    Regards,
    Nikhil Joy

  • How to create hierarchy in BPC NW 7.0 for a child which has two parents ?

    I need to create a hierarchy in which some of the children have 2 parents (only some, not all of them). I tried using two columns - parenth1, parenth2. but it would not permit me since I cannot leave p2 blank for those children which have only one parent. If I try putting in p1 and p2 same for such children, then I get an error saying duplicate.
    Please advice.
    Tagz

    How do you expect this roll-up to work numerically? Do you want ACCOUNT1 to be counted twice at the Child level, or do you expect it to cancel out (like it would in a BW hierarchy)?
    I'm curious about the structure of your P&L that leads you to want this type of display. I have seen a lot of P&Ls and I've seen this requirement a few times, but usually you can meet it by recognizing that the P&L hierarchy and the reporting structure are separate. In this case we can often re-factor a single reporting structure with this type of roll-up into two or more separate P&L hierarchies, or we can use calculated accounts to provide for a more flexible reporting structure.
    In any case, the scenario you describe is not possible using a single account and a single hierarchy in BPC. You can do one of the following (I'm probably missing an option):
    1. Use two hierarchies or more hierarchies, to model alternative roll-ups of the base accounts into your different P&L formats.
    2. Use a single hierarchy and another account and a script logic to copy the value of ACCOUNT1 to the new account.
    3. Use a formula account to automatically copy values to a different spot in the existing hierarchy (will not roll-up)
    Cheers,
    Ethan

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • How to include the first row of detail in every xquery transformed xml?

    I am dealing with a XML file,where i need to publish to different BS.
    First node will be a common node node which contains vital info,second node goes to one BS and third goes to another BS.
    *<header></header>*
    *<details></details> (they are unbounded, but the first detail tag which comes in the input file is a mandatory tag in such a way that it needs to be included in every transformed message)*
    *<trailer></trailer>*
    We need to apply x query transformation on it in such a way:
    *</header></header>*
    *<1st detail></1st detail>*
    *<detail></detail> (2nd row of detail in input file)* -------------------------> Goes to BS1
    *<trailer></trailer>..*
    *<header></header>*
    *<1st detail></1st detail>*
    *<detail></detail> (3rd row of detail in input file)* ----------------------------->Goes to BS2
    *<trailer></trailer>*..
    And so on.
    Now, the problem is how to include the first row( *1st detail* ) of detail in every xquery transformed xml?

    are you looping of this input with a for each?
    /yourdata/details[1] should return always the first detail element.
    or before the for each do an assing of this first detail element to "generic_details_var"
    and use this var in every looping iteration (in an assign or as input for xquery)

  • How do we create a jndi connection in crystal reports XI

    how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • How to increase the width of the Crystal Report

    Hello All
    How to increase the width of the Crystal report template in the CR designer in .NET 2005 editor ?
    I need to design a report which has to accomodate more number of columns.So achieve that i need to redesign the report having more width.
    CrystalReports version 10.2.3600.0
    Thanks in advance
    Srivatsa

    HI Srivatsa,
    You can make a wider report by creating virtual pages. Virtual pages are the extra pages to the right of the main page that get created to accommodate cross-tabs that are wider than a single page. By inserting a cross-tab in a report then suppressing it, you can create a report that is multiple pages wide.
    Insert and Suppress a Cross-Tab
    1. On the 'Insert' menu, click 'Cross-Tab'.
    2. In the Cross-Tab Expert, click any field and move it into the 'Columns' box, and click any field and move it into the 'Summarized Fields' box. Do not move any fields into the 'Rows' box.
    3. Click the 'Customize Style' tab and select the following check boxes:
    " Suppress Empty Rows
    " Suppress Empty Columns
    " Suppress Row Grand Totals
    " Suppress Column Grand Totals
    4. Click the 'OK' button and then insert the cross-tab into the Report Header section.
    5. On the 'Report' menu, click 'Format Sections'. Click 'Report Header' and select the 'Underlay Following Sections' check box.
    When you run the report you will not see the cross-tab, but you will be able to scroll to the right and see multiple virtual pages.
    ====================
    NOTES:
    " As there are no rows to the Cross-Tab, it does not carry on to Page 2 and the virtual pages do not appear past the first page.
    " To increase or decrease the number of virtual pages do one of the following:
    - Limit the number of records for the field in the 'Column' box of the 'Cross-Tab Expert' using the 'Select Expert'.
    - Change the width of the 'Column' field in the Cross-Tab by moving the edges of the field.
    ====================
    How to Insert Fields on Virtual Pages
    You cannot drag-and-drop a field onto a virtual page, you can only do so on the main page. To get a field to appear on a virtual page:
    1. Insert the field on the main page.
    2. Click the 'Preview' tab.
    3. Drag the right edge of the field to the right, onto the virtual page.
    4. Drag the left edge of the field to the right, onto the virtual page.
    Hope this helps!!
    Regards,
    Shweta

  • How to use drill down option in Crystal Report

    Dear all,
            I want to know how to use drill down option in Crystal report 2008.  In below i have explained my screnario
    For example
       My scenario is.  In crystal report I have Purchase order like PO101,PO102.  Each purchase order have 5 line items.  If i drill down each purchase order it should display line item in crystal report. 
    Regards,
    Baskaran.

    hi,
    Create a Group on 'Purchase order'.
    Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
    GH1 is inserted.
    Your detail section should include 'Line items' fields.
    Right Click 'Detail' section on left hand side,  Click 'Hide (Drill down Ok)'.
    Now you will see only 'Purchase order's in Group Headers.
    Now when you click on a particular order, you will see respective line items.
    Regards,
    Vamsee

  • How to get the spool id or how to create a spool id for the report .

    hi,
    how to get the spool id or how to create a spool id for the report .
    this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
    my requirement is to download a pdf file from the alv grid list.

    Hi Raghu,
    Execute this program.
    REPORT  ZTEST_3318                              .
    tables: usr01.
    perform send_report_to_spool.
    *&      Form  send_report_to_spool
          text
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    *&      Form  write_summary
          text
    -->  p1        text
    <--  p2        text
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary
    This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
    After that use that spool for your purpose.
    If Useful award point

  • How to build Table of Content in Crystal Reports

    Hi,
    Initially, I am looking for an article about how to build Table of Content in Crystal Reports in table-based approach----including how to write to DB table from report:
    http://support.businessobjects.com/library/kbase/articles/c2011950.asp
    However, the link above is invalid. I also searched through SDN articles, but no luck.
    Can someone please forward me the link if you happend to know?---does not have to link to this specific article, any working solution is just fine.
    I am aware of another approach which put the TOC to the end of the report(http://www.ml-consult.co.uk/cryst-05.htm), which probably does not satisfy the requirement.
    If you have other solutions, your share is greatly appreciated.
    Thanks a ton!

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

  • How to view the History of a Crystal Reports iView in EP6?

    How to view the History of a Crystal Reports iView in EP6?
    Our Crystal reports are viewed via Crystal Enterprise and are both BW and non-BW Crystal reports.
    I have looked at the three supplied iViews from Business Objects (alert, folder and thumbnail) but I have only been able to access the last instance or run on demand a CR.
    Our users would prefer to see a listing of the past runs of the report and choose which report to view.  What parameters need set in the EP6 iView to see the history of a report?

    Hi Heather,
    it is correct that there is no sample iView that shows the History of Crystal Reports that are stored in Crystal Enterprise but there a sample codes on our web site and there are sample codes as part of the SDK documentation that show how to call the history and you should be able to take the code and create your own Java or ASP iView based on that.
    the link to our developer library :
    http://www.businessobjects.com/products/dev_zone/default.asp?intcmp=products12
    hope this helps
    Ingo

  • How to create user defined button in alv report

    how to create user defined button in alv report
    thnks in advance.

    Hi,
    U can define it the the PF-STATUS ( Menu for ALV ).
    For that u have to define it in the EVENTCAT.
    form z_eventcat  using    p_i_eventcat type slis_t_event.
      data: i_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_i_eventcat
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      clear i_event.
      read table p_i_eventcat with key name = slis_ev_top_of_page into
      i_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
      if sy-subrc = 0.
        move 'SET_PF_STATUS' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      clear i_event.
      read table p_i_eventcat into i_event with key name = slis_ev_user_command .
      if sy-subrc = 0.
        move 'USER_COMMAND' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
    And in the DISPLAY
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_progname
         i_callback_pf_status_set          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = v_gridtitle
         i_save                            = 'A'
         is_layout                         = i_layout
         it_fieldcat                       = i_fieldcat[]
         it_sort                           = i_sortinfo
         it_events                         = i_eventcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_final
       exceptions
         program_error                     = 1
         others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *MENU SETTINGS.
    form set_pf_status using rt_extab type slis_t_extab.
      set pf-status 'ALV_MENU'.
    endform.                    "SET_PF_STATUS
    endform.                    " Z_EVENTCAT
    Now double click on ALV MENU nad u can create a button in the application bar.
    Regards,
    Pritha.

  • IR Aggregation as a first row in the report

    Hi,
    I am calculating aggregation using actions in the IR, but my requirement i have to display the aggregation result as a first row in the report.
    version 4.1
    thanks in advance.
    regards
    Chandran

    Hi Jeff,
    Thanks for your reply,
    as you told i tried that CUBE and ROLL UP but i should display the grand total only not sub totals. and i should hi-light that total row also.
    for above requirements i have selected the actions functionality.
    regards
    Chandran

  • How to use a connection ODBC in  crystal reports viewer?

    Hi Guys!
    I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in  crystal reports viewer?

    Hi Guys!
    I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in  crystal reports viewer?

  • How to suppress a blank section in crystal report

    how to suppress a blank section in crystal report. although i have set the property
    "suppress blank section "=true ,still i m unable to suppress my section
    please help me to cope up this issue.
    thanks in advance

    One recommendation I make, when troubleshooting suppression issues, is to put a visible border of the section, area or object to be suppressed, and borders for all objects contained in the section or area.  This will help isolate what's suppressed, and whether the section is truly blank or has content that's blank.
    Furthermore, I recommend indicating which SDK and what version you're using when posting.
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • SQL Loader and numeric types

    I'm using SQL Loader to import data from a file, but I'm having trouble with numeric types. I'm trying to import an amount into a table. The amount field in the table is of type NUMBER(11,2). I suppose that Double is the correct type to use in the ct

  • Material Ledger

    Hi Experts, I have activated Material Ledger and Actual Costing. After that I tried to do the "Production Startup of Mat. Ledger" (Set Valuation Areas as Productive – CKMSTART) I am getting below error. Cost component structure for period 007 / 2014

  • How do I reenter the set up mode in os 6 install?

    I got all the way through the os 6 install process, and began the set up process on the iphone itself.  It prompted me to select a wifi network, which I did, but it kept timing out.  I figured out that it wasn't connecting because with this particula

  • IPhone backlight fail?

    Hey people, had a quick trawl through the threads here, cant seem to find anything relating to this specific issue: Just bought a second hand 3gs, noticed an issue with the screen. There's a rectangle in the (almost exact) centre of the screen that i

  • Can javascript libraries be shared across widgets?

    Is there a way to share javascript libraries across widgets? It would be a shame to have to include the same library over and over again in each widget.