Dublicate Value

hi,
i have to insert value in to two table two table transaction_details,LAB_WORK_DTL .In Item Name And item Price insert in to transaction_details and labour WORK_DETAIL,LABOUR_AMT amount insert in to ,LAB_WORK_DTL using two form .
Now I am fetching WORK_DETAIL,LABOUR_AMT from LAB_WORK_DTL in to a HTML PL/SQL report .i am using below SQL Quary to fetch data from LAB_WORK_DTL .
SELECT l.WORK_DETAIL,l.LABOUR_AMT
FROM transaction_details t,LAB_WORK_DTL l WHERE t.bill_no =l.bill_no and l.bill_no =:P27_BILL_NO
But My Result are like this.
WORK_DETAIL                LABOUR_AMT
Repair Pump                         334
Maitenance                              232
Repair Pump                         334
Maitenance                              232
Repair Pump                         334
Maitenance                                 232
Repair Pump                         334
Maitenance                                  232
Repair Pump                         334
Maitenance                              232These value comes because 5 Item With Price insert into transaction_details .
i have to taking both table because i am fetching data from both table using bill no . if i am taking only one table like LAB_WORK_DTL
Quary Like
SELECTWORK_DETAIL,LABOUR_AMT FROM LAB_WORK_DTL WHERE bill_no =:P27_BILL_NO
Then that Show me
WORK_DETAIL                LABOUR_AMT
Repair Pump                         334
Maitenance                             232Only two Record these are correct record .
But I want to display these data into an PL/SQL report.it's not neccessry,data would be insert into column WORK_DETAIL, LABOUR_AMT in to LAB_WORK_DTL .if i use SELECTWORK_DETAIL,LABOUR_AMT FROM LAB_WORK_DTL WHERE bill_no =:P27_BILL_NO Quary then It show me No Data Found Error in to PL/SQL Report .and if i use SELECT l.WORK_DETAIL,l.LABOUR_AMT
FROM transaction_details t,LAB_WORK_DTL l WHERE t.bill_no =l.bill_no and l.bill_no =:P27_BILL_NO
Then It Shows Me
WORK_DETAIL                LABOUR_AMT
Repair Pump                         334
Maitenance                                 232
Repair Pump                         334
Maitenance                                 232
Repair Pump                         334
Maitenance                                     232
Repair Pump                         334
Maitenance                                     232
Repair Pump                         334
Maitenance                                 232Then How can i fetch Correct Value From LAB_WORK_DTL using Both Table transaction_details, LAB_WORK_DTL
Thanks
Manoj
Edited by: Manoj Kaushik on Apr 13, 2010 3:27 AM

hi Karthick,
Thanks To Reply Me and correct Answer
I have one more problem regarding this,
i have charge service tax on LABOUR_AMT .i am using cursor for it , Shown below
cursor c3 is select L.service_tax,SUM(L.LABOUR_AMT) LABOUR_AMT,
       SUM(L.SERVICE_TAX_AMT) SERVICE_TAX_AMT
from  transaction_details T FULL JOIN LAB_WORK_DTL L
ON    T.BILL_NO = L.BILL_NO
WHERE T.BILL_NO = :P27_BILL_NO
GROUP BY T.bill_no,L.service_tax, T.bill_date, T.vehicle_no, T.PARTY_NAME;
Now Problem is my LABOUR_AMT is
WORK_DETAIL                LABOUR_AMT
Repair Pump                         334
Maitenance                                 232
Service tax = is fix 10.3
Service tax Should be 334 + 232 =(566*10.3)/100 = 58.29 But It's Show me In Report 2830 Rs.
and using
sa:=0;
lst:=0;
open c3;
loop
FETCH c3 INTO st,la,p;
exit when c3%notfound;
sa:=nvl(sa+la,0);
lst:=nvl(lst+p,0);
end loop;
close c3;
and there are 5 Item with price in  in  transaction_details corresponding bill no.
How can i get Correct Calculated Service tax which charge on labour_amtThanks

