BDC录屏时coding block 弹出窗无法录制问题

shdb 录屏时 可能会碰到下面的情况:

正常使用时会弹出一个框输入数据,但录屏时弹出的框是个空白的无法输入(如下图)。

这种情况可以在建立录屏时,将参数 NOBINPT 为选中状态(如下图红框部分) .

同理在调用bdc程序里,使用此录屏调用 t-code 时,也要将相应参数设置 。 代码参考如下:

The error message that usually comes in status bar while you are running the transaction online might appear in a popup window when you are running that in batch. This will make your fields disabled for input. This OPTIONS addition will remove this problem  

The way to use the OPTIONS addition.
Declare a work area of type CTU_PARAMS.
Fill the fields of CTU_PARAMS. The field NOBINPT  should be set to 'X'.
This will set the SY-BINPT to space. So now the transaction which you will be calling will run in online mode.

 

Example.


 

data: X_OPTIONS type CTU_PARAMS..

clear X_OPTIONS.
X_OPTIONS-DISMODE = 'E'.
X_OPTIONS-UPDMODE = 'S'.
X_OPTIONS-CATTMODE = ' '.
X_OPTIONS-DEFSIZE = ' '.
X_OPTIONS-RACOMMIT = ' '.
X_OPTIONS-NOBINPT = 'X'.
 X_OPTIONS-NOBIEND = ' '.

 call transaction 'T-Code' using T_BDCDATA[] options from X_OPTIONS.
 

Note:
Do not use the MODE & UPDATE additions when you are using OPTIONS. The mode & update values are passed in the CTU_PARAMS structure.

猜你喜欢

转载自blog.csdn.net/fangkailove/article/details/8614731