on 10-13-2014 2:33 PM
First of all SQVI is user-specific, it can be used for your own ad-hoc reports only. To create the queries for others we need to use SQ01/SQ02. There is an option to convert SQVI, but it's just easier to get this done right from the beginning.
From what I see, if you want to link order/delivery/invoice information in one query then, unless all of those documents are expected to be present, you won't be able to easily do it in a query. For the delivery related billing you'd have to do LEFT JOIN to the delivery (because it may or may not exist) and also LEFT JOIN to get the invoice. At this point you'll likely run into an error that two consequent LEFT JOINs are not allowed. Add to that some fun with Ship-to that could be either at the line item or header level and it gets even more complicated.
Since we can add some ABAP code to the query, this is not impossible, but I'd guess it's not your area of expertise, so I'd ask for some assistance at this point.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use SQVI for your report but start with the billing tables first. Use VBRK and VBRP. In VBRP, the fields VGBEL would be for Delivery if applicable and AUBEL for Sales Order. Then you can pull the respective data as required after linking those fields to LIKP/LIPS and VBAK/VBAP. Use Left Outer Joins for all tables.
But keep the points mentioned out by Jelena in mind. See if those apply to you and then take a call on whether Z would better satisfy your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks to all of your replies, sorry for late reply, as suggested will update the resutls.
Lakshmipathi sir: i had creted one SQVI before posting but it said no data sellected when exuted the report, reason could be the table sellection was could be wrong, took VBAK,ABAP,VBUP,LIKP,and VBRK, i think i need to sellect item data table of delivery and billing LIPS and VBRP.
Let me try once again and will update the resutls.
thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get it with SQVI, but be specific on your input selection to avoid duplicate lines in output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try SQVI with VAV database
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do we need to develop a new Z report or can we get this throuh SQVI?
Had you tried on your own before posting here, you would have come to know whether it will work or not. The most important fact by doing so is you will learn how SQVI would work. Coming to your qery, I presume, you intend to say, the report to be fetched from billing in which case, execute SQVI and table join the required fields. Update here still if you face any issue.
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
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.