‎2012 Apr 19 4:05 PM
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
‎2012 Apr 19 4:13 PM
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
‎2012 Apr 19 4:12 PM
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
‎2012 Apr 19 4:13 PM
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