‎2009 Mar 20 5:54 AM
Hi,
I am working custom container screen. output is coming donot type as any word in custom container then when user save button then its should be called error by 'Please note that report'.. i know about message code then
how is performed by custom containter code??
Regards,
S.Suresh.
‎2009 Mar 20 7:21 AM
Hi
Refer the std program BCALV_GRID_05.
Below is the click event handled for the button 'BOOKINGS'.
METHOD handle_user_command.
* § 3.In event handler method for event USER_COMMAND: Query your
* function codes defined in step 2 and react accordingly.
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'BOOKINGS'.
CALL METHOD grid1->get_selected_rows
IMPORTING et_index_rows = lt_rows.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
* add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
else.
perform show_booking_table tables lt_rows.
ENDIF.
ENDCASE.
ENDMETHOD. "handle_user_command
‎2009 Mar 26 9:45 AM