on 04-03-2015 1:53 PM
Hi Experts,
How to Restrict the sales order when Inquiry is blocked.Is there any badi or enhancement spots for that ?
if there is any please let me know ....
If that inquiry is blocked then it will not allow for creating of sales order....instead of that it should display an error message with
'This is blocked at Inquiry Level....'
Thanks ,
vamsi.
HI,
USEREXIT_MOVE_FIELD_TO_VBAK
or
User_Exit_Save_Document
IN USEREXIT_MOVE_FIELD_TO_VBAK
SELECT VBELN LIFSK FROM VBAK WHERE VBELN = vbak-vgbel
and VBTYP = 'A' . "A for inquiry
HERE LIFSK IS Delivery block (document header).
IF U GET LIFSK IS BLOCK
IF sy-subrc = 0.
MESSAGE 'Reference Document IS Blocked...' Display LIKE 'E'.
leave to TRANSACTION sy-TCODE.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try with MV45AFZZ routine USEREXIT_MOVE_FIELD_TO_VBAK.
check VBAK-VGTYP = 'A'.
get the Inquiry no VBAK-VGBEL.
check CVBAK-VBELN = VBAK-VGBEL and CVBAK-FAKSK is not initial.
CVBAK-FAKSK will have the billing blocks for your inquiry.
if you need to check other block find the respective field and give appropriate message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Standard process is Inquiry > Quotation > Sale Order and this being the case, I am not sure, why you were trying to block sale order from Inquiry; instead of quotation ? Nevertheless, you have to try with MV45AFZZ
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sir ,
Thanks for quick reply ..
As per the client requirement we are not using Quotation ...instead of that directly Inquiry--->Sale Order....
Moreover ,
We are using strategy 89 . whenever sale order is created automatically planned order will be generated .i need to Restrict Planned order when customer credit limit exceeds in sale order..
please give me the solution for this kind of scenario....
Thanks,
vamsi.
User | Count |
---|---|
109 | |
15 | |
10 | |
5 | |
4 | |
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.