‎2009 Aug 17 12:39 PM
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
‎2009 Aug 17 12:51 PM
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.
‎2009 Aug 17 12:43 PM
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
‎2009 Aug 17 12:45 PM
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
‎2009 Aug 17 12:51 PM
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.