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

OK code for BDC program

Former Member
0 Likes
746

Hi,

I am currently doing a BDC program and is facing an issue with the OK code.

When my screen hits a warning message, my program failed.

I have tried to use OK codes, '=ENTR' and '=ENTE' but both still doen't work to bypass this warning message.

Appreciate if any guru can advise, thanks.

regards,

CL

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
713

Hi..

Find out the Exact OK_CODE value of the Enter key in the Recording (SHDB).

Then use it in the program.

Generally you will have '/00' for Enter key.

REWARD IF HELPFUL.

4 REPLIES 4
Read only

Former Member
0 Likes
713

Hi CL,

You should record through SHDB and whatever code comes there use that in your program.

Regards,

Atish

Read only

varma_narayana
Active Contributor
0 Likes
714

Hi..

Find out the Exact OK_CODE value of the Enter key in the Recording (SHDB).

Then use it in the program.

Generally you will have '/00' for Enter key.

REWARD IF HELPFUL.

Read only

0 Likes
713

just check the message and its ok code for all possible messge...if they come your BDC will run.and also if they dont appear..

regards

Read only

Former Member
0 Likes
713

for enter '/00'.in shdb it will shows automatically.

for ok code.

create ok-code type sy-ucomm.

use this

and populate the table bdcdata.

for every screen same as shdb.

populate bdcdata-programname,dynpro,dynbegin,fnam,fval.