How to capture input values in the selection screen?

Use the function module RS_REFRESH_FROM_SELECTOPTIONS to capture the values entered by the user in the selection screen. This FM will return the input values in the selection screen to a selection table. Selection table has the structure RSPARAMS:

SELNAME = Name of selection criterion

KIND = Type of selection (parameter or select-option)

SIGN = ‘I’ (Inclusive) or ‘E’ (Exclusive)

OPTION = e.g. ‘BT’, ‘EQ’, ‘LE’.

LOW = Lower limit

HIGH = Upper limit

*&---------------------------------------------------------------------*

*& Data Declaration

*&---------------------------------------------------------------------*

TABLES: mara.

DATA:gt_params TYPE TABLE OF rsparams.

DATA:gwa_params TYPE rsparams.

*&---------------------------------------------------------------------*

*& Selection Screen

*&---------------------------------------------------------------------*

SELECT-OPTIONS:s_matnr FOR mara-matnr.

PARAMETERS:p_mtart TYPE mara-mtart.

PARAMETERS:p_matkl TYPE mara-matkl.

*&---------------------------------------------------------------------*

*& Start of Selection

*&---------------------------------------------------------------------*

START-OF-SELECTION.

CALL FUNCTION ‘RS_REFRESH_FROM_SELECTOPTIONS‘

EXPORTING

curr_report = sy-repid

TABLES

selection_table = gt_params[].

SORT gt_params BY kind.

WRITE:/ ‘Parameters‘.

WRITE:/ ‘Name‘ ,20 ‘Value‘ .

LOOP AT gt_params INTO gwa_params WHERE kind = ‘P‘.

WRITE:/ gwa_params-selname ,20 gwa_params-low.

ENDLOOP.

skip.

WRITE:/ ‘Select-Options‘.

WRITE:/ ‘Name‘ ,20 ‘Sign‘ ,25 ‘Option‘,32 ‘Low‘,52 ‘High‘.

LOOP AT gt_params INTO gwa_params WHERE kind = ‘S‘.

WRITE:/ gwa_params-selname ,20 gwa_params-sign ,

25 gwa_params-option, 32 gwa_params-low,

52 gwa_params-high.

ENDLOOP.

Selection Screen

Output


时间: 2024-10-22 18:50:41

How to capture input values in the selection screen?的相关文章

选择屏幕(Selection Screen)

声明:原创作品,转载时请注明文章来自SAP师太技术博客:www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将追究法律责任!原文链接:http://www.cnblogs.com/jiangzhengjun/p/4292295.html 选择屏幕(Selection Screen). 156 创建选择屏幕... 157 SELECTION-SCREEN.. 157 SELECTION-SCREEN - BEGIN OF SCREEN.. 157 标准选

[Angular 2] Passing Template Input Values to Reducers

Angular 2 allows you to pass values from inputs simply by referencing them in the template and passing them into your Subject.next() call. This lesson shows you how to make a number input and pass the value so you can configure how much you want the

LeetCode 1090. Largest Values From Labels

Problem Description: We have a set of items: the i-th item has value values[i] and label labels[i]. Then, we choose a subset S of these items, such that: |S| <= num_wanted For every label L, the number of items in S with label L is <= use_limit. Ret

【leetcode】1090. Largest Values From Labels

题目如下: We have a set of items: the i-th item has value values[i] and label labels[i]. Then, we choose a subset S of these items, such that: |S| <= num_wanted For every label L, the number of items in Swith label L is <= use_limit. Return the largest

Android 中input event的分析

文章将分析Android 的Input Event 子系统的来龙去脉. Android 系统里面有很多小工具,运行这些工具,我们对它们有一个感性的认识,进而阅读和分析这些小工具源代码,再顺藤摸瓜,就可以把整个子系统的来龙去脉弄清楚. 1.运行toolbox的getevent 工具. # getevent -helpgetevent -helpUsage: getevent [-t] [-n] [-s switchmask] [-S] [-v [mask]] [-p] [-q] [-c count

Document Object Model (DOM) Level 3 Events Specification

Document Object Model (DOM) Level 3 Events Specification W3C Working Draft 25 September 2014 This version: http://www.w3.org/TR/2014/WD-DOM-Level-3-Events-20140925/ Latest published version: http://www.w3.org/TR/DOM-Level-3-Events/ Latest editor's dr

Speculative store buffer

A speculative?store?buffer is speculatively updated in response to speculative store?memory operations buffered by a?load/store?unit in a microprocessor. Instead of performing dependency checking for?load?memory operations among the?store?memory oper

Snoop resynchronization mechanism to preserve read ordering

A processor employing a post-cache (LS2) buffer. Loads are stored into the LS2buffer after probing the data cache. The load/store unit snoops the loads in the LS2?buffer against snoop requests received from an external bus. If a snoop invalidate requ

科技文献检索

The Fundamentals of Three-Phase Power Measurements Application Note Introduction Although single-phase electricity is used to supply common domestic and office electrical appliances, three-phase alternating current (a.c.) systems are almost universal