03-31-2008 9:04 AM
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.
03-31-2008 9:10 AM
03-31-2008 9:11 AM
It All depends. Check it using SHDB. or else debug and find the USer command.
03-31-2008 9:11 AM
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.
03-31-2008 9:14 AM
03-31-2008 9:24 AM
03-31-2008 9:33 AM
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.
04-01-2008 12:32 PM
whatever recording yo do in T.code SHDB
..it saves under ok_code.
rewards if satisfy......
04-01-2008 12:42 PM
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