‎2008 Dec 24 3:56 AM
Hi.
I recorded transaction XK01 using transaction recorder(SHDB) .
At one of the screens warning message appears after entering data and I should
press enter to continue processing in other screens.
Problem is:
pressing enter is not recorded.
How to write code of pressing enter ?
‎2008 Dec 24 4:55 AM
Hi,
No need to worry about warning messages in BDC. BDC recording does not take ENTER for warning messages. But it will be surpressed while executing the program.
So try to insert OK CODE instead of pressing ENTER
call BDC
CALL TRANSACTION 'XK01' USING it_bdcdata
mode 'E'
update 'S'
messages into it_message.
or
PERFORM bdc_field USING 'BDC_OKCODE' '=/ENTER'.
Regards,
Jyothi CH.
‎2008 Dec 24 4:07 AM
Hi
Write below perform where you want ENTER.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
Amresh
‎2008 Dec 24 4:08 AM
perform bdc_field using 'BDC_OKCODE'
'/00'.OKCODE Description
/nn Function Key nn
/00 Enter
Best regards,
Prashant
‎2008 Dec 24 4:09 AM
Try to call BDC in this way with MODE E
CALL TRANSACTION 'XK01' USING IT_BDCDATA
MODE 'E'
UPDATE 'S'
MESSAGES INTO IT_MESSAGES
or
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
a®
‎2008 Dec 24 4:11 AM
try to attach the following in ur code at nec place
perform bdc_field using 'BDC_OKCODE'
'=/00'.
‎2008 Dec 24 4:26 AM
Hi Marat,
Don't worry about warning messages in BDC. By default, BDC recording does not take ENTER for Warning Messages. It will be suppressed while executing the program. Though you forcefully put OK CODE as ENTER, it doesn't make any difference.
br
Asik.
‎2008 Dec 24 4:38 AM
Yes, when I was recording code for XD01 warning messages were supressed.
But for XK01 it doesn't work.
‎2008 Dec 24 4:55 AM
Hi,
No need to worry about warning messages in BDC. BDC recording does not take ENTER for warning messages. But it will be surpressed while executing the program.
So try to insert OK CODE instead of pressing ENTER
call BDC
CALL TRANSACTION 'XK01' USING it_bdcdata
mode 'E'
update 'S'
messages into it_message.
or
PERFORM bdc_field USING 'BDC_OKCODE' '=/ENTER'.
Regards,
Jyothi CH.
‎2008 Dec 24 5:00 AM
Hi,
No need to worry about warning messages in BDC. BDC recording does not take ENTER for warning messages. But it will be surpressed while executing the program.
So try to insert OK CODE instead of pressing ENTER
call BDC
CALL TRANSACTION 'XK01' USING it_bdcdata
mode 'E'
update 'S'
messages into it_message.
or
PERFORM bdc_field USING 'BDC_OKCODE' '=/ENTER'.
Regards,
Jyothi CH.