‎2005 Dec 14 11:57 AM
hi all
plz help its very urgent...
i am working on sapscript and i need a small help..
i have declared one variable like :: w_kbmeng like vbdpa-kbmeng.
and then moving the value of vbdpa-kbmeng to w_kbmeng like this::
w_kbmeng = vbdpa-kbmen * 6.
but when i am writing the same in sap script like &w_kbmeng& its not writing the value plz help on this.,...
LOOP AT tvbdpa.
vbdpa = tvbdpa.
tvbdpa-kwmeng = tvbdpa-kbmeng.
**i have make this change***
w_kbmeng = vbdpa-kbmeng * 6.
**plz help on this****
IF vbdpa-dragr EQ space. "Print rejected item?
IF vbdpa-posnr_neu NE space. "Item
PERFORM get_item_characteristics.
PERFORM get_item_billing_schedules.
PERFORM get_item_prices.
PERFORM get_item_addis.
komp-kzwi4 = komp-netwr + komp-mwsbp.
IF vbdpa-kwmeng <> 0.
gv_gprice = komp-kzwi4 / vbdpa-kwmeng.
gv_gprice_nett = komp-netpr.
ELSE.
gv_gprice = 0.
ENDIF.
IF vbdpa-kwmeng = vbdpa-kbmeng.
gv_gross = komp-kzwi4.
gv_nett = komp-netwr.
ELSE.
if vbdpa-kwmeng <> 0.
gv_gross = komp-kzwi4 / vbdpa-kwmeng * vbdpa-kbmeng.
else.
gv_gross = 0.
endif.
gv_nett = gv_gprice_nett * vbdpa-kbmeng.
ENDIF.
s_exc = s_exc + ( gv_gross ).
s_nett = s_nett + ( gv_nett ).
s_menge = s_menge + vbdpa-kbmeng.
ENDIF.
ENDIF.
ENDLOOP.
‎2005 Dec 14 12:03 PM
Hi parul,
In debug , are you able to see the value in w_kbmeng?
If yes, then, it might be the problem of alignment..check it out.. generally amounts/quantities are right justified..unless specified
Regards,
Raj
‎2005 Dec 14 12:05 PM
Hi parul,
In debug , are you able to see the value in w_kbmeng?
If yes, then, it might be the problem of alignment..check it out.. generally amounts/quantities are right justified..unless specified
Regards,
Raj