Execute proceduere from block

Hi,
We have oracle 10g On windows.
we need to execute a procedure from anonimous block. requiement is like below
if condition
yes then execute procedure
else
do not execute procedure.
How we can impliment this.

968136 wrote:
chanchal,
just try this...
here i have created on procedure and i am calling this procedure from anonymous block.
create or replace procedure samp_block(date1 out varchar2)
as
begin
select sysdate into date1 from dual;
end;
declare
v_date date;
v_no number:=1;
begin
if (v_no=1) then
samp_block(v_date);
dbms_output.put_line(v_date);
else
null;
end if;
end;
Regards,
Ramadurga
Edited by: 968136 on Nov 2, 2012 3:37 PMHi Ramadurga,
what is the reason to write something like:
ELSE
   NULL;
END IF;You can simply omit it the ELSE part.
Regards.
Al
Edited by: Alberto Faenza on Nov 2, 2012 11:13 AM

Similar Messages

  • Help on transferring goods from blocked to sales order stock

    Hi Gurus
    i need your help in this urgent production issue here is the details
    our scenario is make to stock, when delivering and shipping against sales order, the user had some issues in t-code VL10H,
    so user only physically finished the delivery and shipped it, but did not execute it in SAP,
    so the user has put the stock in blocked status against these sales orders.
    can you help me in moving this stock from blocked status and issue against the sales orders in SAP so that we can perform delivery in SAP. and close the sales orders
    appreciate if you can explain the details steps and movement types and t-codes
    thanks a lot in advance for your help and replies

    Chakri,
    You need to read the book on R/3 System SAP Strategies guide to MRP Planning and also Product Costing let me know if you need any help on this.
    Saleem
    Edited by: SYED SALEEM on Mar 9, 2008 6:05 PM

  • Unable to create Vendor return delivery from blocked stock

    Hello,
    Would like to know how to enable delivery picking from blocked stock.
    Some back ground : I am using Delivery type RL (Vendor returns). Required config is done in IMG.
    In our process we move defective material to blocked stock. Next create a Return PO to pick material from blocked stock.
    Next use VL10b to create delivery document against this PO.  We are able to create delivery & PGI from blocked stock.
    All above steps are executing seamlessly without any issue In our QA system.
    However in PROduction system delivery document does not find any qty in blocked stock inspite of being in the blocked stock.
    Please let me know where I could find the setting to enable delivery shipping/ PGI from blocked stock.
    Look forward to some good responses.
    Thanks,
    Ram

    Prerequisites
    When you enter a return delivery, you should reference the purchase order or the material document, so that the system can:
    Suggest data to simplify data input (for example, the storage location)
    Check that the returned quantity does not exceed the delivered quantity
    Reduce the quantity delivered to date
    Reverse other updates that occurred (for example, for a goods receipt into consumption) when the goods receipt was entered
    Before you enter a return delivery with reference to a purchase order, you have to determine whether the goods were posted to stock or to consumption, or whether they were posted into goods receipt blocked stock. If you posted the goods to a particular stock type at goods receipt (for example, quality inspection stock), you have to return them from the same stock type.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/a5/63351643a211d189410000e829fbbd/frameset.htm

  • Execute Queries from Right Pane Workspace

    Hello All,
    I have a Query Blocking rules in place. When I execute saved queries from tree structure on right pane, it invokes blocking rules but when I execute queries from workspace (Left pane) it does not invoke blocking rules.
    The query blocking rule is in WebMessage name="kuiCriteriaBlockingScript" under function validateAnalysisCriteria
    Any ideas on what I must be missing?
    Thanks
    RA
    Edited by: 855456 on May 26, 2011 6:04 AM

    Assign as many schemas to your workspace as you want using the administration app. Read about it in the doc.
    Scott

  • Report for material moved from blocked stock to unrestricted stock

    Hi,
    Is there a standard report in WM showing list and qty of materials moved from blocked stock to unrestricted stock.
    Regards,
    Pratap

    It would have been easy if there was a specific WM movement type for such transfer but due to the reason that the WM 309 is connected to various IM movement types, there is no direct report to get this information.
    Conversely, you may use MB51 with the combination of the WM managed storage location and movement type for your purpose. If there are multiple storage locations assinged to the same warehouse then you may put a range in the selection criteria.

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • Error while executing report from Query designer

    Hi All,
    When I am executing from query designer, I am getting following error.
    Even I can't execute it from another portal where i created source system of BI server.
    But i can execute queriew from Query analyser and t-code RSRT.
    When I execute from Query desinger the url is as follows.
    http://XXX:00/irj/servlet/prt/portal/prtroot/pcd!3aportalcontent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0PA_C01_Q0201&VARIABLE_SCREEN=X&DUMMY=5_
    And the error is:
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,*
    Required information for reproduction  according to note 948490.*
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sap.ip.bi.webapplications.runtime.service.metadata.impl.MetadataAccess.getMetadataModel(MetadataAccess.java:139)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.getMetadataModel(Page.java:8953)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4963)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4473)
    at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000100 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP unknown
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_24-b04
    Operating System SunOS - amd64 - 5.10
    REgards
    Mohan

    Hi mohan ,
      You can check these OSS notes for the issue  .
    1. 795699 - Customizing default error messages for HTTP
    2. 807000 - Http requests are not fully read after timeout
    3. 804124 - HTTP communication with XI Adapter Engine fails
    Regards,
    Lokesh

  • REP - 300 Error while executing report from Application

    Hi,
    I have report in Report Builder & for the same report form is there in Form Builder in which parameter page is designed. From application where I am calling report is internally calling form & in form Procedure Run Report is there which is calling report from Report Builder. Both report from builder & form form Builder are compiled . Also query is executing fine in Toad without error. Also all query fields are present in database.
    But when I am trying to excute report from Application it is giving error as "REP - 300 Invalid Identifier " & it displays whole query.
    Note - Report & it's Form are in ORACLE - 10g. Also the user through which I am executing report from application is ADMIN user , so it has executing permission.

    looks like error in parameters. check out the value of variable that you are passing through to report from form. Put a messages to see variable values before execute report.

  • Goods Issue against outbound delivery from blocked stock

    Dear All
    I want to do goods issue against outbound delivery created without any reference from blocked stock of my storage location. Is there any way I can achieve this? I know normally SAP allows goods issue from unrestricted stock but my business scenario requires goods issue to be done from blocked stock against outbound delivery.
    Please let me know any solution for this.
    Thanks and Regards
    Satish Kumar

    Hi
    Check this link where similar issue has discussed and its resolved as well. Please try this and update the findings. If possible could you share the background of this strange requirement.
    http://scn.sap.com/thread/1541911
    Thank$

  • I want to execute Thunderbird from Firefox toolbar

    I would like to be able to kick off the Thunderbird mail program from Firefox but cant seem to find out how to make a button on a toolbar to do so. I can execute Thunderbird from Start programs but would like to be able to do so while I am in Firefox. Want to read my emails.

    You can use the [http://webdesigns.ms11.net/getmail.html Get Mail] add-on to add a button to open Thunderbird.

  • How can I prevent the MediaTracker waitForID method from blocking?

    Hi everyone:
    I am writing an application that deals with various image file formats with the help of the JIMI package (available at http://java.sun.com/products/jimi/). Everything works fine except for the Targa format. When I generate an Image object as follows (url is a valid URL object):
    Image image = Jimi.getImage(url);
    ImageIcon icon = new ImageIcon(image);the program execution blocks at the second line above. I searched the ImageIcon source code for some clues, which led me to the following ImageIcon method (tracker is a MediaTracker object, a static property of ImageIcon):
    (01) protected void loadImage(Image image) {
    (02)   synchronized(tracker) {
    (03)     tracker.addImage(image, 0);
    (04)     try {
    (05)       tracker.waitForID(0, 0);
    (06)     } catch (InterruptedException e) {
    (07)       System.out.println("INTERRUPTED while loading Image");
    (08)     }
    (09)     loadStatus = tracker.statusID(0, false);
    (10)     tracker.removeImage(image, 0);
    (11)
    (12)     width = image.getWidth(imageObserver);
    (13)     height = image.getHeight(imageObserver);
    (14)   }
    (15) }The program blocks at line (05) above. I peeked into the MediaTracker class source code, which brought me to determine that the image loading process never finishes. The symptoms are as follows:
    (1) When I perform a c.checkImage(image, null) where c is some Component, I always get a result of 7, which translates to the following combination of ImageObserver constants:
    WIDTH | HEIGHT | PROPERTIESAs matter of fact, the dimensions are indeed determined correctly. However, when the loading process terminates, the checkImage result includes ALLBITS or FRAMEBITS in case of success, ABORT or ERROR in case of failure. None of these bits is ever turned on whenever I try to load a Targa image.
    (2) When I get to the MediaTracker source code, I see that when none of the four bytes above is set, the internal MediaTracker status has the MediaTracker.LOADING bit turned on (nothing abnormal here). And the waitForID method terminates precisely only when this bit is turned off!
    Logically, if the loading process fails for some reason, I should expect to get an error response so that I can go further in code execution. However, since the loading process never terminates, everything stays blocked at the waitForID method invocation.
    Is there an efficient way to detect such a hidden loading error without letting my program go into the waitForID endless loop? In other words, going back to the first two lines of code of this message, how could I detect that an Image loading process will not terminate before calling the ImageIcon constructor?
    Thanks in advance for any useful help...
    Jean-Fran�ois Morin

    Hi:
    I tried precisely your suggestion before posting my message to the forum yesterday. I just forgot to mention it... Maybe I was afraid of increasing my message length more and more...
    I already know that this solution prevents the MediaTracker from blocking. However...
    (1) If they reach a troublesome image (like a Targa), the users of my application might not be pleased by its freezing for 10 seconds. Actually, this image loading module is part of an architecture for database applications from which my development team and I produce applications for various customers. Images are used, in particular, in Oracle BLOB support.
    (2) If I use a smaller timeout delay, I have no guarantee that any image, whatever its length, will load properly (Targa excluded, of course). According to tests I performed yesterday, I am virtually sure that the 10-second delay will be busted very easily by pictures larger than 1 Mb. I cannot overlook this potential problem: an Oracle BLOB can contain up to 2 terabytes of data!
    On the other side, I don't want to focus too much the attention on the JIMI Targa import filter because I know that a revised version of the JIMI and JAI packages will be part of JDK 1.4. This is why I am trying to figure out what is happening in the MediaTracker and Toolkit classes, which are much more fundamental than the Jimi ones...
    Thanks anyway...
    Best regards,
    Jean-Fran�ois Morin

  • How do I stop the pop up blocker from blocking popups? I have already disabled it.

    how can I stop the popup blocker from blocking popups? I have disabled it but they are still being blocked.
    == This happened ==
    Every time Firefox opened

    Try this:
    Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM

  • How to unblock bbm pin from block list

    How to unblock bbm pin from block list, i deleyed a bbm pin and close option for no block that pin, now how can i unblock that pin.

    How did you block the plugin?
    If you blocked it via Firefox and not via an extension then you should see a Lego block icon on the left end of the location bar that you can click.
    You can inspect and manage the permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    If you blocked content via an extension like Adblock Plus then you need to click its toolbar icon to check what content is being blocked.

  • How to transfer material from blocked stock  to scrap location

    Dear Experts,
        Weu2019ve put some of raw material into blocked stock. Now we want to scrap these materials & for that Iu2019m trying to take it to unrestricted stock from blocked stock by MIGO (transfer posting ,Mvt type=343).
    But during that system shows an error message that u201CBest before/SLED of batch has been exceededu201D
    Due to this Iu2019m not able to scrap the material from blocked stock.
    Pls advise what to do .Is there some other way to do it??
    Thanks in advance

    Hi,
    You can directly scrap it from Blocked stock using movement type 555 . Further from the message it is observed that SLED( Self Life Expiration Date ) check is active for this material in material master . Try to scrap it in 555 mvt .
    Dhruba
    Edited by: Dhruba Charan Behera on May 18, 2011 12:51 PM

  • Stock from block to quality after UD

    Dear Team
    We want to bring back stock from block to quality and UD is done and we can not do it through mb1b and movement type 349 because QM is activated in material, please help?
    Regards
    Ramesh kumar

    Hi Ramesh,
       I suggest you to go through the below documents. It might be helpful to you in solving the issue.
    https://scn.sap.com/docs/DOC-51243
    Reversal of Usage Decision and Stock Posting of Inspection Lot
    Regards
    Kalyan

Maybe you are looking for

  • UDF in message mapping instead of Java Mapping. Pls advice urgent

    Hi All, My scenario CRM --- XI -- CRM In XI I have to open socket connection. Pls refer link: /people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi Can Java Mapping code given in above link for socket connection can be used in M

  • E71 Bar code scanner versus camera quality

    So I just updated my E71 from an older firmware to the latest: 501.21.001 and it's a RM-357 (E71-2; 270.07).  I've been playing around with it to see the changes and I noticed that when using the bar code scanner, the quality of the picture is incred

  • Vaue of sy-tcode when executing the report program in the background

    Hello All, To test and find out the value of sy-tcode when the report program is exectued in the background. I have done the below steps. 1. created a report program with the code given below. Select option was just defiend to get the selection scree

  • Login works online, but not in the most up to date...

    Hi, I have multiple accounts and none work on my program (7.2.0.103, OS: Windows 7), while I can log in online without a problem. Any ideas? Thanks, b

  • Can we get desktop share on Windows XP environment?

    Hi, this is Daniel. We still use Windows XP. We need to access lync through lync web app. We had used this for several months. but now, we cannot see presenter's desktop since a few days ago. Is this problem related with windows version? or explorer?