2011-08-13

WD Screen Variants – Main View

overview

<< previous | next >>

The concept of a selection screen variant is something that most SAP users have come to expect, yet this feature is unavailable in standard Web Dynpro. Below is the next in a series of posts detailing how to bring this necessary feature back to Web Dynpro. Start here to see the full requirements.

The MAIN view has a very simple layout.  Drop three Web Dynpro buttons on the view, named as shown below.

MAIN view layout

All of the real work in the MAIN view happens in the Methods.

MAIN methods

The flow is essentially the same for each button on the Layout, with some minor differences between them.

  1. Each button is assigned an action: ONACTIONBTN_GET_CLICK, ONACTIONBTN_SAVE_CLICK, and ONACTIONBTN_DELETE_CLICK.
  2. The button click event then creates an instance of a window: W_GET_VARIANT (for Get and Delete) or W_SAVE_VARIANT (for Save).  The [OK] button of the window is assigned to another event: ONACTIONGET_OK, ONACTIONSAVE_OK, and ONACTIONDELETE_OK.
  3. In the case of the Save and Delete operations, a confirmation window may be displayed in which a second [OK] button is tied to an event: ONACTIONSAVE_CONFIRM and ONACTIONDELETE_CONFIRM.
  4. Following all the user interaction and validation the requested operation is executed at the Component Controller level.

In the next post, I’ll detail my implementation of the Get Variant process flow.

overview

<< previous | next >>

No comments:

Post a Comment