Skip to Content

Vofm abap routine about

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.

rsm1.PNG (32.5 kB)
rsm2.PNG (25.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Nov 11, 2015 at 01:20 PM

    how u got any idea ?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Nov 12, 2015 at 07:14 AM

    Hi Rudra,

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


    1.PNG (28.8 kB)
    2.PNG (38.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Nov 12, 2015 at 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?


    1.PNG (33.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • avatar image
    Former Member
    Nov 12, 2015 at 12:36 PM

    Hi,

    i have a simple question.

    Is the Rormroutin set to activ in VOFM?

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 12, 2015 at 12:44 PM

    Hi,

    Yes, i actived this routine in VOFM.

    Add comment
    10|10000 characters needed characters exceeded