FHA Refi

Hi all- I need some advice. I am just over 3 years out from a BK7 (discharged April 2012). Last June, I closed on an FHA mortgage at a fixed 30 yr rate of 4%, paying $226 per month in PMI. Since the PMI rate was reduced in January, I have been working to get refi my loan to take advantage of the lower PMI. I was told by my loan officer that my FICO scores needed to have a mid score of 640 to take advantage of good rates. The versions of my scores here on myfico have my mid score at 656, but I know that there is a different version for mortgages. Unfortunately, that mid score came in at a 629. After paying down some card balances, which were high because we needed to put $ into the house over the past year, she ran a simulation which said my scores would rise into the upper 640's. She pulled the new report today, and it came in at 639. Ugh. So I guess what I need advice on is... will I be able to take advantage of the lower PMI rates? I feel like I am burning $ each month unnecessarily. Is there a good way to do this without being a a 640? If not, are there good ways to raise my scores up a couple of points? Should I be loyal to the broker who helped me get into my mortgage last year, or should I be actively shopping around? And with a mid score of 639 and a BK7 on my recored, would shopping around make any difference? Am I stuck? Thanks for the input! George

Any recommendations of how to find a good broker who can work with someone looking for an FHA in Massachusetts and with a BK7 on his record that is 3+ years old?

