Query: Module Execution Order
Hi Experts,
I've a query on the execution order of module execution. Say my requirement is File (with FCC) to File (with FCC) and I need to write a module at both sender and receiver end due to some business requirement. My questions are
1. On the sender side, does sender adapter User defined module gets executed before the sender Standard adapter module? If so, what would be the format of data available to the user defined module (XML data after file content conversion) ??
2. Similar query, but for the receiver channel (receiver adapter modules execution order).
Please explain the nature and order of execution of the adapter modules and the format of data available to the User Defined Modules.
Thanks,
Hussain.
Hi Hussain,
So, does that mean the input data to sender custom module is of Text format ie. the whole text file in text format (not in XML format) ? - Yes
Also, can the order of the modules be changed i.e Can custom module be specified and executed later Standard module?? I suppose No but still wanted a confirmation. - Only in synch communication, when you have sender comm channel, there if you have a reciver custom module, then in sender comm channel in module tab, it will be specified after standard module..............But for asnych communication, where you will have a reicever comm channel, there you will specify your custom module before standard module.
Hi Prateek,
I think that the input to the custom module would be xml created after content conversion. - No, the file will be input as plain text file and in your custom module you will create a XML document for your sender msg.........Similar is the case when you have a excelsheet file as input, in it you have your excel file data as input and you create a XML document in your custom module.
Regards,
Rajeev Gupta
Similar Messages
-
Problem of Query of Module Purchase Order, Good Receipt PO, Good Return
Hi,
I would like to seek for assistance regarding double entries of documents, I have used the query and found out lately the it has a problem, Please refer to thread "Query of Module Purchase Order, Good Receipt PO, Good Return" for details.
You help is very much appreciated.
Regards,
ClintHi Clint,
Try this one:
SELECT DISTINCT 'GRPO' AS TYPE, T1.DOCNUM
'GRPO/RET#', T3.DOCNUM 'PO#',T1.CARDCODE,
T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY,
T0.PRICE, T0.LINETOTAL
FROM DBO.PDN1 T0
INNER JOIN DBO.OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
LEFT JOIN DBO.POR1 T2 ON T0.BASEENTRY = T2.DOCENTRY
INNER JOIN DBO.OPOR T3 ON T2.DOCENTRY = T3.DOCENTRY
WHERE T1.DOCNUM = '[%0]' AND T0.ITEMCODE IS NOT NULL
UNION ALL
SELECT DISTINCT 'RETR', T1.DOCNUM,T3.DOCNUM,
T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE,
T0.QUANTITY, T0.PRICE, T0.LINETOTAL
FROM PDN1 T0
INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
LEFT JOIN RPD1 T2 ON T0.TRGETENTRY = T2.DOCENTRY
INNER JOIN ORPD T3 ON T2.DOCENTRY = T3.DOCENTRY
WHERE T1.DOCNUM = '[%0]' AND T0.ITEMCODE IS NOT NULL
If you still have duplicates, let me know any differences in those lines.
Thanks,
Gordon -
Query of Module Purchase Order, Good Receipt PO, Good Return
Hi,
Like to ask assistance regarding Module Purchase Order, Good Receipt PO, Good Return under Purchasing A/P.
I have a hard time to linking the tables above:
PO Module have table : OPOR and OPOR1
GRPO have table : OPDN and PDN1
Good Return have table : ORPD and RPD1
Its very mind bubling linking this 6 tables can anyone please can assist regarding the situation, a query that shows that they are connected to each other.
Thank very much!
ClintClint,
Like Suda said, this query assumes your have normal business practise.
One more thing to mention, the lower part of union all needs some other change. Here is the complete query:
SELECT DISTINCT 'GRPO' AS TYPE, T1.DOCNUM "GRPO/RET#", T3.DOCNUM PO#,T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY, T0.PRICE, T0.LINETOTAL, T0.TOTALFRGN, T0.RATE
FROM PDN1 T0
INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
LEFT JOIN POR1 T2 ON T0.BASEENTRY = T2.DOCENTRY
INNER JOIN OPOR T3 ON T2.DOCENTRY = T3.DOCENTRY
WHERE T1.DOCNUM LIKE '[%0]'
UNION ALL
SELECT DISTINCT 'RETR', T1.DOCNUM,T3.DOCNUM, T1.CARDCODE, T1.CARDNAME , T1.DOCDATE, T0.ITEMCODE, T0.QUANTITY, T0.PRICE, T0.LINETOTAL, T0.TOTALFRGN, T0.RATE
FROM PDN1 T0
INNER JOIN OPDN T1 ON T1.DOCENTRY = T0.DOCENTRY
LEFT JOIN RPD1 T2 ON T0.TRGETENTRY = T2.DOCENTRY
INNER JOIN ORPD T3 ON T2.DOCENTRY = T3.DOCENTRY
WHERE T1.DOCNUM LIKE '[%0]' -
Dears,
I have this query:
Select Oap.Period_Start_Date,
Oap.Period_Name,
Ood.Organization_Code||' - '||Ood.Organization_Name Region_Name,
Micv.Segment1 Category,
Msi.Segment1 Item_Code,
Sum (Round (Mta.Base_Transaction_Value, 2)) Cost,
Sum (Round (Mmt.Transaction_Quantity, 2)) Quantity
From Mtl_Material_Transactions Mmt,
Mtl_Transaction_Accounts Mta,
Org_Acct_Periods Oap,
Org_Organization_Definitions Ood,
Mtl_Item_Categories_V Micv,
Mtl_System_Items Msi
Where 1 = 1
--And Msi.Segment1 = 'PDAACERE310BLK'
--And Mmt.Organization_Id = 857
And Transaction_Action_Id Not In (24, 30)
--And Mmt.Subinventory_Code = 'Riyadh'
And (Trunc(Oap.Period_Start_Date) >= To_Date ('01/10/2011', 'DD-MM-YYYY')
And Trunc(Oap.Schedule_Close_Date) <= To_Date ('31/08/2012', 'DD-MM-YYYY'))
And (Mmt.Parent_Transaction_Id Is Null)
And Mta.Accounting_Line_Type = 1
And Upper(Micv.Segment1) In (Upper('Acer Laptops'), Upper('Acer Mobiles'), Upper('Acer Netbooks'), Upper('Asus Mobiles'), Upper('Blackberry Mobiles'),
Upper('Blackberry Tabs'), Upper('Htc Mobiles'), Upper('Huawei Mobiles'), Upper('Huawei_Tab'), Upper('Imac'),
Upper('Ipad'), Upper('Iphone'), Upper('Ipod'), Upper('Lenovo Netbooks'), Upper('Lg_Mobiles'), Upper('Macbook'),
Upper('Macmini'), Upper('Motorola Tabs'), Upper('Motorola_Mobile'), Upper('Nokia_Mob'), Upper('Samsung Notebooks'),
Upper('Samsung Tabs'), Upper('Samsung_Mobiles'), Upper('Sony Ericsson_Mobiles'))
And Mmt.Transaction_Id = Mta.Transaction_Id
And Mmt.Organization_Id = Mta.Organization_Id
And Mmt.Inventory_Item_Id = Mta.Inventory_Item_Id
--And Mmt.Subinventory_Code = Cid.Subinventory_Code
And Mmt.Organization_Id = Ood.Organization_Id
And Mmt.Acct_Period_Id = Oap.Acct_Period_Id
And Mmt.Organization_Id = Oap.Organization_Id
And Mmt.Organization_Id = Micv.Organization_Id
And Mmt.Inventory_Item_Id = Micv.Inventory_Item_Id
And Micv.Organization_Id = Msi.Organization_Id
And Micv.Inventory_Item_Id = Msi.Inventory_Item_Id
Group By Micv.Segment1, Oap.Period_Name, Oap.Period_Start_Date, Ood.Organization_Code||' - '||Ood.Organization_Name, Msi.Segment1
Order By Oap.Period_Start_Date, Ood.Organization_Code || ' - ' || Ood.Organization_Name, Micv.Segment1, Msi.Segment1any suggestion to reduce the query time execution ??Pl see these threads on how to post a tuning request
When your query takes too long ...
HOW TO: Post a SQL statement tuning request - template posting
HTH
Srini -
Any Explanations y this query is not ordering ?
SELECT dept_id, salary, job_id
FROM employees
ORDER BY
( SELECT dept_id
FROM departments
WHERE last_name='Abel');
Assumptions:
1. The inner subquery gives a value of 10 only.
2. There is no 10th column in the Table Employees.
3. There is only 1 employee in the department 10.
Output it gives :
It gives all that is there in the employees table(projected cols), However the first record is always from dept_id= 10, then it just displays without ordering.yes you are partially correct. The subquery will return only 10 and not 1 or 5 or any other value.
I have an explanation to this query bt I'm not sure about it.
Oracle checks for semantics and syntax at compile time. So if everything is correct then only it submits the query for execution. Now when a subquery executes only then oracle knows there is no 10th col in the database so it is a runtime error. -
Execution order - group by and order by
is there any execution order when we use group by and order by together in single query ?
BOL: "Logical Processing Order of the SELECT statement
The following steps show the logical processing order, or binding order, for a SELECT statement. This order determines when the objects defined in one step are made available to the clauses in subsequent steps. For example, if the query processor can bind to
(access) the tables or views defined in the FROM clause, these objects and their columns are made available to all subsequent steps. Conversely, because the SELECT clause is step 8, any column aliases or derived columns defined in that clause cannot be referenced
by preceding clauses. However, they can be referenced by subsequent clauses such as the ORDER BY clause. Note that the actual physical execution of the statement is determined by the query processor and the order may vary from this list.
1. FROM
2. ON
3. JOIN
4. WHERE
5. GROUP BY
6. WITH CUBE or WITH ROLLUP
7. HAVING
8. SELECT
9. DISTINCT
10. ORDER BY
11. TOP"
http://msdn.microsoft.com/en-us/library/ms189499.aspx
Kalman Toth Database & OLAP Architect
IPAD SELECT Query Video Tutorial 3.5 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Query for Sales Order Analysis
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
where U_Total_GP is a UDF for storing the GP of each order.
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
Thank you
Regards
EltonHi Elton,
Try this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
ORDER BY T0.[DocNum]
Thanks,
Gordon -
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. Everything is fine with this query except I would also like to incdude the total number of Sales Order (per day) right below the column "DocNum".
Is it possible to achieve this?
Thank You
Regards
EltonTry this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT count(DocDate), SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] -
Dynamically built query on execution How to save the data in Object Type
Hi,
In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
output of the query in it. Here is the Object Type I have
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
pkid NUMBER,
pkname VARCHAR2(100);
pkcity VARCHAR2(100);
pkcounty VARCHAR2(100)
CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
--I initialize my Object Type*
data := new FIRST_RECORDTYPETAB();
FOR some_cursor IN c_get_ids (username)
LOOP
x_context_count := x_context_count + 1;
-- here I build the query dynamically and the same query generated is
sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
-- and now I need to execute the above query but need to store the output
EXECUTE IMMEDIATE sql_query
INTO *<I need to save the out put in the Type I defined>*
END LOOP;
How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
Any help is appreciated.
Thankshai ,
solution for Dynamically built query on execution How to save the data in Object Type.
Step 1:(Object creation)
SQL> ED
Wrote file afiedt.buf
1 Create Or Replace Type contract_details As Object(
2 contract_number Varchar2(15),
3 contrcat_branch Varchar2(15)
4* );
SQL> /
Type created.
Step 2:(table creation with object)
SQL> Create Table contract_dtls(Id Number,contract contract_details)
2 /
Table created.
Step 3:(execution Of procedure to insert the dynamic ouput into object types):
Declare
LV_V_SQL_QUERY Varchar2(4000);
LV_N_CURSOR Integer;
LV_N_EXECUTE_CURSOR Integer;
LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
OV_V_CONTRACT_NUMBER Varchar2(15);
LV_V_CONTRACT_BRANCH Varchar2(15);
Begin
LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
LV_N_CURSOR := Dbms_Sql.open_Cursor;
Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
Loop
Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
End Loop;
Dbms_Sql.close_Cursor (LV_N_CURSOR);
COMMIT;
Exception
When Others Then
Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
End;
step 4:check the values are inseted in the object included table
SELECT * FROM contract_dtls;
Regards
C.karukkuvel -
Function Modules for Order Settlement
Hi,
I need simulate the transaction KO88 for Order Settlement with a function module but without batch input. Please, somebody can tell me which function module I can use and give me a example?
Also, I need another function module for order release...
Thanks in advance,
Regards,
IrinaHere`s the way to find out how its using ...
GO to TR.SE93-> give "KO88" 0> click display
Double click program name and find "call fucntion" when list come up "serach "Settlement" . You`ll get idea.
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
Hi
I have a query on internal orders. As of now the system is including all the Purchase Requisitions and Purchase Orders into the total commitment. We want Purchase Req to be discluded. How can this be done?
Regards
Rahul SharmaHi
Pls suggest
regards
Rahul -
Execution order of Multiple Numeric Limit Test?
What is the execution order of "Multiple Numeric Limit Test" in TestStand 2010?
I am using a custom steptype of Multiple Numeric Limit Test. I want to manipulate the input parameter. How can I do that. I am not interested in making a new steptype. I am writing in Post-Expressions and the data is manipulated as they should but it is not evaluated. I is evaluated before the Post-Expressions executes.
For example I am writing: Step.NumericArray[0]= Step.NumericArray[0]*1000/(2.5-Step.NumericArray[0])
The execution order when looking at the TS manual at page 3-13 is Evaluate Post-Expression before Evaluate Status expression. But it is not what I see. I have also tryed using the more simple Numeric Limit Test and it works as I expect it to according the manual.
Anyone knows about any workaround for that?Hi Ray
Thanks for your reply
I have tried writing what you are suggesting: Step.Result.Measurement[0].Data= Step.Result.Measurement[0].Data*1000/(2.5-Step.Result.Measurement[0].Data)
Still it evaluates the step before the post-Expression. When I am looking at the variables at runtime the Step.Result.Measurement[0].Data is having the correct value but it seems to evaluate the step before the Post-Expressions.
Any other suggestions? -
Hi,
I want to FMS Query for Purchase Order.
I want to display the weight * price in one user define field.
Please suggest meHi Tushar.......
Try this.......
declare @var1_wt as varchar(255)
declare @var2_Pr as varchar(255)
declare @var3 as float
declare @var4 as float
set @var1_wt=$[$38.58.0]
set @var2_Pr=$[$38.14.0]
set @var3=cast( substring(replace(@var1_wt,',',''),0,len(replace(@var1_wt,',',''))-1) as float)
set @var4=cast(substring(replace(@var2_Pr,',',''),0,len(replace(@var2_Pr,',',''))-3) as float)
select @var3 * @var4
Regards,
Rahul -
What is the different type mapping faster execution order ?
Order is XSLT, JAVA(SAX), JAVA(DOM), Graphical(sax), and ABAP mappings ?
Is there any Graphical mapping with dom parser ?
Please send the faster execution order .Hi,
I am not getting exactly what you are looking for,
I think I already had answered your questions in your previous blog
Mapping types performance
Is there any Graphical mapping with dom parser ?
-->Graphical mapping with DOM parser is not possible, thus you have to go for Java Mapping
JAVA mapping
/people/amjad-ali.khoja/blog/2006/02/07/using-dom4j-in-xi--a-more-sophisticated-option-for-xml-processing-than-sap-xml-toolkit
Mapping Techniques
Please let me know if any specific thing that you will be looking for, so accordingly we could narrow down the analysis and answers.
Thanks
Swarup -
Dashboard Prompt Execution Order
Hi everyone,
I wanted to create a few test cases to see which order the Dashboard prompts were executing. What I did was I created two identical dashboard prompts, DBP1 and DBP2, on column "Account Number". I set DBP1 to Default to Specific value of 1. I set DBP2 to Default to Specific value of 2. My assumption is that the last prompt that executes is the value that will be shown in a dashboard.
I put the two prompts into a Dashboard and ran a few tests and here is what I found out:
1. The order in which the prompts appear are the dashboard is irrelevant to the execution order.
2. The value to which the prompts are set to is irrelevant to the execution order
3. The name of the dashboard prompts is irrelevant to the execution order
4. The alias of the dashboard prmopt is irrelevant to the execution order
In my trials, the second dashboard prompt's value was always the one being shown. So I created a third dashboard prompt DBP3 set to value 3. Then all the prompts had 3 as their value. My conclusion is that DB prompts are executed in the order in which they are created. Some where in their metadata, there must be a sequence number or internal ID that grows each time a DB prompt is created. Then OBIEE uses this identifier to determine execution order.
Can anyone confirm or deny that?
Thanks!
-Joe
Edited by: Joe Bertram on Dec 5, 2009 10:44 AMHi Sunil,
Thanks for the reply. You are correct. Its seems that the dashboard prompts do execute asynchronously.
It turns out the reason why I was seeing newer dashboard prompts taking precendent over older dashboard prompts has to do with the cache. Apparently the last dashboard prompt in the cache, is the value all the prompts will have.
thanks!
-Joe
Maybe you are looking for
-
TIP: DO NOT UPGRADE TO OSX YOSEMITE!!!
If you are on a Mac (unfortunately I'm forced to use one at the office), do not, I repeat, do NOT "upgrade" to OSX Yosemite. Adobe still hasn't figured out the conflicts between EA and Yosemite. I've been fighting issues all day with lock ups, etc. I
-
"The system cannot find the path specified" error
Hi, Thanks for taking the time and reading. I had to update an old report that was made in CrystalReports. I copied the rpt files and pasted them into a csharp solution in VS 2010. The report structure is of a Main report and 6 subreports. I have to
-
How do I reset controls and continue or reset controls and stop?
I am trying to find a way to reset 16 controls and 8 indicators and continue or exit. I have a system where a change in input will cause the LabVIEW to contact another processor via RS232 and send the change. There are eight seperate circuits to cont
-
Yosemite: problem with external disk
Hello, After installing Yosemite I cannot use Time Machine anymore because the external disk (WD My Passport Edge) cannot be mounted. Does someone know what to do? Thanks in advance for your help. The Disk Utility Program shows the external disk howe
-
My mail messages are being received as blanks
I have been having an issue with my Mail (ver5.2) that when I send a message it usually goes through fine, but every so often (few times daily) it send the message, looks completly normal in my SENT items, but the receiver is getting the message with