Create functio on Comand line!

Hi!!
I need to create download procedure, so i must modify the stored function called "wwv_flow_epg_include_mod_local" using SQL comand line.
Example: http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html
I make:
SQL> connect
SQL>SYSTEM
SQL>PASSWORD
connected
SQL>alter session set current_schema=FLOWS_020100;
Session altered.
SQL>CREATE OR REPLACE function wwv_flow_epg_include_mod_local(
procedure_name in varchar2)
2 return boolean
3 is
4 begin
5 if upper(procedure_name) in ('LIONEL.DOWNLOAD_MY_FILE') then
6 return TRUE;
7 else
8 return FALSE;
9 end if;
10 end wwv_flow_epg_include_mod_local;
11
12
13
14
15
What should i make to run the create funtion?
Why it dont stop creating lines?
Thanks Lionel

A simple slash and it has create the function and now the download procedure is working.
Thank´s a lot

Similar Messages

  • Run unit test in comand line

    Hello everybody,
    I try to run existing unit test in comand line:
    ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    where
    ROW_COUNT - simple unit test
    unit_test_repos - unit test repository, which i create using tutorial (http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/sqldev_unit_test/sqldev_unit_test_otn.htm)
    finch - owner of procedure, which i try to test
    after execution this command i receive this message:
    C:\sqldeveloper\sqldeveloper\bin>ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    SEVERE Error: No Repository was found on the selected connection, you need to create a repository. - oracle.dbtools.unit_test.UtRepositoryManager.openConnectionWithChecks(UtRepositoryManager.java:214)
    Unable to open repositoryafter that i try to execute command with another parametres (instead of finch i use sys-user), but receive equal result.
    what`s wrong?
    in Help document i find next:
    The following example runs a unit test named AWARD_BONUS in a Windows environment where SQL Developer is installed under Program Files. (Note that test and suite names are case sensitive for the command-line interface.) This example uses the repository connection for user unit_test_repos and runs the test as user fred.
    cd c:\Program Files\sqldeveloper\sqldeveloper\bin
    ututil -run -test -name AWARD_BONUS -repo unit_test_repos -db fred"
    fred is connection which exist in oracle sql developer interface? what kind of privilegies should fred has?
    In oracle sql deevloper exist several connection to another servers. i`t can be reason of error?
    I trying in oracle sql developer interface select finch as manager of unit tests (tools - unit_test - manage_users to the next i select in dropdown list "finch" and granted needed privilegies for him) , but result was`t changed.
    thanks.

    It looks like you need to spark up SQL Developer, create a repository connection and assign that in the Unit Test Menu. It will walk you through creating the repository and then you can refer to that from the command line.

  • Unable to create PR with Service Line & also no entry in ESLH table using

    Hi Experts,
    I am using BAPI => BAPI_REQUISITION_CREATE to create PR and it is successful to create PR but when I try to create PO is become fail (proably missing entry in ESLH table).
    Now my requirement is to create PR with Service Line and an entry in ESLH table (should be filled by SAP automatically). I have been passing the service related/account assigment tables into BAPI but still not working.
    Will you please give a solution to create PR with Service Line and also need an entry in ESLH table (its important to my req)?
    Also provide some input on Service Line, if possible(How to check Service Line for PR + Account Assignment to Service Line + etc.)?
    Note that: If I create PR manually then there have entry in ESLH and hence I can create PO.
    Definately the quick solution help me lot...
    Thanks
    AKG

    Hi Experts,
    I am using BAPI => BAPI_REQUISITION_CREATE to create PR and it is successful to create PR but when I try to create PO is become fail (proably missing entry in ESLH table).
    Now my requirement is to create PR with Service Line and an entry in ESLH table (should be filled by SAP automatically). I have been passing the service related/account assigment tables into BAPI but still not working.
    Will you please give a solution to create PR with Service Line and also need an entry in ESLH table (its important to my req)?
    Also provide some input on Service Line, if possible(How to check Service Line for PR + Account Assignment to Service Line + etc.)?
    Note that: If I create PR manually then there have entry in ESLH and hence I can create PO.
    Definately the quick solution help me lot...
    Thanks
    AKG

  • Unable to create PO with multiple line items through LSMW-BAPI method

    Hi All,
    I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
    Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
    It seems that through LSMW-BAPI  it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
    BR,
    Atanu Mukherjee

    Solved by myself.
    Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA.  Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
    H~header data
    I~item data
    I~item data 
    This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
    BR,
    Atanu Mukherjee

  • Create delivery  document for line item 5 only manually

    Hi Sap Experts,
    We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
    We will send him mail saying that create delivery  document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
    We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
    What are options we have and how to customize this scenario?
    Kindly suggest.
    Regards,
    Kotli

    Can you be clear in your requirement?
    One requirement is user should not select line items other than the one instructed to them
    The other requirement is delivery split should happen based on item category
    If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit.  If your requirement is second one, then just try in your system and share the outcome how system is functioning.  You will come to know how standard SAP works.
    G. Lakshmipathi

  • Issue in Oracle Pricing - Creating a new pricelist line

    Hi All,
    We have an issue in Oracle Pricing.
    In a price list we have an existing line with some product precedence value, start date as not null and end date as null.
    Now through our PL/SQL code (using the API qp_price_list_pub.process_price_list) we are creating a new line with the same item, what happens is a new line is created and the existing line is end dated with the new line's start_date-1, but the precedence of the existing line is made null.
    We are unable to understand, is this a standard functionality and if not then what might be done to retain the previous line's precedence value.
    Any help in this would be of great help.
    Regards,
    Shruti

    Hi All,
    Can anyone please help me with the above issue....its getting critical for our client.
    Regards,
    Shruti

  • Tool for Creating Tracks per command line available?

    Hi all,
    for my master thesis I need to make up a development concept with the JDI.
    What I'm wondering is, is there any ability (maybe hidden option ) to create tracks per command line interface and connect them per command line?
    Another question which came to mind, I would like to control the DTR via the DTR command line tool, is there any option to do this, just without installing the Developer Studio IDE, as I only want to remote control the DTR via command line and don't need developer equipment on the server?
    Thanks for your help!

    Hi Matthias,
    tracks are stored in the Java database by CMS in its own format and when a buildspace is created on CBS that information is also stored in the Java databse in CBS' own format. Accessing the database directly is not a good idea as you would need additional information that is neither officially published nor supported and that may change.
    Regarding DTR client & IDE: Well, DTR doesn't know about tracks at all, it just stores the sources for track content. The "track" knowledge is part of CMS.
    The command line tool is only distributed with the IDE, but if you just copy the required libraries to the server (you had to edit the batchfile anyway, didn't you?) you do not need the full IDE installation.
    Regards,
    Marc

  • Creating Adobe PDF on-line

    It is taking me hours to create Adobe PDF on-line and then to download the file.
    Why could this be happening?
    Joe Fleming

    Is this regarding CreatePDF?  → http://forums.adobe.com/community/createpdf

  • How Undo functionality can be Created for curves or Line in Swing?

    Please Help! How Undo functionality can be Created for curves or Line in Swing GUI. In the Java Tutorial, Undo with Text is given. But on implementing the SIMILAR logic of Undo with Text, some Errors come with Undo is to be Created on Swing GUI on the Graphics.

    What about storing the image before to execute the drawing method ? Undoing would be as easy as repainting the stored image ?

  • How can create and change PCA line items.

    How can create and change PCA line items.
    Please tell me the process and t.codes.

    If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
    If you are in new GL regular FI entry like FB50 will hold good for account types "S"

  • APIs for creating Incentives headers and lines

    Hello all,
    Can any body list out the apis which are use ful for creating incentives headers and lines.
    Thank you.

    Let me get this right, you have a TOTAL at the Header Level, which when you use a LINE in the answer rather than getting the 100,000 answer you get n * 100,000 where n is the number of LINES?
    It sounds like a Business modelling issue to me, you need to have two logical datasources defined for the LOGICAL TABLE one will contain just PO_HEADERS, one will contain PO_HEADERS and PO_LINES.
    When you map the Total attribute within the LOGICAL TABLE you need to source from PO_HEADERS.TOTAL_PO, for the PO_HEADERS logical source, and then make sure you define a second value for the line using the PO_HEADERS and PO_LINES source - which will probably be QUANTITY * PRICE (or whatever the attributes are down at the line level).
    This way when you create an answer just from PO_HEADERS it will use the TOTAL_PO, when you use an answer using PO_LINES it will use the QUANTITY * PRICE (or whatever Line Total Attribute you have defined).

  • Populate either tax_rate_id or tax_rate_code to create a valid tax line

    Hi All,
    I am getting error in AP Invoice Import program while importing invoices through open interface R12. Actually concurrent program completes successfully but when I open output, it says that invoice is rejected and it gives the following error message: ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line.
    I've checked metalink and found this closest match:
    Ap Invoice Import Program completes with Error, Rejection reason ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line." [ID 1298220.1]
    Cause
    This issue is explained in BUG 10268801 - R12: APXIIMPT IMPORTS INCORRECT INVOICE.
    Payables Invoice Import Program was importing Invoices with Duplicate Tax Lines successfully because the validation to identify the duplicate tax lines were not working properly. Invoice Validation of such invoices fails with unique constraint violated error ZX_DETAIL_TAX_LINES_GT_U1.
    I can apply the patch mentioned in above note BUT cause mentioned above is not the one due to which I am getting error. Actually, when I populate AP_INVOICE_LINES_INTERFACE.line_group_number field for tax lines, I get this error. Otherwise its fine.
    I've also tried populating only tax_rate_id or only tax_rate_code in tax line but still I'm getting this error....
    Can anybody advise ?
    Thanks,
    OraLearner

    Hi All,
    I am getting error in AP Invoice Import program while importing invoices through open interface R12. Actually concurrent program completes successfully but when I open output, it says that invoice is rejected and it gives the following error message: ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line.
    I've checked metalink and found this closest match:
    Ap Invoice Import Program completes with Error, Rejection reason ZX_TAX_RATE_ID_CODE_MISSING, €œPopulate either tax_rate_id or tax_rate_code to create a valid tax line." [ID 1298220.1]
    Cause
    This issue is explained in BUG 10268801 - R12: APXIIMPT IMPORTS INCORRECT INVOICE.
    Payables Invoice Import Program was importing Invoices with Duplicate Tax Lines successfully because the validation to identify the duplicate tax lines were not working properly. Invoice Validation of such invoices fails with unique constraint violated error ZX_DETAIL_TAX_LINES_GT_U1.
    I can apply the patch mentioned in above note BUT cause mentioned above is not the one due to which I am getting error. Actually, when I populate AP_INVOICE_LINES_INTERFACE.line_group_number field for tax lines, I get this error. Otherwise its fine.
    I've also tried populating only tax_rate_id or only tax_rate_code in tax line but still I'm getting this error....
    Can anybody advise ?
    Thanks,
    OraLearner

  • Creating a multi series line chart with different data providers

    I have 3 data providers of the same structure i.e ArrayCollection of DataElement and want to use them to create a multiseries line chart. I do not have just 1 dataProvider that can be used but 3 different data providers of the same structure that i want to use each for different series.
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>
    Please help!

    Sorry for the confusion. Actually I must be doing some thing wrong like using ColumnChart to display a line chart or something like that.
    I have now realized that a multi series line chart can be built by having a different data provider for each of the LineSeries object.
    So the code below would create a multi series line graph :
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>

  • API to create a new shipment line

    Hi,
    Is there any public/private API to create a new shipment line on a purchase order line?
    Thanks & Regards,
    Nagesh.

    Check "Oracle Integration Repository" Site
    http://irep.oracle.com/index.html

  • Comand line JSDK Installation

    I need to automate the installation of JSDK 1.3.1 or higher on a Win 2K box. It needs to be ran directly from the comand line with no other input necissary.
    Is this even possible. Any help would be great.
    Thanks.
    -john

    Yeah, I want the same thing. Any answers?

Maybe you are looking for

  • Email notifications but no responses

    I received 4 emails indicating that responses had been posted to one of my forms, but the form showed no responses. This was at a time when my contract renewal was due and Adobe didn't have a current credit card on file. I updated the credit card inf

  • System does not allow change to matrial master as there is open transaction

    Hi, I am trying to change an existing material master (MM02 of account view 1) to split valution, however, I encounter the following log message which prevent me to change the valuation category. Message Log The Valuation Category Cannot be Changed f

  • PP WC Availability

    Hi, PP Workctr is linked in PM Eq Maaster. Scheduling is carried out. Preventive Maint order is generated. Prod WC is booked for 8 hrs. But on that particular day Maint dept could not carry out Prev Maint. Now how to reflect this 8 hrs in Prod WC as

  • Printer Driver off line

    I have two offices the same exact printer, HP Officejet 4630.  Both printers were set up wireless.  Every time I bring my laptp from office to office I can't print.  I have to reload the sofdtware, I get a message that the 4630 printer Driver is offl

  • Locating picture files  from lightroom 3.6

    Dear  Sir; I have worked on images using lightroom 3.6  from My Pictures folder.   When I try to open up lightroom 3.6  again i cannot find  the folders the touched up photos were sent to..... they are in the My Pictures folder  but  can;t be found i