Move "Report Total" text in Classic Report

I am using APEX 4.0.2 and I would like to move the position of the report total text (Display This Text When Printing Report Sums) in the Break Formatting section of the Report Attributes tab.  By default, it appears in the first column.  It there a way to move the text display to column 2 or 3?
Thanks you for your time and attention.

Okay,
Well this is actually an CSS thing, but in this case, since the break formatting section is just another table row, you might as well use some jQuery to prepend an extra table cell to the break row.
You can use the following code in a "page load" dynamic action:
  $('.apex_report_break').parent().prepend('<td></td>')
This will add one empty table cell to the break formatting section row. If you want more than one table cell indent, you can use the colspan attribute to make the prepended column wider:
     $('.apex_report_break').parent().prepend('<td colspan="2"></td>')
The advantage of using jQuery in this case is that your text will always be indented the correct distance, regardless of the content and width of the underlying table columns.
Regards,
Vincent Deelen

Similar Messages

  • First Report Total should be second report row

    Hi
    We are using OBIEE11g.My requirment is first report total should be second report one of the values(row).
    E.g
    Report1
    Jan
    100
    Feb
    1000
    Mar
    6000
    Total
    7100
    Report2
    US
    1000
    GB
    1200
    SG
    4000
    Other
    900
    Total
    6200
    6200
    Final Total
    7100
    Above example Report1 Total(7100).Reports2 other values(First Report total-Seconde Report Total)(7100-6200=900).So Other values of second report is 900.Now final total of Second report 7100.
    I dont want to display second report First time total(6200).I have to display like below
    Report2
    US
    1000
    GB
    1200
    SG
    4000
    Other
    900
    Total
    7100
    How can i achive this.?
    Thanks
    Gram

    Hi,
    1. Their must be a relationship between these 2 reports by any one of the columns from the tables.
    2. After completing the second report, right click on the answer side of pivot table view, you will get the options like exclude column, include column, etc..
    3. Use selection steps to create calculated items or group of calculated members to have a value of "Other".
    4. One you added the calculated item it will get display.
    use selection steps or right click on the columns in pivot table view or table view you will get more options and ideas.
    Regards,
    VG

  • Bold text in Classical Report

    hi,
    I am developing classical report for printing. In that I want some letters in bold text.
    How I will get that?
    Manoj..

    Hi,
    check out this...
    DATA col TYPE i VALUE 0.
    DO 8 TIMES.
      col = sy-index - 1.
      FORMAT COLOR = col.
      WRITE: /  col              COLOR OFF,
               'INTENSIFIED ON'  INTENSIFIED ON,
               'INTENSIFIED OFF' INTENSIFIED OFF,
               'INVERSE ON'      INVERSE ON.
    ENDDO.
    Regards,
    Venkatesh

  • Interactive report search features in Classic Report

    Hi,
    We have generate a report based on a dynamic query (columns,tables and where condition everything will be dynamic at runtime). As we can use only sql queries to create Interactive report, we are populating collections with our dynamic query and using that collection to create Interactive report. But there are lot of limitation with this approach (only 50 columns we can display, number and date columns are stored in character columns of collection as we don't have control on populating collection's number columns using api apex_collection.create_collection_from_query and clob columns are truncated to first 4000 character).
    If we can paint the features like search,filters,select columns of Interactive report in classic report, our problem will be solved.
    Is there anyway we can get these Interactive report feature in classic report.? or any other work around is available to overcome the apex collection limitation? Any idea on this will be very helpful.
    Thanks in advance.
    Nithyarajan M

    Hi User,
    ya, Jitu is right.
    Create a region "Search'
    and Create a text field page item like P1_REPORT_SEARCH and also create two buttons like
    P1_GO and P1_RESET and after that
    Create two process for it
    <li> one is of Reset pagination process with condition type: request is contained within the expression1, and in expression1 give this: GO,P1_REPORT_SEARCH,RESET(process point- on submit after computation)
    <li> second process is of type clear cache for items(ITEM,ITEM,ITEM)
    Source : P1_REPORT_SEARCH
    condition type: Request = Expression 1
    Expression 1 = RESET
    May be this will help you out.
    Regards,
    Mini
    If this answered your question, mark appropriately.

  • How to show the break totals and NOT the report totals in an SQL report

    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?
    PaulP

    PaulP wrote:
    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?Instead of using the APEX break feature, try doing all of this in the query using <tt>GROUPING SETS</tt> or <tt>ROLLUP</tt> to get the break rows, and <tt>GROUPING_ID</tt> in the <tt>HAVING</tt> clause to suppress the unwanted rows.
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?Don't really understand what's meant here?

  • Totals text for ALV report

    In my ALV report I need to add descriptions for totals
                Col1        Col2          Col3
    Sum1       #Value      #Value      #Value
    Sum2       #Value      #Value      #Value
    Sum3       #Value      #Value      #Value
    How to add text Sum1, Sum2, Sum3 to the report?
    I tried to use subtotals_text and totals_text in slis_layout_alv for REUSE_ALV_GRID_DISPLAY but that did not work out. I also tried to look for methods using CL_SALV_TABLE class and have not been able to find a solution yet.
    Edited by: Megan Flores on Feb 25, 2008 8:28 PM

    it's a package in the systems above 6.4 with new ALV. There are nice examples. Main package is SALV.
    /wg

  • Sub total text in ALV report

    Hi,
    I need to do subtotalling in my program using ALV. I am getting the subtotal value in ALV list display , but not getting the text for subtotalling.
    matnr               werks                       stock
    154                  1001                         1589
    158                  1001                         1651
    Subtotal for plant 1001                               3240
    155                  1002                         465
    Subtotal for plant 1002                       465

    hi,
    how did u declared ur internal table?
    Declare a dummy field in your internal table to trigger subtotal text event.
    TYPES: BEGIN OF ty_ekpo,
              lifnr TYPE ekko-lifnr,    "vendor number
              ebeln TYPE ekko-ebeln,    "purchase document number
              ebelp TYPE ekpo-ebelp,    "Item Number of Purchasing Document
              matnr TYPE ekpo-matnr,    "Material Number
              bukrs TYPE ekpo-bukrs,    "Company Code
              werks TYPE ekpo-werks,    "Plant
              d,                        "Dummy field to fire the Subtotal text event
          END OF ty_ekpo.
    Prepare field catalog for that dummyfield also and set attributes like below
    wa_fcat-col_pos = 7.
      wa_fcat-fieldname = 'D'.
      wa_fcat-tabname = 'IT_EKPO'.
      wa_fcat-ref_fieldname = 'NETPR'.
      wa_fcat-ref_tabname = 'EKPO'.
      wa_fcat-no_out = 'X'.
      APPEND wa_fcat TO it_fcat.
    Fill sortinfo table as follows
    wa_sort-spos = 1.
      wa_sort-fieldname = 'LIFNR'.
      wa_sort-tabname = 'IT_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-spos = 2.
      wa_sort-fieldname = 'D'.
      wa_sort-tabname = 'IT_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-group = 'UL'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO it_sort.
    fill the event table
    wa_event-name = 'SUBTOTAL_TEXT'.  "--> this event is used to trigger subtotal text
      wa_event-form = 'SUBTOTAL'.
      APPEND wa_event TO it_event.
    *&      Form  subtotal
    FORM subtotal USING i_listhead STRUCTURE wa_ekpo  i_subtotal TYPE slis_subtot_text.
      READ TABLE it_sort INTO wa_sort WITH KEY fieldname = 'D'.
      IF sy-subrc = 0.
        IF i_subtotal-criteria = 'D'.
          i_subtotal-display_text_for_subtotal = 'Sub total'.
        ENDIF.
      ENDIF.
    ENDFORM.                    "subtotal
    Thanks & REgards

  • How to set Report total in an Interactive Report?

    Hi, I am new to APEX. Can anyone help me with this?

    Hello all.
    The aggregate function works fine for me. I create the Control Break and then the Aggregate Function.
    BUT I would like to be able to hide the lines, and show only the break column and the aggregate value, the same way I can do with the graphs. In other words, I would like to have a summarized view.
    Ex.: I have a control break by US State, and a summarized SUM value, meaning the total revenues for that state. But the totals are spread among several pages, because my query is at invoice level.
    Is there a way to show ONLY the summarized (aggregated) lines, keeping the same SQL query on the report?
    Thanks in advance.
    Carlos

  • Can I change the reort total: text in the summary row in a report region?

    Hi all,
    This might has been asked before, I tried searching the forum but couldn't find an answer. In the report attribute, if I tick the sum checkbox then run the page, the last row would give me the summary numbers which is what I want. However is there a way I can change the "report total" text in the last row of the first column?
    Thanks very much for your time.
    Pete

    Hello user9546327,
    I had the same problem, until I realised that the text seems to be printed under the first column of the report. If that one is a hidden column, the text won't be printed in the report.
    Solution:
    In the 'Report Attributes' tab, move the first visible column (= attribute 'Show' is ticked) to the top of the report columns.
    Best regards,
    Sabine

  • JRC Export to Text like Crystal Report Designer Export

    We need to Export report to Text like Crystal Report Designer Export using JRC. Is this possible? I see export ReportExportFormat CSV, PDF and RTF only. These exports are working, But I need plain text that looks like Text export of Crystal Reports Designer. I see this working in RAS 2008. What I can do to get this with JRC. I am using Crystal Reports 2008 to design reports.
    Thanks for any help.
    Regards
    Raveendra
    Clarification

    Thank you Jitin.
    What could be solution to this problem?
    If still I want to go with JRC, Can I write some Java code to perform this export?
    I see TextExportFormatOptions and its not working.
    If I want to export automatically to text format, what other choices are there?
    Basically I need to execute report and generate text file automatically. Text file should look like Crystal Report Designer Exported Text file.
    Thank you for your time.
    Regards,
    Raveendra

  • Classical Report Output...

    Hi Experts,
                     I have made one classical report whose output is coming upto 4-5 pages  depending on user input. But when we will take the printout of this, user want that print to be on only single A4 size paper...Please guide me..
                     Thanks in advance...
    Best Regards,
    Vinayak

    Hi, 
        Please go through the below link or else search for Classical report with multiple pages output.
    [http://www.scribd.com/doc/7366175/02-ABAP-Book-Intelli-Reports]
    [Change of Normal Classical Report to ALV Report;
    Regards,
    Vijaya Lakshmi.T

  • Classical report to classical ALV report

    Hi All,
           Please help in converting classical report to classical ALV report as in my classical report between the program ,after calculation block i have deleted all the WRITE statement  to convert it into classical ALV and after end of the program i have used
      PERFORM LAYOUT_INIT    USING    gs_layout.
      PERFORM COMMENT_BUILD  USING    gt_list_top_of_page[].
      PERFORM build_fldcat   CHANGING field_cat1.
      PERFORM build_layout.
      PERFORM set_events     CHANGING lt_events.
    and FM Reuse_alv_grid_display.
    Please suggest the right way where to use these perform statements & the FM Reuse_alv_grid_display.
    either in place of the deleted write statements or any where else in the program so that the calculation part output is displayed in Grid  form.
    Thanks.

    use in place of the write statements only....
    Regards,
    SAPient

  • Grand Total Text is not printing in ALV

    Hi all,
    I am not able to print Grand Total text in my report
    I am not doing subtotal, i am using only grand totals.
    So i have used in the following way
    WA_FIELDCAT-DO_SUM        = GC_X.
      GS_LAYOUT-TOTALS_ONLY       = GC_X.
      GS_LAYOUT-TOTALS_TEXT       = 'Totals'(049).
    i am using using ALV GRID DISPLAY FM...its displaying the total amount, buts text is missing...
    Can any one tell me what else i have to pass in the layout or fieldcatlog or FM

    Hi AMR,
    If you use REUSE_ALV_GRID_DISPLAY function module, i think Total text does not come .but if u use REUSE_ALV_LIST_DISPLAY function module Total text comes .
    Check this sample program it let u know ..
    "Types
    TYPES:
          BEGIN OF t_pa0008,
            pernr TYPE pa0008-pernr,
            lga01 TYPE pa0008-lga01,
            bet01 TYPE pa0008-bet01,
          END OF t_pa0008.
    "Work areas
    DATA:
          w_pa0008 TYPE t_pa0008.
    "Internal tables
    DATA:
          i_pa0008 TYPE STANDARD TABLE OF t_pa0008.
    PARAMETERS:
               list TYPE c RADIOBUTTON GROUP gr1,
               grid TYPE c RADIOBUTTON GROUP gr1.
    " ALV Declarations
    " Types Pools
    TYPE-POOLS:
       slis.
    " Types
    TYPES:
       t_fieldcat         TYPE slis_fieldcat_alv,
       t_events           TYPE slis_alv_event,
       t_layout           TYPE slis_layout_alv,
       t_sort             TYPE  slis_sortinfo_alv,
       t_keyinfo          TYPE slis_keyinfo_alv.
    " Workareas
    DATA:
       w_fieldcat         TYPE t_fieldcat,
       w_events           TYPE t_events,
       w_sort             TYPE t_sort,
       w_layout           TYPE t_layout,
       w_keyinfo          TYPE t_keyinfo.
    " Internal Tables
    DATA:
       i_fieldcat         TYPE STANDARD TABLE OF t_fieldcat,
       i_events           TYPE STANDARD TABLE OF t_events,
       i_sort             TYPE STANDARD TABLE OF t_sort.
    START-OF-SELECTION.
      PERFORM get_data.
    END-OF-SELECTION.
      PERFORM build_fieldcatalog.        "Fieldcatalog
      PERFORM build_events.              "Events table
      PERFORM buid_layout.               "Layout structure.
      PERFORM build_sort_tab.            "To sort table and get subtotal
      PERFORM display_data.
    *&      Form  get_data
    FORM get_data.
      DATA:l_0008 TYPE pa0008 OCCURS 0 WITH HEADER LINE.
      SELECT pernr lga01 bet01
        FROM pa0008
        INTO CORRESPONDING FIELDS OF l_0008
        WHERE begda LE sy-datum
          AND endda GE sy-datum.
        w_pa0008-pernr = l_0008-pernr.
        w_pa0008-lga01 = l_0008-lga01.
        w_pa0008-bet01 = l_0008-bet01.
        APPEND w_pa0008 TO i_pa0008.
        CLEAR  w_pa0008.
        w_pa0008-pernr = l_0008-pernr.
        w_pa0008-lga01 = l_0008-lga02.
        w_pa0008-bet01 = l_0008-bet02.
        APPEND w_pa0008 TO i_pa0008.
        CLEAR  w_pa0008.
        w_pa0008-pernr = l_0008-pernr.
        w_pa0008-lga01 = l_0008-lga03.
        w_pa0008-bet01 = l_0008-bet03.
        APPEND w_pa0008 TO i_pa0008.
        CLEAR  w_pa0008.
        w_pa0008-pernr = l_0008-pernr.
        w_pa0008-lga01 = l_0008-lga04.
        w_pa0008-bet01 = l_0008-bet04.
        APPEND w_pa0008 TO i_pa0008.
        CLEAR  w_pa0008.
      ENDSELECT.
    ENDFORM.                    "get_data
    *&      Form  build_fieldcatalog
    FORM build_fieldcatalog.
      PERFORM build_fcat USING:
                    "Field    Int.Table    Text
                     'PERNR' 'I_PA0008'   'PERNR', "Remove this if u dont want in the item table as well as it is there in the header table
                     'LGA01' 'I_PA0008'   'LGA01',
                     'BET01' 'I_PA0008'   'BET01'.
    ENDFORM.                    "build_fieldcatalog
    *&      Form  build_events
    *       text
    FORM build_events.
      CLEAR:
            w_events, i_events[].
      w_events-name = 'TOP_OF_PAGE'.
      w_events-form = 'TOP_OF_PAGE'.
      APPEND w_events TO i_events.
      CLEAR  w_events.
    ENDFORM.                    "build_events
    *&      Form  display_data
    *       text
    FORM display_data.
      DATA:
            l_program TYPE sy-repid VALUE sy-repid,
            l_fm      TYPE RS38L_FNAM.
      IF list = 'X'.
        l_fm =  'REUSE_ALV_LIST_DISPLAY'.
      ELSEIF grid ='X'.
        l_fm =  'REUSE_ALV_GRID_DISPLAY'.
      ENDIF.
      CALL FUNCTION l_fm
        EXPORTING
          i_callback_program = l_program
          is_layout          = w_layout
          it_fieldcat        = i_fieldcat
          it_events          = i_events
          it_sort            = i_sort
        TABLES
          t_outtab           = i_pa0008.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    "display_data
    *&      Form  build_fcat
    FORM build_fcat  USING l_field l_tab l_text.
      w_fieldcat-fieldname = l_field.
      w_fieldcat-tabname   = l_tab.
      w_fieldcat-seltext_m = l_text.
      IF l_field = 'BET01'.
        w_fieldcat-do_sum = 'X'.
      ENDIF.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR  w_fieldcat.
    ENDFORM.                    " build_fcat
    *&      Form  top_of_page
    *       text
    FORM top_of_page.
      DATA :
      i_header TYPE slis_t_listheader,
      w_header LIKE LINE OF i_header.
      DATA:l_date1 TYPE datum,
           l_date2 TYPE datum.
      w_header-typ = 'S'.
      w_header-info = sy-title.
      APPEND w_header TO i_header.
      CLEAR w_header.
      w_header-typ = 'H'.
      w_header-info = sy-repid.
      APPEND w_header TO i_header.
      CLEAR w_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = i_header
          i_logo             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "top_of_page
    *&      Form  BUILD_sort_tab
    FORM build_sort_tab .
      CLEAR :i_sort[],w_sort.
      w_sort-spos      = 1.
      w_sort-fieldname = 'PERNR'.
      w_sort-tabname   = 'I_PA0008'. "header table
      w_sort-up        = 'X'.
      w_sort-subtot    = 'X'.
      APPEND w_sort TO i_sort.
      CLEAR w_sort.
    ENDFORM.                    " BUILD_sort_tab
    *&      Form  buid_layout
    FORM buid_layout .
      w_layout-totals_text = 'Total'.
      w_layout-subtotals_text = 'S.Total'.
    ENDFORM.                    " buid_layout
    Regards,
    Venkat.O

  • Totals in classical report

    Hi,
    Please tell how to get totals of a field in classical report.
    please help with sample code.
    thanks in advance.

    HI,
    refer the code:
    reward fi help ful
    Umakanth
    *& Report  ZSD_SALES_INTER_REPORT1
    REPORT  ZSD_SALES_INTER_REPORT1  NO STANDARD PAGE HEADING MESSAGE-ID ZMSG44
                                        LINE-SIZE 230 LINE-COUNT 65(3).
                                Tables
    TABLES : VBKD,VEPVG.  "Sales document business data
                          "Delivery Index
                             Internal table
    DATA : BEGIN OF I_SALES OCCURS 0,
              CH TYPE CHECKBOX,
              VBELN LIKE VBAK-VBELN,                                                               "Sales document no
              NETWR LIKE VBAK-NETWR,                                                        "Net value of the sales order in Document currency
              WAERK LIKE VBAK-WAERK,                                                               "SD Document currency
              MATNR LIKE VBAP-MATNR,                                                               "Material no
              AUDAT LIKE VAPMA-AUDAT,                                                              "DOCUMENT DATE
           END OF I_SALES .
    data : NEWSALES LIKE I_SALES OCCURS 0 WITH HEADER LINE.
    DATA : AMOUNT LIKE VBAK-NETWR.
    DATA : V_LIN TYPE I .                                                                    "Screens vertical cursor position at PAI
    DATA : CHECKBOX TYPE C.
    DATA : DATE LIKE VAPMA-AUDAT.
    DATA : V_SEL LIKE SY-LISEL.
                             SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
        PARAMETERS : P_VKORG LIKE VEPVG-VKORG. "value check .                                        "Sales organization
        PARAMETERS : P_VTWEG LIKE VEPVG-VTWEG ."value check.                                         "Distribution channel
        PARAMETERS : P_SPART LIKE VEPVG-SPART ."Value check.                                         "Division
       SELECT-OPTIONS : S_DATE FOR VBKD-BSTDK DEFAULT SY-DATUM TO SY-DATUM  OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
      SELECTION-SCREEN BEGIN OF LINE.
        PARAMETERS : CHK AS CHECKBOX .
        selection-screen comment 5(20) text-003 for field chk.
      SELECTION-SCREEN END OF LINE.
      PARAMETERS : P_KUNNR LIKE VBPA-KUNNR MODIF ID S2.                                               "Customer
    SELECTION-SCREEN END OF BLOCK B2.
    START-OF-SELECTION.
    set pf-status 'UKG9'.
      IF CHK <>  'X'.
         IF P_VKORG  <> ''.
           PERFORM ORGANIZATION.
         ELSE.
           PERFORM ORGANIZATION_ELSE.
         ENDIF.
      ELSE.
        IF P_VKORG  <> ''.
           PERFORM CUST_ORGA.
         ELSE.
           PERFORM CUST_ORGA_ELSE.
         ENDIF.
    ENDIF.
    Displaying the contents with some alterations
    sort i_sales by AUDAT.
    LOOP AT I_SALES.
        WRITE : / I_SALES-CH,I_SALES-VBELN,I_SALES-NETWR,I_SALES-WAERK,I_SALES-MATNR,I_SALES-AUDAT.
    ENDLOOP.
    WRITE : / '******************************************************************************************'.
    LOOP AT I_SALES.
       ON CHANGE OF I_SALES-AUDAT.
          IF SY-TABIX = 1.
             WRITE :  / SY-VLINE,I_SALES-CH AS CHECKBOX,I_SALES-AUDAT.
             CLEAR AMOUNT.
          ELSE.
             WRITE : SY-VLINE,AMOUNT,60 sy-vline,/ SY-VLINE,I_SALES-CH AS CHECKBOX,I_SALES-AUDAT.
             CLEAR AMOUNT.
          ENDIF.
       ENDON.
       AMOUNT = AMOUNT + I_SALES-NETWR.
       AT LAST.
          WRITE : SY-VLINE,AMOUNT,60 sy-vline.
          uline at /2(60).
         ULINE.
          SUM.
          FORMAT COLOR  = 3.
          WRITE : /'TOTAL AMOUNT: ' ,I_SALES-NETWR UNDER AMOUNT .
       ENDAT.
    ENDLOOP.
         top-of-page
    top-of-page.
       uline at /2(60).
        write : / sy-vline,3 'Document date' ,16 sy-vline ,17 'Amount(net value of the sales document )' ,60 sy-vline .
       uline at /2(60).
    at user-command.
    if sy-ucomm = 'DISP'.
      LOOP AT I_SALES.
      REFRESH NEWSALES.
      V_LIN = SY-TABIX + 3.
      READ LINE V_LIN FIELD VALUE I_SALES-CH INTO CHECKBOX.
      IF CHECKBOX = 'X'.
        newsales-ch = 'X'.
        NEWSALES-VBELN = I_SALES-VBELN.
        NEWSALES-NETWR = I_SALES-NETWR.
        NEWSALES-WAERK = I_SALES-WAERK.
        NEWSALES-MATNR = I_SALES-MATNR.
        NEWSALES-AUDAT = I_SALES-AUDAT.
        APPEND NEWSALES.
        CLEAR NEWSALES.
        LOOP AT NEWSALES where audat = i_sales-audat .
         WRITE : / NEWSALES-CH as checkbox,NEWSALES-VBELN,NEWSALES-NETWR,NEWSALES-WAERK,NEWSALES-MATNR,NEWSALES-AUDAT.
        ENDLOOP.
       perform selection.
      ENDIF.
    ENDLOOP.
    ENDIF.
    *&      Form  ORGANIZATION
          text
    -->  p1        text
    <--  p2        text
    FORM ORGANIZATION .
      SELECT F~VBELN
             C~NETWR
             C~WAERK
             P~MATNR
             P~AUDAT
        INTO CORRESPONDING FIELDS OF TABLE I_SALES
        FROM ( VAKPA AS F INNER JOIN VBAK AS C ON FVBELN = CVBELN )
                 INNER JOIN VAPMA AS P ON FVBELN = PVBELN
        WHERE P~AUDAT IN S_DATE
         AND P~VKORG = P_VKORG.
    ENDFORM.                    " ORGANIZATION
    *&      Form  ORGANIZATION_ELSE
          text
    -->  p1        text
    <--  p2        text
    FORM ORGANIZATION_ELSE .
      SELECT F~VBELN
             C~NETWR
             C~WAERK
             P~MATNR
             P~AUDAT
        INTO CORRESPONDING FIELDS OF TABLE I_SALES
        FROM ( VAKPA AS F INNER JOIN VBAK AS C ON FVBELN = CVBELN )
                 INNER JOIN VAPMA AS P ON FVBELN = PVBELN
        WHERE P~AUDAT IN S_DATE.
    ENDFORM.                    " ORGANIZATION_ELSE
    *&      Form  CUST_ORGA
          text
    -->  p1        text
    <--  p2        text
    FORM CUST_ORGA .
    SELECT   F~VBELN
             C~NETWR
             C~WAERK
             P~MATNR
             P~AUDAT
        INTO CORRESPONDING FIELDS OF TABLE I_SALES
        FROM ( VAKPA AS F INNER JOIN VBAK AS C ON FVBELN = CVBELN )
                 INNER JOIN VAPMA AS P ON FVBELN = PVBELN
        WHERE P~AUDAT IN S_DATE
         AND P~VKORG = P_VKORG
         and P~KUNNR = P_KUNNR.
    ENDFORM.                    " CUST_ORGA
    *&      Form  CUST_ORGA_ELSE
          text
    -->  p1        text
    <--  p2        text
    FORM CUST_ORGA_ELSE .
    SELECT   F~VBELN
             C~NETWR
             C~WAERK
             P~MATNR
             P~AUDAT
        INTO CORRESPONDING FIELDS OF TABLE I_SALES
        FROM ( VAKPA AS F INNER JOIN VBAK AS C ON FVBELN = CVBELN )
                 INNER JOIN VAPMA AS P ON FVBELN = PVBELN
        WHERE P~AUDAT IN S_DATE
         AND P~KUNNR = P_KUNNR .
    ENDFORM.                    " CUST_ORGA_ELSE
    *&      Form  selection
          text
    -->  p1        text
    <--  p2        text
    FORM selection .
      LOOP AT NEWSALES.
         ON CHANGE OF NEWSALES-AUDAT.
           IF SY-TABIX <> 1.
              WRITE : / SY-VLINE,NEWSALES-AUDAT,SY-VLINE,27 SY-VLINE,48 SY-VLINE.
           ELSE.
             WRITE : / SY-VLINE,NEWSALES-AUDAT,SY-VLINE,27 SY-VLINE,48 SY-VLINE.
           ENDIF.
         ENDON.
         WRITE : / SY-VLINE,2 NEWSALES-VBELN,13 SY-VLINE,14 NEWSALES-NETWR,30 SY-VLINE,31 NEWSALES-WAERK,37 SY-VLINE ,38 NEWSALES-MATNR,57 SY-VLINE,58 NEWSALES-AUDAT.
         at last.
          sum .
          uline.
          format color = 3.
          write : /  sy-vline, 15 'Total amount:', newsales-netwr under newsales-netwr.
          format color off.
          uline.
         endat.
    ENDLOOP.
       v_lin = 1.
       free newsales.
    ENDFORM.                    " SELECTION

  • How to Print a text in bold format in a classic report ??

    How to Print a text in bold format in a classic report ??

    hi
    u can use
    <b>FORMAT  INTENSIFIED ON.</b>
    regards
    ravish
    reward if useful

Maybe you are looking for

  • How to remove or hide toolbar context menu in visual studio IDE

    Hi All, Currently we are extending Visual studio and it's functionality. As we know, we can have different categories of tool bars like standard, build, debug etc shown in pic -  or we can access the categories via -  View Main Menu -> Toolbars  Basi

  • Sales Analisys on Items report in Delivery

    Incorrectly sales analysis report on Items in the context of Delivery Notes, if Delivery has a status - Closed. 1. Add the document u2013 Delivery №1 with item/service type to the system. 2.We want to see the sales analysis report. Sales -> Sales rep

  • How to add i18n features to a Struts application?

    How to add i18n features to a Struts application? txs!

  • On2flix inconsistent results

    Using On2Flix standard (current power mac version) to compress video for web. I haven't attempted to send it to my web designer for upload yet, I'm just at the stage of testing the quality, and playing on my hard drive. I'm getting very inconsistent

  • Scan options on printer screen

    I have Windows 7 with a HP Photosmart c6180 AiO. I use Microsoft Office 2003 and used to get a scan menu on my printer screen. For some reason, it disappeared and I want to scan documents to a RTF. How do I get my my menu back? I did updates, and rei