Skip to Content
author's profile photo Former Member
Former Member

Row number in sbo hana query in crystal report

Hi,

How to get the row number in sbo hana crystal report query?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jul 18, 2016 at 08:53 AM

    Hi Prabhu,

    If you want only row number, create below formula and place it on your details or group wherever it is required.

    Whileprintingrecords;

    Numbervar x:=x+1

    This formula will print serial number.

    or you have a special field called RecordNumber under Field explorer, place it in detail section, this works for only detail records.

    Thanks,

    Sastry

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 08:56 AM

    Hi JK,

    If you're reporting against HANA SQL, you can use the Row_Number() function.

    More info here:

    Window Functions - SAP HANA SQL and System Views Reference - SAP Library

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2016 at 03:03 PM

    Dear Prabhu,,

    Please find the below query for reference.

    (Case When ROW_NUMBER() Over(Partition By T0."DocNum" order By T0."DocNum")='1' then T0."DocTotal" else NULL End) end) as "Total"

    Regards,

    Vestrics

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.