Problem in classical report.

Dear all,
I am facing a problem with alignment in one classical report.
Requirement is debit ,credit amount's sum will at end of every g/l as new line.
Text will be closing balance - then amount.
My amount & text is coming ,but not properly.
All document will come & then closing balance will come as new line with ULINE.
Code part is: -
SORT it_bsas by hkont.
LOOP AT it_bsas INTO wa_bsas.
if wa_bsas-shkzg = 'H'.
    WA_OUT-DMBTR = WA_BSaS-DMBTR.
       WRITE : wa_out-dmbtr UNDER f LEFT-JUSTIFIED.
   lv_sum1 = lv_sum1 + wa_out-dmbtr.
    ELSEIF wa_bsas-shkzg = 'S'.
      WA_OUT-DMBTR1 = WA_BSaS-DMBTR.
         WRITE : wa_out-dmbtr1 UNDER g LEFT-JUSTIFIED.
        lv_sum2 = lv_sum2 + wa_out-dmbtr1.
    endif.
at END OF hkont.
   ULINE at /93(50).
   WRITE : /93 'Closing balance' ,
            109 lv_sum1,
          127 lv_sum2.
   ULINE at /93(50).
   CLEAR lv_sum1.
   CLEAR lv_sum2.
endat.
Any help in this?

Then use the same code as you are using to output dmbtr
       WRITE : lv_sum1 UNDER f LEFT-JUSTIFIED.
       WRITE : lv_sum2 UNDER g LEFT-JUSTIFIED.
Would recommend using pre-sorted ALV with sub-total on these amount fields
Regards

