10-22-2015 2:35 PM
Hi,
I created new condotion type ZMHX and formulas / condotion base value number 977
but i creating condotion XKWERT value not change. Why can it be ?
Condotion type procedure;
Abap requirements 977 code;
FORM KOBED_977.
sy-subrc = 4.
if komp-kposn ne 0.
check: komp-prsfd = 'X'.
check: komp-kznep = space.
if not komt1-bergl is initial.
check: komt1-bergl = komp-bergl.
endif.
endif.
check: komk-vsart = '01'.
sy-subrc = 0.
ENDFORM.
FORM KOBEV_977.
sy-subrc = 0.
ENDFORM.
formulas / condotion base value code;
FORM FRM_KOND_BASIS_977.
DATA : zg_xkomv LIKE xkomv OCCURS 1 WITH HEADER LINE,
palet_toplam LIKE komv-kbetr.
palet_toplam = komk-zzpalet + komk-zzpalet2.
xkwert = palet_toplam * 1000.
ENDFORM.
11-11-2015 1:20 PM
11-11-2015 1:36 PM
Did you analyze it using the "ANALYZE" button available in change mode in the condition tab if your requirement routine is stopping it ?
Also is it is Order level/Delivery level? or in Invoice level? Check for the "Pricing type" in copy control Item category configuration .
R
11-12-2015 7:14 AM
Hi Rudra,
Is not stopping routine. kwert value changed 30.00 (Can u look Debug Screen) but not change ZMHX value.
11-12-2015 10:09 AM
Hi Mustafa,
Ok what about your Item Category copy control setting for "Pricing type". Please note if the Pricing type is can be set(Copy from Order or PO ) as such that your routine will have no effect.
R
11-12-2015 11:37 AM
Hi Rudra,
Are you talking about the 'Calculate Type' in condition types setting, you can see the table below.
Is that the correct part or Is there another settings you talk about?
11-12-2015 3:06 PM
Hi Mustafa,
Sorry, my bad, I thought the routine is for Billing Doc but it is for Shipment. We won't be having any copy control setting for shipment.
So what I can think of since you are using "Fixed Value" ( B ) as the calculation type the Base Value setting might not be having any effect. Try putting the same routine in Calc Type in Pricing Procedure setting instead of BasType setting.( As in the screenshot )
If still does not work change the calculation type of the condition type to "A" ( Percentage ) and try.
R
11-21-2015 7:47 AM
My Problem is solved. Just abap routine some changed komk-zzpalet value convert to NUM. xkwert changed.
CALL FUNCTION 'MOVE_CHAR_TO_NUM'
EXPORTING
CHR = komk-zzpalet
IMPORTING
NUM = palet1.
ENDIF.
11-12-2015 12:36 PM
Hi,
i have a simple question.
Is the Rormroutin set to activ in VOFM?
Regards, Dieter
11-12-2015 12:44 PM