Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdc can`t recegnized ok_code

Former Member
0 Likes
329

HI,experts

when I use call transaction for batch input.

for example,i use SM30 to delete data of a addon table ZT000.

when I execute step by step manually, it successful,and delete the data in table ZT000.

but when i record the steps using t_code SHDB and in my program using call transaction SM30

when the ok_code = [=posi],and while change to the next screen,it stoped. it can not change to next screen like i want

so i find when it execute in program, this OK_CODE is not be recognized,but when it execute manually,it will be recognized.

so why this happen?how to solve it ?

Edited by: hongtan zhang on Dec 22, 2008 5:50 AM

Edited by: hongtan zhang on Dec 22, 2008 5:51 AM

HI,experts

when I use call transaction for batch input.

for example,i use SM30 to delete data of a addon table ZT000.

when I execute step by step manually, it successful,and delete the data in table ZT000.

but when i record the steps using t_code SHDB and in my program using call transaction SM30

when the ok_code = [=posi],and while change to the next screen,it stoped. it can not change to next screen like i want

so i find when it execute in program, this OK_CODE is not be recognized,but when it execute manually,it will be recognized.

so why this happen?how to solve it ?

Edited by: hongtan zhang on Dec 22, 2008 5:50 AM

Edited by: hongtan zhang on Dec 22, 2008 5:51 AM

1 REPLY 1
Read only

Former Member
0 Likes
298

Hi,

As database table is updated in this transaction

and you still want to continue with BDC use RACOMMIT option

which will not terminate BDC.

RACOMMIT: Do not end transaction at COMMIT WORK

Regards,

Vishal.

Edited by: Vishal Jadhav on Dec 22, 2008 10:31 AM