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

custom container

Former Member
0 Likes
383

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.

2 REPLIES 2
Read only

asik_shameem
Active Contributor
0 Likes
357

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

Read only

Former Member
0 Likes
357

I got solutions.

close this threat.