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-debug

Former Member
0 Likes
5,061

hi experts

In calltransation metho we use Mode= N. But in debuging BDC i want to show all screen mode. how?

6 REPLIES 6
Read only

Former Member
0 Likes
2,837

use <b>mode A</b>

regards

aswin

Read only

Former Member
0 Likes
2,837

just go into debugging mode and do the BDC step by step, when it comes to the Call Transaction line, check the mode which will be 'N'....Now, overwrite this with 'A' and execute the BDC...It will run in All Screens Mode....

Read only

Former Member
0 Likes
2,837

Hi Surendra

As suggested above the MODE 'A' will do the trick as it takes you to all screens.

Normally MODE N will be defaulted as it will be used for background processing,

Here is a simple tip,

This will be the call transaction part of the program,

<i>

CALL TRANSACTION 'IW32' USING BDCDATA <b>MODE 'N' </b>

MESSAGES INTO MESSTAB.</i>

I would suggest you to make it like this,

<i><b>DATA: V_MODE TYPE C VALUE 'N'.</b>

<i><b>*<In debug mode set V_MODE = 'A' for debugging></b></i>

CALL TRANSACTION 'IW32' USING BDCDATA <b>MODE V_MODE </b>

MESSAGES INTO MESSTAB.</i>

This will be very useful because you just need to change the value of the V_MODE at runtime as A for debugging besides it has N which is the default to be used. (i.e. you need not change the code again and again).

This will be very useful when you have to debug some program in QA or PRD servers.

Hope this is useful.

Regards

Kathirvel

Read only

Former Member
0 Likes
2,837

You can also use mode 'E' which will stop only when there are 'E'rrors.

Rob

Read only

Former Member
0 Likes
2,837

in debug mode change form 'N' to 'A' and save.

press 'F6' to execute.

Read only

Former Member
0 Likes
2,837

Hi Surendra,

As our experts of SDN told, You have to change the mode of Process into <b>A</b>, then only it is possible. For the above said i can add a point.

<b> It is not possible to debugg a program which is running in Background.( Normally ), as you know, Mode N in call transaction means, no display of screens, means, background, So the alternative is , While you start debugging, you can change the mode into A and you can proceed.</b>.

Thanks

Manju,

Reward Points if you are pleased.