cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging Smart form-Shipemnt-Driver program

Former Member
0 Kudos

Hai,

I have created a smart form & output type configuration is done for shiptment.

scenario 1:

I set a break point in driver program.When I go to VT02n & entered the shipment number & follew the below steps in the VT02n scree.

1.select Shipment->output->screen

enter the ouput type in the displayed popup.

now the control is going to the code where I set the bbreak point.This is fine.

Scenario 2:

I set a break point in driver program.When I go to VT02n & entered the shipment number.

Hit enter.got the edit page screen.

now GOTO->OUTPUT

here I selected the relevant output & followed the procedure to repeat the output again.

in this case the program not stopped at the place where I set the break point.

Can any one have any idea this?Why is it happening?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhaskar,

If you want to debug your smartform then do as follows;

How to debug smartform in display mode for a particular node.

Steps to debug a particular node:

1. Execute the required smartform and take the function module name from there,do not enter into that function module.

2. in SE38 search for programs by the function module name,

for eg., if the func module name is /BCDWB/SF00000024 then search parameter for f4 would be

/BCDWB/SF00000024, this would give u 4 to 5 prgs in the search list,

these are the include files which it create for the same smartform .

out of this open the prg with the name /BCDWB/LSF00000024F01 in SE38.

3./BCDWB/LSF00000024F01 - this include file actualy containes the code that we type inside smartforms.

every node or the windows that is added to the smartform is coded in FORM...ENDFORM ,

inside this include file.

4. FORM look like this .

FORM %C01.

  • NODE CODE5 - this is the name of the node in smartform

for the prg line node 'code5',name of the node, coding is inside this form.

so u can easily put a break point here at this point .

ENDFORM.

like this for every node the FORM is created , u can search for required node and but a break point.

Hope this information will be helpful to all.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bhaskar,

Place the break-point at the right place in the driver program where there are successful validations are happening. Hope in your case, the statement where you set the break-point is not get executed due to sy-subrc = 4 or ( not eq = 0).

Check it out and let me update still if u face such problem.

Thanks in advance.

Regards,

Nagesh.

Former Member
0 Kudos

Hi Bhaskar M,

Could be that your break point is getting deleted after runtime. I mean, after runtime of tcode.

Try:

At second attempt, firstly activate the print program and then set break point before executin VT02n.

Blacky.