Sequence Number does not allowed here

Hi,
I am inserting rows in a table called membership with seqence number membership_id.nextval. But i am getting error like
"Sequence number not allowed here"
Before i inserted about 3852 rows in that table
Here is the statement i am using
INSERT INTO MEMBERSHIP (membership_id,ACTIVIST_ID,G_N_ID,ROLE_ID,
REGION_ID,START_dATE,END_DATE,STATUS,state_id)
SELECT membership_id.nextval,a.activist_id,G.g_n_id,R.ROLE_ID,
'',mwlgmemship.start_date,'','Active',''
FROM activist a,
role r,
group_network g,
final.mwlgmemship mwlgmemship,final.mwlgmem mwlgmem
WHERE
a.first_name=mwlgmem.fname and a.last_name=mwlgmem.lname and a.c_zip_code=mwlgmem.czip and
a.c_country=mwlgmem.country and mwlgmem.person_id=mwlgmemship.person_id and
to_char(mwlgmemship.grno)=g.g_n_reference and mwlgmemship.role_id=r.role_id order by r.role_id
I could not understand the problem, please help me
I am selecting the other fields from other tables.
Thanks
Srinivas

Restrictions on Sequence Values You cannot use CURRVAL and NEXTVAL in the following constructs:
A subquery in a DELETE, SELECT, or UPDATE statement
A query of a view or of a materialized view
A SELECT statement with the DISTINCT operator
A SELECT statement with a GROUP BY clause or ORDER BY clause
A SELECT statement that is combined with another SELECT statement with the UNION, INTERSECT, or MINUS set operator
The WHERE clause of a SELECT statement
The DEFAULT value of a column in a CREATE TABLE or ALTER TABLE statement
The condition of a CHECK constraintAbove text is from the sql reference manual.
HTH
Regards
Raj

