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: 

Vofm abap routine about

former_member283640
Participant
0 Kudos

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.

9 REPLIES 9

former_member283640
Participant
0 Kudos

how u got any idea ?

0 Kudos

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

former_member283640
Participant
0 Kudos

Hi Rudra,

Is not stopping routine. kwert value changed 30.00 (Can u look Debug Screen) but not change ZMHX value.

0 Kudos

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

former_member283640
Participant
0 Kudos

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?

0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

Hi,

i have a simple question.

Is the Rormroutin set to activ in VOFM?

Regards, Dieter

former_member283640
Participant
0 Kudos

Hi,

Yes, i actived this routine in VOFM.