How to send report total to ztable

hi friends,
in my zreport i got customer wise total sales quantity.
how i will send that data to my ztable...
psl suggest me...  i willl reward the points.

Hi!
It's not the best idea to store sum values. What will happen if a new order will posted? Or someone is deleting one... You have to recalculate it all time and store it again...
Mostly people does not store dynamically counted sum values...
If it is so important you can do it like this:
LOOP AT gt_main INTO wa_main.
coding
AT LAST.
SUM.   "in wa_main now you have total sum values
MODIFY your table here...
ENDAT.
ENDLOOP.
Regards
Tamá

Similar Messages

  • Very urjent how to send report output in mail

    hi experts,
    how to send report output in mail which function module should i use wht parameters should i pass.
    thanks in addavnce,
    points to be awarded.

      CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
                destination    = '026c'
                copies         = count
                list_name      = 'VATS_ASBUILT'
                list_text      = v_list
                immediately    = 'X'
                release        = 'X'
                new_list_id    = 'X'
                expiration     = days
                line_size      = 132
                line_count     = 65
                layout         = 'X_65_132'
    *            sap_cover_page = 'X'
    *            cover_page     = 'X'
                receiver       = 'SAP*'
                department     = 'VATS'
                no_dialog      = 'X'
           IMPORTING
                out_parameters = params
                valid          = valid.
      SUBMIT zppr_vats_asbuilt  WITH p_aufnr EQ v_aufnr
                   TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                      SPOOL PARAMETERS params
                         AND RETURN.
      SELECT SINGLE rqident FROM tsp01 INTO l_spoolno
                         WHERE rqtitle = v_list .
    * convert report to PDF format
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = l_spoolno
                no_dialog                = 'X'
           TABLES
                pdf                      = l_ipdf
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        EXIT .
      ENDIF.
    Now comes the part to send the mail
      try.
    * -------- create persistent send request ------------------------
          send_request = cl_bcs=>create_persistent( ).
          clear document.
    * -------- create and set document with attachment ---------------
    * create document from internal table with text
          document = cl_document_bcs=>create_document(
          i_type = 'RAW'
          i_text = text
          i_length = '12'
          i_subject = '' ).
    *changing the content of the attachment
          binary_content[] = l_iobjbin[].
    *change the name of the PDF attachment
          concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev
                              into i_att_sub separated by space.
    * add attachment to document
          call method document->add_attachment
            exporting
              i_attachment_type    = 'PDF'
              i_attachment_subject = i_att_sub
              i_att_content_hex    = binary_content.
    *setting the option to send an e-mail more than 50 characters
          call method send_request->set_message_subject
            exporting
              ip_subject = t_sub.
    * add document to send request
          call method send_request->set_document
            exporting
              i_document = document.
    * --------- set sender -------------------------------------------
    * note: this is necessary only if you want to set the sender
    * different from actual user (SY-UNAME). Otherwise sender is
    * set automatically with actual user.
          sender = cl_sapuser_bcs=>create( 'VATSUPPORT' ).
          call method send_request->set_sender
            exporting
              i_sender = sender.
    *Send the list based on receivers list obtained
          loop at l_ireclist.
            AD_SMTPADR = l_ireclist-receiver.
    * --------- add recipient (e-mail address) -----------------------
    * create recipient - please replace e-mail address !!!
          recipient = cl_cam_address_bcs=>create_internet_address(
          AD_SMTPADR ).
    * add recipient with its respective attributes to send request
          call method send_request->add_recipient
            exporting
              i_recipient = recipient
              i_express   = 'X'.
          ENDLOOP.
          call method send_request->set_status_attributes
            exporting
              i_requested_status = 'E'
              i_status_mail      = 'E'.
    * To send the mail immediately
          call method send_request->set_send_immediately( 'X' ).
    * ---------- send document ---------------------------------------
          call method send_request->send( ).
          commit work.

  • How to send report output to  two  detinations at a time from command line?

    Hi ,
    how to send my report to two detinations at a time from command line i.e FILE and Mail ?
    i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
    i want to send my report out put two destinations at a time insted of running two times.
    thx in advance.....
    raghu

    hello,
    did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
    regards,
    the oracle reports team

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    &lt;script type="text/javascript"&gt;
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '&lt;b&gt;TOTAL&lt;/b&gt;')
    rs[rs.length - 1].style.display = "none";
    &lt;/script&gt;Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • Sharepoint 2013 and SSRS how to send reports on date schedule after dw load completes

    Certainly with subscriptions we can generate a SSRS report on a schedule like say every Monday morning at 5 AM PT.   My problem is I want to run those reports but I want to make sure the Datawarehouse completed its load first.  Example if
    for some reason the DW breaks at 4 AM and does not finish the load the Reports should not run.  ONce the DW is finished then reports should run.  The 5 AM is really a place holder for 1st attempt to send reports.  It should keep trying until
    it can send them or Tuesday comes around.
    the only approach I can think of is via the DW with a job and stored procedure you could have it exec anything you want.  Is it possible to exec the reporting services report from sql?  Is there a way from within sharepoint?
    Ken Craig

    Hi Ken,
    According to your you want to fire the SQL Server Reporting Services after the Data Warehouse load data completed, right?
    By default, when a subscription is created, a corresponding SQL Server agent job is created meanwhile. The SQL Server agent job has the same schedule with the shared schedule or report-specific schedule that is using by the subscription.
    The corresponding SQL Server agent job calls stored procedure AddEvent to add an event in SSRS. Then the SSRS notification service fetches the event from SSRS database to deliver the subscription.
    That, we can configure regular shared schedule or report-specific schedule based on the irregular schedule. So in your scenario, you can configure the job steps to fire the subscription after the Data Warehouse load data completed. For the details, please
    refer to the links below.
    http://social.msdn.microsoft.com/Forums/en-US/32bc6d2d-5baa-4e27-9267-96a4bb90d5ec/forum-faq-how-to-configure-an-irregular-schedule-for-report-subscription?forum=sqlreportingservices
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to remove report total

    Hi,
    I have created an SQL report for class students term wise examination. I have made the report break on terms column. In the term field values displayed as "First Term", "2nd Term" and so on. Every thing is very excellent, grouping by term field, showing sub totals of total marks, marks obtained for each subject. But there appears a report total at the end of the report showing total of all sub totals which in my case not necessary as it is meaningless grand total of all marks in all terms. how can it be removed.
    Apex 3.0
    Database 11G
    Sajjad

    Hello,
    When you give print of report, you would the print dialog box.
    In that the is a block for Cover pages, in the just remove the coverpage and uncheck the ALV statistics.
    Clear SAP cover page & OperSys cover page and unchcek ALV statistics check box.
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • How to put "report total:" line in bold

    I have a report with sums. How can I specify to show the "report total:" line in bold?

    I have a report with sums. How can I specify to show
    the "report total:" line in bold?How are these sums being created? In other words, are you creating a calculation for each row in your query so you have a column of total values or is this a grouping sum calculation in your query? Or are you just using the sum checkbox on a report column in the Report Attributes definition page?
    When I use the latter HTML DB automatically adds a bold tag for me. Might have to do with the theme I'm using (theme 9).
    Anyway, there are probably a number of ways of accomplishing this. If the totals are in one of your columns you can add the font-weight:bold style to that column using the CSS Style setting for the column attributes. The most likely will probably be a CSS tweak.
    Take a look at your page source and see what class is being used for the totals and then we can see if we can tweak the CSS to make this happen.
    Earl
    Message was edited by:
    Earl

  • How to send reports through mail in  11g

    Hi,
    How can we send reports through mails in 11g, please send me the steps,
    Thanks

    Hi,
    Please refer the below links.
    http://satyaobieesolutions.blogspot.in/2012/06/agent-mail-configuration-for-obiee-11g.html
    http://satyaobieesolutions.blogspot.in/2012/06/obiee-11g-agent-mail-configuration-step.html
    Hope this help's
    Thanks,
    Satya
    Edited by: Satya Ranki Reddy on Jun 10, 2012 11:50 AM

  • How to send report using OBI EE Delivers to NON-OBI EE users

    Help!!!
    I have followed all the instructions posted.
    I have setup SA Systems.
    Delivers / iBots works using our SA_SYSTEM_USERS table.
    Yes, I have the column names correct.
    Yes, have setup the iBot correct.
    I have a list of 4 users. 2 users are vaild OBI EE users.
    The other 2 users do NOT have a OBI EE login. We do not want them to have an OBI EE login.
    When I execute the iBot the 2 users recieve their email.
    I have debug turned on... Here is are my error messages.
    +++ ThreadID: 2020 : 2010-03-31 14:35:35.160
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43001] Authentication failed for USER1 in repository Devel_DovicoODS: invalid user/password. (08004)
    Error Codes:
    Error Codes: AGEGTYVF
    +++ ThreadID: 2024 : 2010-03-31 14:35:35.207
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43001] Authentication failed for USER2 in repository Devel_DovicoODS: invalid user/password. (08004)
    Error Codes:
    Error Codes: AGEGTYVF
    +++ ThreadID: 2020 : 2010-03-31 14:35:35.223
    iBotID: /shared/_ibots/common/Testing iBots/Employee Record Cleanup With SA SYSTEMS
    ...Trying iBot RunCR loop again.
    +++ ThreadID: 2024 : 2010-03-31 14:35:35.254
    iBotID: /shared/_ibots/common/Testing iBots/Employee Record Cleanup With SA SYSTEMS
    ...Trying iBot RunCR loop again.
    +++ ThreadID: 2020 : 2010-03-31 14:35:35.270
    ... Sleeping for 3 seconds.
    +++ ThreadID: 2024 : 2010-03-31 14:35:35.270
    ... Sleeping for 3 seconds.
    +++ ThreadID: 2020 : 2010-03-31 14:35:38.270
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43001] Authentication failed for JWILDE in repository Devel_DovicoODS: invalid user/password. (08004)
    Error Codes:
    Error Codes: AGEGTYVF
    I must be missing something? A configuration setup?
    Remember, I can successfully send reports from SA Systems for 2 valid OBIEE users. It is the 2 users that are in SA System but do not have a login to OBI EE.
    HELP!!!!
    Edited by: user11130804 on Apr 1, 2010 6:07 AM

    As I Stated earlier - (Turribeach)
    -- --- From Earlier post -------
    I look at 'My Account' for my Dummy obi ee user and I see 3 System Emails listed.
    But when I view them they all have the same email address.
    But in the SA_SYSTEM_USER table I have 3 completely different email address/records.
    Again, I will state, in the SA_SYSTEMS Table I have 3 completely different emails!!!
    This was my insert statement:
    INSERT INTO S_NQ_SCHED.SA_SYSTEM_USER (EMAIL, GROUP_NAME, LOGON_NAME, DISPLAY_NAME)
    VALUES ('[email protected]','Dovico Group2','DOVICO_GROUP2','User Name3');
    INSERT INTO S_NQ_SCHED.SA_SYSTEM_USER (EMAIL, GROUP_NAME, LOGON_NAME, DISPLAY_NAME)
    VALUES ('[email protected]','Dovico Group2','DOVICO_GROUP2','User Name1');
    INSERT INTO S_NQ_SCHED.SA_SYSTEM_USER (EMAIL, GROUP_NAME, LOGON_NAME, DISPLAY_NAME)
    VALUES ('[email protected]','Dovico Group2','DOVICO_GROUP2','User Name2');
    To my understanding, and this is what I would like assistance with. Is if I have 3 DIFFERENT emails address in the SA SYSTEM table, shouldn't the 3 different emails be listed in the DOVICO_GROUP2's "My Account" ?
    Instead, I get 3 emails listed, but when I view them they are the same one.
    Again, assistance would be appreciated.

  • How to send report to the Inbox of user using RE SDK?

    Hi,
    I want to send a report to the Inbox of user using RE SDK.
    How can i proceed to perform above task.
    Can anybody send me the detail code? it will be helpful for me to understand.
    please help!
    Thanks in advance
    Amol Mali

    Any help on this ?
    thanks
    Ananth

  • How to send report output from SUBMIT statement

    Hi,
    I need to develop one report whcih can be use to send any report output in mail as attachment in txt of execl format. So i will be using SUBMIT statement to execute the report in my new report and i need to convert the reportout in txt or excel format and need to send as attachment in mail. This new report can be use to execute any report which may have ALV GRid, Normal outout screen. So what could be the best way to develop this kind of report.
    Br,
    Piyush

    >
    piyush mathur wrote:
    > Hi Suhas,
    >
    > LIST_TO_ASCI will give me data in lines. and its difficult to separate the columns in another internal table for attachment file. As this report is going to use to send any report output so i can not fixed the delimiter. So i am looking some function which can split the data in columns when I am reading from List.
    > Br,
    > Piyush
    No need to seperate nothing additionally, this will come automatically in the attached file. Draft below
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT your_report EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    DATA string_tab TYPE list_string_table.
    "use table type appropriate for attchement
    DATA ascii_tab TYPE soli_tab.
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
       listasci                 = ascii_tab
       listobject               = list_tab.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'C:\test.txt'
        filetype = 'ASC'
      TABLES
        data_tab = ascii_tab.
    DATA go_email_doc TYPE REF TO cl_document_bcs.
    go_email_doc = cl_document_bcs=>create_document(
                                          i_type = 'TXT'
    go_email_doc->add_attachment( i_attachment_type = 'TXT'
                                  i_attachment_subject = 'My Attachment'
                                  i_att_content_text = ascii_tab ).
    Regards
    Marcin

  • 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

  • How to send report output to printer

    Hi,
    In Oracle applications one of my AR report has printer parameter
    when user submitting the request he needs to choose the printer name for that
    parameter then this report output needs to go to automatically to that printer after completion of report.
    Do I need to change report system parameter values for this?
    Could you help me in this?
    Thanks in advance.

    Hi,
    If you use ORARRP, you reports will automatically go to the default printers.
    Regards,
    Soumyajit

  • How can we hide Report Total in Grouping report

    Hi
    I have used the APEX grouping functionality to display the Total by group on a particular Column.
    How can Hide report total value.
    Example:
    GL
    Company Location      Cost Center      Period      Value
    30      000           000           Jan-07      4,182,826.00
    30      101           000           Jan-07      11,943,060.00
    30      102           000           Jan-07      14,238,137.00
    30      103           000           Jan-07      19,057.00
    30      104           000           Jan-07      2,595,799.00
    30      105           000           Jan-07      165,943.00
    30      106           000           Jan-07      741,256.00
    40      000           000           Jan-07      1,058,768.00
    40      101           000           Jan-07      201,323.00
    40      102           000           Jan-07      20,795,876.00
    40      103           000           Jan-07      10,131,660.00
    40      106           000           Jan-07      5,474.00
    Source Total:                     66,079,179.00
    Inventory
    Company Location      Cost Center      Period      Value
    30      000           000           Jan-07      4,156,905.00
    30      101           000           Jan-07      11,943,062.00
    30      102           000           Jan-07      14,238,037.00
    30      103           000           Jan-07      19,057.00
    30      104           000           Jan-07      2,595,799.00
    30      105           000           Jan-07      165,943.00
    30      106           000           Jan-07      741,257.00
    40      000           000           Jan-07      1,016,777.00
    40      101           000           Jan-07      203,659.00
    40      102           000           Jan-07      20,779,260.00
    40      103           000           Jan-07      10,075,212.00
    40      106           000           Jan-07      5,474.00
    Source Total:                     65,940,442.00
    Report Total :                     132,019,621.00
    How can Hide "Report Total" label and its corresponding value.
    Regards
    Kiran Akkiraju

    Hello Kiran,
    Please check if the following can help you - Re: Break formatting and number format of SUM value
    Regards,
    Arie.

  • Send Report output as attachment in excel

    Hi All,
    I am scheduling background Job for Auto mail of standard SAP report. I am able to send the details in html format, please guide me how to send report details in excel format.
    I have already check SCN but unable to find exact solution for same.
    Regards
    Rashid

    Rashid,
    When u Go  SM37 Follow This Step Then U Get The Data In Excel Format.
    Follow step
    Select Spool Option
    Then U got the screen
    Select the type option then u got screen.
    In This Screen U Find the option save in Local File  then get the option.
    When U Select the Spreadsheet Option You can Able to save your data in excel format.
    Hope its help full for you

Maybe you are looking for

  • Inspection Characteristic is not being displayed in the inspection lot

    I have created a Calibration order by first creating method, then a MIC, same is attached to a task list and then a Plan. But when i trigger a order for that task list the inspection characteristics as mentioned in the task list does not appear in th

  • Why are my slideshow images showing as low res?

    I'm creating a site that will show a housing development in the works, and with each lot number that's clicked on the home page, the link goes to a page with a slideshow (My Albums) and when that is clicked you're taken to a new page with separate sl

  • Call A Function

    CREATE OR REPLACE FUNCTION fn_easy1 RETURN VARCHAR2 IS BEGIN dbms_output.put_line('this is a simple function'); RETURN 'This is a simple function'; END fn_easy1; I have this function, how can i call it in oracle?? like this its not working call fn_ea

  • Canon FS100 import and quality issues

    I have a imac (lastest model) and imovie 11. I have a canon camcorder. Flash memory one. I movie cannot read the mod files form camcorder or if I make them mpg's they still cannot be read. If I try to import them via usb into imovie there is alot of

  • Unable to MERGE-Err Msg "MDM Server Failed to Merge the Selected Records"

    Hi Friends, I am using a Match Strategy in the Workflow. In the START Process of the workflow I CHECK OUT the records. In the step MATCH / MERGE when I try to MERGE similar records I get the Error Message "MDM Server Failed to Merge the Selected Reco