on 05-08-2010 6:32 PM
Trying to write a SQ01 query to find WBS with billing element but no sales order assigned. Can anyone help?
VBRP is the billing item table, OP is asking about the sales documents.
Queries for something that does not exist might be tricky. Use the tables/fields mentioned above (not VBRP), but make sure to use LEFT JOIN to VBAP. In this case you'll get blank/initial values in the query when no sales record exist. If you do a regular INNER JOIN then you just won't see the WBS that don't have VBAK/VBAP records.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just check in VBRP - for Field 'PS_PSP_PNR'
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Fetch from PRPS-FAKKZ, table, all WBS elements with billing element, loop all of these entries in VBAK-PS_PSP_PNR for assingment at header level or VBAP-PS_PSP_PNR to check at item level if any sales order eixts
filter those with no sales order
hope this helps
Thanks
Akash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.