OVS (Object Value Selector) Search Help
Steps to implement OVS search help
1. Create a new web dynpro component ‘zsimple_ovs’
2.Give Description and Press Enter
3. Save (Ctrl + S)
4. Ensure change mode (Ctrl + F1)
5. Add a component ‘WDR_OVS’ in the used components tab and Save.
6. Double click on the ‘Main’ in the tree ‘Views’.
7. Go to ‘Properties’ tab and click on ‘Create Controller Usage’.
8. Select the OVS component from the list and Save.
9. Go to ‘Context’ tab and Right click the context node to create the attribute ‘MATNR’ for which we are going to implement search help.
10. Provide Attribute name, Type and select ‘Object Value Selector’ as Input Help Mode.
11. Select the OVS component as OVS Component Usage from the F4 Help Option and Save.
12. Go to ‘Layout’ Tab , Right click ‘ROOTUIELEMENTCONTAINER’ and
Select ‘Insert Element’ to insert a new UI Element.
13. Enter the ‘ID and Type as 'Label'(for Label) and press Enter. Provide label text and select 'Label for' values in its property bar.
14. Similarly create an input field.
15. Bind the context attribute ‘MATNR’ to the value of the created input field and Save.
16. Go to ‘Methods’ Tab and Enter the method name as ‘ON_OVS’ (Predefined Method), method type as ‘Event Handler’, description and select the component ‘OVS’ in the F4 help option of the ‘Component Use’.
17. Double click on method ‘on_ovs’. Then the following default coding would have been generated in this method.
18. Try to understand the purpose of these codes as explained below.
Search Help Window will look below,
So let us explain the code using Search Help Window.
* If we want to use multiple fields for selection criteria, we can define those fields here, which will be shown in the screen.
Ex.
types:
begin of lty_stru_input,
* add fields for the display of your search input here
matnr type mara-matnr,
end of lty_stru_input.
(Note : Here the label text will be automatically assigned from the data element which we have referred for the field.)
* This structure contains the fields for the internal table in which we store the data using select query depending on the data entered in the above fields.
Ex.
types:
begin of lty_stru_list,
* add fields for the selection list here
matnr type mara-matnr,
mtart type mara-mtart,
end of lty_stru_list.
* If you want to use your own label text rather than from data element, we can specify here.
Ex.
ls_text-name = `MATNR`. "must match a field name of search
ls_text-value = `My Material Number`. "wd_assist->get_text( `001` ).
insert ls_text into table lt_label_texts.
* Below diagram shows which data the work area or table stores.
* Select query is used to retrieve the data for search help
Ex.
"variable
data : lv_matnr type string.
"assigning input text (Ex. 400* ) to variable
lv_matnr = <ls_query_params>-matnr.
if not lv_matnr is initial.
"replacing last character '*' with '%' to use with select query
replace all occurrences of '*' in lv_matnr with '%'.
else.
lv_matnr = '%'.
endif.
"Select query to retrieve data based on the input data
select matnr mtart from mara into corresponding
fields of table lt_select_list
where matnr like lv_matnr.
* Finally uncomment the following code and replace the name with the context attribute ‘MATNR’ and the value with <ls-selection>-matnr.
Ex.
ovs_callback_object->context_element->set_attribute(
name = `MATNR`
value = <ls_selection>-matnr ).
Save and Activate.
Create Web Dynpro Application and save it.
Output :
Test the application
分享到:
相关推荐
openwrt上OVS Patch
本文描述ovs 2.7安装过程文档
详细介绍了ovs的各种命令使用
ovs-2.8.0 源码,Open vSwitch is a production quality, multilayer virtual switch licensed under the open source Apache 2.0 license.
sFlow test environment OVS flow dump Sflowtool result
ovs的命令行手册详细说明,内容很全,解释很详细,推荐。
在OVS-1A和OVS-1B的开发过程中,我们构建了地面和校准系统的主要处理管道。 由于这两颗卫星利用彩色视频成像图案,因此潜在的视频稳定性和色彩调节对于最终用户至关重要。 除此之外,还为研究人员提供了完整的解释...
从工程角度实验角度和了解原理角度进行讲解,不紧包括非常好的原理简介,图表,以及包含OVS架构,支持的多种Flow原理和流表转发,还有很多实验以供进一步加强学习。
SDN----ovs常用命令
openvswitch bond脚本,当两个网卡需要做ovs的时候,可以使用这个脚本
openstack-M+ovs+kvm+docker
OVS主线流程之ovs-vswitchd主体结构分析
SDN opens witch及floodlight 资料,欢迎下载,学习不可多得的文档
This document describes Open vSwitch (OVS) offload using Mellanox "Accelerated Switching And Packet Processing" (ASAP2) Direct technology performance verification procedure.
This document describes Open vSwitch (OVS) offload using Mellanox "Accelerated Switching And Packet Processing" (ASAP2) Direct technology performance verification procedure. Additionally, it describes...
OVS常用命令1
OpenvSwitch-2.3.0源码,为了方便在官网上下载困难的朋友们上传
Open vSwitch (OVS) allows Virtual Machines (VM) to communicate with each other and with the outside world. OVS traditionally resides in the hypervisor and switching is based on twelve tuple matching...
安装openvswitch时提供的ifup-ovs和ifdown-ovs两个脚本,不识别fake bridge。 因此对两个脚本做了修改,使之支持fake bridge类型的设备。
P4-OvS-将P4的强大功能带到OvS!... 当前的P4-OVS版本仍然是一个研究项目,几乎可以肯定它包含严重的错误或代码怪癖。 入门 要自己玩P4-OVS,请遵循指南。 当前版本的项目允许: 创建单个P4桥并提供P4程