Shared Var in Cross-Tab Design

Post Author: bkormoski
CA Forum: General
I have a cross-tab design that requires me to used shared var from a subreport.  The SV formulas are not in my available fields in cross-tab wizard.  What other choices are there?
I am creating a summary financial statement that requires information from multi tables - because they are not directly related I am creating SV's to get the info I need.  Any ideas welcome.  THANKs

Post Author: RichardN
CA Forum: General
I'm having a similar problem.  I've created two variables in the main report
PLACE: 
WhilePrintingRecords;Shared StringVar VPNum;VPNum
VENDPROD:
WhilePrintingRecords;{@Place}
I can insert VENDPROD into my cross-tab but the field is blank.  On the details line, boty PLACE and VENDPROD display the correct (string) values.  I've placed the Cross-Tab in both the Report Header and Report Footer sections and the VENDPROD field is always blank in the cross-tab.  What am I doing wrong?
Thank you,
RN

Similar Messages

  • Cross tab design : x position based on number of columns

    Hello everybody,
    In my report, I have a group section for the country.
    For each country and in the group header, I have 2 cross tab.
    They have always the same number of columns (columns is period).
    But 2 country could have different number of periods.
    I need to have the 2d cross tab just near the 1st (right side) so I want to change x position of the 2d cross tab depending of the number of period.
    I have try to use GetNumColumns but it doesn't work (always not supported), this is the same for other grid value function.
    I'm not sure to understand why ...
    So I have tried to calculate the number of row , using another group (period), but I can't summarize in a header.
    I'm a little bit lost and need some new idea...
    For information, my reports are based on a simple mysql DB.
    Thanks

    hello, i see that no one has responded to your forum post...is this still an issue?
    in the Section Expert for the section where the cross-tabs are sitting, there is a Relative Positions checkbox wherein the cross-tabs will stay in a relative x postion to each other.
    e.g. if you are in design mode and the cross-tabs are 1/2 inch from each other, when previewed, the 2nd cross-tab will start 1/2 inch after the 1st one stops.
    cheers,
    jamie

  • Cross tab design

    Hi to all,
               I add a table,fieldobjects dynamically during runtime
    by program to crystal report, now all the records are
    displaying in this model
    HeaderText1             HeaderText2
    *Data1                                                  Data2
    *Data2                                                  Data2
    Now i want to show in this model
    HeaderText1  Data1  HeaderText2  Data1
    HeaderText1  Data2  HeaderText2  Data2
    HeaderText1  Data3  HeaderText2  Data3
    HeaderText1  Data4  HeaderText2  Data4
    I think this is possible in CrossTab but i dont know how to
    use it. Experts please tell me my thought is right then tell me
    how to use it? or give me any solutions
    Softwares i'm using Crystal Report 11.5, Visual Studio2005-C#,Asp.Net and SQL Server 2005
    Thanks in advance

    Unfortunately creating a Crosstab directly through the SDK's available for .NET is not possible.  You may be able to create a similar functionality by creating formulas that append information to a database field then inserting the formula onto the report.]
    I would suggest reviewing our RAS Report creation api samples available [here|https://boc.sdn.sap.com/samples/84/1194]

  • Pass a shared variable from a sub-report into cross-tab

    Hello everyone!
    I need to pass a calculated value in a shared variable from a sub-report into a croos-tab in the Group footer of the main report. When I place this variable in the group footer I can see the value, when I use this variable in the Cross-tab, it is 0.
    In the Sub Report:
    whileprintingrecords;
    shared numberVar Total_SF;
    Total_SF:= calculation.
    In the Main report:
    whileprintingrecords;
    shared numberVar Total_SF;
    In the Cross-Tab I am using the above formula from the main report.
    Do you guys know what I need to do for this to work?
    Thank you,
    T.

    Hey Tat,
    I have learned to avoid passing shared variable from sub reports back to main reports.  You just always seem to run into issues with execution order.
    Personally, I try to create a shell report and add sub reports, calculating the values I need in the first sub report and pass the values to subsequent sub reports using shared variables.  I'd recommend thinking about arranging your reports like this during your design time.  It has saved me some headaches.

  • Creation of cross tab report in Bw 3.5 Query designer

    Hi,
      Please tell me the procedure to create cross tab report in BW 3.5 Query designer. Kindly reply as early as possible.
    Regards,
    Hari Phrased B.

    Hi,
    What exactly do you mean by "cross tab report"...do you mean a web report with different tabs?

  • Creating a Cross tab that contains fields with shared variables

    I am trying to create a cross tab in CR2008. I can get the field in the details but cannot choose it when trying to create a cross tab. Please help.
    Thanks.
    Shared numbervar MonHrs;
    Shared numbervar TueHrs;
    Shared numbervar WedHrs;
    Shared numbervar ThuHrs;
    Shared numbervar FriHrs;
    Shared numbervar SatHrs;
    Shared numbervar SunHrs;
    If dayofweek(today) = 1
        then {@CapacityTeamCount} * SunHrs else
    if dayofweek(today) = 2
        then {@CapacityTeamCount} * MonHrs  else
    if dayofweek(today) = 3
        then {@CapacityTeamCount} * TueHrs else
    if dayofweek(today) = 4 
        then {@CapacityTeamCount} * WedHrs else
    if dayofweek(today) = 5
        then {@CapacityTeamCount} * ThuHrs else
    If dayofweek(today) = 6
        then {@CapacityTeamCount} * FriHrs else
    if dayofweek(today) = 7
        then {@CapacityTeamCount} * SatHrs

    I don't use CR cross tabs as a matter of preference so I can't tell you if the shared variables are having an impact on their availability in the cross tab dialog or how to make the necessary adjustments...
    I can, however, tell you that you don't need a cross tab for what you are trying to do. All you need to do is split all of the IF formulas in to their own formulas.
    This will place each day in it's own column.
    Now... you'll notice that there's a lot white space and nothing's aggregated... Not to worry, it's easy to fix.
    Just create a grouping on which ever field you were going to use as "rows" in the cross tab... insert SUM totals in the group header... and hide the details.
    Now you have created your own manual cross tab, without using CR's cross tab object.
    HTH,
    Jason

  • How to design customize Cross tab in Crystal 9

    hi guys,
                i'm having a big problem in designing this format in cross tab, coz it causes a lot of space that i wouldnt need in displaying the report in my application here's i want to show on my report,
    this is just a sample data, but this is supposed the designed, or the output in crystal cross tab
                                        SM                           gl orieta                        buyer            and soon.....   
                             sales     TX    PX      sales      TX     PX          sales   TX    PX
    Mar-1 Mon        1000      1        1       200        2         3            400     4      5
    Mar-2 Tue           200      10      11     300        4         8             220    5      8
    Mar-31 Sun
    Running Total     1200                           500                               620
    Discount              200                            300                               400
    Net sales            2000                           3000                             5000
    Quota                 100000                        1200000                      250000
    TX                        11                                   6                                9   
    PX                         12                                   11                            13
    the upper is the name of the stores which supposed to be dynamic, each store have 3 column which are the sales,TX and PX, on the left side is date which is my parameter is filtering sales by date, under the last date of the month is the running total followed by discount, net sales and soon.. Now my problem is how i'm going to design it in cross tab format in crystal report 9..any suggestion or other way to do it...

    Please re-post if this is still an issue

  • Visual studio cross tab report design problem

    I have visual studio 2008 and its default crystal reports.
    I have created a cross tab report that has a lot of columns and only 3 rows.
    So the total number of pages that get printed are 34. (with 12 columns at the top of each page since the xtab is in report header).
    My client wants me to utilize the space left at the bottom of the page by having 12 columns at the top and 12 columns at the bottom of the page.
    I don't know how this can be achieved.
    If the problem is not clear  then let me know I'll try to explain more.
    I am on a deadline here so please help me.

    Hello,
    I suggest you also search Forums, there are multiple posting on how to add multiple Xtabs.
    This is a public area for all to use and not a case management system. If you are in a hurry I suggest you contact Support after purchasing a support incident and have a dedicated Engineer help you directly. You can get one from this link:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Thank you
    Don
    Edited by: Don Williams on Nov 8, 2009 10:39 AM

  • Design Monthly Report in Cross Tab

    Hi Experts,
    I want to create Cross tab report in the following model.
                        Jan              Feb        Mar       Apr       May
    State 1        No. of Documents
    State 2
    State 3
    I have only document for Feb month. I want to display Zero for others. While I am trying to create this I just get only one column for Feb month without month name.
    Please help me.

    Hi Sastry,
    Thanks for your reply. I tried your idea but i am getting only for February month not for all the months.
    In Group option i have to select which field formula field or database field.
    If i select database field column label changed.
    Also I unchecked suppress blank columns / rows from cross custom style.
    Give me your suggestions.
    Thanks & Regards,
    Poonkodi. K

  • Date Format is not Working in Cross tab Crystal report 2008

    Hi,
    I have developed an application ASP.Net c#
    in Framework 3.5 with crystal report 2008 with service pack 5.
    in my crystal i used cross tab to show the grid records. one of the data having the data type as date time after launching the report, when i export the report with option "export to excel (data only)" and check the format of the date value in excel it show the general string
    if i place that data in any other location other than cross tab then it reflects the format what i give in report design. but when the control is in cross tab
    its not effect
    how to solve this!

    And tweeted
    - Ludek
    Senior Support Engineer
    AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • How to add an image or static text in the header of EACH page of a cross-Tab report

    Post Author: rtutus
    CA Forum: General
    Hi, I use Crustal 11.0.
    I have a cross Tab. I display the items on the left column and the months horizontally, the items are grouped by category field. The values are the sum of quantities are displayed for each month. Like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    The problem, I want to add a page header for each page of the report.
    When Crystal reports first displays my cross-tab in the designer, CR displays the cross tab in the Report header section. I d like to add text or image for each page and not only at the begining of my Cross-Tab.
    If I just add an image or text at the top of the report designer, which is my report header, I get the image or text only on the begining of the 1st page of my report but never in the other following pages.
    If I try to work around the problem and move the cross Tab to a group section instead, and then put the Image in the group header, I get what I want, but the problem is that:
    The columns header: Jan, February....December are displayed for each group of my report and not only in the beginning of the report. I get something like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    You see the months get duplicated. Any way, my real need is to add an image or text in the header of EACH page of a cross-Tab report.
    Thanks a lot for your help.

    Hi Divya,
    you could do for example in the wdDoInit() of the view
    wdContext.currentContextElement().setPicture("picture.gif");
    Now you assign this context variable to the Tab using the Tab_header's imageSource-Property. When you click on its value column, you see a button with three dots on it. If you click on this button, you will get all context nodes and attributes for this View. Usable variables are clearly marked, you now choose the one named Picture or what ever name you prefer to use. But it must correspond to the one set in the wdDoInit.
    I think setting a picture (not necessarily for the tab-page) is done in one of the excellent tutorials. If you are a newcomer I strongly recommend doing some of the tutorials.  I have learned tremendously from them.
    Hope this helped
    Harald

  • Hide Column in Cross Tab Report

    Hi guys,
    I have an issue with the Cross Tab in CR2008.
    I'm using 2 columns to calculate an other column, but these 2 columns should not be displayed in the report.
    I tried to suppress the column but it still shows a white space.
    I tried to change the column width, but it cant get it smaller then 0,113.
    Can anyone tell me how to set the column width smaller using a formula or how to suppress the whole column.
    Thanks in advance.
    William

    Hi William, 
    Instead of using all 3 columns in the crosstab, just drop your main columnn on. 
    In the Design window, not the Crosstab Experrt, right-click the summary field and select Format Field. 
    In the Common Tab, open the formula for Display String. 
    Now you can take the value of your summary using the CurrentFieldValue and make your total.  You may need to summarize the supporting numbers to calculate properly but it should work here properly. 
    I've used this for things like running totals and repeating values between rows. 
    NOTE: This formula only returns a string so make sure you format your final value as a string. 
    Good luck,
    Brian

  • Problem in Cross Tab Report in crytsal report

    Dear members,
    I have designed and generated a cross tab report with fields being percentage,country,amounts. i have obtained the sum of row level.But i need to obtain the sum of amounts in each region wise. I need the report as shown below. I have tried the running total field in cross tab as sum but its showing the overall total.
    Month PO Ger EurTot.USA Canada NATot
    5%       10     20  30       15    25          40
    But i am getting the report as like this.
    Month TOTAL PO GER USA CAN INDIA
    10%     150    15   30    15    45     45.
    Can anyone please help me in this regard?
    Thanks and Regards,
    Venkatesh.R

    Hi,
    cross tab is a diagonal report , u have to make query in such a way so that it returns the all field in row and columns way  i.e in diagonal form .
    U have to fetch total in same manner
    Rgds,
    Premraj

  • Removing spaces in cross tab

    Hello...
                  I created one cross tab with 10 rows and 2 columns.(In Crosstab Expert) Based on grouping  i got 5 set of cross tab reports,Each cross tab contains 4 records .But in between these crosstabs blank spaces are there ,How can i avoid such blank spaces...
                                            Expecting Answers.....Thanks...

    Hello  Jebin
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

Maybe you are looking for