- 浏览: 173872 次
- 性别:
- 来自: 成都
文章分类
source:http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html
Create a SELECT-OPTIONS in module pool screen using two methods as shown.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This CALL SUBSCREEN statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
Create a SELECT-OPTIONS in module pool screen using two methods as shown.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN. select-options s_matnr for mara-matnr. SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This CALL SUBSCREEN statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR' struc_tab_and_field-tablename = con_kna1. " 'KNA1'. CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG' EXPORTING * TITLE = ' ' text = g_titl1 " 'Customers' tab_and_field = struc_tab_and_field TABLES RANGE = rng_kunnr EXCEPTIONS NO_RANGE_TAB = 1 CANCELLED = 2 INTERNAL_ERROR = 3 INVALID_FIELDNAME = 4 OTHERS = 5. IF NOT rng_kunnr[] IS INITIAL. * Read the very first entry of the range table and pass it to * dynpro screen field READ TABLE rng_kunnr INDEX 1. IF sy-subrc = 0. g_cust = rng_kunnr-low. ENDIF. ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
发表评论
-
DISABLE button(FCODE) from the GUI-Status
2014-08-04 15:54 6291. Goto-> Attributes->Pus ... -
Handy SAP function module to automate user events
2013-11-28 09:49 747*Begin-Auto triggers ENTER comm ... -
set Billing block to blank for Sals Order
2013-04-17 15:16 813FM: SD_WF_ORDER_DEL_BILLING_BLO ... -
set Billing block to blank for Sals Order
2013-04-17 15:16 740FM: SD_WF_ORDER_DEL_BILLING_BLO ... -
Unpermitted combination of business object BUS2032 and sales doc. category H
2013-01-25 14:20 4133Q: create New Sales Order using ... -
Function Module: get all users who have specific role
2013-01-25 14:16 663CALL FUNCTION 'RSRA_USERS_O ... -
Converting OTF data from script to Spool Request
2012-03-06 17:25 0source:http://forums.sdn.sap.co ... -
Calculate the days, months and years between 2 dates.
2012-02-21 16:14 833FORM compute_2date_diff. DAT ... -
Retrieving Domain fixed values
2012-02-16 11:13 808source:http://www.saptechnical. ... -
If 1 equals 2, what’s the purpose?
2012-02-16 10:59 830source:http://sapport.blogspot. ... -
get status name for batch input session
2012-01-31 14:47 922Line 601 in program SAPMSBDC_CC ... -
create zip folder with cl_abap_zip
2011-12-05 18:11 1205REPORT ztest. DATA: gv_file ... -
MIRO
2011-11-29 10:39 2062from: http://help-sap.blogspot. ... -
Create Vendor or Customer_master Data
2011-11-23 16:22 2915To Create or Change Vendor_mast ... -
Pay attention to the following points when using append structures
2011-10-27 13:43 1303You cannot create append str ... -
Help Views
2011-10-20 10:46 734source:http://help.sap.com/saph ... -
What is the Different Types and Usage of Views
2011-10-19 23:06 845source:http://www.sap-img.com/a ... -
Upload a Comma Delimited CSV file that contains commas in data
2011-09-23 17:22 2230source:http://wiki.sdn.sap.com/ ... -
What is the difference between SET SCREEN and CALL SCREEN ?
2011-09-19 21:50 759source:http://www.saptechies.co ... -
cl_gui_frontend_services=>file_open_dialog
2011-09-09 09:21 1415CALL METHOD cl_gui_frontend_ser ...
相关推荐
标题 "iCreate i5062-ZD主控方案U盘量产修复工具 PDx8_V3.16_for_win2kxp" 提供了几个关键信息点,这是一款专为iCreate i5062-ZD主控芯片设计的U盘量产修复软件,版本号为PDx8_V3.16,并且适用于Windows 2000和XP...
react-native-create-module 使用单个命令创建React Native库的工具。你为什么需要这个? 如果您要为React Native创建本机模块,则需要为要支持的每个平台提供一些本机代码,然后需要一些JavaScript代码将其绑定在...
创建React本机模块 使用单个命令创建React Native库模块或本机视图组件的工具。 请参阅下面的命令行用法,无视图示例和具有非常简单的本机视图的示例。 该工具基于 ,具有工作示例回调,可选的本机视图以及和其他...
编译时报 Looking for pthread_create - not found 的解决办法 linux gcc 编译时报Looking for pthread_create - not found 其解决办法是...
开源项目-hnlq715-goroutine-pool.zip,A simple goroutine pool which can create and release goroutine dynamically, inspired by fasthttp.
将ISO 3166-1-alpha-2代码映射到英语国家名称,并匹配react-select options道具。 使用来自数据 安装 npm install react-select-country-list --save 或者 yarn add react-select-country-list 例子 import ...
根据提供的文件信息,本文将详细解释"WDA Tutorial 02: Using Select Options in a WDA Application"中的关键知识点。此教程适用于希望深入了解SAP NetWeaver 2004s WebDynpro for ABAP(WDA)环境中Select Option...
# npmnpm install create-pull-request --global# yarnyarn add create-pull-request --global用法// in the terminal in your project folder (default browser)create-pull-request// opens the URL in a ...
详解create-react-app自定义eslint配置 Create-react-app是React官方提供的一个项目模板工具,通过它可以快速创建一个新的React项目,但是在使用过程中,开发者可能需要自定义eslint配置,以满足项目的需求。Eslint...
SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 --数据定义 CREATE TABLE --创建一个数据库表 DROP TABLE --从数据库中删除...
SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 --数据定义 CREATE TABLE --创建一个数据库表 DROP ...
语 句 功 能 --数据操作 SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 -数据定义 CREATE TABLE --创建一个数据库表 DROP ...
SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 --数据定义 CREATE TABLE --创建一个数据库表 DROP TABLE --从...
语 句 功 能 --数据操作 SELECT --从数据库表中检索数据行和列 INSERT --向数据库表添加新数据行 DELETE --从数据库表中删除数据行 UPDATE --更新数据库表中的数据 --数据定义 CREATE TABLE --创建一个数据库...
Ember-power-select-with-create ember-power-select 的简单变体,允许您根据搜索文本创建新条目。安装ember install ember-power-select-with-create兼容性Ember Power Select v4 或更高版本另请参阅以了解其兼容性...
Low-FreeStorageSpace alarmin AWS CloudWatch for all RDS instancesUsage: rds-create-freestoragespace-alarms [options] rds-create-freestoragespace-alarms [-h | --help]Options: --debug Don't send data ...
yarn add create-file-list 用法 < script type =" module " > import createFileList from 'https://unpkg.com/create-file-list?module' createFileList ( file1 , [ file2 ] , file3 ) </ script >...
--poolcreatem Create A Pool And Init A Member,eg.(--poolcreatem PoolName,LoadBalance,Address,Port) LoadBalance=rr,ga,ratio --poolgetmonitor Get Pool Monitor,eg.(--poolgetmonitor PoolName) --...
Vue网络屏幕截图· web端自定义截屏插件(Vue3版),运行视频:插件,本插件仅支持Vue3,如需在其他平台使用请移步: 效果图如下:插件安装yarn add vue-web-screen-shot# ornpm install vue-web-screen-shot --save...
创建krome应用 立即启动现代Chrome扩展程序开发 ... -a, --author=author author name -f, --force -h, --help show CLI help -t, --templateName=templateName template to use -v, --version