BDC OK CODE 的含義,錄屏操作中BDC_OKCODE

SAP騎士發表於2009-09-21

sap中錄屏少不了,tcode程式碼為SHDB,但是每次錄屏的時候,鍵盤和滑鼠的操作對應在BDC錄製的BDC_OKCODE的含義是什麼呢。

這裡有一部分小結,可以幫助我們使用

OKCODE     Description
/nn          Function Key nn
/00          Enter
/8           F8,Continue or Execute
/11          F11,Post
%EX          Exit
BACK F3,Back Previous Screen
DLT          Delete
PICK         Double Click
SAVE         F11,Save
UPDA         SAVE
FCNP         新插入一行item(像BOM的item那種)

以下是程式碼幫我們理解

  SPAN { font-family: "BatangChe"; font-size: 12pt; color: #000000; background: #FFFFFF; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } read dataset dataset into record.
if sy-subrc <> 0exitendif.

perform bdc_dynpro      using 'SAPMM06E' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              'EKKO-LIFNR'.
perform bdc_field       using 'BDC_OKCODE'
                              '=AB'.

perform bdc_field       using 'EKKO-LIFNR'
                              record-LIFNR_001.
perform bdc_field       using 'RM06E-BSART'
                              record-BSART_002.
perform bdc_field       using 'RM06E-BEDAT'
                              record-BEDAT_003.
perform bdc_field       using 'EKKO-EKORG'
                              record-EKORG_004.
perform bdc_field       using 'EKKO-EKGRP'
                              record-EKGRP_005.
perform bdc_field       using 'RM06E-LPEIN'
                              record-LPEIN_006.
perform bdc_field       using 'RM06E-WERKS'
                              record-WERKS_007.
perform bdc_dynpro      using 'SAPMM06E' '0120'.
perform bdc_field       using 'BDC_CURSOR'
                              'EKPO-LGORT(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.

perform bdc_field       using 'EKPO-EMATN(01)'
                              record-EMATN_01_008.
perform bdc_field       using 'EKPO-MENGE(01)'
                              record-MENGE_01_009.
perform bdc_field       using 'EKPO-LGORT(01)'
                              record-LGORT_01_010.
perform bdc_dynpro      using 'SAPMM06E' '0120'.
perform bdc_field       using 'BDC_CURSOR'
                              'RM06E-EBELP'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BU'.

perform bdc_field       using 'RM06E-EBELP'
                              record-EBELP_011.
perform bdc_transaction using 'ME21'.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17204926/viewspace-615172/,如需轉載,請註明出處,否則將追究法律責任。

相關文章