Application Development and Automation 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: 
Read only

ALV Interactive

Former Member
0 Likes
548

Hi Guis,

I am working on interactive ALV.Afer selecting PO No i have to display one popup on the screen. on that i have to be two options one is Price variance report and second Variable variance report.Please any body give suggestion.

Thanks ,

santhosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hai Santosh Do like this:

call function 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program      = sy-repid
        i_callback_top_of_page  = 'TOPOFPAGE'
        I_CALLBACK_USER_COMMAND = 'PICK'
        i_grid_title            = 'MIS Tender Report'
        is_layout               = i_settings
        i_save                  = 'X'
        it_fieldcat             = i_fieldcat
      TABLES
        t_outtab                = it_data.


FORM PICK USING COMMAND LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
  clear: i_fieldcat1, iSD_TEN_ITM_bd, iSD_TEN_ITM_bd[].
  READ TABLE it_data INTO wa_data INDEX SELFIELD-TABINDEX.

  CASE COMMAND.
    WHEN '&IC1'.

 call function 'POPUP_TO_CONFIRM'
      EXPORTING
        titlebar       = 'Create a New Record'
        text_question  = 'Choose Any One'
        text_button_1  = 'Price variance report'(009)
        text_button_2  = 'Variable variance report'(010)
        default_button = '1'
      IMPORTING
        answer         = answer.
endcase.

3 REPLIES 3
Read only

Former Member
0 Likes
519

Hi,

Where you are handling your user_command after the user clicks on the PO you can call Fm: POPUP_TO_CONFIRM and give the button names as you want in order to see how to handle uinteractive you can search SCN there are already a lot of threads about the same.

Reagrds,

Himanshu

Read only

former_member404244
Active Contributor
0 Likes
519

Hi,

create a screen with two radiobuttons (Price variance report and second Variable variance report).

In the application tool bar of initial alv, have a button Display..when the user clicks on it call the screen having two radio-buttons and then in the PAI of the screen ..Write the logic and display the report ....

Regards,

Nagaraj

Read only

Former Member
0 Likes
520

Hai Santosh Do like this:

call function 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program      = sy-repid
        i_callback_top_of_page  = 'TOPOFPAGE'
        I_CALLBACK_USER_COMMAND = 'PICK'
        i_grid_title            = 'MIS Tender Report'
        is_layout               = i_settings
        i_save                  = 'X'
        it_fieldcat             = i_fieldcat
      TABLES
        t_outtab                = it_data.


FORM PICK USING COMMAND LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
  clear: i_fieldcat1, iSD_TEN_ITM_bd, iSD_TEN_ITM_bd[].
  READ TABLE it_data INTO wa_data INDEX SELFIELD-TABINDEX.

  CASE COMMAND.
    WHEN '&IC1'.

 call function 'POPUP_TO_CONFIRM'
      EXPORTING
        titlebar       = 'Create a New Record'
        text_question  = 'Choose Any One'
        text_button_1  = 'Price variance report'(009)
        text_button_2  = 'Variable variance report'(010)
        default_button = '1'
      IMPORTING
        answer         = answer.
endcase.