Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to add second conditions to Line_index function?

Line Index

I am using the line_index function and would like to search for two values, not only for ‘carrid’ but also for ‘connid’. If it is possible? If so, in what way? Because right now after adding the code in the red box, I get a syntax error LT[ ] is not an internal table.

lv_index = line_index( lt[ carrid = 'LH' ][ connid = '2407' ] ).

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

All fields (conditions) just one after the other inside one bracket:

lv_index = line_index( lt[ carrid = 'LH'
                           connid = '2407' ] ).
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading