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 OK Code disappear during debug mode

Former Member
0 Likes
1,556

Hi all,

Currently, I have the following code when call transaction 'FV50':


  WA_OPT-DISMODE = 'A'.
  WA_OPT-UPDMODE = 'L'.
  WA_OPT-DEFSIZE = 'X'.

    CALL TRANSACTION 'FV50' USING IT_BDCDATA
                      OPTIONS FROM WA_OPT
*                   MODE   ctumode
*                   UPDATE cupdate
                     MESSAGES INTO IT_MESSTAB.

Based on the above, I'm able to debug tcode FV50 with OK-CODE popup window, so that I can know the error messages displayed on the screen during debug.

As the first debug mode of FV50 encountering error message, which I've forced to exit the debug and exit the program (since some G/L do not exist in respective company code), I have maintained the G/L and re-run the BDC in debug mode (Mode = 'A'). However, this time, the OK-CODE popup window didn't prompt up, where I couldn't debug the BDC screen using OK-CODE popup window.

I have checked the settings in 'Customize Local Layout - ALT + F12' -> Options -> Expert tab -> Dialog Box for OK Code ticked, and I'm not certain why OK-CODE popup window just disappear on the second attempt of BDC debug.

Appreciate if you guys have any idea on this.

Thanks and regards,

Patrick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,113

Hello,

If the OK-CODE pop up isn't appearing while running in mode A, it means that the continuity is missing in the recording. You may have to re-record the transaction carefully or if you could analyse the missing link, you could directly add it.

Also you could run the BDC in mode 'E' if you want to directly reach the point when any error occurs for better analysis.

Vikranth

5 REPLIES 5
Read only

Former Member
0 Likes
1,113

you do have the OK_CODE (not ok-code?) with the appropriate navigation or enter value in your BDC rows, right?

Read only

Former Member
0 Likes
1,114

Hello,

If the OK-CODE pop up isn't appearing while running in mode A, it means that the continuity is missing in the recording. You may have to re-record the transaction carefully or if you could analyse the missing link, you could directly add it.

Also you could run the BDC in mode 'E' if you want to directly reach the point when any error occurs for better analysis.

Vikranth

Read only

0 Likes
1,113

Hi Vikranth,

I think it has nothing to do in recording (though this program is copied from SAP4.7 to ECC 6.0). The OK Code pop-up window is just happened to appear for the first debug mode A, when I re-run the program (although I've logged out and logged in again) with debug mode A, the OK Code pop-up window didn't pop-up again for me to debug screen by screen with relevant OK-Code.

Regards,

Patrick

Read only

0 Likes
1,113

Hi,

I have come across many cases where copied program does not work properly

ie, may be one Ok code is missing.

So this might be your case better record once again in ECC and compare it with the existing code.

Regards

Bikas

Read only

0 Likes
1,113

Hi all,

This OK CODE went missing due to the screen setting on my user id, and it has been resolved now.

Regards,

Patrick