Skip to Content
avatar image
Former Member

xkomv-kbetr value is getting cleared after changing the value using routine

Hi Experts

I have a requirement to change the pricing condition value:For this i created a new routine and assigned this routine to Pricing Procedure in v/08.My newly created routine is getting triggered and new pricing value is getting in routine,but it is getting cleared in the standard program and the new value is not getting in my pricing condition.

I'm i missing any step in this process or using routines is not the right approach.Could any one can help me in getting out from this issue?

Regards,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 27, 2011 at 03:37 AM

    Hi Krishna,

    Can you post the code.

    Regards,

    Madhu.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2011 at 11:23 AM

    Looks like the field is getting cleared in the standard program. Try to debug after the new value is assigned in your routine. Look for refresh statements clearing the internal table or clear statements.

    Also, check where is the new value assigned in your standard program

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 27, 2011 at 01:17 PM

    I'm trying to change xkomv-kbetr in my routine( calls from below perform statement).When my routine ends and when it comes back to standard program xkomv values are replacing by rettkomv,where my new value is overriding by old value.Here iam placing the code in standard program,from this perform statement my newly created routine is calling where it gets changed to new value and the old values are overriding using the statement xkomv = rettkomv

    PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.

    xkomv = rettkomv.

    Regards

    Krishna

    Edited by: meetkrishna on Mar 27, 2011 3:18 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Srinivas,

      yeah, logic can be a bit vague to isolate the correct line, but have tested in DV and QA and seems to be working okay.

      I used, in the code:

      check xkomv-ksteu = 'C'.

      if this was true:

      modify tkomv transporting kbetr where

      kschl = 'ZFR1' and

      KSTEU = 'C'.

      ZFR1 being my condition type.

      depending on your config, you might be able to use something similar.

      Hopefully this might help you.

      David.