cancel
Showing results for 
Search instead for 
Did you mean: 

Check profit margin

Former Member
0 Kudos

Hi All,

There is one routine formula 5 - Cost dialogue

This formula is to check the defined profit margin percentage in field MINDEST_PROZ

But where is this field and where I can define profit margin percentage so system can give me massage at sales order pricing

Kapil

Accepted Solutions (0)

Answers (2)

Answers (2)

gomatheeswaran_palaniappa
Active Contributor
0 Kudos

Hi Kapil,

Actually the value of the field is already defined inside the routine 5. It is '00.000'


form frm_kondi_wert_005.
  data: mindest_proz(5) type p value '00.000',
        proz_satz(8) type p.

  if  komp-netwr ne 0.
    proz_satz = ( komp-netwr - xkwert ) * 100000 / komp-netwr.
  endif.
  proz_satz = proz_satz - mindest_proz.
  if komp-kposn ne 0 and komk-vbtyp ca 'ABCE'
                     and komp-prsfd = 'X'
                     and sy-cprog = 'SAPMV45A'
                     and proz_satz < 0.
    xkomv-fxmsg = '237'.
    komp-fxmsg = '237'.
  endif.
  if komp-kposn ne 0 and preisfindungsart ca 'ABCD'
                     and komk-vbtyp ca 'ABCE'
                     and komp-prsfd = 'X'
                     and sy-cprog = 'SAPMV45A'
                     and proz_satz < 0.
    message i237 with komp-kposn.
  endif.
endform.

Regards,

P Gomatheeswaran

Lakshmipathi
Active Contributor
0 Kudos

To arrive at a profit margin, you need to have a step number without any condition type and assign the Alternative Calculation Type 11 against this step in your Pricing Procedure.

thanks

G. Lakshmipathi