Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

condition value routine not populating pricing condition

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?


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

Former Member
Not what you were looking for? View more on this topic or Ask a question