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

table_max_number

Hi experts,

On BRF Plus i m using a function with an input parameter articles of type table with 1 field height ( of type number).

The function has to return the max height of the entered articles.

I m using the formule : max_height = table_max_number( articles , articles-height).

By simulating the function i m getting the following error :

Error occurred during the processing of Formula 'GET_MAX_HIGHT'

Fatal error in formula expression: ID A1342E9FC2691EE1AD945071A51B4CA1; token FU TABLE_MAX_NUMBER

Some idea how to solve this ?

I m using number type for simplicity.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2012 at 08:27 AM

    Still not working, still getting the same error

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2012 at 11:53 PM

    Hi

    Try this formula instead:

    table_max_number( articles , 'TABLE_LINE')

    I'll provide a longer explanation in a couple of hours when I have a little more spare time.

    Regards

    Glen

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      I believe that you may have inserted a reference to the column itself by clicking on it in the Context panel. Is that right?

      As you can see from help in the screenshot below, the second parameter in the TABLE_MAX_NUMBER formula function is actually "column name" ie. a string value.

      If your table was built using a structure then you would put the name of one of the structure fields into that parameter as a string.

      TABLE_MAX_NUMBER( articles, 'FIELDNAME')

      If your table was built without a structure, just an element, then the table doesn't have a structure as is equivalent to this in ABAP:

      DATA articles TYPE TABLE OF some_data_element.

      In this case you don't have any columns so you refer to the whole table line via the inbuilt TABLE_LINE keyword, again as a string.

      TABLE_MAX_NUMBER( articles, 'TABLE_LINE')

      Hope this helps

      Regards

      Glen

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.