Application Development 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: 

condition value routine not populating pricing condition

Former Member
0 Kudos

Hi all,

I am creating a condition value routine in VOFM to try and populate a pricing condition. I have the following code:

    
read table gt_scale into gs_scale with key kschl = 'ZR01'.

gv_qty2 = gs_scale-disc_qty.
xkwert = ( gv_qty2 * 150 ) div 100.

When I debug, xkwert has a value appear - lets say xkwert = 10000. However at the pricing condition, my condition type doesn't get populated with this value. Nothing appears.

The problem is with gv_qty2. If I set gv_qty2 = '500' instead of gv_qty2 = gs_scale-disc_qty, my condition type will be populated with the calculated value.

I need to specify the structure gs_scale-disc_qty though. What is the problem?

Thanks,

Edited by: pistols123 on Jun 16, 2011 12:16 AM

1 REPLY 1

Former Member
0 Kudos

solved. data was not being correctly selected into gt_scale