Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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  .

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question