Similar Messages

  • Dublicate Value In HTML PL/SQL Report

    hi,
    i have to enter item name and item Price iinto transaction_details by using a form and labour Work, labour amount into LAB_WORK_DTL table using a form .
    Now Problem is when i fetch these value in to PL/SQL Report then it's shows me double value like My Total Amount is 100 Then It show Me 200 and if there is two Values eg A , B then in report it's shows me A ,B , A, B, these two Value Shows Me in four Rows .How can i remove Dublicate Values .Why it does show me that double value . My code is below
    How can i remove this problem .
    declare
    SA NUMBER;
    tot number;
    TH NUMBER;
    va number;
    am number;
    lst number;
    tst number;
    st NUMBER;
    cursor c2 is select
    T.VAT,
    SUM(T.AMOUNT) AMOUNT,
    SUM(T.VAT_AMOUNT) VAT_AMOUNT
    from transaction_details T FULL JOIN LAB_WORK_DTL L
    ON T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no,t.vat, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    BEGIN
    FOR x IN(SELECT t.item_name, t.qty,t.rate, t.bill_no
    FROM transaction_details t,LAB_WORK_DTL l where t.bill_no=l.bill_no(+) and t.bill_no=:p27_bill_no
    LOOP
    HTP.P('<tr>
    <td width="2%"> </td>
    <td width="55%" align="left"> '|| HTF.escape_sc (x.item_name)||'</td>
    <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.qty)||'</td>
    <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.rate)||'</td>
    <td width="25%" ALIGN="right">'|| HTF.escape_sc (x.qty)* HTF.escape_sc (x.rate)||'
    </td>
    </tr>');
    END LOOP;
    tot:=0;
    bc:=0;
    KA:=0;
    open c2;
    loop
    FETCH c2 INTO va,am,vat_am;
    exit when c2%notfound;
    tot:=nvl(tot+am,0);
    bc:=nvl(bc+vat_am,0);
    end loop;
    close c2;
    HTP.P('<tr>
    <td width="38">  </td>
    <td width="29"> </td>
    <td width="447"> </td>
    <td>  </td>
    <td width="173">
    <p align="Right">-------------------</td>
    </tr>
    <tr>
    <td width="38"> </td>
    <td width="447"> TOTAL</td>
    <td> </td>
    <td width="95"></td>
    <td width="172">
    <p align="right">'
    || nvl(HTF.escape_sc (tot),0)
    ||'</td>
    </tr>');
    </table></body>
    </html>');
    END;
    Thanks
    Manoj Kaushik
    Edited by: Manoj Kaushik on Apr 8, 2010 11:01 PM

    hi,
    this is my Complete Code But I facing Dublicate Value Error .
    In that Code In Total Amount Of All Item Price Show me Jus Double.
    How Can I remove it.
    declare
    a number;
    bd date;
    b varchar2(20);
    c varchar2(50);
    d varchar2(50);
    e varchar2(50);
    f varchar2(50);
    g varchar2(50);
    h varchar2(4000);
    la NUMBER;
    p NUMBER;
    SA NUMBER;
    K NUMBER;
    FA NUMBER;
    HA NUMBER;
    KA NUMBER;
    KH NUMBER;
    MA NUMBER;
    cnt NUMBER;
    tot number;
    l number;
    TH NUMBER;
    FS NUMBER;
    va number;
    am number;
    vat_am number;
    bc NUMBER;
    lst number;
    tst number;
    st NUMBER;
    c_tra number;
    c_lab number;
    cursor c1 is select T.bill_no,T.bill_date,T.vehicle_no,T.PARTY_NAME
           from  transaction_details T FULL JOIN LAB_WORK_DTL L
    ON    T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    cursor c2 is select
           T.VAT,
           SUM(T.AMOUNT) AMOUNT,
           SUM(T.VAT_AMOUNT) VAT_AMOUNT
    from  transaction_details T FULL JOIN LAB_WORK_DTL L
    ON    T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no,t.vat, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    cursor c3 is select L.service_tax,SUM(L.LABOUR_AMT) LABOUR_AMT,
           SUM(L.SERVICE_TAX_AMT) SERVICE_TAX_AMT
    from  transaction_details T FULL JOIN LAB_WORK_DTL L
    ON    T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no,L.service_tax, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    cursor c4 is select
           T.VAT,
           SUM(T.AMOUNT) AMOUNT,
           SUM(T.VAT_AMOUNT) VAT_AMOUNT
    from  transaction_details T FULL JOIN LAB_WORK_DTL L
    ON    T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no,t.vat, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    cursor c5 is select L.service_tax,SUM(L.LABOUR_AMT) LABOUR_AMT,
           SUM(L.SERVICE_TAX_AMT) SERVICE_TAX_AMT
    from  transaction_details T FULL JOIN LAB_WORK_DTL L
    ON    T.BILL_NO = L.BILL_NO
    WHERE T.BILL_NO = :P27_BILL_NO
    GROUP BY T.bill_no,L.service_tax, T.bill_date, T.vehicle_no, T.PARTY_NAME;
    BEGIN
    select chasis_no,ENGINE_NO,MAKE,MILEAGE into c,d,e,f from VEHICLE_DETAILS where vehicle_no =:P27_VEHICLE_NO;
    select ADDRESS into h from PARTY_DETAILS where PARTY_NAME =:p27_PARTY_NAME;
    open c1;
    FETCH c1 INTO a,bd,b,g;
    htp.p('<html>
    <body leftmargin="0" rightmargin="0">
    <table border="1" width="100%" bordercolorlight="#003366" cellspacing="0" bordercolordark="#003366" id="table1">
         <tr>
              <td colspan="2">
              <table border="1" width="100%" cellspacing="0" cellpadding="0" id="table3">
                   <tr>
                        <td width="50"> </td>
                        <td width="21"> </td>
                        <td> </td>
                   </tr>
    <tr>
    <td width="50"><b>
    </b></td>
    <td width="21"><b></b></td>
    <td align ="left">
    <font size="4" face="Arial Black">'||HTF.escape_sc(g)||'</font></td>
                   </tr>
                   <tr>
                        <td width="50"> </td>
                        <td width="21"> </td>
                        <td> </td>
                   </tr>
                   <tr>
         <td width="50"><b>
         </b></td>
                   <td width="60"><b></b></td>
    <td rowspan="4">
    <font size="4" face="Arial Black">'||HTF.escape_sc(h)||'</font></td>
                   </tr>
                   <tr>
                        <td width="50"> </td>
                        <td width="21"> </td>
                   </tr>
                   <tr>
                        <td width="50"> </td>
                        <td width="21"> </td>
                   </tr>
                   <tr>
                        <td width="50"> </td>
                        <td width="21"> </td>
                   </tr>
              </table>
              </td>
              <td width="44%" colspan="3">
              <table border="1" width="100%" cellspacing="0" cellpadding="0" id="table4">
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b></b></td>
                        <td width="10"></td>
                        <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc(a) ||'</font> </td>
                   </tr>
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b></b></td>
                        <td width="10"></td>
         <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc(bd) ||'</font></td>
                   </tr>
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b>
                        </b></td>
                        <td width="10"></td>
              <td ><font size="5" face="Arial Black">     '|| HTF.escape_sc(b) ||'</font> </td>
                   </tr>');
    CLOSE c1;
                   htp.p('<tr>
                        <td width="53"> </td>
                        <td width="104"><b>
                        </b></td>
                        <td width="10"></td>
         <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc (c) ||'</font></td>
                   </tr>
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b>
                        </b></td>
                        <td width="10"><b></b></td>
                        <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc (d) ||'</font></td>
                   </tr>
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b>
                        </b></td>
                        <td width="10"><b></b></td>
                        <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc (e) ||'</font></td>
                   </tr>
                   <tr>
                        <td width="53"> </td>
                        <td width="104"><b>
                        </b></td>
                        <td width="10"><b></b></td>
                        <td ><font size="5" face="Arial Black">     ' || HTF.escape_sc (f) ||'</font></td>
                   </tr>
              </TABLE>
              </td>
         </tr>
    <tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr>
    <tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr>
    <tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr>
    <tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr>
    select count(*) into c_tra from transaction_details  where bill_no=:p27_bill_no;
    select count(*) into c_lab from lab_work_dtl  where bill_no=:p27_bill_no;
    if c_tra>0 and c_lab=NULL then
    FOR x IN(SELECT distinct t.item_name, t.qty,t.rate, t.bill_no
    FROM transaction_details t,LAB_WORK_DTL l  where t.bill_no=l.bill_no(+) and t.bill_no=:p27_bill_no
    LOOP
         HTP.P('<tr>
              <td width="2%"> </td>
              <td width="55%"  align="left"> '|| HTF.escape_sc (x.item_name)||'</td>
              <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.qty)||'</td>
              <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.rate)||'</td>
              <td width="25%" ALIGN="right">'|| HTF.escape_sc (x.qty)* HTF.escape_sc (x.rate)||'
              </td>
         </tr>');
    END LOOP;
    tot:=0;
    bc:=0;
    KA:=0;
    open c2;
    loop
    FETCH c2 INTO va,am,vat_am;
    exit when c2%notfound;
    tot:=nvl(tot+am,0);
    bc:=nvl(bc+vat_am,0);
    end loop;
    close c2;
    KA :=nvl(tot+bc,0);
    HTP.P('<tr>
    <td width="38">  </td>
    <td width="29"> </td>
    <td width="447"> </td>
    <td>  </td>
    <td width="173">
    <p align="Right">-------------------</td>
    </tr>
    <tr>
    <td width="38"> </td>
    <td width="447"> TOTAL</td>
    <td> </td>
    <td width="95"></td>
    <td width="172">
    <p align="right">'
    || nvl(HTF.escape_sc (tot),0)
    ||'</td>
    </tr>');
    open c4;
    loop
    FETCH c4 INTO va,am,vat_am;
    exit when c4%notfound;
    HTP.P('<tr>
    <td width="38">  </td>
    <td width="446"> VAT  '||nvl(HTF.escape_sc (va),0)||'% OF Rs.'||nvl(HTF.escape_sc (am),0)||'</td>
    <td width="116"> </td>
    <td></td>
    <td width="172">
    <p align="right">'
    || nvl(HTF.escape_sc (vat_am),0)
    ||'</td>
    </tr>');
    end loop;
    CLOSE c4;
    HTP.P('<tr>
    <td>  </td>
    <td width="30">  </td>
    <td width="118">  </td>
    <td width="95"> </td>
    <td width="173">
    <p align="Right">------------------</td>
    </tr>
    <tr>
    <td>  </td>
    <td width="446" align="left"> TOTAL</td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">
    <p align="right">'
    || nvl(HTF.escape_sc (KA),0)
    ||'</td>
    </tr>
    <tr>
    <td>  </td>
    <td width="446" align="left"> LABOUR CHARGES :-</td>
    <td width="118"> </td>
    <td width="95"></td>
    <TD width="173"></td>
    </tr>');
    elsif c_lab>0 and c_tra=NULL THEN
    FOR Y IN(SELECT l.WORK_DETAIL,l.LABOUR_AMT
    FROM transaction_details t,LAB_WORK_DTL l WHERE t.bill_no(+) =l.bill_no and l.bill_no =:P27_BILL_NO
    LOOP
         HTP.P('<tr>
    <td>  </td>
    <td width="446" align="left"> '||nvl(HTF.escape_sc (Y.WORK_DETAIL),0)||'</td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">
    <p align="right">'|| nvl(HTF.escape_sc(Y.LABOUR_AMT),0)||'</td>
    </tr>');
    END LOOP;
    HTP.P('
    <TR>
    <td>  </td>
    <td width="30"> </td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">  </td>
    </tr>');
    HTP.p ( '<tr>
    <td width="36">  </td>
    <td width="445"> </td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>');
    sa:=0;
    lst:=0;
    open c3;
    loop
    FETCH c3 INTO st,la,p;
    exit when c3%notfound;
    sa:=nvl(sa+la,0);
    lst:=nvl(lst+p,0);
    end loop;
    close c3;
    TH:=nvl(sa+lst,0);
    FS:=KA+TH;
         htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> TOTAL</td>
    <td> </td>
    <td width="97"></td>
    <td width="172">
    <p align="right">'
    ||nvl(ROUND(HTF.escape_sc (sa),2),0)
    ||'</td>
    </tr>');
    open c5;
    loop
    FETCH c5 INTO st,la,p;
    exit when c5%notfound;
    htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> SERVICE TAX '||nvl(HTF.escape_sc (st),0)||' OF Rs.'||nvl(ROUND(HTF.escape_sc (la),2),0)||'</td>
    <td> </td>
    <td width="97"></td>
    <td width="172">
    <p align="right">'
    || nvl(ROUND(HTF.escape_sc(p),2),0)
    ||'</td>
    </tr>');
    end loop;
    close c5;
    htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> </td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>');
    htp.p('<tr>
    <td width="36">  </td>
    <td width="445" align="left"> BILL AMOUNT</td>
    <td> </td>
    <td width="97"></td>
    <td width="172" align="right">
    <p >'||ROUND(HTF.escape_sc (FS),2)||'</td>
    </tr>
    <tr>
    <td width="36">  </td>
    <td width="445">
    <p align="left"> '|| f_words(HTF.escape_sc (FS))||'</td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>');
    ELSE
    FOR x IN(SELECT t.item_name, t.qty,t.rate, t.bill_no
    FROM transaction_details t where t.bill_no=:p27_bill_no
    LOOP
         HTP.P('<tr>
              <td width="2%"> </td>
              <td width="55%"  align="left"> '|| HTF.escape_sc (x.item_name)||'</td>
              <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.qty)||'</td>
              <td width="15%" ALIGN="right">'|| HTF.escape_sc (x.rate)||'</td>
              <td width="25%" ALIGN="right">'|| HTF.escape_sc (x.qty)* HTF.escape_sc (x.rate)||'
              </td>
         </tr>');
    END LOOP;
    tot:=0;
    bc:=0;
    KA:=0;
    open c2;
    loop
    FETCH c2 INTO va,am,vat_am;
    exit when c2%notfound;
    tot:=nvl(tot+am,0);
    bc:=nvl(bc+vat_am,0);
    end loop;
    close c2;
    KA :=nvl(tot+bc,0);
    HTP.P('<tr>
    <td width="38">  </td>
    <td width="29"> </td>
    <td width="447"> </td>
    <td>  </td>
    <td width="173">
    <p align="Right">-------------------</td>
    </tr>
    <tr>
    <td width="38"> </td>
    <td width="447"> TOTAL</td>
    <td> </td>
    <td width="95"></td>
    <td width="172">
    <p align="right">'
    || nvl(HTF.escape_sc (tot),0)
    ||'</td>
    </tr>');
    open c4;
    loop
    FETCH c4 INTO va,am,vat_am;
    exit when c4%notfound;
    HTP.P('<tr>
    <td width="38">  </td>
    <td width="446"> VAT  '||nvl(HTF.escape_sc (va),0)||'% OF Rs.'||nvl(HTF.escape_sc (am),0)||'</td>
    <td width="116"> </td>
    <td></td>
    <td width="172">
    <p align="right">'
    || nvl(HTF.escape_sc (vat_am),0)
    ||'</td>
    </tr>');
    end loop;
    CLOSE c4;
    HTP.P('<tr>
    <td>  </td>
    <td width="30">  </td>
    <td width="118">  </td>
    <td width="95"> </td>
    <td width="173">
    <p align="Right">------------------</td>
    </tr>
    <tr>
    <td>  </td>
    <td width="446" align="left"> TOTAL</td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">
    <p align="right">'
    || nvl(HTF.escape_sc (KA),0)
    ||'</td>
    </tr>
    <tr>
    <td>  </td>
    <td width="446" align="left"> LABOUR CHARGES :-</td>
    <td width="118"> </td>
    <td width="95"></td>
    <TD width="173"></td>
    </tr>');
    FOR Y IN(SELECT l.WORK_DETAIL,l.LABOUR_AMT
    FROM LAB_WORK_DTL l where l.bill_no =:P27_BILL_NO
    LOOP
         HTP.P('<tr>
    <td>  </td>
    <td width="446" align="left"> '||nvl(HTF.escape_sc (Y.WORK_DETAIL),0)||'</td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">
    <p align="right">'|| nvl(HTF.escape_sc(Y.LABOUR_AMT),0)||'</td>
    </tr>');
    END LOOP;
    HTP.P('
    <TR>
    <td>  </td>
    <td width="30"> </td>
    <td width="118"> </td>
    <td width="95"></td>
    <td width="173">  </td>
    </tr>');
    HTP.p ( '<tr>
    <td width="36">  </td>
    <td width="445"> </td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>');
    sa:=0;
    lst:=0;
    open c3;
    loop
    FETCH c3 INTO st,la,p;
    exit when c3%notfound;
    sa:=nvl(sa+la,0);
    lst:=nvl(lst+p,0);
    end loop;
    close c3;
    TH:=nvl(sa+lst,0);
    FS:=KA+TH;
         htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> TOTAL</td>
    <td> </td>
    <td width="97"></td>
    <td width="172">
    <p align="right">'
    ||nvl(ROUND(HTF.escape_sc (sa),2),0)
    ||'</td>
    </tr>');
    open c5;
    loop
    FETCH c5 INTO st,la,p;
    exit when c5%notfound;
    htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> SERVICE TAX '||nvl(HTF.escape_sc (st),0)||' OF Rs.'||nvl(ROUND(HTF.escape_sc (la),2),0)||'</td>
    <td> </td>
    <td width="97"></td>
    <td width="172">
    <p align="right">'
    || nvl(ROUND(HTF.escape_sc(p),2),0)
    ||'</td>
    </tr>');
    end loop;
    close c5;
    htp.p('<tr>
    <td width="36">  </td>
    <td width="445"> </td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>
    <tr>
    <td width="36">  </td>
    <td width="445" align="left"> BILL AMOUNT</td>
    <td> </td>
    <td width="97"></td>
    <td width="172" align="right">
    <p >'||ROUND(HTF.escape_sc (FS),2)||'</td>
    </tr>
    <tr>
    <td width="36">  </td>
    <td width="445">
    <p align="left"> '|| f_words(HTF.escape_sc (FS))||'</td>
    <td>  </td>
    <td width="97"> </td>
    <td width="172">
    <p align="Right">------------------</td>
    </tr>');
    END IF;
    HTP.P('</table>
    </body>
    </html>');
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

  • How to remove Dublicate values in Variable Filter screen?

    Hi All,
    I have Master data Object, ABC, XYZ and XYZ Description, and below i have given the data for the same
    Ex  ABC    XYZ      Description
           A        1           Abc
           A        2           Bbc
           A        3           Ccd
           B       1            Abc
           B       2            Bbc
           B       3            Ccd
           C       1            Abc
           C       2            Bbc
           C       3            Ccd
    While executing the Query, we want to do Drill Down on XYZ, In Variable Filter screen we are able to see the Dublicate values, which is making confusion to endusers as which is realed to ABC i.e A or B or C?
    Regards,
    Kiran

    Hi Surendra,
    Say we have executed query using WAD, in Query when we do drill down on B, we are getting all dulicate values like Abc, Abc.
    So client is not able to find which is what.?
    Regards,
    Kiran

  • How find dublicate object?

    hai this karuppaiyan from hcl
    pls tell me answer for a HCL interview question
    How to find dublicate value's number of occurence of a object?
    with out using for loop?

    http://www.oracle.com/support/index.html

  • How find dublicate?

    hai this karuppaiyan from hcl     
    pls tell me answer for a HCL interview question
    How to find dublicate value's number of occurence of a object?
    with out using for loop?

    http://www.oracle.com/support/index.html

  • Folder Functionality

    Hi All,
    we have a requirement to create folder for material transaction form in inventory.
    they are exporting transaction data from this form to excel file.
    they dont need dublicate value we have created folder for this form and hide some dublicate fileds
    then they need to transaction amout and item description.
    amount field is in the destribution form
    can we export the material transaction details and destribution to one single excel sheet.
    those tow fields are not exporting.
    can we do this using folder functionality plz advice me....

    Hi,
    APPFLDR contains all the packages that enable folder blocks.
    But Oracle Applications does not support use of this library for custom development.
    You can go through the Oracle Applications user guide under the topic called
    "Customizing the presentation of data" for adding the folder set.
    Bye
    Srinivasalu.
    null

  • Procedure to remove dublicate composite ID's with values

    i have tables in datawarehouse with four columns (XPK_ROW ,FK_ROW,ID,VALUE)
    Tables have multible records i need help to make procedure to remove dubicate records
    Data Example
    XPK_ROW FK_ROW ID VALUE
    23 324 FT09005001002525 FIELD NOT MAPPED FOR TAG -23B
    43 4234 FT09005001002525 FIELD NOT MAPPED FOR TAG -23B
    This dubliacte records, should be ID compoiste with value should be unique
    please i need to make procedure to remove dublicate reocrds depend on compoiste between ID and VALUE

    Hi:
    DELETE FROM table_name a
          WHERE ROWID > (SELECT MIN (ROWID)
                           FROM table_name b
                          WHERE a.ID = b.ID AND a.VALUE = b.VALUE);Saad,
    http://saadnayef.blogspot.com

  • How to count subforms and add a value to a dropdown?

    Hello!
    I want to make a form with a subform that the user can dublicate by clicking a button (JS: ... addInstance(1);)
    after he dublicates the subform serval times and entered some text in the fields i wanto to count the subforms and go in every subform to get a value from a field.
    Example:
    A form with a subform for Firstname and Lastname.
    the user dublicates the subform 5 times and filled the fields.
    now at the end i want to have a dropdown with all Lastnames from the 5 subforms.
    How can i make this? I looked in serval Samples but i dont find an example for it.
    Thanks for Help.
    Greetings A. Peters

    Hello Stefan!
    Thanks for your good example. It works really good. But when i opened it in the Designer and saves it under a new Name i get some warnings is that normal?
    Here a copy from the log:
    Ungültiger Node-Typ: macroCache
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    7 Warnungen/Fehler gemeldet.

  • Get all values from request.getParameter

    In ASP, I can do something like that...
    For each item in Request.Form
    Response.write "Name is:" & item & " value is:" & Request(item)
    Next
    How about in JSP? How do i get the names and values of the form using a loop?

    You can use request.getParameterNames() which will return an enumeration, then you can iterate through the enumeration and use request.getParameterValue(String paramName) method to get the values.

  • Error while assigning a character value to a numeric variable.

    I fire a sql statement and check the number of rows returned by the sql.
    I check this result with the application logs.
    The application logs keeps the sqls fired by the application and the no of rows returned, in the example below the sql returned 8454 rows.
    My script compares the two results.
    ***********Application Log***********
    4/14/2008 11:15:01 AM: 0059 SQL SELECT "CLUSTER_CD",
    4/14/2008 11:15:01 AM: 0060 "PRODUCT_DESC",
    4/14/2008 11:15:01 AM: 0061 "TEAM_CD"
    4/14/2008 11:15:01 AM: 0062 FROM "OPS$TMS"."MAP_CLUSTER_TEAM_PROD"
    4/14/2008 11:15:01 AM:      3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, 8,454 lines fetched
    ***********Application Log***********
    My script:
    #!/bin/ksh
    typeset -i resA
    typeset -i resB
    opstms_conn_string="abc/[email protected]"
    set `sqlplus -s $opstms_conn_string << EOF
    set pages 0
    WHENEVER SQLERROR CONTINUE
    SELECT count(*)
    FROM MAP_CLUSTER_TEAM_PROD;
    exit
    EOF`
    resA=$1 ##returns 8454
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    ##resB returns 8,454
    ## here i get syntax error
    if [ $resA -eq $resB ]; then
    echo "QA passed for sql1"
    else
    echo "QA failed for sql1"
    fi
    The problem is as resB is integer variable it does not accept character value: 8,454 so returns a syntax error:
    How do I change the value assigned to resB into a numeric variable?
    error:
    + grep 3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, BCVP_Main_Loader.qvw.log
    run.ksh[52]: 8,454: syntax error

    Change:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    to this:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}' | tr -d ,`
    to drop the comma. Or you could do it in awk(1):
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{ gsub( /,/, "", $10 ); print $10}'`
    Or you could to it all in awk(1):
    resB=`awk '
    /3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD/ {
    gsub( /,/, "", $10 )
    print $10
    ' BCVP_Main_Loader.qvw.log`
    (This example was not tested, it's just for a model.)
    Someone more of an SQL guru than I can probably tell you how to change your numeric locale to avoid presenting those commas in the first place and avoid the problem.
    HTH

  • Issue in Creation of new Value Field in CO-PA

    Hi,
    I have a query in CO-PA Value Field Linking.
    In my Development Client,
    1. Created a New Value Field (No Transport Request Generated)
    2. Linked to the above to new Conditon type created in SD. (Tranport request was generated) i.e. in Flow of Actual Values->Transfer of Billing Documents->Assign Value Fields
    However then i try creating a new Value Field in my Production Client it throws a message 'You have no authorization to change Fields".
    Is this an issue with authorization or i need to transport the Value field too from Development to Production client.
    Please Advise.
    Thanks in Advance,
    Safi

    Thanks Phaneendra for the response.
    The creation of Value field did not create any tranportation request. Will this too be transported if i transport the Operating Concern.
    Please Advise.
    Thanks,
    Safi

  • Query help : Query to get values SYSDATE-1 18:00 hrs to SYSDATE 08:00 hrs

    Hi Team
    I want the SQl query to get the data for the following comparison : -
    Order Created is a Date Column , and i want to find out all the values from (SYSDATE-1) 18:00 hours to SYSDATE 08:00 hours
    i.e.
    (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 08:00:00.
    Regards

    Hi, Rohit,
    942281 wrote:
    If i want the data in the below way i.e.
    from (SYSDATE-1) 18:00 hours to SYSDATE 17:59 hours ---> (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 07:59:00.If you want to include rows from exactly 18:00:00 yesterday (but no earlier), and exclude rows from exatly 08:00:00 today (or later), then use:
    WHERE   ord_dtl.submit_dt  >= TRUNC (SYSDATE) - (6 / 24)
    AND     ord_dtl.submit_dt  <  TRUNC (SYSDATE) + (8 / 24)
    So can i use the below format : -
    ord_dtl.submit_dt BETWEEN trunc(sysdate)-(6/24) and trunc(sysdate)+(7.59/24) . Please suggest . .59 hours is .59 * 60 * 60 = 2124 seconds (or .59 * 60 = 35.4 minutes), so the last time included in the range above is 07:35:24, not 07:59:59.
    If you really, really want to use BETWEEN (which includes both end points), then you could do it with date arithmentic:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - (6 / 24)
                      AND         TRUNC (SYSDATE) + (8 / 24)
                                               - (1 / (24 * 60 * 60))but it would be simpler and less error prone to use INTERVALs, as Karthick suggested earlier:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - INTERVAL '6' HOUR
                      AND         TRUNC (SYSDATE) + INTERVAL '8' HOUR
                                               - INTERVAL '1' SECONDEdited by: Frank Kulash on Apr 17, 2013 9:36 AM
    Edited by: Frank Kulash on Apr 17, 2013 11:56 AM
    Changed "- (8 /24)" to "+ (8 /24)" in first code fragment (after Blushadown, below)

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • Unable to capture the parameter values from a PL/SQL procedure

    hi.
    i'm trying to capture the parameter values of a PL/SQL procedure by calling inside a anonymous block but i'm getting a "reference to uninitialized collection error" ORA-06531.
    Please help me regarding.
    i'm using following block for calling the procedure.
    declare
    err_cd varchar2(1000);
    err_txt VARCHAR2(5000);
    no_of_recs number;
    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
    cntr_var number:=0;
    begin
         rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
         dbms_output.put_line('The error is ' ||err_cd);
         dbms_output.put_line('The error is ' ||err_txt);
         dbms_output.put_line('The cntr is ' ||cntr_var);
         for incr in 1 .. OUT_SIGN_TAB.count
         loop
         cntr_var := cntr_var + 1 ;
    Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN_TAB(incr).txn_type||','||OUT_SIGN_TAB(incr).objid);
    end loop;
    end;
    Error is thrown on "for incr in 1 .. OUT_SIGN_TAB.count" this line
    Following is some related information.
    the 3rd parameter of the procedure is a out parameter. it is a type of a PL/SQL table (SEARCH_SIGN_TAB_TYPE) which is available in database as follows.
    TYPE "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
    TYPE "SEARCH_SIGN_TYPE" AS OBJECT
    (ref_no VARCHAR2(22),
    ciref_no VARCHAR2(352),
    ac_no VARCHAR2(22),
    txn_type VARCHAR2(301),
    objid VARCHAR2(1024))............

    We don't have your rt843pq procedure, but when commenting that line out, everything works:
    SQL> create TYPE "SEARCH_SIGN_TYPE" AS OBJECT
      2  (ref_no VARCHAR2(22),
      3  ciref_no VARCHAR2(352),
      4  ac_no VARCHAR2(22),
      5  txn_type VARCHAR2(301),
      6  objid VARCHAR2(1024))
      7  /
    Type is aangemaakt.
    SQL> create type "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
      2  /
    Type is aangemaakt.
    SQL> declare
      2    err_cd varchar2(1000);
      3    err_txt VARCHAR2(5000);
      4    no_of_recs number;
      5    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
      6    cntr_var number:=0;
      7  begin
      8    -- rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
      9    dbms_output.put_line('The error is ' ||err_cd);
    10    dbms_output.put_line('The error is ' ||err_txt);
    11    dbms_output.put_line('The cntr is ' ||cntr_var);
    12    for incr in 1 .. OUT_SIGN_TAB.count
    13    loop
    14      cntr_var := cntr_var + 1 ;
    15      Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN
    TAB(incr).txntype||','||OUT_SIGN_TAB(incr).objid);
    16    end loop;
    17  end;
    18  /
    The error is
    The error is
    The cntr is 0
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

Maybe you are looking for