Regarding Multiple Procedure
Hi,
I have 3 different procedure in a single package. I want to check if procedure 1 will fail, then that will go to 2nd procedure and then will go to 3rd procedure. Like that, if 1st procedure run success, then it ll go to 2nd procedure. If that will fail, then that will go to 3rd procedure. That means i want, it will go to all procedure.
Can anybody help on this.
Thanks,
Where is it travelling? In another procedure? Where are you calling these procedures?
If you want it to go to all procedure irrespective of the success or failure of each of them, then try this, if your calling module is an anonymous block.
begin
call_proc1;
call_proc2;
call_proc3;
end;
/But I'm sure you are messing up some business logic that can be dealt otherwise.
Cheers
Sarma.
Similar Messages
-
Creating multiple procedures in one go
When I try to create multiple procedures in one go
All of the procedures are stored in the first procedure
When I run the following script:
create or replace
PROCEDURE CREATE_ITEM
(ITEM_id items.item_id %type,
ITEM_DESC items.item_description %TYPE,
ITEM_COST items.item_cost %TYPE,
ITEM_QUAN items.item_quantity %TYPE)
AS
BEGIN
if (ITEM_QUAN >=0)
THEN
insert into items values
(upper(item_id) || LPAD(seq_item_id.nextval, 4, '0'), upper(ITEM_DESC), ITEM_COST, ITEM_QUAN);
DBMS_OUTPUT.PUT_LINE (ITEM_DESC || ' was recorded');
else
DBMS_OUTPUT.PUT_LINE ('Quantity should be 0 or more!!');
end if;
END CREATE_ITEM;
CREATE OR REPLACE PROCEDURE CREATE_ORDER
(customer_id customer.customer_id %TYPE)
AS
BEGIN
insert into orders values
(seq_order_id.nextval, 0, customer_id, sysdate, 1);
END CREATE_ORDER;
It creates "CREATE_ITEM" procedure and store all the script in it..
Is there a solution for this problem?
regardsHi
Place a forward slash
between the two procedures on its own line.
SQL*Plus requires it as well.
Regards,
Dermot.
SQL Developer Team -
I'm trying to create multiple procedures from a script file loaded into the ODBC test utility provided by Oracle. Only the first procedure is created and it contains the complete script file for all the procedures.
CREATE OR REPLACE PROCEDURE "aa"
BEGIN
SELECT "A"
END;
CREATE OR REPLACE PROCEDURE "bb"
BEGIN
SELECT "B"
END;
ThanksHopefully 'SELECT "A"' is just a representation of your actual code because that is certainly not a valid statement. You are also missing the keyword AS or IS and the double quotes around the proc names make them case-sensitive (definitely not the norm). I don't know anything about the utility you are using, but in SQL*Plus this would look like:
CREATE OR REPLACE PROCEDURE aa
as
BEGIN
-- code
END;
CREATE OR REPLACE PROCEDURE bb
as
BEGIN
-- code
END;
/ -
Regarding multiple schedule lines in sales order with same date
Hi All,
we create the Orders from RFC and the orders are going to Multiple Schedule lines for the same date.
period delivery date ordered quan confirmed quantity
D 10/11/2007 10 0
D 10/11/2007 0 10
here for the same date in first line it is not confirming and in the second line it is confirming the quantity for the same date.
On what conditions it is possible??????
Any one have the solution for this Please send it to me [email protected]
Regards,
PrasadJust check the schedule line details i.e go to schedule line---shipping. You will find that although the del. date is same in both the case but the timings were different e.g material availability time etc will be different in both these lines. So though the dates may be same its time difference that's causing the second schedule line.
Reward points if useful -
Lack of conformity with ID3V2.3 standard as regards multiple artists
Hi there!
It is defined in the informal standard for audio tags ID3V2.3 (http://www.id3.org/d3v2.3.0) that multiple artists can be listed as independent, coequal lead performers in the text information frame TPE1 ("lead artist(s)/lead performer(s)/soloist(s)/performing group"). The "/" character is meant to be used to seperate the individual entities.
In this regard both the iPod an iTunes do not adhere to the ID3V2.3 standard and misinterpret audio tags which have been formated as described above: multiple artists in the TPE1 frame are mistaken for a single entity, thus leading to problems with the sorting of tracks. Example given: a duet by John Doe and Jane Roe (TPE1: "John Doe/Jane Roe") is not listed under John Doe on the one hand and Jane Roe on the other hand, but credited to the non-existing new artist "John Doe/Jane Roe".
Other text information frames seem to suffer from the same erroneous (or lack of) interpretation of the "/" character, or rather from the failure to support multiple entities in a text frame.
In various scenarios workarounds such as characterizing songs to belong to a "compilation" or defining an "album artist" are not helping and they generally cannot make up for the non-compliance with the open and widely accepted ID3V2.3 standard.
Can one expect Apple to fix this and to establish ID3V2.3-conformity in this matter?
With kind regards!We are all just your fellow users here and have no inside knowledge of Apple's plans. As you did point out, it's an informal standard, one that seems rather loosely followed.
Submit your feedback to Apple directly:
http://www.apple.com/feedback/itunesapp.html
Your post was very well thought out and written, so you'd be a great person to make such a suggestion.
Best of luck. -
Dear Gurus,
I am having doubt on the pricing procedure for factory sales.
I have maintained condition types in Jinfac using v/08 and if i am maintaing condition records in fv11 i am not getting condition types which i have maintained in pricing procedure(jinfac).
Can u plz clarify where should we have to maintain condition types for exercise duties and taxes wheather in v/06 are some where else.
And the pricing procedure where we are maintaining in SD and cin pricing procedure are same are not.
Regards,
kumarHi,
Sales With excise we have two approaches.
1) Formulae based
2) Condition based
In FOrmulae based the tax procedure condition type should also be created in SD ie in V/06 with codnition category taxes.
If condition based then the condition type will be already there in the pricing procedure.Maintain the condition record in V/06 with a dummy tax code.
The Tax code has to be created in FTXP. and when you create the condition record input the tax code.
If formulae based then the tax condition types has to be created as SD conditions with Condition category and the values will be flowing to condition type using the formulae from J1ID.
In your case if it is a condition based then create the tax code in FTXP with zero value(output tax).
Then create condition record in VK11 for the tax condition type with tax percentage and enter the tax code.
Regards,
Saju.S -
Regarding multiple KJS in iAS 6.0 application server
hi,
Why we have multiple kjs log option in iAS 6.0. How this impacts the server performance or any other issues related to it.
How we can merge multiple KJS to single (any configuration needs to be done).
thanks in advance
mohan.Hi Karmesh,
As a role of thumb, Oracle does not support any extended shared memory segments on IBM AIX. Please take a look OSS notes #105429, 123366.
Additionally, I would like to suggest that you use dynamic SGA that has been mentioned in OSS note #105429.
What kind of memory, you are talking about, in your last question? Oracle memory tuning or SAP memory tuning?
Regards,
Orkun Gedik
Senior SAP R/3 Basis and Development Consultant
ASTRON -
Doubt regarding multiple criteria in order by clause
Hi, I don't understand the effect of multiple elements inside the order by clause. I have the following example table:
factor_x | factor_y | price
=====================
1 | 5 | 1000
2 | 4 | 6970
3 | 3 | 3688
4 | 2 | 9087
5 | 1 | 10000
=====================
So I tried: select price from pricetable order by factor_x; results as follows:
1000
6970
3688
9087
10000
Then: select price from pricetable order by factor_y; results as follows:
10000
9087
3688
6970
1000
Then: select price from pricetable order by factor_x, factor_y; results as follows:
1000
6970
3688
9087
10000
which is same as using order by factor_x. Can anyone tells me what is the effect of adding a 2nd, 3rd..... criterion in the order by clause? Because in this example I cannot see the difference. Many thanks.Hi,
I did a little change in your data. Hope it will help you to understand.
SQL> WITH T AS (SELECT 1 X , 1 Y , 1000 PRICE FROM DUAL UNION A
2 SELECT 2 , 4 , 6970 FROM DUAL UNION ALL
3 SELECT 4 , 3 , 3688 FROM DUAL UNION ALL
4 SELECT 4 , 2 , 9087 FROM DUAL UNION ALL
5 SELECT 4 , 5 , 10000 FROM DUAL)
6 SELECT PRICE,X,Y FROM T ORDER BY X;
PRICE X Y
1000 1 1
6970 2 4
9087 4 2
10000 4 5
3688 4 3
SQL> WITH T AS (SELECT 1 X , 1 Y , 1000 PRICE FROM DUAL UNION A
2 SELECT 2 , 4 , 6970 FROM DUAL UNION ALL
3 SELECT 4 , 3 , 3688 FROM DUAL UNION ALL
4 SELECT 4 , 2 , 9087 FROM DUAL UNION ALL
5 SELECT 4 , 5 , 10000 FROM DUAL)
6 SELECT PRICE,X,Y FROM T ORDER BY X,Y;
PRICE X Y
1000 1 1
6970 2 4
9087 4 2
3688 4 3
10000 4 5
SQL>Regards
Avinash -
Regarding releasing procedure for p.o.
hi sapgurus,
the configuration for p.o. release procedure is working perfectly but whenever i go to me29n or me28 i am getting two step release procedure but in industry if the manager has given excess to me29n/me28 then himslef ca release the p.o by means of clicking both release steps, that means without general manager review the manager can release the p.o by means of clicking both. hence i am willing to restricate each user's acess to other stepd release procedure.
examaple
in me29n/me28 :-
1) manager.
2) general manager.
in this case i want the manager to click on his resepctive release step and should not allow to acess the general manager's relase step's.
thanking you
praveerhi,
please visit
www.sap123.com
there is a thread which explain very clearly for the release procedure for PO.
In PR (With classification0 there is only difference , you use CEBAN communication structure instead of CEKKO for PO)
Regards,
vijay -
Regarding multiple ALV's in a screen.
Hi gurus,
I have to develop one ALV report having multiple reports in one screen, also if i click any of the row items in one screen, it will move to the second, the approach i am using is using oops-ABAP i m new to this subject, thought there are
many materials available still i am not able to understand, so can some one please show me a sample code for 2 reports in a screen and explain it?
Thanks & Regards,
Swordfish.Hi,
<li>We have one concept in ALV called ALV Blocked report. It means displaying multiple outputs on one screen.
<li> We use 3 function modules for that.
REUSE_ALV_BLOCK_LIST_INIT
REUSE_ALV_BLOCK_LIST_APPEND
REUSE_ALV_BLOCK_LIST_DISPLAY
<li>Try this program.It works fine.
<pre><font color=blue>REPORT zvenkat_blocked_alv.
DATA: i_0000 TYPE STANDARD TABLE OF pa0000,
i_0001 TYPE STANDARD TABLE OF pa0001,
i_0002 TYPE STANDARD TABLE OF pa0002,
i_0008 TYPE STANDARD TABLE OF pa0008.
ALV Declarations
TYPE-POOLS:slis.
TYPES:
t_fieldcat TYPE slis_fieldcat_alv,
t_events TYPE slis_alv_event,
t_layout TYPE slis_layout_alv.
DATA:
w_fieldcat1 TYPE t_fieldcat,
w_fieldcat2 TYPE t_fieldcat,
w_fieldcat3 TYPE t_fieldcat,
w_fieldcat4 TYPE t_fieldcat,
w_events TYPE t_events,
w_layout TYPE t_layout.
DATA:
i_fieldcat1 TYPE STANDARD TABLE OF t_fieldcat,
i_fieldcat2 TYPE STANDARD TABLE OF t_fieldcat,
i_fieldcat3 TYPE STANDARD TABLE OF t_fieldcat,
i_fieldcat4 TYPE STANDARD TABLE OF t_fieldcat,
i_events TYPE STANDARD TABLE OF t_events.
START-OF-SELECTION.
PERFORM get_data.
PERFORM display_data.
FORM get_data.
SELECT * FROM pa0000 INTO TABLE i_0000 UP TO 10 ROWS.
SELECT * FROM pa0001 INTO TABLE i_0001 UP TO 10 ROWS.
SELECT * FROM pa0002 INTO TABLE i_0002 UP TO 10 ROWS.
SELECT * FROM pa0008 INTO TABLE i_0008 UP TO 10 ROWS.
ENDFORM. "get_data
FORM display_data.
PERFORM build_fieldcatalog USING 'PA0000' CHANGING i_fieldcat1.
PERFORM build_fieldcatalog USING 'PA0001' CHANGING i_fieldcat2[].
PERFORM build_fieldcatalog USING 'PA0002' CHANGING i_fieldcat3[].
PERFORM build_fieldcatalog USING 'PA0008' CHANGING i_fieldcat4[].
w_layout-max_linesize = '500'.
PERFORM display_data_alv.
ENDFORM. "display_data
FORM display_data_alv .
DATA:l_program TYPE sy-repid.
l_program = sy-repid.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = l_program.
PERFORM build_block_list_append TABLES i_0000[] USING w_layout i_fieldcat1[] 'PA0000' i_events[].
PERFORM build_block_list_append TABLES i_0001[] USING w_layout i_fieldcat2[] 'PA0001' i_events[].
PERFORM build_block_list_append TABLES i_0002[] USING w_layout i_fieldcat3[] 'PA0002' i_events[].
PERFORM build_block_list_append TABLES i_0008[] USING w_layout i_fieldcat4[] 'PA0008' i_events[].
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " display_data_ALV
FORM build_block_list_append TABLES outtab USING layout fieldcat tabname events .
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
is_layout = layout
it_fieldcat = fieldcat
i_tabname = tabname
it_events = events
TABLES
t_outtab = outtab.
IF sy-subrc = 0.
"MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
" WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " build_block_list_append
FORM build_fieldcatalog USING structure CHANGING i_fieldcat1.
DATA:l_program TYPE sy-repid.
l_program = sy-repid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = l_program
i_structure_name = structure
CHANGING
ct_fieldcat = i_fieldcat1.
IF sy-subrc <> 0.
"MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
" WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " build_fieldcatalo</pre></font>
Thanks
Venkat.O -
Regarding Multiple pages in SAP Script Output
Hi All,
I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC.
In the output i have multiple line items, the data will carry upto 3 pages.
Now In the output First page data is printing correctly.
In the second page all the windows are carried forward to print all the data correctly except in MAIN WINDOW.
In Second page in MAIN Window i have ITEM HEADER which i want to print on every page as it is printing in First page of output, but i am not been able print ITEM HEADER though i am able to print all the ITEM DETAILS correctly on every page.
Can anybody tell how can i print ITEM HEADER on every page which is in MAIN Window.
Thanks in advance.
Thanks & Regards,
Rayeezuddin.Hi Shaik,
If you are only printing Item Details in the Main Window, why don't you create a saperate window just above your main window for Item Headers.
Hope this should solve your problem or Please elobarate your query.
Thanks,
Vinod. -
Hi all,
I was configured ers procedure for vendor as follows.
1. Auto ers indicator , gr based invoice indicator checked in vendor master purchasing data.
2. Maintain the info record for material and vendor combination , in this we maintain tax code.
3.for this we create a dummy po in this po we select the ers indicator, gr based invoice indicator.
4. we post gr for that po.
the problem is when we post invoce by using t code MRRL it gives the message as "No Documents for selection".
There is any further settings required to solve this problem
Regards,
RajHi,
Please check in PO, whether you are getting the following check boxes activated in the invoice tab.
1. GR based Invoice Verification
2. ERS
In info record you should untick the no ers check box.
Regards,
RitiG -
Hai
Please help me out from this problem
When ever I had created the order for consignement fill up and had already delivered and note down the document number.with this number the system is picking out for multiple invoices.
I had already checked in order and delivery item categories and billing types but could not able to solve the issue.
please give the solution at the earliest.
regards and thanks
kalyanHi
Please check the Consignment fill up order type (KB Standard) in SPRO and please remove if any value is there is billing Area or subsequent billing type or order related otr delivery related billing type.
Consignment fill up should not be relevant for billing so don't mainatained any value there .
Check same for Consignment Fill up Item Category(KBN) there should not be any value in billing area .As it only relevant for delivery and not Billing .
If u r using some custom Order type and delivery don't maintain any copy control between Delivery and Invoice .
Hope this will solve ur problem -
Hi,
I had a query that "Is it possible to send one Msg to different receivers without using BPM...?
And Is this done by Proxies ..if Yes ,how?
Thanking you
Guna[Since it is a proxy, multimapping is not supported|http://help.sap.com/saphelp_nw70/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm] Proxy, IDOC, HTTP missing from the list.....with respective to receiver protocols.
It can be done by configuring multiple receivers in the Receiver Determination as suggested by Amit.
You need to maintain a different set of ID objects like Interface Determination, receiver Channel, Receiver Agreement for each of the receivers....Sender Channel and Sender Agreement (if any) will be reused.
If my understanding is wrong about any of the concepts please feel free to correct.
Regards,
Abhishek. -
To execute multiple procedures in one go through
Hi,
i have five stored procedures and want to put them in one procedure that when i execute that single procedure all other procedures should be executed, rough idea
create or replace procedure pr_1 as
begin
exec pr_2;
exec pr_3;
exec pr_4;
end;exec pr_1
Best Regards,
LeeHi,
Are these procs dependant on the result of each other?
Depending on your requirement you can club these procedures into a .sql file and execute this sql
OR
Put all these procedures into a package.
Depends entirely on your requirements.
Detail us what are these procedures and how are these related to each other.
Regards,
Jacob
Maybe you are looking for
-
TV@anywhere no audio in video capture
I just recently bought TV@anywhere and while ht etv audio and video are fine, whne I link up to my camcorder and download video, only the video comes out no audio. Can someone help if they have had the same problem before. The cables are fine, they
-
Restoration of deleted Aperture project from Time Capsule - is it possible?
Hi, I have used Time Capsule to back up my Aperture library. Today I deleted a project by mistake. I am unable to open the aperture project library from yesterdays backup to find my lost project. I have to copy the entire library and there is not roo
-
Fonts!, fonts!, and fonts!!
http://www.design-by-izo.com/2010/06/07 - and-print/ what do yo think?
-
I've got a certified pdf-document for signature. According to the document properties it's allowed to fill in and sign document. However all signature features are disabled in the doc. What can be done& Thanks
-
Replace dvd-rw drive with hdd (lenovo 3000 n200)?
I would like to know if it is possible to replace internal optical drive and put insted a second hdd. If it is possible, then which type of hdd will suit 2.5" SATA or PATA?