Similar Messages

  • Hello to you in the company Apple. I am having a problem in the Apple Store ID does not allow me to work on the Apple Store I hope that you will help. You have sent you yesterday and today I want to call the phone number for Mei you and explain to you why

    Hello to you in the company Apple. I am having a problem in the Apple Store ID does not allow me to work on the Apple Store I hope that you will help. You have sent you yesterday and today I want to call the phone number for Mei you and explain to you why with many thanks

    Sorry, but you can't reach Apple here. This is a user to user forum and Apple does not follow these discussions.
    Try this link to contact Apple directly:
    Apple - Support - iPhone - Contact Support
    Did you already have a look at this page?
    App Store Frequently Asked Questions (FAQ)

  • Serial Number System Status is EDEL and ESTO, SAP does not allow to do PGI

    Hello All,
    We are unable to make PGI for Sales Order 2066904/10 because of wrong Serial Number Status.
    Delivery note was created on the 22.12.2012 and then due to errors deleted on 27.12.2012.
    Problem is that now we need to do PGI but Serial Number System Status is EDEL and ESTO, SAP does not allow to do PGI with Serial Number Status ESTO.
    These 8 products are in Stock and available for this Sales Order, one of the Serial Numbers is with OK Status
    8115001012
    8115001057
    8115001058
    8115001079
    8115001081 with OK status
    8115001180
    8115001181
    8115001690
    Please let us know how to correct the problem so we could do PGI for this Order?
    This scenario is not replicable in RST(Quality System)
    Our Findings:
    ** 1. We have tried IQ02>Edit>Special Serial No Functions>Manual Transactions>To Stock, But it still do not remove EDEL.
    2. Is it suggestible to use T Code BS22 and thereby change PMS8 to Warning? I am not sure regarding this since this a SAP managed Table
    Your help is highly obliged......This is very urgent..........
    Regards,
    Anirban
    SD Consultant

    Hi,
    I have encountered same issue today and here is the solution:
    1. Manually changed the status from EDEL/ESTO to ECUS
        Go to Edit > Special Serial Number Functions > Manual Transaction and select "To Customer", then save.
    2. Once status is in ECUS, change the serial number status back to ESTO.
        Go to Edit > Special Serial Number Functions > Manual Transaction and select "To Stock", then save.
    After doing the 2 steps above, you should be able to do PGI using the serial number.
    Kindly advise if it works for you.
    Regards,
    Vhanie

  • 'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

    I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
    two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
    The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
    The code generated when I add the aspx page is below:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
    The code behind is as follows:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Utilities;
    using System.Reflection;
    namespace MY.Solution.Layouts.MY.Solution
    public partial class processingpage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    try
    //Get a reference to the SPWeb object
    SPWeb oWeb = SPContext.Current.Web;
    //Use the Parameters That Are Passed In
    SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
    SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
    sContentType = thisItem["ContentType"].ToString();
    sContentTypeID = thisItem.ContentTypeId.ToString();
    if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["ID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["AIID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAICID = thisItem["AICID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else
    LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
    catch (Exception ex)
    LoggingService.LogError("My.Solution - Processing Page", ex.Message);
    finally
    //DO SOME FINAL THINGS HERE WHEN REQUIRED.
    In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
    'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    When I change the line:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    to inherit as follows:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
    it does not work either.
    If I change it to inherit like below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
    it also does not work.
    What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

    @NadeemYousuf I have tried this too and it didn't work.  
    What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

  • Ora-02201:sequence not allowed here

    Hi all,
    I am trying to insert the data from one schema to other.
    ukd is the user name i want to insert data into.There is no sequence of the name ukd.Even if i remove ukd, im still getting the same error.
    But iam getting the below error:
    ORA-02201: sequence not allowed here
    ORA-06512:at line 11
    declare
    cursor c1 is
    select owner,object_name from dba_objects
    where owner =upper('&owner');
    begin
    for var in c1 loop
    EXECUTE IMMEDIATE 'insert into ukd.'||var.object_name||'
                      SELECT * FROM '||VAR.OBJECT_NAME||'';
    END LOOP;
    commit;
    END;Message was edited by:
    MYH

    You want to insert data? That means probably only tables. But your select is returning a lot of different things. Just do a
    select object_type, count(*) from dba_objects where owner = upper(&owner) group by object_type;and see, how many different kind of objects you want to select from.
    Better use ALL_TABLES.

  • Number field problem in forms. It does not allow zero

    Hai all
    I have two number fields.[ database items]..When i try to insert data ,it does not allow zero in starting position.
    How can i make this to allow zero in starting position ?
    For example when i try to insert 02323 in one of the database item , after inserting i note the database.
    It saves only 2323. Pls help me
    I'm using oracle forms6i.

    Hi
    For example when i try to insert 02323 in one of the database item , after inserting i note the database.
    It saves only 2323. Pls help me
    How can i make this to allow zero in starting position ?did u try 2 use the format mask to allow inserting number in a specific format as...
    099999which should Returns leading zeros...
    if any doesn't work pls try add the following in ur when-validate-item-trigger...
    SELECT TO_CHAR(ur_column_number,'FM00000')
    FROM ur_table ;it will work...
    SQL> create table test ( x number );
    Table created.
    SQL> insert into test values (00000);
    1 row created.
    SQL> select * from test   ;
             X
             0
    SQL>  SELECT TO_CHAR( x,'FM00000') from test;
    TO_CHA
    00000Regards,
    Abdetu...
    Edited by: Abdetu on Mar 3, 2011 9:42 PM

  • My wifes iphone will not allow her to download from the app store when not connected to the computer. Does anyone know what is wrong?

    My wifes iphone will not allow her to download from the app store when not connected to the computer. Does anyone know what is wrong?

    Resetting your Mac's PRAM and NVRAM
    If you have Apple Care you should give them a call.

  • Skype does not allow me to call some Italian numbe...

    Hello,
    I want to call the following number: 011-81383xx (Torino, Italy). I select +39 in the country list and copy the number. The 0 has to stay before 11. But Skype tells me the number is incorrect and shortens it to +81383xx.
    I know that with some numbers, the 0 has to be removed, but I think it is necessary in this case, but Skype does not allow me to leave it.
    Thank you for your help !

    Hello,
    I want to call the following number: 011-81383xx (Torino, Italy). I select +39 in the country list and copy the number. The 0 has to stay before 11. But Skype tells me the number is incorrect and shortens it to +81383xx.
    I know that with some numbers, the 0 has to be removed, but I think it is necessary in this case, but Skype does not allow me to leave it.
    Thank you for your help !

  • Itunes does not allow me to change the store due to rent objects not yet expired. here are non left

    Itunes does not allow me to change the store due to rent objects not yet expired. there are non left.
    Chris

    Hi Evii0105,
    The article linked below details a number of troubleshooting steps that can help restore your computer's ability to connect to the iTunes Store.
    Can't connect to the iTunes Store
    http://support.apple.com/en-us/HT201400
    Cheers,
    Allen

  • IPhone 3G ** key does not allow me to access my land line voice mailbox...

    OK, I have a great iPhone 3G issue for you. Here it is...
    In order for me to retrieve my voice mail messages on my office land line, I have to call my office direct dial phone number. After that outgoing message begins to play, I have to press ** on my iphone keypad to prompt the voice mail phone system to let me know dial my extension number and password. On my old iphone 2G, it works fine. But with the new iphone, it does not. Another words, when I press **, it does not allow me to the part where I dial my extension number and password. It instead instructs me to dial my extension number and leave a message (not enter my password). Possibly the ** tones from the new phone are too short? Not sure? There are two other people at my company that are having the exact same issue on their 3G phones as well. I even went to the AT&T store and tested it on the display iphones there. Same problem...

    I was on the phone for an hour today with tech support. I spoke first to a tech support agent and next to an iPhone product specialist. Neither had heard of this issue, but I referred them to this thread and they now know it is an issue.
    The product specialist tried to solve the problem and could not. He told me he was emailing the engineers to determine a workaround. He told me he would call me by Tuesday at the latest. His name is Richard and I will continue to update our progress in fixing this issue as I receive information.
    If we can't access our land line corporate voicemail I don't see how I can keep the iPhone even though it otherwise works well and has many positive benefits over the Windows-based smartphone I was using (and may have to go back to).

  • ORA-00976: Specified pseudocolumn or operator not allowed here

    Hi,
    After 11gR2 upgrade we got error in insert statement.
    INSERT INTO SDE_TBL_FLEXTRIMSITROUT
    (BRANCHCD,
    SOURCECD,
    CURRENTNO,
    BATCHNO,
    DEPTCD,
    CCY,
    INITIATIONDATE,
    AMOUNT,
    ACCOUNT,
    ACCOUNTBRANCH,
    TXNCD,
    DEBITCREDIT,
    LCYEQUIVALENT,
    EXCHRATE,
    VALUEDATE,
    INSTRUMENTNO,
    RELCUST,
    ADDLTEXT,
    TXNMIS1,
    TXNMIS2,
    TXNMIS3,
    TXNMIS4,
    TXNMIS5,
    TXNMIS6,
    TXNMIS7,
    TXNMIS8,
    TXNMIS9,
    TXNMIS10,
    COMPMIS1,
    COMPMIS2,
    COMPMIS3,
    COMPMIS4,
    COMPMIS5,
    COMPMIS6,
    COMPMIS7,
    COMPMIS8,
    COMPMIS9,
    COMPMIS10,
    COSTCODE1,
    COSTCODE2,
    COSTCODE3,
    COSTCODE4,
    COSTCODE5,
    RELATEDACCOUNT,
    RELATEDREF,
    USERREFERENCE,
    ACCTPOSTOVERWRITE,
    EXCHRATEOVERWRITE,
    VALUEDATEOVERWRITE,
    ACCTBALOVERWRITE,
    ITRREFER,
    RefinanceAmount,
    PROCESSID)
    VALUES
    (vBranchCode,
    cCreateNewTrimsITR_rec.APPLSYS,
    ROWNUM,
    nBatchNo,
    cCreateNewTrimsITR_rec.DEPT,
    vCcy,
    TO_DATE(cCreateNewTrimsITR_rec.TRANSDATE, 'YYYYMMDD'),
    nAmount,
    vAccount,
    vAccountBranch, --added by subhashish
    vTxnCd,
    cDebitCredit,
    nLcyEquivalent,
    nExchRate,
    TO_DATE(cCreateNewTrimsITR_rec.VALUEDATE, 'YYYYMMDD'),
    vInstrumentNo,
    --'      ' || SUBSTR(cCreateNewTrimsITR_rec.ITRREFER,2,11),
    vFlxCntry || cCreateNewTrimsITR_rec.APNO,
    vDesc,
    cCreateNewTrimsITR_rec.TRANSOUC,
    RPAD(' ', 9),
    vExpenseMIS,
    vProductMIS,
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 9),
    RPAD(' ', 20),
    cCreateNewTrimsITR_rec.THEIRREF,
    RPAD(' ', 16),
    cActPostOverwrite,
    cExchRateOverWrite,
    cValueDateOverWrite,
    cAcctBalOverWrite,
    cCreateNewTrimsITR_rec.ITRREFER,
    cCreateNewTrimsITR_rec.REFIAMOUNT,
    nFlexOutProcessId);
    Error : ORA-00976: Specified pseudocolumn or operator not allowed here
    As per checking, found there is an issue in 11gR2 with insert query using rownum in values.
    Do anyone know how to solve this issue ?

    If there is a bug here, then it is in 10g, not 11.  Although it does insert a row, I don't think it does anything useful.
    SQL> create table t (id number, descr varchar2(10));
    Table created.
    SQL> insert into t values (rownum, 'One');
    1 row created.
    SQL> select * from t;
              ID DESCR
               0 One
    SQL> insert into t values (rownum, 'Two');
    1 row created.
    SQL> select * from t;
              ID DESCR
               0 One
    SQL> commit;
    Commit complete.
    SQL> insert into t values (rownum, 'Three');
    1 row created.
    SQL> select * from t;
              ID DESCR
               0 One
               0 Two
               0 Three
    John

  • Rename with resequence does not allow 6 digits

    OS: Win XP
    Bridge: 3.0.0.464
    Batch rename of files allows a sequence number that is limited to 5 digits. Even though the selector control allows you to specify six digits, the sequence number box does not allow the entry of the 6th digit. For example, I have the following:
    New file name:
    text: tf
    sequence number: 40389
    allow: Six Digits
    If I attempt to enter the sixth digit, I get a "beep" and the entry is not allowed. The Preview at the bottom indicates:
    Current file name: tf0001.cr2
    New filename: tf0403980.cr2
    It might also be useful to allow seven digits on the sequence number.
    The motivation for this is to allow perpetual sequence numbers. I have named all of my digital images with the series tf######. At present, I have over 400,000 images in my system. This provides a unique image identification without restoring to additional information such as "date + subject". In this way, all images on my web pages are identified by this simple number and a customer can simply provide a file number as an image reference - no matter when the image was taken or for which event.

    Be careful with setting the user agent to IE because that can make website send content (JavaScript and CSS) files that only work in IE and not in Firefox.<br />
    Google Docs should work in Firefox with the normal settings, unless Ubuntu made some changes with their branded version that is causing problems on that site.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • My Number Does Not Show Up On Phone Or In iTunes

    This actually occurs on what is now my wife's iphone. It had been mine until I got the 3g one. We got a new sim from AT&T and activated it through itunes for my wife. Everything works, there are no special issues other than what everyone else has seen with the 2.0 software. Her number shows up on caller id on other phones all texts and emails and calls go through with no issue. However her number does not show up anywhere on her phone, not in settings on the phone screen, not on the contacts list and not on itunes either. I remember last year there were some posts regarding this issue but when I was using this phone my number showed up where it was supposed to be so I didn't pay attention to any possible resolutions. I've found a couple of posts that refer to a possible solution involving the sim card. However we went to an AT&T store and two of the guys there who both have iphones said that the sim wouldn't have anything to do with this.
    I'm assuming that something didn't transfer over when we did the activation for her but have no idea how to rectify this. I did try a restore from backup but that didn't do anything. On my phone my number shows up in the right places. Even though this isn't a critical or major issue it does annoy me ( more me than my wife! ). Does anyone have any suggestions?
    John

    Wanted to post an update for anyone else with this issue. I was advised by someone else to call AT&T customer support and have them resend activation/provisioning to the phone. He said he had the issue and this worked for him. So I called and when I finally got someone I was told that there was nothing they could "resend" to the phone but she got in touch with an Apple iphone support person and after explaining the issue to her she connected me to the Apple rep. I explained everything again to her and she said there were two options - the "restore as new phone" which she did not recommend because of the hassle and length of time involved, or have the activation resent to the phone by AT&T. I told her that I had been told there was nothing to be resent. She told me that was incorrect and then she got back in touch with AT&T support then got back to me and said I would see a text message to power off the phone. When I saw that I was to power off and wait 5 minutes and then power the phone back on. At the time I was actually using the phone that had the issue so she called me back on my phone and after 5 minutes I powered the other phone back up and the number now shows up everywhere it's supposed to. Simple, no muss, no fuss and no restore!!
    I thanked her profusely and we both wondered why the first AT&T service person I spoke to did not know that this could be done or did not want to. But she told me the AT&T guys are a little scared of the Apple guys and that they can get things done that we might not be able to. Anyway it is a simple process if you can get them to do it the first time, maybe it's best to go through the Apple people first. The Apple service rep was wonderful and I'm happy!
    John

  • Having a problem with Firefox using Hotmail email. Inbox - as checking messages it freezes up or a 1 item window follows cursor and does not allow you to enter

    I am having a problem accessing Hotmail email messages via Fireflox server. When I am in the Inbox, reviewing messages, it either freezes up or a "1 item" small icon window follows cursor and does not allow me to enter messages or do anything. Have to log off and start over. Suggestions>?

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • PL/SQL: ORA-00984: column not allowed here

    I am Trying to compile this procedure, but i get error, could please anybody help me out.
    Thanks.
    SQL> create or replace procedure FOF_sport_setup(
    2 v_model_cd in varchar2, -- model_cd used in many place
    3 v_portfolio_name in varchar2, -- portfolio name
    4 v_src_acct_nbr in varchar2, -- source account number for port
    5 v_src_fund_nbr in varchar2, -- source fund number
    6 v_fmr_fund_nbr in varchar2, -- fidelity fund number
    7 v_src_cd in varchar2, -- source code
    8 v_last_mod_id in varchar2 -- your corp id
    9 )
    10 as
    11 v_new_portf_id number(12);
    12
    13 begin
    14
    15 select max(portf_id) into v_new_portf_id from portfolios;
    16
    17 insert into portfolios
    18 (portf_id,
    19 portf_cd,
    20 portf_name,
    21 portf_typ_cd,
    22 inception_date,
    23 sub_product_cd,
    24 product_cd,
    25 product_line_cd,
    26 bus_line_cd,
    27 dly_perf_restr_ind,
    28 portf_mgr_id,
    29 seed_acct_nbr,
    30 use_epas_ind,
    31 epas_drop_perf_ind,
    32 src_acct_nbr,
    33 src_fund_nbr,
    34 fmr_fund_nbr,
    35 src_cd,
    36 last_mod_id,
    37 last_mod_dt)
    38 values
    39 (new_portf_id,
    40 v_model_cd,
    41 v_portfolio_name,
    42 "RETAIL",
    43 v_inception_date,
    44 "FREE",
    45 "FREE",
    46 "FREE",
    47 "PAS",
    48 "Yes",
    49 3,
    50 "31635C101",
    51 "N",
    52 "Y",
    53 v_src_acct_nbr,
    54 v_src_fund_nbr,
    55 v_fmr_fund_nbr,
    56 v_src_cd,
    57 v_last_mod_id,
    58 sysdate);
    59
    60 end;
    61 /
    Warning: Procedure created with compilation errors.
    SQL> show errors procedure FOF_sport_setup
    Errors for PROCEDURE FOF_SPORT_SETUP:
    LINE/COL ERROR
    17/2 PL/SQL: SQL Statement ignored
    51/3 PL/SQL: ORA-00984: column not allowed here
    SQL>

    create or replace procedure FOF_sport_setup(
    v_model_cd in varchar2, -- model_cd used in many places for portf_id,
    v_portfolio_name in varchar2, -- portfolio name
    v_inception_date in varchar2,
    v_src_acct_nbr in varchar2, -- source account number for portfolio table in sport db
    v_src_fund_nbr in varchar2, -- source fund number
    v_fmr_fund_nbr in varchar2, -- fidelity fund number
    v_src_cd in varchar2, -- source code
    v_last_mod_id in varchar2 -- your corp id
    as
    v_new_portf_id number(12);
    begin
    select max(portf_id) into v_new_portf_id from portfolios;
    insert into portfolios
    (portf_id,
    portf_cd,
    portf_name,
    portf_typ_cd,
    inception_date,
    sub_product_cd,
    product_cd,
    product_line_cd,
    bus_line_cd,
    dly_perf_restr_ind,
    portf_mgr_id,
    seed_acct_nbr,
    use_epas_ind,
    epas_drop_perf_ind,
    src_acct_nbr,
    src_fund_nbr,
    fmr_fund_nbr,
    src_cd,
    last_mod_id,
    last_mod_dt)
    values
    (v_new_portf_id,
    v_model_cd,
    v_portfolio_name,
    'RETAIL',
    to_date('v_inception_date'),
    'FREE',
    'FREE',
    'FREE',
    'PAS',
    'Yes',
    3,
    '31635C101',
    'N',
    'Y',
    v_src_acct_nbr,
    v_src_fund_nbr,
    v_fmr_fund_nbr,
    v_src_cd,
    v_last_mod_id,
    sysdate);
    end;
    =====================
    The procedure got created without any errors, when i am trying to execute the procedure i am getting errors.
    this is the parameters which i am passing:
    exec FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB', 'IFOFB', 'FPCMS', 'a382077')
    SQL> exec FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB',
    'IFOFB', 'FPCMS', 'a382077')
    BEGIN FOF_sport_setup('01213', 'PAS International Fund of Funds', '2/15/2006', '01213', 'IFOFB', 'IF
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-06512: at "SPORT.FOF_SPORT_SETUP", line 15
    ORA-06512: at line 1
    ===============
    the description for the table is below
    ===========
    SQL> desc portfolios
    Name Null? Type
    PORTF_ID NOT NULL NUMBER(25)
    PORTF_CD VARCHAR2(10)
    PORTF_NAME VARCHAR2(60)
    STRATEGY_CD VARCHAR2(10)
    CO_STOCK_LEV_CD VARCHAR2(10)
    EFF_DATE DATE
    PORTF_WEB_NAME VARCHAR2(60)
    PORTF_TYP_CD VARCHAR2(10)
    INCEPTION_DATE DATE
    CLOSE_DATE DATE
    SUB_PRODUCT_CD VARCHAR2(10)
    PRODUCT_CD VARCHAR2(10)
    PRODUCT_LINE_CD VARCHAR2(10)
    BUS_LINE_CD VARCHAR2(10)
    BUS_GRP_CD VARCHAR2(10)
    PLAN_CD VARCHAR2(10)
    ADVISOR_CD VARCHAR2(10)
    RISK_LEVEL_CD VARCHAR2(10)
    DLY_PERF_RESTR_IND VARCHAR2(3)
    SUB_PORTF_IND CHAR(1)
    PORTF_MGR_ID NUMBER(25)
    SEED_ACCT_NBR VARCHAR2(9)
    OBJECTIVE VARCHAR2(255)
    PORTF_COMPOSITION_DESC VARCHAR2(50)
    LGL_GRP VARCHAR2(30)
    USE_EPAS_IND VARCHAR2(3)
    EPAS_MODEL_NAME VARCHAR2(50)
    EPAS_DROP_PERF_IND VARCHAR2(3)
    SRC_ACCT_NBR VARCHAR2(15)
    SRC_FUND_NBR VARCHAR2(6)
    FMR_FUND_NBR VARCHAR2(6)
    NET_ASSETS NUMBER(25,8)
    SEED_MKT_VAL NUMBER(25,10)
    ACCT_MKT_VAL NUMBER(25,10)
    TOTAL_ASSETS NUMBER(25,10)
    NET_OTHER_ASSETS NUMBER(25,8)
    ACCRUED_INCOME NUMBER(25,10)
    ACCRUED_INTEREST NUMBER
    LIABILITIES NUMBER(25,10)
    SHARES_OUTSTANDING NUMBER(25,10)
    PRINCIPAL_CASH NUMBER(25,10)
    INCOME_CASH NUMBER(25,10)
    INVESTIBLE_CASH NUMBER(25,10)
    SHIP_DATE DATE
    REBALANCE_IND CHAR(1)
    OUTBOUND_IND VARCHAR2(5)
    LGL_MSG_CD CHAR(1)
    LAST_SETTLE_DATE DATE
    LAST_TRD_DATE DATE
    LAST_ALLOC_DATE DATE
    STATUS_CD CHAR(1)
    SRC_CD NOT NULL VARCHAR2(5)
    LAST_MOD_ID NOT NULL VARCHAR2(10)
    LAST_MOD_DT NOT NULL DATE
    PORTF_MGD_CD VARCHAR2(10)
    ==========

Maybe you are looking for

  • Unistalling will i lose my library

    I need to uninstall itunes in order to install odler ipod software that has an older version of itunes. Will i lose my library if i uninstall.

  • Stollen Ipod, need serial number!!!

    Ok, so I had my Ipod stollen awhile ago. I have gotten a new one since but I found out who has my old one and I need to prove that the old one is mine. I missplaced my packaging and need the serial number to report it to my boss. I need to know how t

  • How to prevet copy for my forms

    dear experienced people tell me please, if i have some forms and do not want anybody to make for them copy how to control this Best regards Yasser

  • My i-pod is  goin crazy

    Help! Ive had my ipod 3rd generation for about 3 years now and it has been working fine up intil now. It keeps cutting on and running the battery on, even if I turn it off. I have tried turning it off and putting it on hold, which used to work in the

  • Restrict usage of different fields in Servicedesk / workcenter IM messages

    Hi, I have a customer who is using the workcenter Incident Management on top of SAP Servicedesk. Messages can be created in the SAP Gui or directly in the workcenter. They want various groups of users to have different access in the IM. E.g. for the