Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Output Requirement

Former Member
0 Likes
1,183

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

1 ACCEPTED SOLUTION
Read only

Former Member
839

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

2 REPLIES 2
Read only

Former Member
840

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

Read only

Former Member
0 Likes
839

Thanks Prabhu. I will give it a shot.

Maggie