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

Pricing routine debugging problem

Former Member
0 Likes
1,843

I am debugging on a pricing program, when the control comes to a point where the program calls a subroutine in a different program, that program name is dynamically generated. For exaple the below program RV13A721. In that programs form there are only 2 lines of code as given below, there wrong values are being filled in the work area <A721> . I need to know from where the system got those values,

Program: RV13A721

FORM FILL_COMM_AREA_FROM_VADAT USING FFV_KOMG STRUCTURE KOMG

FFV_VADAT LIKE A000-VADAT.

.

<A721>+66(2) = FFV_VADAT.

MOVE-CORRESPONDING A721 TO FFV_KOMG.

ENDFORM.

I am unable to get to the point where work area <A721> is getting filled up.

Can some one please help?

3 REPLIES 3
Read only

Former Member
0 Likes
1,088

This may be due to other reasons like a requirement being not be met. Do you see the related condition type being proposed on the pricing screen. Did you verify that condition record for that condition is found when you looked at pricing analysis?

I debugged pricing routines and break points do work in them, even if they are dynamically called. So this should be some other reason like the routine itself is being skipped because of a pricing requirement not being met or some other clause failing.

Read only

0 Likes
1,088

Hi Vishnu,

Thanks fopr replying.

Yes, i have checked, our routine is mentioned in the pricing procdure screen.

As i have mentioned earlier, the control is getting into the routine. But i need to get to the point where the work area <722> is being filled. Is there a way in the debugging to stop at the point where this is getting filled.

Read only

0 Likes
1,088

Hi,

In the debugger, create a watchpoint on this work area and execute. This will stop at the point where this work arae is first used.