‎2007 Jun 25 2:07 PM
i designed an alv report which when you click a primary key item transfer is controlled to transaction iw52 to make some changes to the notification. when i click back to go back to my report i want the report to dispplay the changes which i would have done. below is the code i used to call transaction iw52
SET PARAMETER ID 'IQM' FIELD gt_notif-gv_qmnum.
CALL TRANSACTION 'Iw52' AND SKIP FIRST SCREEN.
‎2007 Jun 25 2:15 PM
Hello Timothy
You have to encapsulate data selection in your ALV report. For example, you have a routine that selects the data based on the selection criteria (routine SELECT_DATA).
I assume that you call transaction IW52 either in an event handler method or at PAI of the dynpro displaying the ALV list.
The easy case is when the transaction is called at PAI. Simply add the following coding:
perform SELECT_DATA. " refreshes output itab and selects data againAt PBO of your dynpro you probably have the following coding:
" Container for displaying ALV grid has not been created yet -> create
IF ( go_container IS NOT BOUND ).
CREATE OBJECT go_container ...
ELSE.
go_grid->refresh_table_display( ). " refresh ALV list display
ENDIF.If you call the transaction within an event handler method then add the following coding in the event handler:
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'REFRESH' ). " triggers PAIAnd at PAI at the following lines:
CASE gd_okcde.
...
WHEN 'REFRESH'.
perform SELECT_DATA.
WHEN others.
ENDCASE.Regards
Uwe
‎2007 Jun 25 2:12 PM
hi
set refresh field in catalog as 'X'
regards
ravish
<b>reward if useful</b>
‎2007 Jun 25 2:15 PM
Hello Timothy
You have to encapsulate data selection in your ALV report. For example, you have a routine that selects the data based on the selection criteria (routine SELECT_DATA).
I assume that you call transaction IW52 either in an event handler method or at PAI of the dynpro displaying the ALV list.
The easy case is when the transaction is called at PAI. Simply add the following coding:
perform SELECT_DATA. " refreshes output itab and selects data againAt PBO of your dynpro you probably have the following coding:
" Container for displaying ALV grid has not been created yet -> create
IF ( go_container IS NOT BOUND ).
CREATE OBJECT go_container ...
ELSE.
go_grid->refresh_table_display( ). " refresh ALV list display
ENDIF.If you call the transaction within an event handler method then add the following coding in the event handler:
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'REFRESH' ). " triggers PAIAnd at PAI at the following lines:
CASE gd_okcde.
...
WHEN 'REFRESH'.
perform SELECT_DATA.
WHEN others.
ENDCASE.Regards
Uwe