‎2007 Jul 13 3:59 PM
Hello all,
I have a sales order header output condition. I need a requirement that will cause the output to fail if there are no line items in the sales order.
My problem is that the structure KOMPBV1 is not populated when the header requirement is called, only KOMKBV1 is populated.
Any suggestions on how I can code for this requirement?
Thanks in advance.
Maggie
‎2007 Jul 13 4:33 PM
Hi Maggie,
KOMPBV1 does not get filled if output for item is not triggerred or there is no output determination procedure for items.
Use this workaround :
Append a field in KOMKBV1 and fill this field in user-exit USEREXIT_KOMKBV1_FILL checking if line items are available or not. Then use this field to determine if the output should be processed or stopped. Hope this helps.
Regards
Prabhu
‎2007 Jul 13 4:33 PM
Hi Maggie,
KOMPBV1 does not get filled if output for item is not triggerred or there is no output determination procedure for items.
Use this workaround :
Append a field in KOMKBV1 and fill this field in user-exit USEREXIT_KOMKBV1_FILL checking if line items are available or not. Then use this field to determine if the output should be processed or stopped. Hope this helps.
Regards
Prabhu
‎2007 Jul 13 4:39 PM