Skip to Content

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

user exit doubt

Hi experts,

Iam trying to write userexit using MV45AFZB.

If AUART eq ZR01 & ZR02 and price limit(NETWR) is greater than 500,I want to raise the messgae.

data: v_total like vbap-netwr.

check xvbak-auart = 'ZR01' or
      xvbak-auart = 'ZR02'.

loop at xvbap where abgru = 'ZC'.
     v_total = v_total + xvbap-netwr.

if v_total gt 500.
      message e000(zmsg) with
         'FOC sales order limit exceeded!'.

I have written this code in FORM USEREXIT_SAVE_DOCUMENT_PREPARE(MV45AFZB) subroutine.

It is not triggering when Amount is more that 500.What might be the reason? Where i need to write this program?

MV45AFZB or MV45AFZZ?And also let me know the subroutine.

When i press enter, i want display message.

Reward guaranteed



Former Member
Not what you were looking for? View more on this topic or Ask a question