Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

A way to automatic update SO pricing during parner role change

Former Member
0 Kudos

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  .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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