rootbin

总是很懒,写不来博客,最近发现可以从onenote同步到博客园,虽然格式丑点,勉强算写博客了吧,可能以后都不干abap,权当纪念一下.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

search help 概述

Posted on 2013-07-08 15:40  rootbin  阅读(481)  评论(0)    收藏  举报

所谓search help

就是在前台调出一个query 得到一个value list

让用户选择需要的值

我们要做的就是给某些表/视图

设计一个可供查询的query

然后把这个query绑定到需要的field

 

几种search help的类型:

(以csks为例)

1.外键限制 

Image(139)

2.根据字段的外部帮助附件

Image(140)

search help 这个button 点击后 分配了关联关系

Image(141)

3.数据类型(主要是基于时间的)

Image(142)

4.data element中指定了search help

Image(143)

Image(144)

5.固定值(domain中设置了固定值)

Image(145)

Image(146)

涉及的多种help信息

具体的执行顺序如下:

image

(图片来源:http://scnblogs.techweb.com.cn/abaplv/archives/59.html)

========================================================================

创建自定义search hlep的步骤:

1.se11创建search help

2.指定selection method (应该就是目标table 或 view 但是不清楚为啥叫做selection field)

选择对话类型

Image(147)

3.指定输入输出参数

Image(148)

据说imp指输入  exp指输出

但是两个中只要有一个勾选了

在输入界面上

这个字段就会被放出  不明觉厉

另外:

collective search help中可以包含多个search hlep

这个也就是我们看到的

选择界面有多个tab的那种情况

====================================================

search help exit主要用来筛选结果

可以在具体的search hlep中指定

exit的编写方式有一个模板可以照着修改

附一个search help exit的demo

(demo link : http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/Demo.htm)

Demo on Search help exit for the material

By Naveen Kumar Kusuma, OpenText Technologies

Search help exits are used to restrict the standard search help returned values according to users’ requirement.

Example:

Scenario: When User1 require only Material type as Finished goods and User2 require only Material type as Raw material, for this scenario we can use search help exit.

Go to SE11, select the search help radio button.

To restrict the values for Material by Material type search help name is: MAT1T_E

Click on change button.

Image(7)

For this create a function module, write the logic according to the requirement and place the function module in marked location.

Function module structure definition: Create a parameters in changing and Tables tabs as follows.

Image(8)

Image(9)

Write the following code in the source code tab.

Image(10)



亲爱的P.I.G 你应该是不会到这里来的吧 ? I'm always 怀挺!