Crystal reports - how to identify a sequence gap within a column

I am working on a project which requires the ability to identify gaps in numeric sequence within a column.
Does anyone have any thoughts on what a formula such as this?
It can be done in excel using the formula columns in screen shot columns I and J. I is H2+1 starting on I3. J is column I - column H to identify sequence gap size.
Id like to accomplish the same using a crystal formula if possible.
Thanks in advance.
Regards,
Joe

Hi Joe,
Here's what you need to do:
For Column I, create a formula (@I+1) in the report with this code and place it on the Details Section:
whileprintingrecords;
numbervar x;
if onfirstrecord then
     x := {Trans_Num};
     0;
else
     x := x + 1;
2) Create another formula and place this beside the above formula:
EvaluateAfter({@I+1});
numbervar x;
if onfirstrecord then
     0
else
     x - {Trans_Num};
-Abhilash

Similar Messages

  • Hyperlink on Crystal Report: how to popup a window without menubar?

    Hyperlink on Crystal Report: how to popup a window without menubar?
    Hello Experts!
    I'm using VS2003 with Crystal Reports for VS2003.
    I need to show a popup window clicking a hyperlink text object on my crystal report.
    On the CrystalReportViewer I have set up HyperlinkTarget=_blank, and it's working fine.
    But when I click on the hyperlink and shows the popup window, how can I show the popup window without menubar, toolbar, directories, etc.
    Something like:
    window.open('../MyPage.html?id=id001" + Cad + "',null,'menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes,status=yes')

    Adam is correct. The closest you can get is setting the CrystalReportViewers HyperlinkTarget to _blank. It was seen as a potential security vulnerability to allow you to run scripts from a Crystal Reports. In our Enterprise product you can use a reg key called EncodeHTMLForSingleLineFieldObjects to control whether this can be turned on or off.
    Unfortunately this was never ported over to our .NET CrystalReportViewer.
    This is referenced in notes 1202803, 1219298, and 1219301.
    https://www.sdn.sap.com/irj/sdn/businessobjects-notes
    Edited by: David Hilton on Jul 16, 2008 4:17 PM

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

  • How to identify the trailing spaces in a column

    Hi,
    How to identify the trailing spaces in a column.
    for ex: empno char(5) and i enter 333 then there will be 2 spaces remaining. How to identify that two spaces

    One method...
    ME_XE?create table test1 (some_char char(5));
    Table created.
    Elapsed: 00:00:00.11
    ME_XE?
    ME_XE?insert into test1 values ('HI');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?insert into test1 values ('HI HO');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?select * from test1 where trim(some_char) <> some_char;
    SOME_CHAR
    HI
    1 row selected.
    Elapsed: 00:00:00.14
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Crystal report - how to split a field into more fields

    Hello,
    I`m new to Crystal reports and I`ve got a trouble. I have field which contains an address - street, city, zip code. The example is:
    STEHLIKOVA 977 165 00 PRAHA 620 - SUCHDOL 165 00.
    What I need to achieve is to split this string into three separated fields. I`ve trouhg a couple of forums but haven`t been able to find a proper answer. The problem is that the addresses differ so I can`t use an absolute defining of a start position. Looking at the DB (HEXA code) the parts in the string are divided by two dots:
    STEHLIKOVA 977..165 00 PRAHA 620 - SUCHDOL..165 00
    I`ve been able to work out this solution:
    stringVar array x := split({cparty.STREET_ADD},"..");
    Local numberVar i;
    Local stringVar outputString := "";
    For i:=1 to Count(x) do
    outputString := outputString + x[i] + Chr(10)
    outputString;
    It splits the string into three rows:
    STEHLIKOVA 977
    165 00 PRAHA 620 - SUCHDOL
    165 00
    And I don`t know how to find the end of each row so to be able to separate the strings and report them as three different fields.
    Would be anyone so kind and help me out with this?
    Thank you.
    Petr

    Hi
    Actually using a for loop is not necessary here. All you need to do is to add several formula fields: one for street, one for city and one for zipcode. In @street field you add formula:
    stringVar array x := split({cparty.STREET_ADD},Chr(13));
    x[1];
    Then you drag such formula field to details section of your report and watch preview to check if everything looks alright. Repeat for every formula field that you'd like see in your report.
    In @city you add almost identical formula but you change index, i. e. instead of x[1] you need to use x[2]. Then for @zip x[3].
    You may need to check if your address has all three parts - for example if you want to use formula in the second part of your address field you may need check first if there are at least two parts after split:
    stringVar array := split({cparty.STREET_ADD},Chr(13));
    numbervar c; 
    c := count(x); 
    if 2 <= c then 
    x[c]; 
    Var 'c' is used to store the number of elements in array after split. Then I'd like to check if the part (second) actually exists. So I try to check if number of part that I want to refer to is not bigger than the number of elements in array after split (here stored in var 'c').
    Actually the code presented above is not enough since you have no guarantee that you'll always get address structured in the very same way. For example in demo PL database I have zip code and city in the same row after split with Chr(13) as delimiter.
    You'll need to experiment or ask someone to prepare correctly structured data coming from B1 to your report.
    Kind regards,
    Radek

  • Crystal Report: How to make the fixed height box in all pages.

    Post Author: WTech
    CA Forum: Crystal Reports
    I want to make the height of box fixed size in all pages. The box in outside the detail section. Currently the size of the box changes according to the content of the detail section. Could anyone suggest me how should i achieve it ?  

    Hi srinivasan,
    If you want to keep "Save" and "Stop" common, Why do you want to keep them on Tab control? Is your tab control taking entire space on Front panel? If so, you can have SAVE and STOP on other vi, and you can call this vi (MODAL).
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Crystal report: How to concatenate the string whilereadingrecords?

    I have description field in the database and I need to concatenate the value of the filed into one line. How to do that? I tried as below
    Stringvar strtitle="";
    whilereadingrecords;
    if Mid({OrderDtl.PartNum},1,2)="T3" Then
    strtitle & "T3- Background Music,"
    Else if Mid({OrderDtl.PartNum},1,2)="T6" then
    strtitle & "T6- Dance"
    This is not working and showing only last value instead of concatenated string. I am very new to Crystal report and i am using Crystal report 2008
    Thanks,
    Raj

    Hi Raj,
    I guess you're trying to concatenate the descriptions so that they appear on a single line, perhaps, on the report footer?
    Try this formula:
    whilereadingrecords;
    stringvar strtitle;
    strtitle := strtitle + ">" + {description_field_from_database}
    The ">" sign is to separate the records from each other; you may choose to remove this from the formula or use another separator.
    Place the above formula in the details section and suppress the section.
    Create this formula to display the result and place it in the Report Footer section:
    evaluateafter(@Name_of_the_above_formula);
    stringvar strtitle;
    Let me know how this goes!
    -Abhilash

  • Crystal report -How to display multiple lines in line chart?

    Hi,
    M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type
    Category(String).....year(Int).....graph_values(Int).....table_value(String)
    Test.........................2006.......... -100............................(100)
    Avg..........................2006..........20................................20
    Median......................2006...........5................................5
    Test..........................2007...........500.............................500
    Avg...........................2007............90..............................90
    Median.......................2007............45..............................45
    M using cross tab to display data and chart to plot line. Following fields I used in Cross tab Expert & Chart expert
    Cross tab expert-
    Rows u2013 category
    Columns u2013 year
    Summarized fields u2013 Min of table_value
    In Chart Expert u2013
    On Change of - Year
    Show values - graph values
    In cross tab m able to see the data properly but not in graph.I have three categories. Hence it should plot three lines in line chart but m able to see only one line for test category.
    FYI u2013 using VS 2008 and crystal report assembly version 10.5
    Urgent. Please reply soon.
    Thanks
    ThakurS

    I got the solution.
    In Chart Expert - I should use
    On Change of -- Year, Category
    Show values -- graph values
    Thanks,
    ThakurS

  • Crystal Reports: How to change Oracle OLE DB server at runtime

    Post Author: dvlasman
    CA Forum: Data Connectivity and SQL
    I'm using a rpt made with Crystal Reports 8.0.1 and VB 6. The report was made using the Microsoft OLE DB provider for Oracle. What I want to do is change to Oracle server / database the report is connecting to at run time before the report is displayed. I am using the Crystal Report Engine 8 Object Library (cpeaut32.dll), not the ocx.After creating the report object:Dim CrystalReport As CRPEAuto.ReportI open my report and discard saved data:'Open The ReportSet CrystalReport = CrystalApplication.OpenReport(msReportSource)CrystalReport.DiscardSavedDataConst sDBServer = "ORCL.SERVER" 'My TNS name for the Oracle ServerConst sDatabase = "ORCL.SERVER" 'I'm not sure what this value should beConst sUID = "system"Const sPwd = "manager"I was then going to change the database connection one of two ways:1:Dim objDatabaseTable As CRPEAuto.DatabaseTableFor Each objDatabaseTable In CrystalReport.Database.Tables    Call objDatabaseTable.SetLogOnInfo(sDBServer, sDATABASE, sUID, sPWD)    If (Not objDatabaseTable.TestConnectivity) Then        Debug.Print "Database failed connection: " & objDatabaseTable.Name    End IfNextSet objDatabaseTable = Nothing2:call crystalapplication.LogOnServer("pdsoledb.dll","MSDAORA.1",sDATABASE,sUID,sPWD)Neither of these two way gets me a successful connection. What am I doing wrong, and which is the preferred method to use?ThanksDean

    Did you get a resolution to your problem? I cannot dynamically change the datasource location in .NET using CR XI via OLE DB for Oracle. I get "This field name is not known." messages and when I try using the set datasource location in the designer tool, the mapping dialog box comes up with no fields in the right box. Thanks, Brian

  • Crystal Reports for B1 on Hana version 9.0, Invalid column name DOCCODE

    Hi Experts,
    I am new to SAP B1 for HANA, now I am learning how to use Crystal Report with SAP Business one for HANA version 9.0. I am facing this issue while trying to save the crystal report inside SAP B1 for hana. Please help me to fix the issue
    The steps that I followed
    1.created the Blank Crystal report file
    2.imported that into layout manager
    3.Then tried to edit the file using Crystal report 2011 sp4
    4.For testing, I have used the Query SELECT * FROM SBODEMOSG.OCRD. In Crystal report i am able to get the data
    5.But while trying the Save the report inside sap using Add-ins-->Save as option, im getting the following error message.

    Moved to the B1 forum.
    Business One is an OEM version of CR Designer.
    Log onto your B1 site and download the latest Crystal Reports for B1. CR XI does not support the new connector.
    Don

  • Crystal report parameters not available when running from within SAP B1

    Hi
    I have found this problem a few times already and I think it is now about time I find a solution for it.
    On my latest Crystal report, I have 2 parameters.
    The 1e is a dynamic parameter, allowing the user to select multiple groups.
    The 2nd is also a dynamic parameter, allowing the user to select only a single item.
    These parameters works fine in Crystal and do what they are supposed to do.
    After publishing the report in SAP Busines One (SBO) and viewing it from within SBO, the 2 parameter prompts are still there but without the dynamic list to select any data from.
    On a previous report where a parameter has been defined as "Any value can be entered for the parameter" once again worked fine in crystal but from within SBO the parameter allowed no value to be entered.
    Have anyone got a solution for this.
    Regards
    Burger

    Sorry guys
    You have lost me. I have searched the form and I have worked through the whole pdf you suggested.
    I have no idea what I am supposed to do or see or use "ItemGroup@ SELECT ItmsGrpCod, ItmsGrpNam FROM OITB ORDER BY ItmsGrpCod"
    As a test I created a test report with the following parameters to test how it would present itself in B1
    1.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    2.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    3.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could select multiple values from a list. I could not add my own value. Defeating the object as the list is static
    4.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A drop down box where I could select one of the values. Defeating the object as the list is static
    5.     A static parameter with a list. Allow custom Values = False, Allow Multiple Values = False u2013 B1 result. Same as in point 4
    6.     A Dynamic parameter. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. Same as in point 1 & 2. No Dynamic list returned and can not add own option
    As mentioned. All the parameters work in Crystal as one expect it to. What I am after is what should I change in B1 so that the report works the same as in Crystal.
    Where in B1 should it be changes and to what should it be changed.
    If the changes should be done in crystal to cater for B1 then what should be changes where to what
    I am not that familiar with B1.
    In my test report I use B1 table OITM.
    My parameter is Item (Crystal syntax {?Item}) and I use it in a filter to say {OITM.ItemCode} = {?Item}
    Regards
    Burger

  • Crystal report ( how to create a hyper link for the crystal report file)

    hello all,
    how to create a hyperlink for my report file....nd i want it open in excel format.

    Hello Uher,
    sorry for the insufficient details,
    actually we are calling some actuate reports from actuate server, and the URL looks like this
    "https://iconsole.xxx.com/iconsole/viewer/viewreport.jsp?
    outputFileType=XLSX&fromwhere=viewDocument&outputName=
    /filelocation/ReportOutputs/Reportname.xlsx&serverurl
    =http://xx.xxx.com:8010&volume=xxx&userid=xxx&password=xxx"
    which would generate an excel output,
    my question is, can we have some url in which we would specify the output format, as far my research i found  URL reporting
    some thing like this
    "http://" + servername +
    ":8080/OpenDocument/opendoc/openDocument.jsp?outputfiletype=xlsx/
    filelocation/userlogondetails
    but my client needs an excel output, with out going through any web page or viewer controls and generating buttons.
    Thank you

  • Crystal Report - How to add a baseline in the graph?

    Is there any function available to add a baseline in a line chart?
    Thank You!

    The standard answer would probably be to create an additional series of data for your graph and then plot that series as a line (CR allows combo bar/line/area charts).
    If all else fails, this is easily doable with our CRChart add-in, which has extensive support for user-defined lines: Up to 20 different lines, values set at runtime, show values and/or arbitrary labels on the lines.  But... this solution costs money
    -Dan
    disclaimer: I work for the company, threedgraphics.com, that makes this product.

  • How to Print a report with 50 columns. Crystal Reports

    Dear Experts,
    I'm Using Crystal Reports 2008. I have a requirement that 50 columns should be placed in a  Single Report with single line . But Page size should be A4 ( While Printing).
    With Page Size A4 I'm able to place 5 columns.
    Is there any possibility to acheave this no matter if number of opages increases
    I Appreciate for the help in this regard.
    But I need to display all the 50 fields (columns) in a single report.
    I Achieved this by changing horizontal width to 70.
    I can Place all the fields in one line.
    But my concern is to print this report in A4 Paper I think its horizontal width will be 11.  from crystal reports itself
    I don't want to use cross tabs nor even use sql expression. Its just a simple display report for all the employees.
    is there any simple way out to Achieve this by paging... or any other method.
    Any help regarding this issue will be appreciated.
    Thanks

    Hi:
       I'm not a expert in crystal report, but I would like help you,  i don't understand if must to show 50 diferrents fields in your report  or same field through 50 columns ?  for exemple:
    first case: You ned diferents fields
    F1                F2                 F3                 ... F50
    item1  F1      Item1 F2         Item1 F3       Item F50
    item2  F1      Ite21 F2         Item2 F3       Item F50
    In this case you must put the 50 fields in the report, just enough small to fit page
    second case: You nedd the same field in 50 columns
    Colum 1      Colum2      Column 50
    item 0          item 11      item 490
    item 1          item 12      item 491
    item 2          item 13      item492
    item 10       item 20      item 500
    inm this case i haven't idea how to make it (sorry)
    Edited by: Wgramirez on May 29, 2010 7:01 PM

  • How to set a checkbox parameter in sap crystal Report

    Hi Experts          
                   SAP B1 crystal Report How to acheive the check box  as a parameter.here i attached the screen shots.    
    Regards
    Vinoth

    Hi,
    Please check this thread. Do not post multiple threads on same subject.
    http://scn.sap.com/thread/3520806
    Thanks & Regards,
    Nagarajan

Maybe you are looking for

  • How to increase sound quality of GarageBand 1.3 exports from iPhone

    I'm a new iPhone user. I bought the iPhone over Android specifically to use garageBand. So, I've created this song in GarageBand 1.3 on my iPhone. It's got a a couple vocal tracks (from apogee MiC) and one guitar track (from apogee JAM). I don't own

  • Removing Items from Sidepane in Rhythmbox

    Hello everyone, I just installed Rhythmbox and am liking its interface and ipod support. One problem though is the "extra" sidepane like: podcast, radio, libre.fm and import errors. I'd like to get rid of them if possible. I went into dconf and tried

  • Online Bill Pay

    I cannot access the bill pay feature online, to either view or pay my bill.  After my last account review and affiliated changes, I lost the autopay feature which I had been using.  Now when I go online, I sign in and it directs me to another site fo

  • INSERTALLRECORDS

    Hi , For resolving the timestamp conflict I have the below steps in replication file . MAP swilkes.date_test, TARGET swilkes.date_test, & REPERROR (21000, EXCEPTION), & SQLEXEC (ID lookup, ON UPDATE, & QUERY "select count(*) conflict from date_test w

  • Scripts Stopped Working in Mac OS 10.10

    I have an html panel that I created for my users. It mostly contains shortcut buttons for menus items and tools. I have to buttons that invoke scripts that have a number of steps. Prior to Mac OS 10.10 they worked. Now they do not work (also they do