on 12-23-2008 10:19 AM
23.12.2008
Hi Gurus,
We create a Sales Order (eg. ZXXX) through a Z-development. My requirement is that this particular document type should not be created using t.code VA01. Need a validation for VA01 in the first screen itself ( where the document type, Sales Org, Dist Channel and Divn is entered) to restrict creation of document type ZXXX thru t.code VA01
Regards
Hi Sanjay,
I've implemented a couple of times this using the following technique.
Program MV45AFZZ -> FORM userexit_field_modification -> include zv45afzz02
When you go to VA01 and insert the document type and press enter, the system will stop in this userexit.
Here you just have to do a statement like this.
IF SY-TCODE = 'VA01' AND VBAK-AUART ='XXXX' <- the document type you want to block.
MESSAGE EXXX(XXX) WITH VBAK-AUART. <- Create a new error message (SE91) ''Sales document XXXX cannot be created via this transaction.''
ENDIF.
Please let me know if this helped you,
Regards,
Alcides Fialho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sanjay,
If your requirement is - To restrict Creation of Sales Document Type "ZXXX" with Transaction Code: VA01
which, I have understood from your query:
My requirement is that this particular document type should not be created using t.code VA01.
...the same could be achieved by changing/ modifying the Transaction Group in to Sales Document type.
Path: T. Code: VOV8 --> Key-in Sales Doc. Type --> Go in to Detail-page --> Tab: Transaction Flow --> Field: Transaction Group
If, we maintain entry as "0", the sale doc.will be created with VA01
If, we maintain entry as "1", the sales doc. will be created with VA11.
Note: If, you change Transaction Group to "1" for Standard Sales Doc. Type - OR; it will be created with VA11 and not with VA01.
So, change the Transaction Group from "0" to "as reqd." for Sales Document Type "ZXXX" in VOV8
Best Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sanjay,
As per satdard you can have control transaction wise by giving authorisation but I don't think you can control on document type in the specific transaction.
Try with your ABAP consultant
I hope this will help you,
Regards,
Murali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Do not assign sales document type to specific sales area. t.code OVAZ.
We maintain sales document category in sales document type. based on that system checks whether this document can be used in VA01 or not.
A - Inquiry VA11
B - Quotation VA21
C- order VA01
System will allow only document category C in VA01.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
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.