简体   繁体   English

禁止交易的第一屏

[英]Suppress first screen of transaction

I want to call Z-transaction via "CALL TRANSACTION" statement and skip the first screen, but AND SKIP FIRST SCREEN statement doesn't work. 我想通过“ CALL TRANSACTION”语句调用Z事务,并跳过第一个屏幕,但是AND SKIP FIRST SCREEN语句不起作用。
I've read that it has sense only when 'ENTER' function code is used for moving between screens of transaction. 我已经读到只有在使用“ ENTER”功能代码在交易屏幕之间移动时才有意义。 Is it true? 是真的吗

Therefore I decided to use batch input table (BDC) via CALL TRANSACTION...USING bdc_table statement in order to process first screen in background. 因此,我决定通过CALL TRANSACTION...USING bdc_table语句使用批处理输入表(BDC),以便在后台处理第一个屏幕。
However that way processing is returned to the initial transaction which I don't want to do! 但是那样处理将返回到我不想做的初始事务中!
The statement LEAVE TO TRANSACTION doesn't work with BDC table. 语句LEAVE TO TRANSACTION不适用于BDC表。 Is there any other solution? 还有其他解决方案吗?

Addition to tomdemuyt : 除了 tomdemuyt
Now I'm using batch table but if I used SKIP , I would rather write like this: 现在我正在使用批处理表,但是如果我使用SKIP ,我宁愿这样写:

AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD lv_tcode.

IF sy-subrc <> 0.
  MESSAGE 'No authorization for this operation!' TYPE 'E'.
ELSE.

*   CALL TRANSACTION lv_tcode  USING bdc_tab
*                              MODE 'E'
*                              UPDATE 'A'.

SET PARAMETER ID 'EBELN' FIELD p_ebeln.
LEAVE TO TRANSACTION lv_tcode AND SKIP FIRST SCREEN.
ENDIF.

On the first screen (the selection screen) p_ebeln parameter has to be selected and passed to the second screen without showing first. 在第一个屏幕(选择屏幕)上,必须选择p_ebeln参数并将其传递给第二个屏幕,而无需先显示。

I'm not sure what you're trying to do. 我不确定您要做什么。 Are you trying to skip the first screen and go to the second screen? 您是否要跳过第一个屏幕并转到第二个屏幕? If the transactions you're trying to call are executable programs, you have a few more options with submitting the program directly: 如果您要调用的事务是可执行程序,那么您还有其他选择可以直接提交程序:

SUBMIT zprogram 
  WITH param1 = 'VALUE' 
  WITH selopt BETWEEN 'a' AND 'b'.

Alternatively you change the batch table to a selection table of type RSPARAMS . 或者,将批处理表更改为RSPARAMS类型的选择表。 There are many other options including submitting with a specific variant, or calling a specific screen etc. 还有许多其他选项,包括使用特定变体提交或调用特定屏幕等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM