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

Debug an Smartform (Initialization)

Former Member
0 Likes
4,493

Hello,

I want to debug the Initialization program in my smartform, I got the user: probau, and I have added a line to debug: BREAK PROBAU. Please see image below:

This smartforms is used  in MIGO Transaction:

But when I do clic in POSTED button, only display a correct message but never run the debug mode:

Anyone knows how can I solved this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,224

Hello Guys, I have solved my problem, MIGO Transaction can't debug the pinting directly, you can debug your smarform of MIGO in  MB90 transaction.

In ouput type you need pass your ouput type, in my case  was: WE01 and Processing Mode:2

and you need pass material document number and Material Doc year after this you can see your documents:

Select your document and press run button, but make sure you have a breakpoint in the initialization code of smartform previously

8 REPLIES 8
Read only

Former Member
0 Likes
3,224

Dear Luis,

Please try by switching on Update Debugging.

BR,

Aashrith.

Read only

0 Likes
3,224

Aashrith HG wrote:

Dear Luis,

Please try by switching on Update Debugging.

BR,

Aashrith.

Sorry, but how can I do this??

Read only

former_member404244
Active Contributor
0 Likes
3,224

Hello,

Please check if the correct output type is attached to both the  program name and smartform in NACE.

Regards,

Nagaraj 

Read only

0 Likes
3,224

I have checked in NACE and all its ok

Read only

former_member188724
Contributor
0 Likes
3,224

Hi,

How do you call the smartform? i.e.,Where is the smartform FM called. Using any BADI?

Pls put a break point in the generated FM of the smartform i.e., call function 'smartform fm' and it should go there from that point.

I suppose it doesn't go to the point where your smartform is called from.

Regards,

K.S

Read only

0 Likes
3,224

Hello,

If I run my smartforms from SMARTFROMS TCode this does work well, because the Debug Mode run:

But I need, run the debug mode when I call my smartfrom from MIGO transaction.

Read only

0 Likes
3,224

Try setting an external breakpoint in the generated FM of the Smartform.

Read only

Former Member
0 Likes
3,225

Hello Guys, I have solved my problem, MIGO Transaction can't debug the pinting directly, you can debug your smarform of MIGO in  MB90 transaction.

In ouput type you need pass your ouput type, in my case  was: WE01 and Processing Mode:2

and you need pass material document number and Material Doc year after this you can see your documents:

Select your document and press run button, but make sure you have a breakpoint in the initialization code of smartform previously