Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create simplified class for popup display, which inherits from ZCL_FALV #82

Open
fidley opened this issue Sep 3, 2023 Discussed in #81 · 1 comment
Open

Create simplified class for popup display, which inherits from ZCL_FALV #82

fidley opened this issue Sep 3, 2023 Discussed in #81 · 1 comment
Assignees

Comments

@fidley
Copy link
Owner

fidley commented Sep 3, 2023

Discussed in #81

Originally posted by RTagliento September 1, 2023
Hi Łukasz,
I tried to understand and do myself, but sorry without result.

I used FALV for a fast ALV popup, just for showing some data result..... the question is about the GREEN OK button....
image

If the user click on it.... nothing happens.

Maybe I miss something....... there is a way to hide it, and keep only the second "X" button that just close the popup?

@fidley fidley self-assigned this Sep 3, 2023
@wolfsolver
Copy link
Contributor

wolfsolver commented Sep 14, 2024

Hi, me too use flav for some popup. Simple way is to use redefine method and local class. I use this also for get selected row.

  1. Add local variable mv_row in private section
  PRIVATE SECTION.
    data: mv_row type i.
  1. add get method in public section
  PUBLIC SECTION.
    METHODs get_selected_row RETURNING VALUE(result) TYPE string.
  1. Redefine evf_double_click
  METHOD evf_double_click .

    mv_row = E_ROW-INDEX.
    leave to SCREEN 0.
  ENDMETHOD.
  1. redefine evf_user_command.
  METHOD evf_user_command.
    CASE e_ucomm.
      WHEN 'CONTINUE'.
        me->get_current_cell_row( IMPORTING ROW = mv_row ).
        LEAVE to SCREEN 0.
      WHEN OTHERS.
        super->evf_user_command( e_ucomm ).
    ENDCASE.
  ENDMETHOD.
  1. After display get selected row, where 0 means no row selected

lc_mccode->get_selected_row( ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants