Call a Stored Procedure from another Stored Procedure

2004-07-15 Thread QA
Hi All, How can I call a Stored Procedure from another Stored Procedure? Basic problem is that I have created a Stored Procedure with , which forces a SELECT statement just after the , but before returning I need some more processing with the result of . I would like to call the another stored p

Re: AW: AW: Recursive DECLARE CURSOR statement

2004-07-14 Thread QA
Hi Thomas, It does not work. Anhaus, Thomas wrote: > QA wrote : > > > > >Hi Elke, > > > >Thanks for the valuable suggestion. > > > >I wrote the following stored procedure onlines of your advice- > > > >CREATE DBPROC shortlist_month (IN

Re: AW: Recursive DECLARE CURSOR statement

2004-07-13 Thread QA
VIEW; END; This stored procedure compiles and works perfectly on MaxDB 7.5.00.15, But on SapDB 7.4.3.30 it compiles but at runtime gives error -4024 and if I put a try..catch in the stored procedure then it returns the error -4004. Why it is behaving like this? Zabach, Elke wrote: > QA

Re: Recursive DECLARE CURSOR statement

2004-07-12 Thread QA
Hi SAP Team, Is there any solution to this problem QA wrote: > Hi All, > > Can anybody provide a solution to my problem with RECURSIVE DECLARE > STATEMENT. > > I am trying to explode bill of materials using Recursive DECLARE CURSOR > statement explained in docs. Fo

Re: Recursive DECLARE CURSOR statement

2004-07-12 Thread QA
n the second select the where condition is sub = > B.main_item_code instead of main_item_code=B.sub_item_code? The RECURSIVE CURSOR statement is directly lifted from the SAP DB docs. Thanks for your response. - Original Message - From: "Matteo Gattoni" <[EMAIL PROTECTED]>

Recursive DECLARE CURSOR statement

2004-07-10 Thread QA
Hi All, Can anybody provide a solution to my problem with RECURSIVE DECLARE STATEMENT. I am trying to explode bill of materials using Recursive DECLARE CURSOR statement explained in docs. Following is the stored procedure- CREATE DBPROC bom (IN main_item VARCHAR(25)) RETURNS CURSOR AS $CUR

Re: Recursive DECLARE CURSOR statement

2004-07-08 Thread QA
definition of the dbproc. Platform- Win2K SP4. Thanks, - Original Message - From: "Zabach, Elke" <[EMAIL PROTECTED]> To: "'QA'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 05, 2004 4:19 PM Subject: AW: Recursive DECLARE CURSOR st

Re: Recusrsive DECLARE CURSOR statement

2004-07-04 Thread QA
> > (DECLARE keyword is highlighted in SQL Studio). > > > DECLARE :$CURSOR CURSOR FOR > ^ > DECLARE $CURSOR > Hi Jean-Michel, Thanks for your prompt reply, but it does not work. I am using SAPDB 7.4.03.30 on W2K SP4.

Recursive DECLARE CURSOR statement

2004-07-03 Thread QA
Hi, I am trying to explode bill of materials using Recursive DECLARE CURSOR statement explained in docs. Following is the stored procedure- CREATE DBPROC bom (IN main_item VARCHAR(25)) RETURNS CURSOR AS $CURSOR = 'bom'; BEGIN DECLARE :$CURSOR CURSOR FOR WITH RECURSIVE PX (main