0% found this document useful (0 votes)
88 views

Exercise Object Value Selector

This document provides instructions for creating an object value selector (OVS) for a flight date input field. Learners will copy an existing component, create uses for related components, select an input help mode, and implement event handling methods to populate and retrieve values from the OVS. The OVS will allow searching and selecting flight records using carrier code, connection code, and flight date.

Uploaded by

Nilesh Pawar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Exercise Object Value Selector

This document provides instructions for creating an object value selector (OVS) for a flight date input field. Learners will copy an existing component, create uses for related components, select an input help mode, and implement event handling methods to populate and retrieve values from the OVS. The OVS will allow searching and selecting flight records using carrier code, connection code, and flight date.

Uploaded by

Nilesh Pawar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Object Value Selector

Exercise

Chapter: Generic UI Services


Theme: Object Value Selector (OVS)

At the end of this Exercise, you will be able to:


• Create an object value selector for a input field

1 Development Objectives
This exercise has the following objectives:
Give the user the possibility to choose the value for the Flight Date from a OVS.

2 Result

In this exercise, you will create a OVS


for the Flight Date.

Template Solution:
Web Dynpro Component: WD_07S_OVS
Application: WD_07S_OVS

Starting Point of this exercise:


Web Dynpro Component: ZWD_##_VALUE_SELECTOR

or the template solution

Web Dynpro Component: WD_07S_VALUE_SELECTOR

Group number: ## stands for the two-digit group number

3 Developing

3-1 Copy Web Dynpro Component


Copy your Web Dynpro Component ZWD_##_VALUE_SELECTOR or
1
Value Selector
Exercise
the template solution WD_07S_VALUE_SELECTOR to name
ZWD_##_OVS.

3-2 Create component use in component ZWD_##_OVS


Create component use OVS_USAGE for component WDR_OVS in
your application component ZWD_##_OVS.

3-3 Create controller use in view INPUT_VIEW


Create controller use for component WDR_OVS in view
INPUT_VIEW.

3-4 Select input help mode for context attribute FLDATE


Select input help mode „Object Value Selector“ and the OVS component
usage OVS_USAGE for the context attribute FLDATE in the component
controller.

3-5 Create and implement the action handler for the event OVS

3-5-1 Navigate to the methods tab of view INPUT_VIEW and create


event handler method ON_OVS for event OVS of component
WDR_OVS.

3-5-2 Create Coding for phase 0:

Create the following selection fields and labels

Field name Field


value
CARRID Airlin
e
Code
CONNID Conn
ection
Code
FLDATE Flight
Date

Pass the following texts and the label texts to method


“set_configuration”:
Window Title = “Value Help”
Group Header = “Search for a Flight”
Table Header = “Flights”

3-5-3 Create Coding for phase 1:


2
Value Selector
Exercise
- Get the current content of attributes carrid, connid and fldate in node
FLIGHTINFO.
- Set the values as default values for the selection fields.
- If all values are empty, set “LH” as default value for selection field
carrid.

3-5-4 Create Coding for phase 2:


- Get the query parameters.
- Select all lines of table sflight using the query parameters in the where
condition.
- Pass the result table from the select to method “set_output_table”.
- The result table should have (at least) the columns carrid, connid and
fldate.

3-5-5 Create Coding for phase 3:


Get selected value for carrid, connid and fldate and move them to
appropriate context attributes in context node FLIGHTINFO.

3-6 Create Web Dynpro Application


Right mouse click on the component node and select Create -> Web
Dynpro Anwendung (Web Dynpro Application) from the context menu.
Create the application having the following attributes:
Name: (accept default)
Description: OVS
Accept all default settings and press Save and run your application.

3
Value Selector
Exercise

You might also like