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 Control - KOMPBV3

Former Member
0 Likes
795

Hello

I created a new routine where I'm doing some validations, if they are meet then the message output will be available, the problem is that it is not working when the invoice is being created (VF01) because one validations is taking data from the table VBRP and this one is empty when the routine try to read it, so after some investigations I found that there is a structure that might help me KOMPBV3 but when I try to read it, is happening exactly the same problem, it is empty!!.

I need just to fields in order to do the validation which is Part number (MATNR) and Profit center (PRCTR), from the first item, I don't need all of them.

Do you have any idea why this structure is not filled up? do you know another way to get this fields?

Thanks in advance.

Hiram

1 REPLY 1
Read only

Former Member
0 Likes
482

Hello Hiram,

We faced the same issue.

Despite KOMPBV3 is retated to item, standard Function module KOMPBV3_FILL only rely on  VBRK & VBRL.

For your requirement, you may also complete KOMPBV3 with the invoice item data VBRP. You should use USEREXIT_KOMPBV3_FILL.


Regards.

Théophane