on 04-15-2010 8:22 PM
Hi,
We are using the exit MV50AFZ1 form userexit_save_document_prepare for deliveries and validate the Sale Order doesn't have any position with reason for rejection when Post Goods Issues bottom has been pressed.
The problem is when the delivery is saved or deleted the form userexit_save_document_prepare is called also.
Is there any way to tell the difference between pressing Post Goods Issues, save or delete bottom? Or when the save/delete bottom has been pressed doesn't call userexit_save_document_prepare?
Thanks
1.
T180-TRTYP means the type of transaction code.
If you run VL02n, it will alwasy be 'V' (change), no matter whether you change or delete the delivery.
So, you cannot distinguish deletion and change via this field.
2.
To distinguish changing and deletion, you can check XLIKP-UPDKZ or XLIPS-UPDKZ.
If it's 'D', system is deleting.
😧 delete
U: update
I: insert.
3.
To tell whether system is posting goods movement, maybe you can check the goods movement status in XVBUK / XVBUP.
(XVBUK-WBSTK / XVBUP-WBSTA).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Oscar,
check T180-TRTYP and SY-UCOMM.
Best Regards, Dirk
Edited by: Dirk Freyaldenhoven on Apr 16, 2010 2:42 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.