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

Invoice reference type

Former Member
0 Likes
574

Dear all,

I need to determine the reference type of an invoice (customer order reference, delivery note number or original invoice document). I have the VBRK (and VBDKR) available. Does anyone have an idea regarding this situation?

Thx in advance.

Best regards

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
452

Take a look at tables VBRP, fields like vgbel or aubel, (VBFA is only useful the other way)  until you get a correct VBTYP field (continue to search previous document til it is no longer an invoice or invoice request) (Hint: Read also Note 185530 - Performance: Customer developments in SD or thread Link Between VBRK and VBFA.)

Regards,

Raymond

2 REPLIES 2
Read only

Former Member
0 Likes
452

Hi Alexander ,

I assume you are talking about the reference document type , if that is the case then may be you can have a look at the field VBRK-VBTYP.

Regards

Arun

Read only

RaymondGiuseppi
Active Contributor
0 Likes
453

Take a look at tables VBRP, fields like vgbel or aubel, (VBFA is only useful the other way)  until you get a correct VBTYP field (continue to search previous document til it is no longer an invoice or invoice request) (Hint: Read also Note 185530 - Performance: Customer developments in SD or thread Link Between VBRK and VBFA.)

Regards,

Raymond