log of incomplete document for sales document
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?
Edited by: francesco aiello on Jun 24, 2010 1:11 PM
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