Ansicht
Dokumentation

BBPC_SUS_ACTION - Determine Actions

BBPC_SUS_ACTION - Determine Actions

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

In this IMG activity you create the action ID, the corresponding OTR alias and Controller, and the related Controller ID and page.

If you are redefining standard entries, read SAP Note 749196 first.

  • You have a good knowledge of the BSP Framework.
  • Each Controller inherits from the Controller class CL_SUS_C_BSP_CONTROLLER2. Only then can you implement methods (do_init, do_request, do_handle_event) of this interface and access the special attributes of the SUS-BSP Framework. The system transfers, for example, the name of the page via the attribute view_name (see examples).

If you wish to define new entries, proceed as follows:

  1. Enter a name for the Action ID beginning with Z.
You can enter alphabetical, alpha-numerical, or numerical names.
  1. Enter an OTR alias.
Prerequisites are that:
  • You are authorized to create and change in Transaction SOTR_EDIT

  • You have entered your own package when creating the OTR alias and that

  • You have selected WAPP as the object type.

  1. Enter a Controller.
  • This can be a SAP Controller (example:asn.list) or

  • A separate Controller for the BSP application SRMSUS.
    Note: main.do calls the view framework/layout.htm.
    Example of incorporating actions from external BusinessServerPages applications: settings.bp ././ros_selfedit/main.do(Navigation two levels higher)

  1. Enter a Controller ID.
We recommend that you enter a name identical to that of the action.
  1. Enter a page.
Prerequisite for this is that the page and Controller exist.
You can define multiple actions for a Controller.
As a minimum: Each action has a page.

If you wish to redefine SAP standard entries, proceed as follows:

  1. Copy an action ID from the SAP name space and change the name of the action ID by adding a 'Z' in front of it. At runtime the original SAP action is overwritten by the action beginning with Z.
  2. To modify the action, repeat steps 2 through 5.

Transaction SM30 -> BBPC_SUS_ACTION

  • Necessary program lines in method do_request to reach the page:

method do_request.

* Create view

lo_view = create_view( view_name = view_name ).

call_view( lo_view ).

endmethod.

  • Optional extension with which the system transfers the page attributes to the page using method set_attribute():

method do_request.

* Create view

lo_view = create_view( view_name = view_name ).

lo_view->set_attribute( name = 'view_attr_1' value = 'Hello' ).

lo_view->set_attribute( name = 'view_attr_2' value = 'World' ).

...

call_view( lo_view ).

endmethod.

  • Example of incorporation of internal actions: ASN.LIST





CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 4107 Date: 20240524 Time: 002152     sap01-206 ( 44 ms )