Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

SAP EWM Help Latest Questions

  • 0
  • 0
DPM125
Beginner

User Exit — Check Quantity before creating and modifying the sales order

  1. User enters Sales Order → goes to item screen.

  2. User enters Material + Quantity.

  3. SAP validates item → calls USEREXIT_CHECK_VBAP.

    • Your enhancement runs.

    • If xvbap-kwmeng < 10, show error/warning.

    • If OK → continue.

  4. User clicks Save.

  5. SAP calls USEREXIT_SAVE_DOCUMENT_PREPARE → do final checks.

  6. SAP calls USEREXIT_SAVE_DOCUMENT → write any custom data.

  7. Standard commit → sales order saved in tables (VBAK, VBAP, VBEP, etc.).

 

FORM userexit_move_field_to_vbak.

 

“””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””$”$\SE:(4) Form USEREXIT_MOVE_FIELD_TO_VBAK, End                                                                                                             A
*$*$-Start: (4)———————————————————————————$*$*
ENHANCEMENT 1  ZAUG_IMP_EN.    “active version
*
  if syuname =’77USER67′.
  MESSAGE ‘Enhancement trigger’ type ‘I’.
  endif.

ENDENHANCEMENT.
ENHANCEMENT 1  ZSEP_IMP_ENH.    “active version

ENDENHANCEMENT.
*$*$-End:   (4)———————————————————————————$*$*
ENDFORM.

 

once you implement this code logic in the explicit enhancement and try to do any create and modify operation you will get a message.

Related Questions

Leave an answer

Leave an answer