Quantcast
Channel: SCN : All Content - SAP ERP - Logistics Materials Management (SAP MM)
Viewing all articles
Browse latest Browse all 6446

Finding blocked invoices in query

$
0
0

So I'm trying to build a query report to find blocked invoices that lists the invoice totals and have a question about if there is a better way to get this data.

So the RBKP table is the header record, but the payment blocked field ZLSPR is only filled in if the block is manually selected.

 

The RSEG invoice detail table has individual fields for each type of payment block.

SPGRP

SPGRM

SPGRT

SPGRG

SPGRV

SPGRQ

SPGRS

SPGRC

SPGREXT

 

This could have several lines per invoice record with a mix of lines that have blocked statuses and ones that don't.

 

So it seems to me that I have to do a sub-query to pull these together, (Forgive me, I'm new to SAP), In SQL I'd do this like

"SELECT * FROM RBKP where BELNR in (select BELNR from RSEG where SPGRP is not null or SPGRM is not null or ...(etc))"

 

Are there any other tables/structures etc to use to pull this together easier? I need to build a query report that shows blocked invoices with their total invoice values listed.


Viewing all articles
Browse latest Browse all 6446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>