Using Tabstrips in BSP

...Previous 

CODE:
method DO_INIT.
*CALL METHOD SUPER->DO_INIT
*    .
SELECT ?= me->create_model(
       class_name = 'ZCL_MODEL_SALES1'
       model_id   = 'SELECT' ).
endmethod.

Follows the same procedure for the ‘do_request’, ‘do_handle_event’.  

 

CODE:
method DO_REQUEST.
*CALL METHOD SUPER->DO_REQUEST
*    .
data view type ref to if_bsp_page.
**data : selection type string.
 me->dispatch_input( ).
 if me->view_name is initial.
 me->view_name = 'inpu.htm'.
 endif.
 view = me->create_view( view_name = me->view_name ).
 if view is bound.
view->set_attribute( name = 'SELECT' value = me->SELECT ).
 me->call_view( view ).
 endif.
endmethod.

CLICK ON DO_HANDLE_EVENT METHOD. 

 

CODE:
method DO_HANDLE_EVENT.
*CALL METHOD SUPER->DO_HANDLE_EVENT
*  EXPORTING
*    EVENT           =
*    HTMLB_EVENT     =
**    HTMLB_EVENT_EX  =
*    GLOBAL_MESSAGES =
*  RECEIVING
*    GLOBAL_EVENT    =
*    .
if htmlb_event is bound and
htmlb_event->server_event = 'TabStripheader'.
 me->select->getvbak( ).
        if not me->select->i_vbak[] is initial.
          me->view_name = 'inpu.htm'.
          endif.
endif.
  if htmlb_event is bound and
htmlb_event->server_event = 'TabStripItem'.
 me->select->getvbap( ).
* Flights have been found, new target is the hit list display
        if not me->select->i_vbap[] is initial.
          me->view_name = 'inpu.htm'.
        endif.
endif.
endmethod.

Save, check and activate the application. 

Testing the application. 

 

Provide the user name and password. Then click on ‘OK’ button. 

The View is displayed in the browser window as shown below. 

Provide the sales document. 

Then expand the tray. 

 

Click on header data. 

Then expand the tray. Display the header data. 

Then again click on the item data. 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image