Similar Messages

  • Should we do a streamline refi or wait?

    Hello, I haven't seen this question asked so here it goes: My partner and I were financed for a home last July.  Only she is currently on the loan as I had a recent job change and some spotty marks on my credit when we closed.  So know we are thinking are getting as streamline to drop interest a little.  Here are the particulars. FHA loan 7/144.25% interestHouse appraised at 180,00. Bought for 173,500.Our current reported unpaid principal is around 168,000.Current bill is 1272.00 a month.   To refi with our current lender, we would be looking at paying 1178.00 a month, so we would save 94.00 a month.  We would pay our portion of the new with equity we have in the home (about 7,000) and the lender would cover closing costs.  The new loan would be a little more than 170,000 and the new interest rate @ around 4%. My question is would this worth it for us? We plan to stay in the home and even if we did leave the home, we may try to keep it as a rental property.  We also want to get out of the mortgage insurance since it's the life of the loan and refi to a conventional eventually.  I am not sure using equity now to save about 1200.00 a year is worth it, but than again that's why I am asking for guidance!  Sorry to be so wordy but any advice on this would be helpful. Thank you!

    Play with a compound interest calculator if you want data, but that's not a bad deal at all even looking at historical market returns ($100/month invested over 30 years is pretty much double what 7K today is worth in 30 years).  This is utterly based on your keeping the house for the long term, it all falls apart if you're looking at substantially less time. I'd also add that if you're trying to convert things to rental later, the cheaper the payment you have the better chance you'll have of making that happen in the future.  $100/month is worth something like $230 monthly gross income on a 43% DTI calc and for many people that's non-trivial. Don't know what market will be like in a year but pretty certain we're going to be higher rates in 3-4 years short of another major collapse which I'm not betting on anyway, so if you're looking at a FHA Streamline refi now, might make sense to look at conventional or other loan products too depending on your current credit strata.  

  • FHA changing guidelines on deferred student loans - 6/15/15

    If you weren't aware, FHA is coming out with a revised underwriting manual on 6/15/15.  Currently Handbook 4155.1 is used, and while there are minor tweaks every now and then, for the most part it's remained pretty similar throughout the years.  However on 6/15/15 the new Handbook 4000.1 (not sure why it's a lower number) is going into effect, and I've noticed some bigger changes (haven't gone through every section yet), one of which is a change in deferred obligations (including student loans). It reads: (G) Deferred Obligations (TOTAL)
    (1) Definition
    Deferred Obligations refer to liabilities that have been incurred but where payment is deferred or has not yet commenced, including accounts in forbearance. (2) Standard
    The mortgagee must include deferred obligations in the Borrower’s liabilities. (3) Required Documentation
    The mortgagee must obtain written documentation of the deferral of the liability from the creditor and evidence of the outstanding balance and terms of the deferred liability. The mortgagee must obtain evidence of the anticipated monthly payment obligation, if available. (4) Calculation of Monthly Obligation
    The mortgagee must use the actual monthly payment to be paid on a deferred liability, whenever available. If the actual monthly payment is not available for installment debt, the mortgagee must utilize the terms of the debt or 5 percent of the outstanding balance to establish the monthly payment. For a student loan, if the actual monthly payment is zero or is not available, the mortgagee must utilize 2 percent of the outstanding balance to establish the monthly payment.  "Mortgagee" means the lender. This means if you are planning on applying for an FHA loan and have deferred student loans (or other deferred obligations) that would disqualify you if their payment was included in your debt ratio, you should get moving sooner rather than later, or adjust your plans to get qualified for a mortgage. This is effective for new FHA case numbers on/after 6/15/15.  To get an FHA case # you need to submit an application and also have either an address (refinance) or an accepted purchase contract (purchase).

    georgiapine wrote:
    Is there language about whether an income-based repayment plan counts as a sufficient calculation of the monthly obligation if that is what appears on the credit report? I believe I have seen discussions about how with USDA loans, underwriters won't accept IBR payment amounts for their DTI calculations but I am not sure what the case is here with the FHA. Is the only cause for concern is that a loan in total deferment will be calculated with a monthly payment of 2% of the loan, when previously it could be excluded if deferred for more than 12 months, or will loans in IBR be calculated at 2% too, regardless of what payment amount shows on the credit report? (I am closing on my house soon, but if I ever want to sell it and qualify for an FHA-backed loan... The house I'm buying is not my forever home.)Don't worry about it then.  ^^^One thing about mortgage guidelines is that they change all the time. What is true today may be entirely different than what is true for the time you go for your new mortgage.  FHA changes their guidelines. Lenders change their overlays. Conventional loans change too. It is the nature of the business. When you do decide to sell, check with a lender prior to selling to see what you qualify for based on the sale of your home. That way you know the specifics required at the time of sale.

  • Excise Invoice is captured with another Po  -During MIGO- Only refer Excise

    Hi,
    I have did a PO with two line item say Material M1 and M2..
    step1-  We did J1IEX with capture excise invoice option for material M1 and M2.
    step 2-  We did GR for material M1 only where i have selected my excise tab as Only refer Excise
    step 3-  Now we are trying to do GR for 2nd line item material M2, where we getting error msge as
    *Excise Invoice is captured with another Purchase Order
    Message no. 4F278*
    I have searched in forum and found related info in the belw links
    CIN related error at the time of GRN
    GR for Import PO,
    where experts are suggesting to apply a note 843490 &994052. seems these notes for older version.. my client version is ECC 6.03
    Please let me know if any note available or any other methods to solve my issue (we don't want to put the excise invoice with suffix of * or /1).
    regards
    Jay
    Edited by: Jayakumar Raju A.S on Sep 6, 2010 11:28 AM

    Hi,
    System takes only single excise invoice in system.
    here i suggest wat u can do ( very tricky)
    for first goods receipt excise invoice is 123
    then u cant give same for other GR it will give an error at this time u can provide excise invoice as (123.).
    Means one dot at beginnig or at the end.
    Note : Hence forth for same excise invoice u should have only one GR.

  • Odd error while opening a ref cursor

    Hi.
    I have a procedure in a package that has both in and out parameters. One of those out parameters is a ref cursor. The procedure creates a dynamic query and then executes it, then it opens the cursor:
    PROCEDURE PROC(
    A IN VARCHAR2,
    B IN VARCHAR2,
    C OUT TYPES.cursorType; --(TYPES is a package whose only use is to declare a cursor type)
    ) IS
    --DECLARATIONS
    OPEN C FOR 'SELECT A, B, C, D...';
    END;
    When I execute the package in an anonymous block it throws the error:
    ORA-00938: not enough arguments for function, just in the line where the cursor is being opened.
    Any ideas?

    is everything defined correctly?
    create or replace package types  as
      type cursorType is ref cursor;
    end types;
    SQL> set serveroutput on
    SQL> declare
      2 
      3    ref_C types.cursorType;
      4   
      5    v_a varchar2(1);
      6    v_b varchar2(1);
      7    v_c varchar2(1);
      8    v_d varchar2(1);
      9   
    10    procedure Proc (a in varchar2
    11                   ,b in varchar2
    12                   ,C out types.cursorType) as
    13 
    14      begin
    15        open C for 'select :1, :2, ''c'', ''d'' from dual' using a, b;
    16    end  Proc;
    17  begin
    18 
    19 
    20    Proc('a', 'b', ref_C);
    21   
    22    fetch ref_C into v_a, v_b, v_c, v_d;
    23    if (ref_C%found) then
    24      dbms_output.put_line(v_a);
    25      dbms_output.put_line(v_b);
    26      dbms_output.put_line(v_c);
    27      dbms_output.put_line(v_d);
    28    end if;
    29   
    30   
    31  end;
    32  /
    a
    b
    c
    dP;
    Edited by: bluefrog on Feb 18, 2010 6:07 PM

  • Error while determining ref.mov.type for WM via Table 156S: 647/ / / /L/ /

    Guyz,
    Firstly despite the plant+storage location + warehouse no. assignments are done , my replenishment delivery (delivery for stock transport order between plants under same company code) is not picking up storage location and warehouse no and thus stopping me from doing picking and PGI (post goods issue).
    However in VL02N when i'm trying to change storage location for line item, i'm getting following weird error
    *Error while determining ref.mov.type for WM via Table 156S: 647/ / / /L/ /*
    I found a SAP Note(133223) regarding this error and VL02 transaction but that note was specific to older versions. I'm on ECC 6.0
    Any suggestions please ?
    Thanks

    Warehouse managment has its own movement types, most identical to inventory management movement types.
    These WM movement types are determined via reference movement types.
    the error you have just looks like your customizing is not complete.
    IMG > LE > WM > Interfaces > IM > define movement types.

  • Friends, MacBook Pro 8,1 – Intel Core i5 – 2.23 GHz (early 2011)   New MB Pro with OSX 10.6 – current on all updates.  I successfully installed rEFit. I used Boot Camp to install Win 7.  All was great.  Then installed debian 6.  Somehow after the debian i

    MacBook Pro 8,1 – Intel Core i5 – 2.23 GHz (early 2011) New with OSX 10.6 – current on all updates.
    I successfully installed rEFit. I used Boot Camp to install Win 7.  All was great.
    Then installed debian 6.  Somehow after the debian install and restart (I know this sounds crazy) but I am now reduced to Win 7 only. rEFit is not present when rebooting nor is OSX or debian. Further, I am unable to force the install DVD to launch when rebooting, by holding C, D or F8.  The Option key brings me to the grey screen with a padlock. I have attempted the root and local pw- no go. Restart holding D takes me to the windows boot manager. I have attempted several options within the Advanced Options; including – Repair Your computer, safe mode and “last known good config,” All of which did nothing.
    I can see all my OSX files within win7. I tried to install the OSX within windows. Ya right, that did nothing..
    I only desire to get back to OSX...
    What are my options??

    Yes, you royally hosed up your machine.
    You should first try to get your files off, any way you can to a external drive.
    Your going to need to hold c and boot from the disk that came with your computer and a couple of screens in under the menu is a option for Disk Utility.
    Select your drive and Erase with Security Option Zero, format the drive HFS+ Journaled and when that's finished (about a hour or so) then quit and install OS X from the installer.
    I hope this works, but I suspect it won't. Others have hosed their machines trying to use a Linux disk without proper partition formatting too.
    Another option might be to use another Mac to c boot off the Snow Leopard disk and install OS X onto a external drive, take that to the problem Mac and try holding option and booting off of it to erase your internal drive.
    You could replace the drive.
    frederick s wrote:
     The Option key brings me to the grey screen with a padlock.
    Is this holding option while booting?
    There was someone else around here who hosed their Mac with a Linux disk too. Try to find it.

  • In Oracle 11g query, how can I refer to results of different column ....

    I want to be able to refer to the results of C1 in another column expression C2. I get ORA-00904: "C1" invalid identifier, which makes sense. I know that I can repeat the entire very long CASE again in my C2 DECODE, but wondering if I can save the server many extra cycles from evaluating the CASE again.
    SELECT [very long nested CASE statements] as C1, DECODE(C1,1,'YES','NO') as C2 FROM TABLE
    Many thanks,
    AK

    Hello
    You can't refer to the alias at the same level so you either have to repeat the CASE statement or wrap it in an inline view and refer to the alias in that. i.e.
    SELECT
        c1,
        DECODE(C1,1,'YES','NO') as C2
    FROM
            SELECT
                [very long nested CASE statements] as C1
            FROM
                FROM TABLE
        )HTH
    David

  • Processo de venda com referência à NFe de fornecedor

    Olá Pessoal,
    Existe um cenário de vendas que pretentem referenciar a NFe do fornecedor informando-a na OV, Cabeçalho, aba Contabilidade campo Referência.
    Por ser Venda Normal o campo J_1BNFDOC-DOCREF não é preenchido de forma standard.
    Vi no tópico http://scn.sap.com/thread/3238930 que posso preencher a estrutura OUT_REF pela BADI da NFe.
    Antes de eu iniciar o desenvolvimento, gostaria de saber se eu preencher a estrutura OUT_REF, o campo J_1BNFDOC-DOCREF vai ser preenchido posteriormente e poderei ver a referência na J1B3N ?
    Obrigado,
    Marcelo

    Marcelo,
    Pelo que vi o erro ocorre por faltar incluir a referência numa tabela interna (WREFOBJ).
    Nessa tabela vc precisaria inserir o número do doc referenciado no campo VBELN. --> WREFOBJ-VBELN.
    O check é feito no include LJ1BGF02, no FORM UPDATE_ORIGINAL_NF.
    Fiz alguns testes aqui, preenchendo as informações funciona na mão funciona, porém não sei qual o melhor momento, pois tem várias operações que levam em consideração o documento referenciado  - até dados da FCI ele busca com base no doc referenciado. Aí vc precisa ver bem como pode dar certo no seu caso.
    Abs,
    Eduardo Hartmann

  • Redeterminação de CFOP e Taxcode em OVs feitas com referência a Cotações

    Olá a todos,
    Gostaria de saber se existe alguma forma para que o CFOP e Codigo de Imposto (ou pelo menos 1 deles) sejam redeterminados em uma Ordem de venda quando esta é criada com referência a uma cotação?
    O cenário é bem obvio: Cotações são feitas aos clientes. O codigo de imposto e CFOP são pertinentes a uma venda normal.
    Porém, no momento que o cliente emite o pedido de compra ele informa que deseja que a venda seja uma Entrega Futura (que demandaria de um CFOP e Cod de Imposto diferentes), mas o taxcode e o CFOP que consigo na Ordem de venda são sempre puxados da cotação usada como referência.
    Já tentei até deixar o CFOP em branco na cotação pra ver se haveria uma redeterminação...mas obtive na OV o campo de CFOP tambem em branco.
    Já agradeço a atenção de todos!
    Obrigado
    Sergio Augusto

    Olá Filipe.
    Eu não sei lhe dizer o efeito disso nas suas ordens de venda pois sou de MM... mas por exemplo: uma vez que você já gerou o documento da nota fiscal o sistema tem esse comportamento de não atualizar os dados na nf após você fazer uma modificação nos dados mestres. Ou seja, esse é o comportamento normal e você precisa modificar e/ou fazer o refresh no documento.
    No passado os dados cadastrais (cliente/fornecedor) eram dinâmicos mas com a nf-e não é mais assim.
    Abraço
    Eduardo Chagas

  • Can Oracle view refer a table in Sql Server Database

    Can a view created in Oracle database refer a table created in SQL Server database. If yes, how do we do it. Code will be very help full.
    Again, if yes does it require any special software and what would be price of that software.
    Thanks for your response in advance.
    Venkat Sathiamurthy

    You would need to configure Oracle Heterogeneous Connectivity to create a database link to the SQL Server system. This can either be done via the Oracle Transparent Gateway for Microsoft SQL Server, which retails for $15,000 per server at http://store.oracle.com or by configuring Oracle Generic Connectivity and using ODBC to go after the SQL Server data. Depending on the operating system you run Oracle on, there may be a free (or cheap) ODBC driver for SQL Server that could be used.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Using REF with object table in SQL Developer

    When i create object tables and fill them with data, then in SQL Developer de REF value isn't displayed.
    I did the following:
    CREATE TYPE adres_type AS OBJECT
    (straat VARCHAR2(20)
    ,nummer VARCHAR2(10)
    ,postcode VARCHAR2(6)
    ,plaats VARCHAR2(50));
    CREATE TABLE adressen of adres_type;
    CREATE TYPE locatie_type AS OBJECT
    (nr NUMBER
    ,naam VARCHAR2(20)
    ,adres REF adres_type);
    CREATE TABLE locaties OF locatie_type;
    CREATE TABLE locaties OF locatie_type
    (SCOPE FOR (adres) IS adressen);
    insert into adressen values (adres_type('Arnhemsestraatweg', '33','6881ND','Velp'));
    insert into locaties values (1,'Directie', (select ref (a) from adressen a where a.plaats = 'Velp'))
    Then in SQL Developer de REF(A) column is empty, while in SQL*Plus it displays the REF value:
    In SQL Developer: SELECT a.*, REF(a) FROM adressen a;
    STRAAT NUMMER POSTCODE PLAATS REF(A)
    Arnhemsestraatweg 33 6881ND Velp
    In SQLPLUS: SELECT a.*, REF(a) FROM adressen a;
    STRAAT NUMMER POSTCODE PLAATS REF(A)
    Arnhemsestraatweg 33 6881ND Velp 0000280209C70341FBB96B4F77813B27B50E53BB4332382E22ADD64AD9B755F651D416B6DA010134
    Is this a bug or is there another reason why the ID doesnt display in SQL Developer.
    (this didnt work in all the previous SQL Developer releases and still not in de 2.1 E.A. version)

    Hi <not sure of your first name>,
    I have replicated the issues and logged a bug against this
    Bug 9102579 - FORUM: REF FUNCTION NOT RETURNING CORRECT RESULT
    Regards,
    Dermot O'Neill
    SQL Developer Team

  • Ref Cursor and For Loop

    The query below will return values in the form of
    bu     seq     eligible
    22     2345     Y
    22     2345     N
    22     1288     N
    22     1458     Y
    22     1458     N
    22     1234     Y
    22     1333     N
    What I am trying to accomplish is to loop through the records returned.
    for each seq if there is a 'N' in the eligible column return no record for that seq
    eg seq 2345 has 'Y' and 'N' thus no record should be returned.
    seq 1234 has only a 'Y' then return the record
    seq 1333 has 'N' so return no record.
    How would I accomplish this with a ref Cursor and pass the values to the front end application.
    Procedure InvalidNOs(io_CURSOR OUT T_CURSOR)
         IS
              v_CURSOR T_CURSOR;
         BEGIN
    OPEN v_CURSOR FOR
    '     select bu, seq, eligible ' ||
    '     from (select bu, seq, po, tunit, tdollar,eligible,max(eligible) over () re ' ||
    '          from (select bu, seq, po, tunit, tdollar,eligible ' ||
    '          from ( ' ||
    '          select bu, seq, po, tunit, tdollar, eligible, sum(qty) qty, sum(price*qty) dollars ' ||
    '               from ' ||
    '               ( select /*+ use_nl(t,h,d,s) */ ' ||
    '               h.business_unit_id bu, h.edi_sequence_id seq, d.edi_det_sequ_id dseq, ' ||
    '                    s.edi_size_sequ_id sseq, h.po_number po, h.total_unit tUnit, h.total_amount tDollar, ' ||
    '                    s.quantity qty, s.unit_price price,' ||
    '               (select (case when count(*) = 0 then ''Y'' else ''N'' end) ' ||
    '          from sewn.NT_edii_po_det_error ' ||
    '          where edi_det_sequ_id = d.edi_det_sequ_id ' ||
    '               ) eligible ' ||
    '     from sewn.nt_edii_purchase_size s, sewn.nt_edii_purchase_det d, ' ||
    '     sewn.nt_edii_purchase_hdr h, sewn.nt_edii_param_temp t ' ||
    '     where h.business_unit_id = t.business_unit_id ' ||
    '     and h.edi_sequence_id = t.edi_sequence_id ' ||
    '     and h.business_unit_id = d.business_unit_id ' ||
    '     and h.edi_sequence_id = d.edi_sequence_id ' ||
    '     and d.business_unit_id = s.business_unit_id ' ||
    '     and d.edi_sequence_id = s.edi_sequence_id ' ||
    '     and d.edi_det_sequ_id = s.edi_det_sequ_id ' ||
    '     ) group by bu, seq, po, tunit, tdollar, eligible ' ||
    '     ) ' ||
    '     group by bu, seq, po, tunit, tdollar, eligible)) ';
              io_CURSOR := v_CURSOR;
    END     InvalidNOs;

    One remark why you should not use the assignment between ref cursor
    variables.
    (I remembered I saw already such thing in your code).
    Technically you can do it but it does not make sense and it can confuse your results.
    In the opposite to usual variables, when your assignment copies value
    from one variable to another, cursor variables are pointers to the memory.
    Because of this when you assign one cursor variable to another you just
    duplicate memory pointers. You don't copy result sets. What you do for
    one pointer is that you do for another and vice versa. They are the same.
    I think the below example is self-explained:
    SQL> /* usual variables */
    SQL> declare
      2   a number;
      3   b number;
      4  begin
      5   a := 1;
      6   b := a;
      7   a := a + 1;
      8   dbms_output.put_line('a = ' || a);
      9   dbms_output.put_line('b = ' || b);
    10  end;
    11  /
    a = 2
    b = 1
    PL/SQL procedure successfully completed.
    SQL> /* cursor variables */
    SQL> declare
      2   a sys_refcursor;
      3   b sys_refcursor;
      4  begin
      5   open a for select empno from emp;
      6   b := a;
      7   close b;
      8 
      9   /* next action is impossible - cursor already closed */
    10   /* a and b are the same ! */
    11   close a;
    12  end;
    13  /
    declare
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at line 11
    SQL> declare
      2   a sys_refcursor;
      3   b sys_refcursor;
      4   vempno emp.empno%type;
      5 
      6  begin
      7   open a for select empno from emp;
      8   b := a;
      9 
    10   /* Fetch first row from a */
    11   fetch a into vempno;
    12   dbms_output.put_line(vempno);
    13 
    14   /* Fetch from b gives us SECOND row, not first -
    15      a and b are the SAME */
    16 
    17   fetch b into vempno;
    18   dbms_output.put_line(vempno);
    19 
    20 
    21  end;
    22  /
    7369
    7499
    PL/SQL procedure successfully completed.Rgds.
    Message was edited by:
    dnikiforov

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI.
    But OA & PI are not appearing in the PO header partner tab when created with ref to PR.
    however it works when i create the PO directly ( without the PR ref )
    I am using the same material & Plant for both manual PO & PR to PO.
    Any idea what could be wrong .
    I have maintained the settings for schema groups for vendor master & purchasing doc in the partner determination.
    Thanks
    Dkmurthy

    Hi,
    I have also an issue that seems similar to one you are discussing.
    When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent.
    When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N
    Note: If I try ME21N, and enter the output type and partner, manually, I receive a warning message
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent. However I can not overcome the warning message, if it plays any role, because I can not assign partner function LS to the vendor.Then I receive message CZ 327 (Can not use this partner role).
    Any input is wellcome.

  • Dynamic sql and ref cursors URGENT!!

    Hi,
    I'm using a long to build a dynamic sql statement. This is limited by about 32k. This is too short for my statement.
    The query results in a ref cursor.
    Does anyone have an idea to create larger statement or to couple ref cursors, so I can execute the statement a couple of times and as an result I still have one ref cursor.
    Example:
    /* Determine if project is main project, then select all subprojects */
    for i in isMainProject loop
    if i.belongstoprojectno is null then
    for i in ProjectSubNumbers loop
    if ProjectSubNumbers%rowcount=1 then
    SqlStatement := InitialStatement || i.projectno;
    else
    SqlStatement := SqlStatement || PartialStatement || i.projectno;
    end if;
    end loop;
    else
    for i in ProjectNumber loop
    if ProjectNumber%rowcount=1 then
    SqlStatement := InitialStatement || i.projectno;
    else
    SqlStatement := SqlStatement || PartialStatement || i.projectno;
    end if;
    end loop;
    end if;
    end loop;
    /* Open ref cursor */
    open sql_output for SqlStatement;
    Thanks in advance,
    Jeroen Muis
    KCI Datasystems BV
    mailto:[email protected]

    Example for 'dynamic' ref cursor - dynamic WHERE
    (note that Reports need 'static' ref cursor type
    for building Report Layout):
    1. Stored package
    CREATE OR REPLACE PACKAGE report_dynamic IS
    TYPE type_ref_cur_sta IS REF CURSOR RETURN dept%ROWTYPE; -- for Report Layout only
    TYPE type_ref_cur_dyn IS REF CURSOR;
    FUNCTION func_dyn (p_where VARCHAR2) RETURN type_ref_cur_dyn;
    END;
    CREATE OR REPLACE PACKAGE BODY report_dynamic IS
    FUNCTION func_dyn (p_where VARCHAR2) RETURN type_ref_cur_dyn IS
    ref_cur_dyn type_ref_cur_dyn;
    BEGIN
    OPEN ref_cur_dyn FOR
    'SELECT * FROM dept WHERE ' | | NVL (p_where, '1 = 1');
    RETURN ref_cur_dyn;
    END;
    END;
    2. Query PL/SQL in Reports
    function QR_1RefCurQuery return report_dynamic.type_ref_cur_sta is
    begin
    return report_dynamic.func_dyn (:p_where);
    end;
    Regards
    Zlatko Sirotic
    null

Maybe you are looking for