I created a recording for transaction KE51 (create profit center)
When i run this using call transaction , the execution stops at second step (screen.
Although its okay in session method.
The program is as follows
report ZVAT_PRCTR
no standard page heading line-size 255.
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro using 'SAPLRKPM' '0200'.
perform bdc_field using 'BDC_CURSOR'
'PRCT_V-PRCTR'.
perform bdc_field using 'BDC_OKCODE'
'=MD_SMDM'.
perform bdc_field using 'PRCT_V-PRCTR'
'TEST19'.
perform bdc_field using 'PRCT_V-REF_KOKRS'
'1003'.
perform bdc_dynpro using 'SAPLRKPM' '0298'.
perform bdc_field using 'BDC_OKCODE'
'=MD_ACTIVATE'.
perform bdc_field using 'BDC_CURSOR'
'PRCT_V-KHINR'.
perform bdc_field using 'PRCT_V-DATAB'
'01.05.2006'.
perform bdc_field using 'PRCT_V-DATBI'
'31.12.9999'.
perform bdc_field using 'PRCT_V-KTEXT'
'Test Profit Center'.
perform bdc_field using 'PRCT_V-LTEXT'
'Test Profit Center'.
perform bdc_field using 'PRCT_V-VERAK'
'Roger federrer'.
perform bdc_field using 'PRCT_V-KHINR'
'54T_AM'.
perform bdc_transaction using 'KE51'.
perform close_group.
let me know where i am going wrong ?
Regards
Alok Pathak