Find table of Invoice History
2008-12-17 14:21
99 查看
if (window.name != "content")
document.write("
");
Q:
Does anyone know of a table holding logistics invoice documents other than the BSEG? I need to extract all invoices against purchase orders and am trying to find the most efficient way. Any help would be greatly appreciated.
A:
Start by selecting from EKBE where EBELN = your PO and EBELP = your PO item (if you have it). This will give you the PO history that you see in ME23N.
The field EKBE-VGABE identifies the type of document. I think you want to look for a '1' in this field for a goods receipt and a '2' for invoice receipts. Verify this by browsing EKBE using SE1/SE16 at the same time you are looking at a PO in ME23N. If all you are concerned with are the vendor postings then you can limit yourself to the invoice receipts. If you need to retrieve the expense side of the G/L coding then you need the goods receipts as well.
For each record that you retrieve from EKBE:
concatenate EKBE-BELNR and EKBE-GJAHR
if EKBE-VGABE = '1'
select from BKPF where AWTYP = 'MKPF' and AWKEY = (EKBE-BELNR and
EKBE-GJAHR)
if EKBE-VGABE = '2'
select from BKPF where AWTYP = 'RMRP' and AWKEY = (EKBE-BELNR and
EKBE-GJAHR)
I'm not sure if this will work for parked documents but my guess is 'yes it will'.
document.write("
Click here to show toolbars of the Web Online Help System: show toolbars |
Find table of Invoice History
Posted By Ralph Klassen On Monday, January 19, 2004 at 11:03 AM from IT-Toolbox http://sap.ittoolbox.comQ:
Does anyone know of a table holding logistics invoice documents other than the BSEG? I need to extract all invoices against purchase orders and am trying to find the most efficient way. Any help would be greatly appreciated.
A:
Start by selecting from EKBE where EBELN = your PO and EBELP = your PO item (if you have it). This will give you the PO history that you see in ME23N.
The field EKBE-VGABE identifies the type of document. I think you want to look for a '1' in this field for a goods receipt and a '2' for invoice receipts. Verify this by browsing EKBE using SE1/SE16 at the same time you are looking at a PO in ME23N. If all you are concerned with are the vendor postings then you can limit yourself to the invoice receipts. If you need to retrieve the expense side of the G/L coding then you need the goods receipts as well.
For each record that you retrieve from EKBE:
concatenate EKBE-BELNR and EKBE-GJAHR
if EKBE-VGABE = '1'
select from BKPF where AWTYP = 'MKPF' and AWKEY = (EKBE-BELNR and
EKBE-GJAHR)
if EKBE-VGABE = '2'
select from BKPF where AWTYP = 'RMRP' and AWKEY = (EKBE-BELNR and
EKBE-GJAHR)
I'm not sure if this will work for parked documents but my guess is 'yes it will'.
相关文章推荐
- How-to find the SQL that using lots of temp tablespace in Oracle
- 96.Examine the structure of the INVOICE table.
- Some indexes or index [sub]partitions of table SYS.WRH$_ACTIVE_SESSION_HISTORY have been marked unus
- 关于vs2013 安装后出现"Cannot find one of more components. Please reinstall the application"处理方法
- apache openoffice Creating a table of contents
- POJ2942 Knights of the Round Table[点双连通分量|二分图染色|补图]
- PL/SQL 记录集合IS TABLE OF的使用
- poj Knights of the Round Table 点双连通分量
- Could not find the required version of the Java(TM)2 Runtime Environment in '(null)' 解决办法
- [20130828]A Short History of Nearly Everything[serial]
- 解决rpmdb: Lock table is out of available locker entries问题。
- qmlscene: could not find a Qt installation of ''
- aircrack install Cannot find development files for any supported version of libnl. install either li
- a case of table cell cover other cell
- javaweb开发常见错误Cannot find any information on property 'XXX' in a bean of type 'XXX'
- Unable to find Definition of MD5_Init, MD5_Update and MD5_Final!
- Spatial index is slow when trying to find all the points within a range of a geocode.
- 解决:Reading table information for completion of table and column names
- .Net Framework Initialization Error – Unable to find a version of the runtime to run this applicatio
- A Brief History of CNNs in Image Segmentation: From R-CNN to Mask R-CNN