Submitting of two reports

hi all,
          in below code i am submitting two reports and getting two html outputs. how we can add these two internal tables
at the time of calling Function Module  SO_DOCUMENT_SEND_API1 for parameter  contents_bin =  html_tab.
  Please suggest.
SUBMIT ZPP_PROD_TRACK_REGION WITH p_spmon = p_spmon
   AND RETURN EXPORTING LIST TO MEMORY.
  Here i will get html_tab. 
  SUBMIT ZPP_PROD_TRACK_SALESBRAND WITH p_spmon = p_spmon
    AND RETURN EXPORTING LIST TO MEMORY.
  Here i will get html_tab1.
  How i will attach these two files at the time of calling function module SO_DOCUMENT_SEND_API1.
Regards
Rami Reddy

Hi...
What you need is to send mails with multiple attachments....
Below are the links which will give you an idea.
https://wiki.sdn.sap.com/wiki/display/Snippets/SendMailwithwithmultiple+Attachments.
https://wiki.sdn.sap.com/wiki/display/Snippets/Multipleattachmenton+e_mail
Hope it helps!

Similar Messages

  • Update process issue - having two reports on a page

    Hello,
    I have a page which contains two reports (normal SQL query). And each report have some editable field items with an update button. The thing is that the update process is not working, its giving an error when any of the reports update button is clicked. I am not able to understand the problem. I think their might be a conflict between the two update processes when a page is submitted. Below are the report source queries and update processes. I think their is a problem with the code itself. Like when I click either of the update buttons, the process is failing and is going to the exception block and printing a message "Failed to update row at step 10 with error message "
    . I have given different names for the two update buttons. Can anyone please help me out with this issue.
    ------REPORT1 SOURCE QUERY------
    T_DS||T_SCH||T_TBL -- is my Primary key column of TBL_NAME1
    select
    apex_item.hidden(04,T_DS||T_SCH||T_TBL,'','f04_' || ROWNUM)
    || APEX_ITEM.MD5_HIDDEN(45,ASSIGNED_DA_SID,ASSIGNED_ARCH_SID,ASSIGNED_ETL_SID,CHF_CHANGE_HISTORY)
    || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM) " ",
    T_SCHEMA,
    T_TABLE,
    T_DATASTORE,
    APEX_item.textarea(12,T_COMMENTS,4,150) COMMENTS
    APEX_item.textarea(13,CHANGE_HISTORY,4,150) CHANGE_HISTORY
    from Tbl_name1
    WHERE T_SCH = :P0_SCHEMA AND
    T_DS = :P0_DATASTORE AND
    T_TBL = :P0_TABLE
    order by T_DS
    -------UPDATE PROCESS OF REPORT1-----------
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stp number := 10;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
         IF WWV_FLOW_ITEM.MD5(     APEX_APPLICATION.G_f12 (i)
    ,APEX_APPLICATION.G_f13 (i)
                   ) <> APEX_APPLICATION.G_F45 (i) THEN
              UPDATE TBL_NAME1
              SET T_COMMENTS = APEX_APPLICATION.G_f12 (i)
    ,CHANGE_HISTORY = APEX_APPLICATION.G_f13 (i) WHERE T_DS||T_SCH||T_TBL = APEX_APPLICATION.G_f04 (i);
              l_cnt := l_cnt + SQL%ROWCOUNT;
         END IF;
    END LOOP;
    COMMIT;
    l_stp := 20;
    IF l_cnt = 0 THEN
         apex_application.g_print_success_message := 'No Modifications Done !' ;
    ELSE
         apex_application.g_print_success_message := 'Successfully updated ' || l_cnt || ' record(s).';
    END IF;
    l_stp := 30;
    EXCEPTION WHEN OTHERS THEN
         ROLLBACK;
         apex_application.g_print_success_message := 'Failed to update row at step ' || l_stp || ' with error message ' ;
    END;
    --------REPORT2 SOURCE QUERY---------
    T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT -- is my Primary key column of TBL_NAME2
    select apex_item.hidden(07,T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT,'','f07_' || ROWNUM)
    || APEX_ITEM.MD5_HIDDEN(46,T_RVW_STATUS,T_RVW_SUMM)
    || APEX_ITEM.HIDDEN(03,ROWNUM,'','f03_' || ROWNUM) " ",
    APEX_item.text(22,T_RVW_STATUS,30) RVW_STATUS,
    APEX_item.textarea(23,T_RVW_SUMM,4,150) RVW_SUMMARY
    from TBL_NAME2
    WHERE T_SCH = :P0_SCHEMA AND
    T_DS = :P0_DATASTORE AND
    T_TBL = :P0_TABLE
    order by T_DS
    --------UPDATE PROCESS OF REPORT2-----------------------
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stp number := 10;
    BEGIN
    FOR i IN 1 .. apex_application.g_f03.COUNT
    LOOP
         IF WWV_FLOW_ITEM.MD5(     APEX_APPLICATION.G_f22 (i)
                        ,APEX_APPLICATION.G_f23 (i)
                   ) <> APEX_APPLICATION.G_F46 (i) THEN
              UPDATE TBL_NAME2
              SET     T_RVW_STATUS = APEX_APPLICATION.G_f22 (i)               
    ,T_RVW_SUMM = APEX_APPLICATION.G_f23 (i) WHERE T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT = APEX_APPLICATION.G_f07 (i);
              l_cnt := l_cnt + SQL%ROWCOUNT;
         END IF;
    END LOOP;
    COMMIT;
    l_stp := 20;
    IF l_cnt = 0 THEN
         apex_application.g_print_success_message := 'No Modifications Done !' ;
    ELSE
         apex_application.g_print_success_message := 'Successfully updated ' || l_cnt || ' record(s).';
    END IF;
    l_stp := 30;
    EXCEPTION WHEN OTHERS THEN
         ROLLBACK;
         apex_application.g_print_success_message := 'Failed to update row at step ' ||l_stp || ' with error message ' ;
    END;
    Thanks,
    Orton

    Hi Orton,
    to narrow down the source of your error i recommend using a process running before your two other page processes where you write debug-message to output to check how your array's are built up.
    Your no-data-found error message comes most probably from accessing one of the g_fxx arrays on a index position without data. (e.g. if you access g_f04(5) and nothing ever was assigned to index 5 in array g_f04 you'll get an no-data-found exception).
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • Using member sorting and grouping with two reports sharing rows

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

    Hi!
    I have a problem with one report and I need some help or advise here.
    I have two dimensions with dynamic expansion in rows (PRODUCT, MATERIAL), and I use the option Member Sorting and Grouping at Member selector to obtain the total amount of PRODUCT group by PARENTH1:
    PRODUCT               MATERIAL          AMOUNT
    TOTAL PROD_A-X                                   100
    PROD_A_A             MAT1                          22
    PROD_A_B             MAT1                          50
    PROD_A_A             MAT2                          28 
    TOTAL PROD_B-X                                   120
    PROD_B_A             MAT1                          30
    PROD_B_A             MAT2                          50
    PROD_B_B             MAT2                          40
    This works fine if I only have one report, but I need to create another one sharing the row and page axis with the Default Report, when I do that the option Member Sorting and Grouping doesn't work. I really need to have two reports with shared rows and also the summation by PARENTH1, how can I do that?
    Thank you very much

  • Two report join not working

    I have two reports: Lead History(registered reciepents) and Campaign Reciepents History(email click-thru reciepents) with columns Full Name, Company/Account Name, and Job Title. I want to do a join that pull out the click-thru's that registered. Union and Union All gives me everything, Minus gives me just the click-thru's, and Intersect gives me nothing. What complicated join can I do to make this possible?

    Thank you, Barney-15E and Nerowolfe.
    First, you are right - I am using the 17" MacBook Pro (but not the ltest version).
    Second, I looked in the Library folders and found Sidetrack in the Startup items. I deleted it (although I had already removed it from the Startup items in the System Preferences.
    Third, I reset the PRAM.
    However the 2-finger scrolling is still not working. I did notice (and I don't know if this is something new) that the cursor is now immobile when trying to use two fingers although it is fine with one finger. It as though the trackpad recognizes that two fingers are different from one, but it doesn't know what to do with two-fingers.
    On a more general note, thank you all for your interest and quick responses. But...what should I try next? Apple suggests resetting the Power Management.

  • Two report outputs in a single screen

    Hi,
    I am looking at giving outputs of two reports in a single screen.
    I mean one below the other.
    We are using web reports and I want to have two reporst made out of differect cubes appear one below the other.
    Kindly let me know if this is possible.
    Suggestions will definitely be rewarded by giving points.
    Regards,
    Naveen

    Hi Naveen,
           In WAD, you can use Generic Navigation Block web item for displaying the Characteristics/Free Characteristics available in the Query.
    In the specific properties tab(Web Item Properties->Specific->List of Characteristics) of this web item, you can specify the Characteristics/Free Characteristics which you want to be displayed in the web report.
    Since you want the table web item(which shows the report having the free characteristics) to be affected by the drill down in Navigational block, then specify the data provider of table web item in the <b>Affected Data Provider</b> of the Navigation Block web item.
    Naveen, it's not mandatory to check the affected data providers if the data providers for both Navigational Block web item and the Table web item are same.
    Hope this helps.
    Regards
    Hari
    Message was edited by: Hari Krishnan K

  • Sorting on two reports based on same table

    Hi,
    I have two reports on the same page, that show rows from a table.
    Each table has a different condition, so that there is no overlapping rows.
    The problem i have run into, is that i have enabled sort on the columns in both reports - there are instances when there are no rows shown in one of the reports.
    when i click on a column name to sort on that column, i get the error
    failed to parse SQL query:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    in the report that shows no values. i understand what the error means, but am having some trouble finding a way of solving it.
    any help would be much appreciated!

    Look here:
    Column sort gives "failed to parse SQL query"
    Denes Kubicek

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • Combine two reports in query designer

    Hi experts,
    i want to ombine two reports which are using key figure with sap exit in query designer
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi,
    Have you tried APD?
    You can combine them using workbook or from a multiprovider query. APD is another option. Have a look at these APD docs:
    In APD, you can take input from two queries, then combine them and load to another object (DSO).
    [Analysis Process Designer |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/413ba6c1-0d01-0010-1980-ec450e30f23c]
    [AGSAP NetWeaver 7.0 Application Process Designer|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b06c3f96-ed4f-2a10-1693-f2c76a39988f]
    Let me know where you r stuck...
    Regards,
    Ashish

  • What is the difference between these two reports MC.1 and MB5L

    Hi
    what is the difference between these two reports MC.1 and MB5L?
    what is the Purpose of each report?
    Material ledger is activated for this plant, we found some amount difference between these two reports, my client accounting department used to compare these two reports while year end/month end closing
    Thanks
    Raju

    MC.1 will give you the report for plant analysis as per plant .
    MB5L report will give you list of stock value as per G/L account wise.

  • How to download the output of two reports in WebTemplate into excel sheet?

    How to download the output of webtemplate which consists of two reports in one  Web Template into same Excel sheet?

    hi sunil,
    here is the HTML code for 'export to excel'
    <!-- Display Export Excel--->
    <td class="SAPBEXNavLine"> <SAP_BW_TEXT program="SAPLRRSV" key="T72">" src="Mime/BEx/Icons/S_X_XLS.gif" border=0 ></td>
    you can also use BEx download scheduler to download the precalculated webtemplate report to excel sheet.
    Check the link below.
    https://websmp104.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000401962004E
    i think this will help u
    regards,
    sindhu.

  • GL balance is difference in two reports

    Hi,
    One GL balance is differece in two reports i.e in FBL3N & FAGLB03. Can anybody tell me the problem.
    govind.

    Hi,
    please check your support pack level. If your support pack level is greater than or equal to ten(sp>=10) then follow the below procedure in your dev/quality client.
    Execute the t.code;FAGLF03 : It will give you the list of documents not updated properly to NewGL
    To solve these issues, you will have to run RGURECGLFLEX in update mode, and it will post the documents to the NewGL and also update the balances accordingly for the accounts in the document for the respective year and periods
    Also check the OSS  note 878281.
    Hope it will resolve ur issue.
    all the best
    Prasad

  • Problem trying to share a Search Field with two Reports

    Hello!I have two Reports(Report1 and Report2) in two different pages. In both of the pages i have the same select list(Item1 and Item2 ). I want to select something in the select list(Item1) of Report1 and my choice to be saved in the select list(Item2) of Report2 too.Can anyone please help me?
    Is it possible to have one select list for two Reports ?
    Thanx in advance for any answers...
    Edited by: user10642834 on May 8, 2009 10:15 AM

    Thank you very much! I tried what you said and it seems to be working fine now. I have a similar problem(a little bit more complicated) with my two forms on these reports. The reports actually contain the columns of one table separated in two groups(Report1=group1 and Report2=group2). So when i select Edit on a row of Report1 i go to Form1 and see the data to be edited of Form1 of row1 for example. I would like to go to Form2(i have a tab for this) and see the same row(row1) to be edited with the columns of Report2.I hope that i am clear enough. Thanx again for the previous answer and i hope that you can solve this problem too.

  • How to combine two reports in obiee 10g(not union)

    Hi Everyone
    I have got a requirement where client is asking to combine two report to one
    Report A has columns
    "Region", "category" ,"in house " ,"sales" which can be shown by applying filters for current running year
    Report B
    Region,Category, Week5,week6, week7,week8 in this showing sales in individual week by using pivot view and limiting to four weeks
    with a week filter
    Now client req is to combine both reports into single one
    region, category,inhouse,sales,week5,week6,week7,week8 here the issue is inhouse and sales data has show yearly data and week 5,week6,week7,week8 has to show weekly data .And weeks columns has to get updated automatically .
    I am having a confusion in this will it possible to combine both reports, if possible pls help out how to do it
    Regards
    Sandeep
    Edited by: Sandeep on Jul 31, 2011 9:20 AM
    Edited by: Sandeep on Aug 1, 2011 1:43 AM

    First of all, proof read your post. Generally, grammatical and punctuation errors can be deciphered, but where words are critical to presenting your issue clearly, you must type those sentences correctly. Otherwise, it can be confusing and turn off someone who may want to help.
    "...which can be shown without and filters and want data for current year." What does this mean?
    "...And weeks columns have to update its week no based on that week." What does this mean?
    In an attempt to answer you question, do this:
    1) Base your query filters on the "current running year." This will satisfy the requirements for displaying data from the first report.
    2) Now add 4 "sales" columns (i.e., same column, but 4 instances of it). In each of these columns, click on the fx button, click on Filters, go to your Time dimension and select the appropriate week, and then click "OK." Now, each of these columns will hold the measure value for the particular week while the "sales" column will have the "running total" for the whole time period.
    Once you get the above to work, you can work on automating this by substituting a function in place of the hard-coded week number values.

  • Master-detail implemented by two reports

    Does anyone has an example of a master-detail page implemented by two reports? Or can explain to me how to do it?
    When clicking on the row of the master (or a link in the record e.d) the second report should show the details given the id of the master row.
    As an extra the detailtable should refresh in a partial page refresh.
    I know how to get it to work with a full page submit ( column in the master row links to the same page filling a hidden item; detailselect looks at the hidden item)
    but just refreshing the detailtable is something my brain doesn't seems to get.
    It should be simple...
    no?
    (I'm using 4.1 of course)

    Edwin,
    Check out this Patrick Wolf blog:
    [url http://www.inside-oracle-apex.com/resetting-pagination-of-master-detail-report-in-oracle-apex/]Resetting pagination of a Master-Detail Report in Oracle APEX
    Jeff

Maybe you are looking for

  • Multiple copies of same files in my hard drive

    hello: Somehow I have managed to fill up my hard drive with multiple copies of the same files. So, these copies are filling up drive space. Does anyone know of a software that can point out the copies? Something that will make it easier for me to det

  • IPhoto 8.1.2 can you create a smart album with only one face

    I'm using iPhoto 8.1.2 and have about 23k photos in the library. I have identified 32 key faces, and would now like to create some smart albums that contain only the face or faces that I want and to exclude all the others.  S for example  a smart alb

  • Can't find Process colours in Pantone Plus swatch palette

    Hello All. I'd really appreciate some help with how you find certain pantone colours in the Pantone Plus swatch palete in Illustrator CS4. I recently downloaded and installed this upgrade to complete a job and now I'm wishing I hadn't bothered! I can

  • Purpose of BAPI_OUTB_DELIVERY_CHANGE

    Hi All,    Can any one explain me why we need to use BAPI_OUTB_DELIVERY_CHANGE. My scenario is like, when partial picking done, need to update the Delivery document with that quantity, which is there in the Inbound Idoc. After that i found that they

  • Can I update to Photoshop CS5 from Photoshop 5.0 LE

    Can I update to Photoshop CS5 from Photoshop 5.0 LE