Similar Messages

  • Downloading problem in classical report

    Hello Experts,
    I had made one Z classical report. The output of the report is absolutely perfect.
    The problem is when I am downloading this file as spreadsheet or HTML formatt, then the Item level data is coming one column forward.
    Like, suppose these are four columns of my report,then in excel sheet data is appearing as:
    S.no          Ref no.                    date                  name
                       1                        900556               22/11/2011          ABC
                       2                        900567               22/11/2011          XYZ
    But the data in output of the report is showing correctly.
    How should I correct this.
    Please help.
    Edited by: shubh_ag on Nov 22, 2011 1:18 PM

    Hi shubh,
    Use concatenate and pass all the header data into one string. Use cl_abap_char_utilities=>horizontal_tab
    In your case
    Concatenate
    u2018S.Nou2019  cl_abap_char_utilities=>horizontal_tab
    u2018Ref NOu2019 cl_abap_char_utilities=>horizontal_tab
    Into w_string
    cl_abap_char_utilities=>newline
          into text.
    For item data also use same procedure.
    Structure-s.no  cl_abap_char_utilities=>horizontal_tab
    Into text.
    And use the below function
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text   = text
        importing
          buffer = xtext.  wdr_task=>client_window->client->attach_file_to_response(
    **path to the word file
        i_filename = 'WDP.xls'
    String Variable
        i_content =  xtext
    File Type
        i_mime_type = 'EXCEL' ).
    Thanks are Regards.
    sivaram Patruni.

  • Footer problem in classical report

    Hi experts,
    I devloped a classical report but i want to display a footer deatail in all of my page.
    But in my last page it doesn't come......
    NOTE : i have reservered 12(2) line for each page. but total record is 100.
    Regards
    skmohanty

    Hi,
    I am hope this answer is very helpfull to u..
    Declare one variable like
    DATA: V.
    V =  sy-linct - sy-linno - 2.
    skip V.
    plz this code write after the endloop and before the end-of-selection
    Thanks&Regards
    Hari..

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • Problem in getting previous screen in Classic report.

    Hello everyone,
                          I am facing a serious problem in getting the previous screen in classical report.
    let me tell you in detail.
    When i run the report, i will have a selection screen with some checkboxes and select-options. Now in the report i have functionality to get some more select-options from user selection. Here i am calling the pop-up screen, wherein if user selects checkboxes, then those fields will be visible on the default selection screen.
    To display them i am using Modif-id concept. Depending on the checkbox values, i am setting up the variables. Using those variables i am modifying screen.
    Now suppose user has got some extra fields and run the report. It will get the output in the desired format.
    Now the problem is when i am pressing 'BACK' button on the report output. The fields which are appended using modif-id are getting cleared. After that what i have is only the default selection-screen.
    I want those fields to be restored. How do i go for it. Please help me out.
    thanks in advance.

    Hi thanks for reply.
                               Actually code is too big to post. But have you understood my problem. Some part of code ia am sending.
    AT SELECTION-SCREEN OUTPUT.
    IF SY-UCOMM <> 'ONLI' AND SY-UCOMM <> 'FLDS' AND SY-UCOMM <> 'OK' AND
    SY-DYNNR <> '0100' AND SY-UCOMM = ' '.
      LEAVE TO SCREEN 1000.
    ENDIF.
    Now i want to know, whether i could get bcak those fields which which are appended using Modif-id,
    how do i get the information about screen fiedls which was there after leaving the screen.
    Thanks.

  • Classic Report Sort problem

    I have a classic report that retrieves data based on the value in an item. When the page first opens the report retrieves properly. However, the strange thing is when I try to sort the rows by pressing the column header, I receive "No Data Found".
    The report is just very basic. Selecting a few columns from a table where ID = :P3_ID.
    If I change the where clause to be WHERE ID like '%' || :P3_ID, when it initially retrieves, I receive the data for the value in P3_ID. However, when I sort the report by a column header, it retrieves everything. It is as if P3_ID has been set to NULL or a blank eventhough it displays the proper ID.
    Any ideas?
    Thanks,

    Hi Brian,
    see the following thread Interactive Reports: problem with textfield as parameter for an explanation
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

  • Formatting problem when downloading classical report output to excel sheet.

    Dear Experts,
    My classical report o/p looks like:
    SI    Name   ID
    1      xyz     11
    2      abc     22
    3      eet      33
    4      jnc      44
    When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
    The formatting looks like this:
    SI   Name   ID
    1     xyz               11
    2     abc               22
    3     eet                33
    4     inc                44
    That is the heading and column entries are in different columns.
    There is no GUI_Download used.
    Kindly help what may be the issue.

    Hi,
    In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue.

  • Classical report printout problem

    Hi
    Classical report printout is coming landscap while i want it to come in portrait.
    Any idea ???

    Mani
    Change Print Format through Properties Button on the Print Popup which comes when you press the Print Button..
    Thanks
    Amol Lohade

  • Classical report problem

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

  • Mixing of interactive report and classic report fails the RESET PAGINATION process.

    I have a tab page where i got 3 different reports REPORT_A (classic), REPORT_B(interactive)  and REPORT_C (CLASSIC) in the same alphabetic order. I have a reset pagination page process which will always fire (without any condition) when you visit the page via tab.
    The reset pagination process which exists in the before header stage is firing but not resetting the interactive report. It does affect the subsequent classic report REPORT_C as well. The REPORT_A would reset pagination fine since it exists before the interactive report. Is this a know bug in apex?
    I created a test demo application with exact steps to reproduce the problem. The steps are in the demo website itself.
    http://apex.oracle.com/pls/apex/f?p=56638
    U: testuser
    P: password
    Apex Version: 4.2.4.00.08
    In my real application i would have a dropdownlist in the page based on which I would filter the data. The dropdownlist will have a corresponding after-submit branch which will handle the reset pagination & RIR absolutely fine. But when we visit the website through tab the above problem would crash the page.
    I tried solutions like gReport.search('SEARCH') but that will fix only the interactive report, not the classic REPORT_C. That is just a hack anyway.
    Any ideas.?

    Ramani_vadakadu wrote:
    in classic report pagination need to be make it up max rows in APEX_SCHEMA(APEX_040200) itself. i was fixed this issue long back myself,but right now i don't remember which table! so please check the schema and track it.
    This makes very little sense to me. Please explain this in detail. Are you advocating making changes to APEX metadata by executing DML on tables in the APEX_040200 schema? Doing so will leave your APEX instance in an unsupported an possibly inoperable state.

  • How to create a dynamic action from link column in classic report

    I Have an apex page that display a modal window utilizing jquery. In the modal window I have a classic report with a link column that I want to capture its click event.
    I was thinking I could create a dynamic action with selection type=jquery selector. Not for sure if I need to do anything on link column and do not know the syntax
    for jquery selector. Would appreciate any help or direction???

    Thank you for your response. I am very new to Jquery so don't understand all that well.
    What I did:
    I created a dynamic action
    Event: Click
    Selection Type: jQuery Selector
    jQuery Selector: tdheaders
    Created True Actions
    I created an alert to see if this is being executed.
    Alert 'I made it here'
    What I have:
    I created a report region with the following query:
    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    I created 'SELECT' column as Link Column
    Report Attributes
    Link Text Select
    Target Page in this Application
    Page 2
    Region Header
    <div id="ModalForm2" title="Employee List" style="display:none">
    Region Footer
    </div>
    This report is displayed in a modal form when a button is clicked.
    Code for modal window in Page Header
    <script type="text/javascript">
    $( function() {
    $('#ModalForm2').dialog(
    { modal : true ,
    autoOpen : false ,
    buttons : {
    Cancel : function() {
    closeForm2();
    function openForm2()
    $('#ModalForm2').dialog('open');
    function closeForm2()
    $('#ModalForm2 input[type="text"]').val('');
    $('#ModalForm2').dialog('close');
    </script>
    I am trying to capture the click event on the link column of the report in the modal form. I want to pass a couple of column values
    back to the main form and close the modal window. I do not want to do the submit that happens if I click on the link column and link back to the main page(2)
    If I let the submit to happen, all other entered fields are cleared on my main form.
    Just don't understand the jQuery selector. I have no problem catching the button clicks on the modal form.

  • First group heading below displays below column headings using Template 23 Classic Report using Repeat Headings on Break

    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    When I look a the code in firebug I can seen that the all tables but the first, the break row is being included as the last row of the previous table so I can see how this would not work for the break since.
    I have tow questions.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Example of issue can be seen at apex.oracle.com at  Home
    Thanks,
    Brad

    Roadling wrote:
    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    The Standard report template definition in theme 23 contains thead and tbody elements:
    Before Column Heading
    <thead>
    Column Heading Template
    <th #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    After Column Heading
    </thead>
    <tbody>
    After Rows
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    <tbody class="uReportPagination">
    #PAGINATION#
    </tbody>
    </table>
    <div class="uReportDownloadLinks">#EXTERNAL_LINK##CSV_LINK#</div>
    This is intentional, following best practice for marking up HTML tables. What is not intended is the problem that arises when this template is used with the Repeat Headings on Break break formatting option. The repeated headings result in the table consisting of tag soup containing multiple incorrectly constructed tbody and thead elements, which is invalid.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Create a copy of the Standard report template as Standard (break formatting) for use with break reports, remove the thead and tbody tags from the template definitions, and change the break reports to use the new template. (Or, if you primarily have break reports using the Standard template, keep the tags in the copy and remove them from the original to minimize the number of reports you have to edit.)
    Personally I'd create a custom row report template for complex break reports in order to be able to have complete control over the structure and presentation.

  • Triggering END_OF_PAGE IN CLASSIC REPORT

    Hi Experts,
                          I have one classical reporting in that END_OF_PAGE is not Triggered At last Page due to Less No of Records in last Page,can anyone
    tell me how to trigger END_OF_PAGE  . i want to display the page total for every page but for last page i cant display Page total Due To Less
    No Of Records can any one suggest how  to solve this problem.
                                                                                                                                                                      Thanks in advance.

    Hello,
    If you read F1 help, it is mention as below.
    Effect
    This statement defines an event block that is raised by the ABAP-runtime during creation of a basic list, if there is a line reservation in the addition LINE-COUNT of the initiating statement for a page footer, which was reached while writing to this page. A list output that takes place in the event block, is placed in this area. Output statements that exceed the reserved area will be ignored.

  • Checkbox in classic report

    I have question about checkbox in classic report.
    I need to choose only one checkbox in every row, hot to ensure that only one checkbox can be checked at same time?
    Checkboxes are defined in SQL query as:
    apex_item.checkbox(1,msisdn,'UNCHECKED') as clear,
    apex_item.checkbox(2,msisdn,'UNCHECKED') as to_analysis,
    apex_item.checkbox(3,msisdn,'UNCHECKED') as to_barring
    here is the picture:
    http://www.deviantpics.com/images/mNgGR.jpg
    Tnx!

    amend your api calls to add onclick event to every checkbox column
       apex_item.checkbox(1,msisdn,'UNCHECKED onclick="chkckbox(1,this);"' ) as clear,
       apex_item.checkbox(2,msisdn,'UNCHECKED  onclick="chkckbox(2,this);"') as to_analysis,
       apex_item.checkbox(3,msisdn,'UNCHECKED  onclick="chkckbox(3,this);"') as to_barringCreate a javascript function in your page header > Javascript
    function chkckbox(pId, pThis) {
    //get current row index
        var currIndex = $('input[name="f0'+pId+'"]').index(pThis);
         if (pThis.checked) {
       //simply uncheck other check boxes
              if (pId == 1) {
                   $('select[name="f02"]')[currIndex].checked = false;
                   $('select[name="f03"]')[currIndex].checked = false;
              } else if (pId == 2) {
                   $('select[name="f01"]')[currIndex].checked = false;
                   $('select[name="f03"]')[currIndex].checked = false;
              } else if (pId == 3) {
                   $('select[name="f02"]')[currIndex].checked = false;
                   $('select[name="f03"]')[currIndex].checked = false;
    }Please note that I have not tested this code but it should work, if you have any problem just try debugging using console.log

  • Whole row of classic report clickable

    Good morning,
    I tried this solution to make a whole row in a classic report clickable:
    {message:id=9656396}
    It worked pretty well but I only on the first open page of a multi page report. If I go to the next or previous page the rows are not clickable anymore. I tried to use livequery but ended up with clickable rows on every second page:
    The report loads with clickable rows. First time I click 'next' the rows are not clickable, second time they are clickable again and so on.
    My livequery statment looks like this:
    $(document).ready(function()
      $('table tr .myClass td').livequery(function(){
        $(this).css("cursor","pointer");
        return false;
    });Can anyone please give me a hint what I'm doing wrong here and how to solve my Problem?
    Cheers,
    Andreas
    PS: How can I format the sourcecode in this forum?
    edit: format

    Hi,
    you can use the following (here I assume the template uses <tr #HIGHLIGHT_ROW#>) :
    CSS :
    tr.highlight-row td:hover {
         cursor:pointer;
    JQuery :
    $('#your_report_id').delegate('tr.highlight-row', 'click', function () {
         do_what_you_want_on_row_click();
    });

Maybe you are looking for

  • Is it possible to use Snow Leopard on Mountain Lion iMac with Virtualbox ?

    I've been lucky recently, with people giving the perfect solutions for me so I try again. But, this one is a tough one: How to run a virtual Snow Leopard on a new iMac ? I got a 2013 iMac with Mountain Lion (10.8.5 now) so,  totally incompatible with

  • Under hp update checking critcal errors, app tried to reinstall to correct the problem, but couldn't

    CompaqPresarioPC AY028AA-ABA WINDOWS 7 EVENT ISSUES: WELL THERE'S 34,000 CRITICAL ERRORS ON MY COMPUTOR. I  went to hp update, they identified the problem with the critical errors WINDOWS INSTALLER SERVICE is not correctly installed. contact SUPPORT

  • Regex for comma detection

    Hi, im trying to capture comma from a csv string, im unable to exclude the string having comma in between text part. eg 1) sample string-> 4,5656,123123,'this is sample text','' expected regex output->4{color:#ff0000},{color}5656{color:#ff0000},{colo

  • Setting up home sharing on 4S not working

    I entered my username and password and the first time I did it, I entered the wrong password and now there does not seem to be a way to submit my username and password. I tried rebooting it, though there is not a submit button after typing in both fi

  • Addresses gone

    After the latest updates, all the contacts are gone from the address book. These seems to be a backup file, but I don't know how to use it. "~/Library/Application Support/AddressBook/AddressBook.data.previous" is grayed out when I choose file -> reve