Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help about 'Find' and 'Find Next' Buttons...

former_member680493
Participant
0 Kudos

Hi Friends!

There's a way to implement the standard functions of the buttons 'Find' and 'Find Next' in a Z Program????

A function or something else???

tks in advance!

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

For Find:

Use FM LIST_SCAN

For Find Next:

Use FM LIST_SCAN_NEXT_MATCH

Regards,

Naimesh Patel

7 REPLIES 7

naimesh_patel
Active Contributor
0 Kudos

For Find:

Use FM LIST_SCAN

For Find Next:

Use FM LIST_SCAN_NEXT_MATCH

Regards,

Naimesh Patel

former_member680493
Participant
0 Kudos

Tks!

But, How I can use this FM??? Nothing happens here!

sy-subrc = 1 - NO_LIST_ATIVE...

How I active a LIST?????

Tks!

0 Kudos

You need to write the list before calling the FM.

Like:


REPORT  ZTEST_NP.

DO 10 TIMES.
  WRITE: / SY-INDEX.
ENDDO.

AT LINE-SELECTION.

* first write the data ... to make the list active
  DO 10 TIMES.
    WRITE: / SY-INDEX.
  ENDDO.

  CALL FUNCTION 'LIST_SCAN'
    EXCEPTIONS
      NO_LIST_ACTIVE = 1
      OTHERS         = 2.
  IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Regards,

Naimesh Patel

former_member680493
Participant
0 Kudos

I Can use it in an on line program?? I have a modal window with a table control and i want to find a value there!!!

please help me!!!

tks in advance!

0 Kudos

This will not work in the Dialog program (online Program).

I think you have to create by yourself in the program.

Take a look in VA02/VA03 .. there is a button at bottom "Item to Top". You have to have somekind of popup like that.

Regards,

Naimesh Patel

former_member680493
Participant
0 Kudos

Actually, I can find a value, but i don't imagine how to get the next value!

former_member680493
Participant
0 Kudos

Tks! i did it by myself!!!