带有SELECT-OPTION的BDCDATA

时间:2016-05-24 09:55:21

标签: parameters call selection sap abap

我正在调用CALL TRANSACTION的报告。我不想使用SUBMIT。我需要为SELECT-OPTIONS打开按钮并为值'X'排除值。这是我从注册中找到的代码

  ls_bdcdata-fnam     = 'BDC_OKCODE'.
  ls_bdcdata-fval     = '=%020'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-dynbegin = 'X'.
  ls_bdcdata-dynpro   = '3000'.
  ls_bdcdata-program  = 'SAPLALDB'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-fnam     = 'BDC_OKCODE'.
  ls_bdcdata-fval     = '=NOSV'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-fnam     = 'BDC_SUBSCR'.
  ls_bdcdata-fval     = 'SAPLALDB                                3010SCREEN_HEADER'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-dynbegin = 'X'.
  ls_bdcdata-dynpro   = '3000'.
  ls_bdcdata-program  = 'SAPLALDB'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-fnam     = 'BDC_OKCODE'.
  ls_bdcdata-fval     = '=ACPT'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-fnam     = 'BDC_SUBSCR'.
  ls_bdcdata-fval     = 'SAPLALDB                                3030SCREEN_HEADER'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

  ls_bdcdata-fnam     = 'RSCSEL_255-SLOW_E(01)'.
  ls_bdcdata-fval     = 'X'.
  APPEND ls_bdcdata TO lt_bdcdata.
  CLEAR ls_bdcdata.

SELECT-OPTIONS

标识
ls_bdcdata-fval     = '=%020'.

但是当我向被叫报告添加新的SELECT-OPTIONS时,这个数字发生了变化。我可以使用SELECT-OPTIONS的名称而不是此'=%020'值的计算值吗?因此,当我添加新的SELECT-OPTIONS时,我可以阻止计算的新变化。

0 个答案:

没有答案