Multiple query order
Hello, I have an oracle report with 3 queries/groups which are not linked. Is there a way to set a sequence in which the queries run? Say the first query created runs first, second next e.t.c?
Many Thanks
query reports runs as:
the most upper and left in the data model
in this order upper - left
you can test this thing
create a report with 2 queries
you can check the order running con trace tools - trace put a name of trace (better with path) and mark only sql checkbox
run the report
after run open again the trace tool and clear the name and then ok to close the file
open the file and you can see the sql order
then change the query 1 right and down of query 2 save the file
close report
open again report open the file and do the same anc check the file
i said close report because the builder have a cache of the running and if you change the queries in the data model you cannot see the difference
i tested reconnecting without closing the builder but the cache is local and the builder use it.
Similar Messages
-
Query to get invoice with multiple sales order
Hi
Our requirement is to customize the invoice report as per new requirement. For this customization we need to get the invoice which has multiple sales order with it. Please help to me get the invoice number from database which has multiple sales order with it.
Thanks and regards,
SundarSunder,
interface_line_attribute6 in ra_customer_trx_all is nothing but the sales order line id. And sales_order in ra_customer_trx_lines_all is the sales order number.
You can use the following 2 conditions to fetch your requirement.
sales_order = TO_CHAR (order_number)
interface_line_attribute6 = TO_CHAR (line_id)
Please let me know if you are still facing any issue.
Regards,
Jyoti -
Case statement in a multiple query
Hi everyone,
This is my first time to use case statement in a multiple query. I have tried to implement it but i got no luck.. Please see below
set define off
SELECT g.GROUP_NAME as Market
,t.NAME as "Template Name"
,t.TEMPLATE_ID as "Template ID"
,(SELECT created
FROM material
where template_id = t.template_id) as "Date Created"
*,(SELECT DESTINATION_FOLDER_ID,*
CASE DESTINATION_FOLDER_ID
WHEN NULL THEN 'Upload'
ELSE 'HQ'
END
from log_material_copy
where destination_material_id in (select material_id
from material
where template_id = t.template_id ))as "Origin"
,(select material_id
from log_material_copy
where destination_material_id in (select material_id
from material
where template_id = t.template_id)) as "HQ/Upload ID"
,(SELECT COUNT (mse.ID)
FROM MATERIAL_SEND_EVENT mse, material m, creative c
WHERE mse.MATERIAL_ID = m.MATERIAL_ID
AND mse.MATERIAL_TYPE_ID = m.MATERIAL_TYPE_ID
AND m.ASSET_ID = c.id
AND c.TEMPLATE_ID = t.TEMPLATE_ID) as Sent
,(SELECT COUNT (de.ID)
FROM download_event de, material m, creative c
WHERE de.MATERIAL_ID = m.MATERIAL_ID
AND de.MATERIAL_TYPE_ID = m.MATERIAL_TYPE_ID
AND m.ASSET_ID = c.id
AND c.TEMPLATE_ID = t.TEMPLATE_ID) as Download
,(SELECT 'https://main.test.com/bm/servlet/' || 'UArchiveServlet?action=materialInfo&materialId=' || DESTINATION_MATERIAL_ID || '&materialFolderId=' || DESTINATION_FOLDER_ID
from log_material_copy
where destination_material_id in (select material_id
from material
where template_id = t.template_id)) as "URL to template on MPC layer"
--, t.AVAILABLE_FOR_TRANSFER as "Available for transfer"
FROM template t, layout l, groups g
WHERE t.LAYOUT_ID = l.LAYOUT_ID
AND l.ORGANIZATION_ID = g.IP_GROUPID
AND g.IP_GROUPID in ( 1089, 903, 323, 30, 96, 80, 544, 1169, 584, 785, 827, 31, 10, 503, 1025 )
ORDER BY g.GROUP_NAME ASC;
The one in bold is my case statement.. Please let me know what is wrong with this.
Regards,
JasI think you're getting the idea, but:
You're still selecting 2 columns in the (scalar) subquery. Did you read the link I posted for you?
"a) scalar subqueries - *a single row, single column query that you use in place of a "column"*, it looks like a column or function."
You must move that query outside, join to template.
Something like:
NOT TESTED FOR OBVIOUS REASONS SO YOU'LL PROBABLY NEED TO TWEAK IT A BIT
select g.group_name as market,
t.name as "Template Name",
t.template_id as "Template ID",
m.created as "Date Created",
lmc.destination_folder_id,
case lmc.destination_folder_id
when null then 'Upload'
else 'HQ'
end as "Origin"
(select material_id
from log_material_copy
where destination_material_id in
(select material_id
from material
where template_id = t.template_id)) as "HQ/Upload ID"
(select count(mse.id)
from material_send_event mse, material m, creative c
where mse.material_id = m.material_id
and mse.material_type_id = m.material_type_id
and m.asset_id = c.id
and c.template_id = t.template_id) as sent
(select count(de.id)
from download_event de, material m, creative c
where de.material_id = m.material_id
and de.material_type_id = m.material_type_id
and m.asset_id = c.id
and c.template_id = t.template_id) as download
(select 'https://main.test.com/bm/servlet/' ||
'UArchiveServlet?action=materialInfo&materialId=' ||
destination_material_id || '&materialFolderId=' ||
destination_folder_id
from log_material_copy
where destination_material_id in
(select material_id
from material
where template_id = t.template_id)) as "URL to template on MPC layer"
--, t.AVAILABLE_FOR_TRANSFER as "Available for transfer"
from template t
, layout l
, groups group by
, MATERIAL M
, LOG_MATERIAL_COPY LMC
where t.layout_id = l.layout_id
and l.organization_id = g.ip_groupid
and M.TEMPLATE_ID = t.template_id
and LMC.destination_material_id in ( select material_id
from material
where template_id = t.template_id
and g.ip_groupid in (1089,
903,
323,
30,
96,
80,
544,
1169,
584,
785,
827,
31,
10,
503,
1025)
order by g.group_name asc; -
WIS 00015 error- Multiple Query Filters contain a prompt with same name
Hi
I am working BOXIR2 environment. I created two prompts at Universe level- one of Date field and one on agency name field.
syntax for the prompts is
customerInfo.RSRCE_NAME = @Prompt('Enter value(s) for AgencyName ','A' , , ,)
datetable.STARDATE =datetable.STARDATE.STARTDATE = @Prompt(' 'Enter value(s) for StartDate:','D' , , ,)
When I include even one of the prompts in the report I am getting an error WIS 00015 Multiple Query Filters contain a prompt with the same text, but the prompts use a different operand type.
If I try to change text of one of the prompts in Universe selection statement, then I see the prompt two times in the report.
Please let me know how to overcome this issue.Ok, I've simplified the case.
Here is the real case :
Object filter =
Based on object =
.[LEVEL01]
Object filter =
Based on object =
.[LEVEL01]
In WBI query result I take these objects :
.[LEVEL01]
.[LEVEL01]
.[4IUX93YJGXQEHGLX0T0GPNA9Y]
In query filters, my 2 filters with same text :
1.
I run the query.
Answer to question 'Single Year Period ?' = Period 06 2010
==> MDX error
A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT { .[4IUX93YJGXQEHGLX0T0GPNA9Y] } ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
SELECT { .[4IUX93YJGXQEHGLX0T0GPNA9Y] } ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
Thanks for your help.
G.OM. -
Multiple production orders for sales order line item
hello Guru's
In our case Requirements are created in 2 ways
Case 1:
1) Sales Orders are created at Plant level with schedule line category CP
2) Sales Orders are created at Depot level
In the above mentioned 2 cases the requirements are taken as inputs and the process is carried at plant level
Step 1: Automated MDO3.
Sales Orders are created if there is short fall of the Quantity at the Depot and Plant Sales Orders are raised against the plant for which the requirements are generated and MRP run is carried out at Single Item single level.
Step 2:
For the results of the step1 are then transferred and Production orders are created for the planned Orders.
The issues is whenever there is change in confirmed quantity or change in confirmed date the requirements are considered again as inputs and the multiple production orders are getting generated for the single requirement
Actually we dont want this to have multiple production orders
regardsHi,
Can you let us know the strategy group used for this material ? If i understood the query correctly, each time there is a change in the sales order (i.e. increase in qty), there is a triggering of new planned orders to meet that demand.
Regards,
Vivek -
BOM Explosion for Multiple Process Orders
Hi,
I hope someone can assist me with the following: Is there a report I can run or transaction I can do to have BOM explosion for multiple Process Orders? I would like to input process orders for a week and see the BOM details per PO.
ThanksDear Sukendar,
1.For this requirement you have to go for a Z report and you can give the Functional Spec's to prepare
this report to your ABAP consultant.Prepare the input format,logic of the program and the output format.
In the logic part you can make use of this Functional Modules's CSAP_MAT_BOM_READ or
CSEP_MAT_BOM_READ or CS_BOM_EXPLOSION or CS_BOM_EXPL_MAT_V2 .
2.Using CEWB helps you to identify all the material that's having the BOM,but here the report does not
shows you the level by level by BOM for a FERT.
Check and revert back.
Regards
Mangalraj.S -
Create multiple sales orders from single service notification?
Is it possible to create multiple sales orders from a single notification (IW51)?
We currently create sales orders directly within transaction IW51 (Create Service Notification). We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen. We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification. This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here. I treied to do a create with reference, but there is no ability to create with reference to a service notification.
Do I have to create a second service notification for the 2nd Sales Order for this to work? I want to avoid doing this if at all possible.
I'm running SAP R/3 Enterprise
Thanks for your help!Hi,
go to vtaa- copy controls for sales document to sales document.
select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
No need to change update document flow.
After setting zero in copy control that be told on above. create order with respective to the quotation.
After saving the order.
go to document flow to see the status in between quotation and order.
If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
Have a good day.. -
Multiple Sales Orders from One Quotation.
Hey SD Gurus,
I want to create multiple sales orders referring to one quotation. When I create the first sales order the status from quotation change to Completed and this doesn't enable me to create a new sales order. Please let me know how to satisfy this requirement. Thanks in advance.
Please search the forums before posting - see [rules of engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
Edited by: Ian Kehoe on Mar 2, 2012 2:17 PMHi,
go to vtaa- copy controls for sales document to sales document.
select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
No need to change update document flow.
After setting zero in copy control that be told on above. create order with respective to the quotation.
After saving the order.
go to document flow to see the status in between quotation and order.
If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
Have a good day.. -
Auto-create delivery for multiple sales orders
I would like to ask how to create auto-create 'single' delivery
for multiple sales order during release sales order in R11i.
It is found in my example during release sales order, multiple
sales orders fulfill release sales order criteria, a single pick
slip is generated but it is found that each sales order have
individual delivery with it. It will casue multiple pack slips
for a singles pick slip. Is it normal feature for auto-create
delivery, or any setup to solve it?
Thanks in advance.Am not able to do Single Delivery for Muktiple sales orders
Have you searched the forum for this question as to why you were not able to generate ?? It could be due to multiple reasons. Please search the forum and update here what steps you have taken after taking the inputs from here, if the problem is still not resolved.
thanks
G. Lakshmipathi -
Single idoc generation for multiple sales orders
Hi,
Pls let me know how do we generate single idoc for multiple sales orders.
Its not collecting idoc. As we know we can generate an idoc for one sales order correspondingly
my requirement is to generate single idoc number for multiple sales orders.
Do we need to write a program.Amar,
To understand take HRMD_A04 as example. Root segment has Maximum 9999999999 defined.
Segm.type E1PLOGI
Minimum number 1
Maximum number 9999999999
Parent segment
Hier.level 2
This means that this IDOC types has capability to hold multiple HR Master data objects. PFAL program creates this IDOC and it has facility to mention the Objects per process, check selection screen.
I checked for INVOICE01/02 its not possible there. Hope this clarifies. -
Delivey for Multiple Sales orders
Hi,
I am new to SD and would like to know how do we create a single delivery corresponding to multiple sales orders.
Can someone please advice me about the same?
Thanks and Regards,
AdityaYou can group together entire orders, order items of different orders or partial deliveries of individual order items in one delivery but only if this has been agreed with the customer.
Prerequisites
Order combination can only be carried out if the orders concerned have the appropriate indicator in the order header.
The orders or the order items and schedule lines must have identical shipping criteria. This includes the following data:
Shipping point
Ship-to party
Incoterms
Sales organization
If you try to combine items that have different goods issue dates, you receive a warning message. You can ignore this warning message. The earliest goods issue date of all the items is selected automatically as goods issue date of the entire delivery.
Entering the Indicator
You can enter the indicator that makes order combination possible in two places:
In the customer master record, you can give a customer general allowance for order combination. The indicator depends on the sales organization, the distribution channel and the division as it is entered for a particular sales area.
You can specify that all orders for one particular customer can be combined by entering an X in the Order combination field on the Shipping screen of the customer master record. The indicator is copied from the customer master record into the order header.
You can specify manually that individual orders can be combined and then revoke the combination allowance later, if necessary. You can specify that orders can be combined by entering an X in the Order combination field of the Shipping tab page on the Order Header screen. If you want to block order combination, deselect this indicator (the checkbox should appear blank).
Process Flow
During delivery creation, you must distinguish between the following two situations:
Creating an individual delivery
You can manually add additional orders or order items to this delivery if the customer allows combination and order items fulfill the criteria for order combination.
Processing a delivery due list
The system automatically combines the order items in one delivery if the customer allows this and if the order items fulfill the criteria for order combination. -
Deletion of multiple sale orders at one shot
Hi Friends,
Can anyone tell me how to delete multiple sale orders at one shot?
Friendly
Rama RaoHi
Try doing it through LSMW, I used LSMW for deleting deliveries in mass and it worked
Anurag -
Target Vs Acual Cost Comparison for multiple process orders
Dear SAPians,
I want to take a report for target vs actual cost for all process orders and product cost collectors created in a particular period. I have checked the standard report KKBC_ORD that serve my purpose but for a single order. I want the same report for multiple process orders and product cost collectors.
Is there any standard report or should I create a report painter report. I have tried to create a report painter report based on library 7KO, but target cost was not showing for selected order.
Kindly suggest.
ShiraziTarget Costs are available in library 601 for internal orders (and can be used for process/production orders).
Regards,
Adrian -
Single invoice for Multiple Purchase Orders
Hi,
How to Park the single invoice for multiple purchase ordersbrother this is possible to enter one Invoice fro multiple purchase order.
call transaction MIR7, select " purchase order/Scheduling Agreement" from the PO refernce Tab. then click on arrow. give your purchase orders here.
Thanks -
How can I create multiple sales orders with reference to one contract?
Hello Gurus,
Can you please how can I create multiple sales orders with reference to one contract?
thanks!
Rakeshhi
Lets consider example
In your contract for line item 1 you have entered qty 100
You careated sales order with 70 quantity, and now you want to creat another sales order for 30
For this first you need to check what is your item category in contract (VA42)
Goto VOV7
SPRO - IMG - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
Make the completion rule = B Item is completed after full quantity has been referenced
Maybe you are looking for
-
Does TM/TC backup external hard drive connected to usb-port of TC?
I have searched the web to find a straight forward answer to this question, but unfortumately have not been able to find it. The situation is as follows I want to make room om my Mac by copying my local iPhoto library (230Gb) to an external hard driv
-
Changes in Texts in custom editor not getting saved in QM02 tcode
Hi Expert, I am working on a screen exit in QM01. I have created a editor box(like the description box under Description tab in QM01) using class cl_gui_custom_container and cl_gui_textedit. I am able to create and display the text I type in the box
-
How can I unblock my credit card on my account?
please help me to unblock to purchase again.
-
Premiere CS6 keeps crashing during render
Hey everyone, I'm currently editing a feature film and is the first time I've edited with Premiere with this amount of clips, going into the thousands. Thus far though, everything was going fine until today when I needed to combine reels to come out
-
How to transport generated reports through report painter
Hi All, We are upgrading from 4.6 to ECC6. Previously somebody created reports for Finance through report painter, now in the new system they are two to three system generated reports which are produced by report paintyer (I guess) are retrieveing w