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

Former Member
0 Likes
635

Hi all,

What is the ok-code for enter/ continue in BDC for pop up messages.

As such the ok- code '=ENTR' does not work.

Is there anyother ok code.

8 REPLIES 8
Read only

Former Member
0 Likes
609

Hi,

The ok code for enter is /00.

AWARD POINTS IF USEFUL

Read only

Former Member
0 Likes
609

It All depends. Check it using SHDB. or else debug and find the USer command.

Read only

Sm1tje
Active Contributor
0 Likes
609

What should the ENTER do? If you want to continue to another page / tabstrip or whatever, you should find out in the transaction what the function code for that particular function is and use it in your BDC. Maybe doing a BDC recording will solve your problem.

Read only

Former Member
0 Likes
609

hi

check this

'=yes'

''\yes'

Read only

Former Member
0 Likes
609

Hi,

Check using SHDB recording, u'll get it.

Read only

Former Member
0 Likes
609

Hi

ok_code for enter is /00.

Below i provided sample recording for MM01.

perform bdc_dynpro using 'SAPLMGMM' '0060'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-MTART'.

perform bdc_field using 'BDC_OKCODE'

'=AUSW'.

perform bdc_field using 'RMMG1-MATNR'

t_mara-matnr.

perform bdc_field using 'RMMG1-MBRSH'

t_mara-mbrsh.

perform bdc_field using 'RMMG1-MTART'

t_mara-mtart.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(02)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'MSICHTAUSW-KZSEL(01)'

'X'.

perform bdc_field using 'MSICHTAUSW-KZSEL(02)'

'X'.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'MAKT-MAKTX'

t_mara-maktx.

perform bdc_field using 'BDC_CURSOR'

'MARA-MEINS'.

perform bdc_field using 'MARA-MEINS'

t_mara-meins.

perform bdc_field using 'MARA-MTPOS_MARA'

'VOLL'.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

t_mara-maktx.

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

perform bdc_transaction using 'MM01'.

Plz rewards points,

Thanks & regards,

Ganesh.

Read only

Former Member
0 Likes
609

whatever recording yo do in T.code SHDB

..it saves under ok_code.

rewards if satisfy......

Read only

Former Member
0 Likes
609

hi

if the ok code os not 'entr' then it should be ' \00 '. u can check the same in transcation ' shdb ' . record the transaction and after that process the recorded transaction . while processing u can see the values of ok-code.

reward if helpful

regards

mano