Skip to Content
avatar image
Former Member

A way to automatic update SO pricing during parner role change

Hi All, Is there a way to trigger automatic pricing upadate during chanage of partner role.

The standard exits  are only on vbap change or vbkd change  but not on modification of partners.

USEREXIT_NEW_PRICING_VBAP ,

USEREXIT_NEW_PRICING_VBKD  .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 06, 2015 at 09:56 AM

    Found work around by myself in MV45AFZZ.

    USEREXIT_FIELD_MODIFICATION

      STATICS lss_vbpa TYPE vbpavb.
       DATA ls_xvbpa TYPE vbpavb.
       IF sy-dynnr = '4701'.
         IF screen-name = 'KUAGV-KUNNR'.
           CLEAR ls_xvbpa.
           READ TABLE xvbpa INTO ls_xvbpa WITH KEY parvw = 'SP'.
           IF ls_xvbpa IS NOT INITIAL.
             IF ls_xvbpa <> lss_vbpa.
               PERFORM preisfindung_gesamt USING 'C'.
               lss_vbpa = ls_xvbpa.
             ENDIF.
           ELSE.
             IF lss_vbpa IS NOT INITIAL.
               PERFORM preisfindung_gesamt USING 'C'.
               CLEAR lss_vbpa.
             ENDIF.
           ENDIF.
         ENDIF.

       ENDIF.:

    Add comment
    10|10000 characters needed characters exceeded