cancel
Showing results for 
Search instead for 
Did you mean: 

log of incomplete document for sales document

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member266852
Active Contributor
0 Kudos

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

Answers (0)