Application Development 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: 

Okcode for warning message in BDC

Former Member
0 Kudos
1,088

Hi,

I have created a BDC for creation of cost center (Tcode : KS01).

When i run BDC in forground, i m getting warning message for one of the field in Ks01 transaction,which i m bypassing by hitiing enter.

When i am running BDC i background it is getting failed because of this warning message.

please let me know what i suppose to do

4 REPLIES 4

Former Member
0 Kudos
142

do you use BDCMSGCOLL structure to catch the messages?

regards

Former Member
0 Kudos
142

hi

try by putting one additional ok code for ENTER in ur BDC prg.

perform bdc_field using 'BDC_OKCODE'

'/00'.

and write all code of OK_CODE under this.

then put that OK_CODE after code

perform bdc_field using 'BDC_OKCODE'

'<put OK_CODE>'.

rest prg remain same

reward if helpful.

Former Member
0 Kudos
142

OK Code varies from screen to screen. These are the below possible OK codes for transaction code <KS01>

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

Former Member
0 Kudos
142

Hi,

when we execute in background it doesn't care about the info messages and warning messages. i think u r missing some thing in the screen, analyze the error and pass the required info are take some corrective actions to avoid the message.

Thanks,

Rajinikanth