0

大家好,我有选择查询

select single number_range_int 
from BBPC_PROC_TYPE into lv_num_range 
where process_type = 'SHC'.

select single fromnumber tonumber 
from nriv into (lv_num_from,lv_num_to) 
where object = 'REQREQ' 
and NRRANGENR = lv_num_range.

在选择选项之前,我想向用户显示消息“请输入购物车范围”lv_num_from(我从上面的选择查询中获得)到 lv_num_to(我从上面的选择查询中获得)

我怎么能做到这一点。请帮忙。

谢谢和问候, 帕里

4

2 回答 2

2

我得到了答案。以下是我的代码。

INCLUDE zsrmi_declarations1.
DATA : lv_shc TYPE crmd_orderadm_h-object_id .
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-111.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(79) lv_text.
SELECTION-SCREEN END OF LINE.
SELECT-OPTIONS : s_shc FOR lv_shc .
SELECTION-SCREEN END OF BLOCK a1.

INITIALIZATION.
  SELECT SINGLE number_range_int FROM bbpc_proc_type INTO lv_num_range WHERE process_type = 'SHC'.
  SELECT SINGLE fromnumber tonumber FROM nriv INTO (lv_num_from,lv_num_to) WHERE object = 'REQREQ' AND nrrangenr = lv_num_range.

  lv_text = text-222.
  REPLACE '&1' IN lv_text WITH lv_num_from.
  REPLACE '&2' IN lv_text WITH lv_num_to.
于 2016-11-29T11:00:10.003 回答
0

您可以使用 SELECTION-SCREEN-LINE 来实现此目的,有关更多详细信息和示例,请参阅SAP 帮助

于 2016-11-28T22:16:28.927 回答