Skip to Content
Former Member
May 04, 2007 at 11:35 AM

New items creation before save



I have a problem that is getting me in trouble, it seems I am unable of finding a solution.

I am using a user-exit (USEREXIT_SAVE_DOCUMENT_PREPARE, include MV45AFZZ). I have to use this exit to create new items in a sales document automatically and before the document is saved. It seemed very easy but I can't do it. I have searched a BAPI i could use to create the new items but I can't make it work and righ now I am trying to create the new items mysel by introducing them to the XVBAP table.

The problem with tat is that a popup window appears with an error, the sales document is incomple. The problem is that the conditions have not been espeified.

I try to put the condions in the XKOMV table but then I get an actualization error.

Maybe you can help me find and answer?

Thanks in advance,

Vicente Gómez.

P.D.: This thread is a variant of another thread of mine which doesn't seems to have a solution : (.