cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing: Overwrite condition value via custom routine

Former Member
0 Kudos

Hi,

We've implemented the following code in a custom pricing routine:

WHEN 'ZPIC'.                                            
      IF komk-vkorg EQ 'HU01'.
        lt_komv[] = xkomv[].
        CLEAR lv_mwsi.
        LOOP AT lt_komv WHERE kschl = 'MWSI'.
          IF lt_komv-kbetr NE 0.
            lv_mwsi = 'X'.
            EXIT.
          ENDIF.
        ENDLOOP.
        IF lv_mwsi = 'X'.
          CLEAR xkwert.
        ENDIF.
      ENDIF.

We are trying to achieve to update the condition value in to value 0 via the 'CLEAR xkwert' statement however clearing or changing xkwert doesn't have any effect as the condition record maintained keeps being taken in to account. How would we ensure that we overwrite the condition value, is this possible via a routine or would we require a user-exit?

Kind regards,

Tim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Modify XKOMV table of condition value field based on the conditions.

You can try this.

Regards,

Shamma