on 06-24-2010 12:05 PM
It is possible condition a field (in my case vbap-kostl) to distribution channel in a incompleteness procedure?
I think it isn't possible. If it not possible there is an alternative way to do this ( control or set the document in incomplete state)?
I explain better, i have this requirement:
If distribution channel have value "A" in sales document, i need to insert the fileld CDC (VBAP--KOSTL) into incompleteness procedure
If distribution channel have value "B" in sales documente, i need to insert the fileld WBS Element (VBAP-PS_PSP_PNR) into incompleteness procedure.
If not possible can i solution the requirement with a userexit? If yes, whict it is?
Thanks.
Edited by: francesco aiello on Jun 24, 2010 1:11 PM
Hi
You can achieve this through user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ in program SAPMV45A
In this user exit you can make the logic
IF WETVEG = "Required Distribution Channel" THEN allow to insert "XXXXXX"
Else Error "Write here error message"
Same logic can be use for another one
Regards
Shambhu Sarkar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.