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: 

bdc

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

The ok code for enter is /00.

AWARD POINTS IF USEFUL

former_member188685
Active Contributor
0 Kudos

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

Sm1tje
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

hi

check this

'=yes'

''\yes'

Former Member
0 Kudos

Hi,

Check using SHDB recording, u'll get it.

Former Member
0 Kudos

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.

Former Member
0 Kudos

whatever recording yo do in T.code SHDB

..it saves under ok_code.

rewards if satisfy......

Former Member
0 Kudos

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