Hi ,Multiple SubReport parameter  in one main Report

Hi,
I using one main report in that five to six sub report and each sub report have two parameter fromdate and todate so please guide me how can i pass using coding.
Regards
Rajkumar Gupta

Hi
Please post your query in the SDK development forum.
Follow the link below:
https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forums
Thanks

Similar Messages

  • Multiple subreports within a single main report?

    I'm a newbie to BI Publisher, but have used Crystal Reports quite a lot.
    I have a requirement which essentially consists of a set of 7 similar and closely related reports, each using a different SQL Select statement and printing different columns; the user will have the option of selecting either one of the 7, or all of them.
    In Crystal Reports I would set up 7 subreports within a single main report, and depending on the parameter, suppress those subreports which are not required.
    Is there a technique within BI Publisher which would enable me to achieve the same thing?

    all the sub templates will go against a single XML. So if your sub reports in CR is handling different query, you need to take a step back and think of separating data and layout. So multiple queries will be handled by data templates. So, for example, if your main report fetches some records as Q1 query, and you have two sub templates with queries as SQ1, SQ2 (linked subreport). Then we have to see what relationship exists between the main report and the subreport. Say, the sub report query creates a relationship with the Main report data, to filter certain records. So this can be achieved in data template using Q1 and SQ1 using bind relationship, ie, Q1 is master query and SQ1 is a detail query. Similarly Q1 and SQ2 relationship can be established. The datatemplate when executed, will fetch a single XML data.So in this case you do not need sub template. The sub-report layout is not separate, and is to be created with the main report.
    In case of unlinked subreport, the content of subreport is independent of main report, so you can simply define two datasets in BI Publisher and then select the Concatenation option. So the final XML data will be a concatenation of two XML data. The main report can read data of the main XML and the sub template can read data from the appended XML data. This can be done using xPath.

  • Can subreports use same selection parameter(s) as main report?

    Hi,
    Is it possible to create subreports that use the selection selection parameter(s) as the main report.
    And if so, would the user need to make their selections twice, or just once when they open the report?
    Thanks, Jon

    Hi
    Yes you can use the same parameter for both your subreport and the main report with running the parameter just once,.
    Create a parameter in your main report and link the same field(for which you have created the parameter) of subreport with this parameter.
    Now when you refrresh the report, you would input the values and the subreport would also return records based on those values.
    Note that this is simple when you are using same datasource and tables for both subreport and main report. Otherwise you need to have same structures for tables and data type as well for subreport and the main report.
    Hope this helps!!
    Regards
    Sourashree

  • Multiple free goods for one main material

    Hello SAP Gurus,
    we have a business requirement that to issue multiple free products for one main product, if the upliftment is beyond the specified quantity.
    Using free goods functionality, is it possible to achive the above requirement.
    e.g                                                     Quantity
    main product        123456                         10
    free goods             xxxxx                           2
    free goods             yyyyy                           1
    is it possible to maintain such data thru free goods or any development needs to be done.
    regards
    Casimer

    Constraints in free goods in R3 taken from SAP library
    Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    Free goods are only supported for sales orders with document category C (for example, not quotations).
    Free goods are not supported for deliveries without reference to a sales order.
    Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    This answers your qn Not possible in R3
    If you are on Retail scenario this is possible thro bonus buy schemes
    But a lot of customizations needs to be done and you need a retail server to do that
    Regards
    Raja

  • Issues once subreport is added to main report.

    Another question from a new Crystal Reports Developer. I have been battling this one for multiple days. I have built two seperate reports through Crystal Reports that pull their data through an ODBC connection from Remedy ITSM. One report is pulling data through the table AST_AssetPeople. It is pulling the following fields: Asset_ID and Full_Name. The other report is pulling data from the AST_ComputerSystem table showing the following: Name, Category, Type, Item, Model_Number, Serial_Number. I am using the AssetPeople report as the main and the ComputerSystem report as the subreport. When I pull the ComputerSystems report into the AssetPeople report as a subreport, my CR lags very badly. I let CR attempt to pull the data for about 2 hours before I left work the other day and ended up having to leave it overnight. When I came back to work the following day it had finally completed and I was able to view all pages of data. This is with the subreport being added to the details section of my main report. I had sent it to someone else at work that has Crystal Reports on their PC and they were able to run it just fine and it only took a few minutes to get all pages of the data back and viewable. That lead me to think that it was my PC, but when I went over to the other persons PC and logged in with my profile, I had the same problem that I had on my PC. This leads me to believe that it is an issue with the settings. The other person is out for the next week so I cannot verify that my settings match his, so I was wondering if anyone on here might have an idea what may be causing the issues that I am having. Both reports run just fine on their own, as do all my other reports that are simple reports from one table. It is just when I try to pull in a subreport that I have this issue. Any help would be greatly appreciated.

    I have gone in and checked the box next to Perform Grouping on Server. The check box next to Use Index or Servers for Speed was already checked. The Links for the subreport are set up as follows.
    For subreport: Supported vs. Unsupported (This one comes from the ComputerSystem table)
    Container Report fields to link to: AST_AssetPeople.Asset_ID
    AS_AssetPeople.Asset_ID field link-
    Subreport parameter field to use: ?Pm-AST_AssetPeople.Asset_ID_
    Select data in subreport based on field: AST_ComputerSystem.Asset_ID_
    Asset ID is the only field that I found that the two tables have in common. I believe that I have the links set up correctly, but I could be wrong.
    Either way, I am still having the same problems.

  • SubReport Data in a Main Report Yet Again

    I have been trying and reading posts all day.
    1. The shared variable formula used in the main report will show any/correct value only if its placed atleast 1 section below the one where the sub report exists. (I've Done This)
    2.The formula that is used inside the sub report needs to be physically placed on any of the sections within that sub report(you can suppress it to avoid displaying the value). (I've Done This)
    3. Due to design constraints if you cannot move the sub reports from Report Footer then you can atleast mock them and place respective copies in the Report Header.These can contain just the summary values, thats it. Further, to nullify the display effect you can suppress all the sections of these sub reports and make them so small such that they appear as tiny dots and place them in extreme corners of the Report Header section. (Not sure this would apply since I have met #1 and #2)??
    The blue outline/highlight is the passed total from by first subreport locatd in Group Header 1b. As you can see it is passing 0.
    In the subreport, here is the formula used to get the OrderQty.
    WhilePrintingRecords;
    Shared NumberVar OrderQty;
    OrderQty := OrderQty + {iptrn.ipqord}
    I am using the "three part" formula to to calculate the Qty because when using a sum it sums up all records and I need to to sum by change in item. The subreport is calculating correctly. I have also tried a running sum but this won't pass either and I get messages about not being able to use the formula with itself so gave up that avenue.
    In the main report, here is the formula used to display the OrderQty.
    WhilePrintingRecords;
    Shared NumberVar OrderQty;
    OrderQty
    //@MainFormula
    //Returns the value that was stored in the shared number variable called
    //OrderQty in the subreport
    I think I have this all correct but still getting zero so i am not sure if it has something to do with resetting the value and maybe my linkages are not correct? Any help will be appreciated. I have very little experience with Crystal and less with sub reports.

    Ok, so I used the example sent and I can't really tell you why it worked but it did. The modifications I made were so minor I would never have expected it to work.
    here is one
    Mine
    WhilePrintingRecords;
    Shared NumberVar OrderQty;
    OrderQty := OrderQty + {iptrn.ipqord};
    Yours
    whileprintingrecords;
    shared numbervar OrderQty;
    OrderQty:=OrderQty + {iptrn_.ipqord}
    The only difference I see other than the capitalization is the space after OrderQty :=.  My numbers were working fine on the sub report, they just wouldn't pass to the main report.  I did move the reset to the page header like your example but I don't understand why that even works when it should reset on the item, not the page..??? I also put the details variable in a second detail section like you had in the example. What is the theory behind this?
    I also had a second one that I needed so I set that up exactly as the first one and no go. I had to move the reset into the GH1 and I put the details variable in a second detail section and it too worked.
    I can't say that I understand why......I'm happy it works but it would be nice to know the why so next time I wouldn't struggle with it

  • Crystalrep:how to use the summary of subreport to calculate in main report

    mainreport  main  main  sub      sub   main
    Salesman      sales    Cost   Travel   Taxi   Margin
    A1             100       50       20       20     sales-cost-travel-Taxi
    A2             200       100     20       20     sales-cost-travel-Taxi
    A3             300       200     40       30     sales-cost-travel-Taxi
    eg.: A1 margin=100-50-20-20=10
    main report linked to subreport by salesman and confirmed the data in report is correct. but the summary of travel and taxi is from subreport, if i want to calculate the margin, the travel and taxi can not be insert to the formula, only sales and cost can be calculated
    how can i process travel and taxi ?

    If you search the kbases (articles) for "c2007600" or "how to share subreport data with main report" you'll find what you need.
    NOTE:  One can NOT use data from a subreport object in a section in the main report that is previous to the section in which said subreport is located.

  • How do i access multiple bex queries in one crystal reports??

    Hello Experts,
    I have 10 cubes and 30 bex queries on it and i need to create 3 final crystal reports on these 30 queries.
    I am on BI 4.0 & CR 2011. but my client is not on correct SAP patch ie., he is on 15+ but he must be on 23+ to access multiple bex queries on CR 2011 Database expert. (I am unable to see bex queries in Database expert to link couple of bex queries)
    And my client env doesnt have SAP EP for SAP BW Netweaver Connection to create a connection to access cubes or queries in IDT.
    Do my client env need EP? so that SAP BICS Connection will work in IDT?
    How do i approach to achive this...
    Thank you...

    Hi,
    have you checked the option "allow external access" in your query? SAP Toolbar will find all queries but the database export needs this flag to be set.
    Using multiple queries within one crystal report is using the "multi database join feature" of crystal reports. You can link your queries by key fields and crystal will join them in memory. So when there are many queries or many datarows this can be a huge performance killer.
    Actuallly one of our customers is running a report which has more than 20 BEx queries linked together. It runs just fine.
    Please be sure to set your joins correctly. E.g. crystal will try to make a join on the "key figures" sturcture if you let it create a suggestion or it will try to link on all fields of an infoobject. This will bring MDX errors.
    So you should be setting your joins correctly - the [infoobject]-[20infoobject] fields are fine for that.
    I hope you can use some of my words.
    Regards
    Thorsten

  • Using a subreport formula in a main report formula

    Hello,
    I am trying to use a formula that is in the subreport and also a formula that is in my main report to come up with a percentage.
    ve researched the forums on the internet and couldn't find anything that directly fit my situation.
    - Formula #1: The SubReport formula is the "sum" of a number variable of {JobRecord.ProjectedIssueDate}. This is for the actual amount of job issued.
    - Formula # 2: The MainReport formula is the "sum" of a number variable of {JobHours.StartDate}. This is for the actual amount of jobs completed.
    Issue: I need to create a formula to take the Formula # 1 and Formula # 2 and get a percentage.
    Example:
    9 Jobs Completed in Main Report / 10 Jobs Projected in Sub Report = 90%
    My main report is grouped as follows for both the main and sub report:
    Grouping #1: Start Date
    Grouping #2: Contractor Code
    Grouping #3: Job Type Code
    I need this formula to work on the Grouping # 3 Level.
    Any takers?

    Also, If you want the Percentage and Sum from the Subreport to show beside each other, here's what you need to do:
    1) Create a new Group header 3b section
    2) Move everything except the Subreport on the Group Header 3b section
    3) Get inside the Subreport and suppress all sections of the Subreport
    4) Back in the Main Report reduce the size of this Subreport and make this no bigger than a dot. Reduce the size of the section so it doesn't take up a lot of space.
    5) Create a formula with this code:
    shared numbervar cnt;
    Drag and drop this formula on the Group header 3b so that this shows the sum from the Subreport.
    -Abhilash

  • Using a subreport field in a main report formula.

    Post Author: testing123
    CA Forum: Formula
    Hi.I have a summary of a field {timesheet_log.labour_cost} in a subreport and a field {project.total_po} in the main report and I want to add the two together in a function in the main report. Both fields are linked to a job which is grouped by the jobs' ID.The subreport contains this formula: shared CurrencyVar myTotal;myTotal := Sum ({timesheet_log.labour_cost}); In the main report I have a formula, myTotal, that reads: WhilePrintingRecords;shared CurrencyVar myTotal;myTotal;  As you can see myTotal is a shared variable which contains the total of all the values in {timesheet_log.labour_cost}. However, when I put the formula myTotal in the group footer for each project, it will only change if there is an actual set of values in {timesheet_log.labour_cost}. If there isn't, it will display the last total of {timesheet_log.labour_cost}. We get something like this: Job           Sum{timesheet_log.labour_cost}           {project.total_po} 10050       0   (no value)                                                  100       10051        400    (Value = 400)                                    492210052        400    (no value)                                              32910053      400   (no value)                                    1111110054      2490 (Value = 2490)                                     24210056      6000 (Value = 6000)                            343410057      6000 (no value)                                    99494 Basically what this is saying is that if there are no values at all (ie NULL) in {timesheet_log.labour_cost}, the formula I have made will use the previous value. What I want to do is set the Sum({timesheet_log.labour_cost}) to zero if there are no labour_costs so that basically the value is reset to 0 if there's nothing there.                           

    Post Author: JKitz
    CA Forum: Formula
    Group it by Job Number and then add the following to the group header:  WhilePrintingRecords;shared CurrencyVar myTotal := 0 Then put the information you have above in the group footer with your formula and suppress the detail section.  That way you will zero it out with each new Job Number

  • Behavior on subreport totals in the main report

    I have a grouped report which receives two totals from each grouping's subreport via shared variables.  In the main report I show the subreport totals for each group but cannot find a way, in the main report, to add the subreport totals together to become a report grand total.  The running totals feature does not see the returned subreport totals and I cannot find a formulaic way of achieving a grand total.  Has anyone managed this?  Any help is much appreciated.

    Lets step back a moment and see, you got Sub report places in say GF1 section. I suppose this formula of SV in the sub report is placed in the RF of the sub-report right ? what you might have to do is Change the sub report SV to assign it to a Running total...
    The subreport SV is:
    WhilePrintingRecords;
    Shared CurrencyVar
    AmountSpentRunningTot := #RTOTAL0 ({QuoteMaterials.qmmMinimumCharge})
    **You might have to create a separate SharedVariable with some different name, place it in the RF of the SUBreport
    Now I am guessing that this sub report repeats N times..for N number of GF in the main report...you might have to make a manual running total where you capture and add the 'GrandRunningTotal' coming from Sub report in every GF of the main report and then display it in the main report(s) RF...
    hope i made sense...its little complicated to put it out in words...

  • Value in the subreport used by the main report?

    How do I make so that a value in the sub-report can be used by the main report? Is there a way to make the subreport values "global"?
    I am working from an older version of Crystal. Please let me know if this is self-explanatory in the newer versions.
    Esther

    Hi,
    You can create a shared variable and assign the value to that in the sub report and same can be used in main report.
    For more info on how to use shared variables, please check this under section Shared variables.
    Thanks,
    Raghavendra

  • Display Subreport Totals in the Main Report

    I am using CF10 Report Builder. I have a main report that show counts/amounts by award type for admitted and deposited students. I have a sub report that shows counts/amounts by award type and level for current students who have registered and those who have not yet registered. I need to show the totals of current students by level and weather they have registered or not.
    I tried adding a sub report to show the totals but the sub report does not show up on the main report. Is there a way to do this that I am missing?

    I created the sub-report because the award information is kept in separate
    tables for incoming and returning students. I will work on combining the
    the two.
    Thanks
        Bonni
    Bonni Harris
    Database Analyst
    Eureka College
    300 E. College Avenue
    Eureka, IL 61530-1500
    309-467-6467
    On Tue, Apr 28, 2015 at 12:25 PM, EddieLotter <[email protected]>

  • Problem passing parameter from one interactive report to another

    Hi.
    I'm going slightly mad over this simple problem.
    Apex 4.0.2 installed. Created one interactive report with 4 columns, one is linked to a custom target which is another interactive report where the column is used in the WHERE clause through a hidden field value.
    This works fine in other applications on same Apex install, but not in this one.... Writing the hidden field to the screen shows that it gets the correct value from the first report, but the SQL-query returns no rows when querying on the :<parameter_name> value (there are rows in database - query runs fine when hard coding a value).
    Tried link column both directly from the column value link definition, and from the report definition - both pass value ok to hidden field, but SQL-query doesn't pick it up.
    Tried deleteing and recreating second report page, same problem.
    Anyone else had this problem? Are there any properties on the pages/fields that I've forgot to set, that may cause the session value not to be set when the query is running? I've got it working in other apps, and can't find anything done differently there....
    Regards,
    -Haakon-

    Yes, it shows the correct value. Also creating a second text field and assigning it the Source value of the hidden field shows the correct value in the textbox on page load.
    It's only the report's sql query that doesn't seem to get the value. Hard coding a document number (without hyphens etc) works fine, I get the expected records - so the rest of the query is correct.
    Tried '=' and LIKE - but still nothing...
    It's just the sql variable substitution of :P21_DOCNO that under no circumstance will work.... also tried a simple pl/sql block with the variable - nothing.... using the V('P21_DOCNO') - nothing....
    It seems like the sql query is parsed and run before the hidden field gets it's value or something....
    This is very strange - as it works in another application on same Apex installation.

  • Workspace settings (multiple DLL projects with one main project)

    How to set up an workspace had one main project and several DLL project? So that the DLL projects must compile first before CVI compile the main project. 

    If you want to suggest a product improvement, then the LabWindows/CVI Idea Exchange is the right place to post!
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Problem with Query Print Layout

    Hi, i have this type of problem. I have create a query with 5 fields,i have saved it, and ,after, i have created a report on this query (Query Print Layout). So, i have manipulated the report based on the preferences of the customer. After this opera

  • I can no longer add an event on iCal in my iphone.

    I am now on iCloud.  Since I went to iCloud, I can no longer add events on ICal on the phone.  I only use iCal from the phone, not from my Mac.  I have removed iCal from ICloud and still no change.  I cannot add events to my iPhone ICal.  Help! I hav

  • Iomega Super DVD and B&W G3

    It is possible to install an external Iomega Super DVD (USB 2) into a B&W G3 instead original internal CD reader? OS is 10.2.8 Thanx for any answer

  • SAPSCRIPT,SMARTFORMS,PDFFORMS

    Hi SDN Friends! I had this question. Given a SAP Script or SMART Form ... how do we identify (table names?) The Print program associated with them?  Also, how does that concept differ from PDF forms? Any body can answer please........ Markiv

  • Download acrobat 8 standard version

    Can you please give me a link to a standard acrabat 8 version instead of a professional?