自由选择没有通过提交报告FAGLL03



我正在提交报告"FAGL_ACCOUNT_ITEMS_GL"从关于alv_user_command的自定义报告。从我的报告来看,我无法通过FAGLL03自由选择。

trange_line-tablename = 'ACDOCA_FS'.
trange_frange_t_line-fieldname = 'RMVCT'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = 'Z20'.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions  = lt_texpr.
SUBMIT fagl_account_items_gl
VIA SELECTION-SCREEN
WITH SELECTION-TABLE lt_rspar
WITH x_opsel EQ abap_false
WITH x_aisel EQ abap_true
WITH FREE SELECTIONS lt_texpr
AND RETURN.

如果我错过了什么,请告诉我。

检查SAP Note 2391686 - FAGLL03:自定义选择不起作用或错误MSITEM103发生,很可能您的S4H系统也可能受到此问题的影响。

我检查了我的系统,虽然它不是S4HANA,它也不工作。

EDIT:根据Suncather的反馈重做.

您可以将Parameters select - table lt_rspar保留为空
,并且仍然在提交语句中包含with selection-table

这不是忽略自由选择的原因。下面的测试程序遇到了相同类型的问题,并确认了您报告的问题。看起来自由参数传递并没有像预期的那样工作。

建议解决方案。参见Suncatcher Post

测试程序,

Report ZZSELTEST.
DATA: lt_rspar TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF lt_rspar,
lt_texpr TYPE rsds_texpr,
trange TYPE rsds_trange ,
trange_line type rsds_range ,
trange_frange_t_line type rsds_frange ,
trange_frange_t_selopt_t_line type rsdsselopt .
rspar_line-selname = 'SD_SAKNR'.
rspar_line-low = '*6*'.
rspar_line-option = 'CP'.
rspar_line-sign = 'I'.
APPEND rspar_line to lt_rspar.
trange_line-tablename = 'BSIS_FS'.
trange_frange_t_line-fieldname = 'BLART'.
trange_frange_t_selopt_t_line-sign   = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low    = 'SA'.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions  = lt_texpr.

SUBMIT fagl_account_items_gl
VIA SELECTION-SCREEN
WITH SELECTION-TABLE lt_rspar
WITH x_opsel EQ abap_false
WITH x_aisel EQ abap_true
WITH FREE SELECTIONS lt_texpr
AND RETURN.

相关内容

  • 没有找到相关文章

最新更新