Ansicht
Dokumentation

BBP_SUS_TOOLBARBTN - Define Toolbar Button

BBP_SUS_TOOLBARBTN - Define Toolbar Button

Vendor Master (General Section)   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Define Toolbar Button

Use

In this Customizing activity, you define buttons and assign actions to them.

Documents that are processed by supplier self-services (SUS), such as purchase orders, confirmations, or invoices, use complex logic to add a button to the document or table toolbar.

Each button to be defined must refer to an existing action. You define the actions in Customizing for SAP Supplier Relationship Management under Supplier Self-Services -> Settings for User Interface -> Determine Actions.

Whether or not a button is displayed and enabled depends on the attribute values that were assigned by the corresponding view controller. Previously, the logic for this was implemented, that is, hard-coded, in the views. As of SAP enhancement package 2 for SAP Supplier Relationship Management 7.0 (SAP SRM 7.0), however, conditions and values that can be customized are used to describe this logic, which is interpreted by a condition processor. This condition processor uses a new central Customizing table (BBP_SUS_BTNDEF) where you configure the UI buttons in the SUS documents.

Each table line defines one button. You can enter conditions that determine when a button is displayed and enabled. Up to 3 conditions can be maintained for each button. Condition values have only string values that are not case sensitive. Typically, values are as follows:

  • "true" or "false" (values are not case sensitive)
  • "X" or " " (space)

The condition processor goes through each line of the Customizing table BBP_SUS_BTNDEF to check whether any of the 3 predefined conditions are fulfilled according to the following schema:

CODING EXAMPLE

if condition1 = value1.

  if condition2 = value2.

  if condition3 = value3.

 

  endif.

  endif.

endif.

END OF CODING EXAMPLE

Requirements

The example below compares the old source code with a newly created configuration line.

This is the old source code for the 'Calculate Price' button ('btnCalcPrice') that is taken from the view 'order.detail.view' (order/detail_edit.inc)':

<% IF iv_price_disp_enabled = 'X'. %>

onClick = "calcprice"

text = "<%= otr(BBP_SUS_UI/CALCULATE_PRICE)%>"/>

<% ENDIF. %>

This is the new configuration line defined for the same button in Customizing table BBP_SUS_BTNDEF:

EVENT ID   calcprice
CONTROLLER ID   order.detail.view
BTN ID   btnCalcPrice
BTN TEXT   BBP_SUS_UI/CALCULATE_PRICE
CONDITION1   iv_price_disp_enabled
VALUE1   X






BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 4410 Date: 20240524 Time: 014212     sap01-206 ( 59 ms )