Error stating "too many decimal places (max allowed 0) while getting input

Hi experts
   In one of my reports the input is accepted for the user for a field . The field was initially declared as AZINSSATZ ( Data Type  DEC    Length     10         Decimal Places   7 ) . It did not accept the values like 12.5 .Inorder to give 12 5 we need to give as 12.0000005 .Later i changed it ot menge_d , dmbtr and various other data types  but shows the above error.
please advise on how to correct it

Hi ,
Sorry for the delay .
    x_fieldcat-scrtext_m = 'Interest Rate'.
    x_fieldcat-fieldname = 'INTEREST'.
    x_fieldcat-tabname = 'IT_BSID1'.
    x_fieldcat-col_pos = l_pos.
    x_fieldcat-outputlen = '13'.
    x_fieldcat-edit = 'X'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_pos = l_pos + 1.
the strcture if it_bsid1 is
DATA : BEGIN OF IT_BSID1 OCCURS 0,
INCLUDE STRUCTURE ZFTHUNDI_NO.
BUKRS TYPE     BUKRS,
HUNDI_NO  TYPE          ZHUNDI_NO,
VBELN      TYPE      VBELN_VF,
KDMAT      TYPE      KDMAT,
KUNNR      TYPE     KUNNR,
NAME1      TYPE      NAME1,
ORT01      TYPE      ORT01,
BUDAT      TYPE      BUDAT,
TYPE      TYPE      ZTYPE,
GRN_NO  TYPE     MBLNR,
GRN_DATE  TYPE          BUDAT,
DUEDATE      TYPE     ZDUEDATE,
QTY      TYPE     FKIMG,
REC_QTY TYPE     ZREC_QTY,
ACC_QTY TYPE     ZACC_QTY,
REJ_QTY TYPE     ZREJ_QTY,
BAL_QTY TYPE     FKIMG,
PRCTR     TYPE PRCTR,
DMBTR     TYPE DMBTR,
WRBTR     TYPE WRBTR,
TOTAL     TYPE WRBTR,
FAHA_NO1 TYPE     ZFAHA,
FAHA_DATE TYPE     ZFAHA_DATE,
HSDATE TYPE     ZHSDATE,
HRDATE TYPE     ZHRDATE,
DISDATE TYPE     ZDISDATE,
HBKID     TYPE HBKID,
INTEREST TYPE MENGE_D, ( i ve tried it with diff data types like dmbtr etc)
W_FLAG TYPE C,
W_FLA TYPE C ,
LIGHT TYPE C,
END OF IT_BSID1.

Similar Messages

  • Too many decimal places to fit in JTextField

    I'm putting a Double value into a JTextField (by adding it to ""), and occasionally the value has too many places to fit in the text field.
    Suggestions on limiting the number of decimal places (least significant digits)?
    Thanks.

    Have a look on this one
    http://java.sun.com/j2se/1.5.0/docs/api/index.html?java/text/DecimalFormat.html

  • Date formatting, too many decimal places for milliseconds.

    Is there any cirmumstance where the SimpleDateFormat string of:
    "yyyy.MM.dd HH:mm:ss.SS "
    could result in some dates being output correctly with two digits for milliseconds, and others being output with three digits!

    Hi ,
    Sorry for the delay .
        x_fieldcat-scrtext_m = 'Interest Rate'.
        x_fieldcat-fieldname = 'INTEREST'.
        x_fieldcat-tabname = 'IT_BSID1'.
        x_fieldcat-col_pos = l_pos.
        x_fieldcat-outputlen = '13'.
        x_fieldcat-edit = 'X'.
        APPEND x_fieldcat TO it_fieldcat.
        CLEAR x_fieldcat.
        l_pos = l_pos + 1.
    the strcture if it_bsid1 is
    DATA : BEGIN OF IT_BSID1 OCCURS 0,
    INCLUDE STRUCTURE ZFTHUNDI_NO.
    BUKRS TYPE     BUKRS,
    HUNDI_NO  TYPE          ZHUNDI_NO,
    VBELN      TYPE      VBELN_VF,
    KDMAT      TYPE      KDMAT,
    KUNNR      TYPE     KUNNR,
    NAME1      TYPE      NAME1,
    ORT01      TYPE      ORT01,
    BUDAT      TYPE      BUDAT,
    TYPE      TYPE      ZTYPE,
    GRN_NO  TYPE     MBLNR,
    GRN_DATE  TYPE          BUDAT,
    DUEDATE      TYPE     ZDUEDATE,
    QTY      TYPE     FKIMG,
    REC_QTY TYPE     ZREC_QTY,
    ACC_QTY TYPE     ZACC_QTY,
    REJ_QTY TYPE     ZREJ_QTY,
    BAL_QTY TYPE     FKIMG,
    PRCTR     TYPE PRCTR,
    DMBTR     TYPE DMBTR,
    WRBTR     TYPE WRBTR,
    TOTAL     TYPE WRBTR,
    FAHA_NO1 TYPE     ZFAHA,
    FAHA_DATE TYPE     ZFAHA_DATE,
    HSDATE TYPE     ZHSDATE,
    HRDATE TYPE     ZHRDATE,
    DISDATE TYPE     ZDISDATE,
    HBKID     TYPE HBKID,
    INTEREST TYPE MENGE_D, ( i ve tried it with diff data types like dmbtr etc)
    W_FLAG TYPE C,
    W_FLA TYPE C ,
    LIGHT TYPE C,
    END OF IT_BSID1.

  • Error: decimal places not allowed

    Hi,
    I am entering a PO in currency JPY(Japanese Yen).However when I try to enter a PO with net price for one of the items as say 2.71,it gives error decimal places not allowed.
    I have maintained currency rate as 100 local currency=3.1 Yen
    It only gives problem while using this currency.
    What is the way out ?
    Regards,
    manOO

    Hi,
    Check the config of the currency code (OY04), it is probably set to not allow decimal places.
    If this is the case, don't change it, simply enter a price of 271 with a price unit of 100, in the PO. This will give you a price of 2.71 for one
    Steve B

  • Error 483 Too many hops

    Hi,
    I am trying to establish a connection between 2 IP phones. Both these IP Phones and the OCMS set up is on the corporate intranet network. The OCMS server can ping the IP address of these IP phones.
    However when I run my application to establish the connection, I get Error 483 - Too many hops.
    Below is a snapshot of the traffic log
    ===========================================================
    2007-10-03 18:39:11,003 DEBUG [SipTcpProtocolFactory] (HTTPThreadGroup-9:) OUT> 10.76.82.218:5060/TCP 10.76.82.218:5060/TCP INVITE sip:[email protected] SIP/2.0
    Route: <sip:10.76.82.218:5060;x-resolved-addr=127.0.0.1:5060;transport=TCP;lr>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nka8tjjpck8n-1fmviemhha96q;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-1vt889yo1upzd-123r74rin7zff.1.1;rport
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nssdunfz51fhv-1kzcwmv3kt29d;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK--14gqj9yqd3hj9-19yypup87imkb.1.1;received=10.76.82.218;rport=1893
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-zgadewdllfyd-1t5m2gdzw6ubo.1.1;received=10.76.82.218;rport=1893
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    CSeq: 1 INVITE
    Route: <sip:10.76.82.218:5060;transport=tcp>
    Contact: <sip:10.76.82.218:5060;transport=tcp;asid=N-1d1npn5mxp09i-12mgzhvksgk9r>
    From: "[email protected]" <sip:[email protected]>;tag=oysnl9hv9x7s-1q1474xagwpzw
    To: <sip:[email protected]>
    Call-ID: -19xcq1v6ekxfi-1fabel4uj7y4m
    Content-Length: 0
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-nv5e924as7fx-18h2cdzsqq9o7.1;received=10.76.82.218;rport=1893
    Max-Forwards: 30
    P-Asserted-Identity: sip:[email protected]
    ================================
    The Max-forwards is decremented in each subsequent message.
    Any pointers to this problem will be highly appreciated.
    Thanks,
    Uday

    Hi,
    I am trying to establish a connection between 2 IP phones. Both these IP Phones and the OCMS set up is on the corporate intranet network. The OCMS server can ping the IP address of these IP phones.
    However when I run my application to establish the connection, I get Error 483 - Too many hops.
    Below is a snapshot of the traffic log
    ===========================================================
    2007-10-03 18:39:11,003 DEBUG [SipTcpProtocolFactory] (HTTPThreadGroup-9:) OUT> 10.76.82.218:5060/TCP 10.76.82.218:5060/TCP INVITE sip:[email protected] SIP/2.0
    Route: <sip:10.76.82.218:5060;x-resolved-addr=127.0.0.1:5060;transport=TCP;lr>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nka8tjjpck8n-1fmviemhha96q;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-1vt889yo1upzd-123r74rin7zff.1.1;rport
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    Record-Route: <sip:10.76.82.218:5060;transport=tcp;asid=Nssdunfz51fhv-1kzcwmv3kt29d;b;sid=0;lr>
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK--14gqj9yqd3hj9-19yypup87imkb.1.1;received=10.76.82.218;rport=1893
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-zgadewdllfyd-1t5m2gdzw6ubo.1.1;received=10.76.82.218;rport=1893
    Route: <sip:127.0.0.1:5060;transport=TCP;lr;appId=proxyregistrar>
    CSeq: 1 INVITE
    Route: <sip:10.76.82.218:5060;transport=tcp>
    Contact: <sip:10.76.82.218:5060;transport=tcp;asid=N-1d1npn5mxp09i-12mgzhvksgk9r>
    From: "[email protected]" <sip:[email protected]>;tag=oysnl9hv9x7s-1q1474xagwpzw
    To: <sip:[email protected]>
    Call-ID: -19xcq1v6ekxfi-1fabel4uj7y4m
    Content-Length: 0
    Via: SIP/2.0/TCP 10.76.82.218:5060;branch=z9hG4bK-nv5e924as7fx-18h2cdzsqq9o7.1;received=10.76.82.218;rport=1893
    Max-Forwards: 30
    P-Asserted-Identity: sip:[email protected]
    ================================
    The Max-forwards is decremented in each subsequent message.
    Any pointers to this problem will be highly appreciated.
    Thanks,
    Uday

  • STARTING DATABASE : PROBLEM OF Linux Error: 23: Too many open files in syst

    Hi everybody,
    I am running an RMAN script and get this error,
    9> @/u01/app/oracle/admin/devpose/backup/configuration.rcv
    RMAN> ###################################################################
    2> # Configuration file used to set Rman policies.
    3> #
    4> ###################################################################
    5>
    6> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 08/26/2009 20:03:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 08/26/2009 20:03:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN> #CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    2> CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 08/26/2009 20:03:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    RMAN>
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u01/app/oracle/backup/db/ora_df%t_s%s_s%p';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of configure command at 08/26/2009 20:03:30
    RMAN-06403: could not obtain a fully authorized session
    ORA-01034: ORACLE not available
    But this problem is understandable, as the database is not running. The main problem why database is not running, I have found the reason but do not understand how to solve the problem.
    Since, the database was not running, I tried to startup the database, I then came across the following which is my problem (Why so many files are open? Linux OS error says too many files open. See below,
    SQL> conn /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 419430400 bytes
    Fixed Size 779516 bytes
    Variable Size 258743044 bytes
    Database Buffers 159383552 bytes
    Redo Buffers 524288 bytes
    Database mounted.
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/u01/app/oracle/oradata/devpose/redo02.log'
    ORA-27041: unable to open file
    Linux Error: 23: Too many open files in system
    Can anybody has run into such problem and guide me to a solution, please?
    Thanks

    Hi,
    yes, this DB was functioning o.k. this configuration script was part of RMAN daily backup.
    Last night the backup failed. So, when I opened "Failed job" in the EM, I saw this type of messages.
    That was the starting point. Gradually, I tried to narrow down on to the actual problem and found the findings as I have posted.
    One way of sovling problem, I thought that, all these processes I would kill and then try to open the database, it might startup. However, that wouldnot lead me in ensuring this won't occur again.
    That's why I am trying to understand why it should open, so many processes (why spawn so many .flb files?) Any thoughts you have around this?
    I will try to restart the OS as the last resort.
    Thanks for your help and suggestions.
    Regards,

  • After Loading Lion I now get 5 windows w/ a graphic of a Red Stop sign with an ! mark and the following text message: "DAVE Networking  Dave kernel extensions could not be loaded! Error 71 - Too many levels of remote in path."

    After Loading Lion I now get 5 windows w/ a graphic of a Red Stop sign with an ! mark and the following text message:
    "DAVE Networking 
    Dave kernel extensions could not be loaded! Error
    71 - Too many levels of remote in path."
    I have uninstalled DAVE and used Clean App to remove trace elements of program, however I still get the message and am unable to eliminate the error messages.  When I click OK the message goes away briefly and then comes back up.
    Any solutions would be great.

    Dave,
    Thanks....What I did was load the free eval version of Dave 9.0 and then used the uninstaller which must have deleted the kernel giving me the problem. 
    Thanks for the response.
    Razor

  • Provider hosted app error message: The remote server returned an error: (429) Too Many Requests.

    Hi,
    I have a customer running a provider hosted app and in Sharepoint 2013. Things have been working fine but recently they keep experiencing an issue where the all the app parts on the page show the following error message. Does anyone have an idea what
    could be causing this problem and how I can fix it? The Sharepoint site and provider hosted app site are running on a Server 2008 R2 box with IIS 7.5.
    Server Error in '/Test.Sharepoint.App' Application.
    The remote server returned an error: (429) Too Many Requests.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.           
    Exception Details: System.Net.WebException: The remote server returned an error: (429) Too Many Requests.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [WebException: The remote server returned an error: (429) Too Many Requests.]
    System.Net.HttpWebRequest.GetResponse() +8527180
    Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() +58
    Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) +975
    Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.GetLatestAnnouncement(Boolean showFullText) +610
    Test.Sharepoint.AppWeb.Pages.LatestAnnouncement.Page_Load(Object sender, EventArgs e) +764
    System.Web.UI.Control.LoadRecursive() +71
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
    Impreza Software Development

    Hi GuYumming,
    I have checked the Sharepoint site using Fiddler and my X-SharePointHealthScore stays consistently on 1, I have even refreshed the site and had the "(429) Too Many Requests" error happen right in front of me whilst Fiddler is running and when I look at the
    200 response for the Sharepoint site it is still showing "X-SharePointHealthScore: 1".
    I assume because of this I do not need to make any of the changes suggested in your article above?
    I have also been through the ULS logs and found the following 3 log entries that appear to relate to the issue but they do not really mean much to me so I am hoping that you can help:
    Begin CSOM Request ManagedThreadId=59, NativeThreadId=12476
    SPResourceTally(ClientServiceRequestDuration) value 1 + 150425 > 150000
    ResourceBudgetExceeded, sending throttled status code. Exception=Microsoft.SharePoint.SPResourceBudgetExceededException: ResourceBudgetExceeded     at Microsoft.SharePoint.SPResourceTally.Check(Int32 value)    
    at Microsoft.SharePoint.SPAggregateResourceTally.Check(SPResourceKind kind, Int32 value)     at Microsoft.SharePoint.Client.SPClientServiceHost.OnBeginRequest()
    Impreza Software Development

  • DMEE error (Error Log -  Too many payment mediums created for this payment group)

    Hi Experts,
    Please see the below error while generating the DMEE file.
    Error Log -  Too many payment mediums created for this payment group
    Error is - Too many payment mediums created for this payment group
    Please explain how to resolve this error.Send detail documentation how to rectify this error
    Regards
    Sreedhar

    Hi Nimish Agarwal,
    With reference to the error faced i.e. BFIBL02160 "too many payment
    mediums created for this payment group", please review the information
    provided in the long text of this error in detail.
    Please ensure that the orders are not carried out several times.
    Alternatively you can apply the optional usable message 166 (same
    class: BFIBL02), so that you can prevent creating duplicates in future.
    Please customize this message as an error so as to prevent the system
    from creating duplicate files. You can customize this message in OBA5.
    The message BFIBL02 160 always occurs, if you create more than one
    file for the same payment run, in order to warn you not to send the
    same file twice to the bank.
    The SAPFPAYM program does not create 2 files at once. But if you
    run this program more than once for the same payment run, more than
    one file is created. From the second run on you receive the error
    message BFIBL02 160. You can easily test it, by creating a new
    payment proposal and creating a new file with this proposal and
    SAPFPAYM. The first time you run this program you will not receive
    the message.
    Hope this clarifies.
    Kind Regards,
    Fernando Evangelista

  • Why decimal Places are allowed during goods issue and Goods receipt for mat

    Why decimal Places are allowed during goods issue and Goods receipt for material with unit of measure PCS.
    MY config allows consumption in decimal places.
    How to restrict this?
    Prem Nivas

    Hi,
    Please check in customizing UOM (T code-CUNI).
    In dimensions check the decimal point for the unit of measurement.
    Regards,
    Krishnendu.

  • I have an error of "Too many Activations". how do i fix this?

    I have an error of "Too many Activations". how do i fix this?

    I'm sorry, but how do I go about contacting Adobe Customer Support? it's been a month now and I cannot get any answers. I have "searched" for a way to find/fix this problem until I'm figuratively blue in the face. Sorry for the late reply. :(

  • Linux Error: 23: Too many open files in system

    I crashed the my oracle instance with the following error:
    Tue Feb 13 22:15:16 2001
    Errors in file /home/oracle/product/8.1.6/admin/v2qa1/bdump/lgwr_14175.trc:
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00312: online log 2 thread 1: '/db03/v2qa1/system/log/redo02.log'
    ORA-27041: unable to open file
    Linux Error: 23: Too many open files in system
    Additional information: 2
    LGWR: terminating instance due to error 313
    Instance terminated by LGWR, pid = 14175
    Is the number of open files adjustable?
    Why am I opening files?
    Could the fact that our java stored procedures are trying, unsuccessfully, be leaving files open?
    Thanks - Craig
    null

    increasing the oracle users ulimit to unlimited fixed that error for me. Type
    ulimit -a
    and look at the open files parameter. See your linux doc's to increase it to unlimited (will probably be increased from 1024 to 4096).

  • Error Log -  Too many payment mediums created for this payment group

    Hi Experts,
    When I am doing payment to customers through T-code F110, I am able to clear the open item. But when we are executing the Payment medium - DME Administration, generate the Payment Advice and when we see the print preview of the Payment Advice in spool request, System is showing the following errors,
    "BFIBL02160               Too many payment mediums created for this payment group"
    "BFIBL02616               End of log for payment run 20120123 / NAA02 , NSD / 200"
    "This is line 1/column 45 on page 1"
    Message no. SP01R116
    Kindly help how to rectify the same
    Thanks in advance
    Regards,
    Nimish Agarwal

    Hi Nimish Agarwal,
    With reference to the error faced i.e. BFIBL02160 "too many payment
    mediums created for this payment group", please review the information
    provided in the long text of this error in detail.
    Please ensure that the orders are not carried out several times.
    Alternatively you can apply the optional usable message 166 (same
    class: BFIBL02), so that you can prevent creating duplicates in future.
    Please customize this message as an error so as to prevent the system
    from creating duplicate files. You can customize this message in OBA5.
    The message BFIBL02 160 always occurs, if you create more than one
    file for the same payment run, in order to warn you not to send the
    same file twice to the bank.
    The SAPFPAYM program does not create 2 files at once. But if you
    run this program more than once for the same payment run, more than
    one file is created. From the second run on you receive the error
    message BFIBL02 160. You can easily test it, by creating a new
    payment proposal and creating a new file with this proposal and
    SAPFPAYM. The first time you run this program you will not receive
    the message.
    Hope this clarifies.
    Kind Regards,
    Fernando Evangelista

  • ORA-29278: SMTP transient error: 421 Too many concurrent SMTP

    Hi Gurus,
    I'm send emails by using UTL_MAIL in oracle 10g but some time I got this error
    ORA-29278: SMTP transient error:
    421 Too many concurrent SMTP connections;
    please try again later
    my database detail are as under
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    please help to resolve this issue.
    Thanks in advance
    sadiq

    CREATE OR REPLACE PROCEDURE production_status_email
    AS
    v_sender VARCHAR2 (100) := '[email protected]';
    v_recipients VARCHAR2 (100) := '[email protected]';
    v_cc VARCHAR2 (200) := '[email protected]';
    v_date date default sysdate-1;
    v_subj VARCHAR2 (200) := 'Production Status of ' || to_date(v_date);
    l_mesg LONG := NULL;
    v_mtype VARCHAR2 (30) := 'text/html; charset=us-ascii';
    l_greetings LONG := NULL;
    l_table_heading LONG := NULL;
    l_table_data LONG := NULL;
    l_line_total LONG := NULL;
    l_line_bpcs LONG := NULL;
    l_table_footer LONG := NULL;
    l_regards LONG := NULL;
    n_row_counter NUMBER := 0;
    n_sr_counter NUMBER := 1;
    d_date DATE;
    n_sum_frozen_quantity NUMBER;
    n_sum_plan_quantity NUMBER;
    n_sum_achieve_quantity NUMBER;
    n_sum_price NUMBER;
    n_sum_b_pieces NUMBER;
    n_sum_b_price NUMBER;
    BEGIN
    l_greetings :=
    '<p>Dear sir,</p>'
    ||'<p>Following is Production Status of '
    || v_date
    || '</p>
    l_table_heading :=
    '<table border = "1" cellpadding="1" width="100%" >
    <tr bgcolor="CYAN"><font size="2" face="times" color="BLUE">
    <th align="LEFT" width="100">Main Resource</th>
    <th align="LEFT" width="150">Sub Resource</th>
    <th align="LEFT" width="60">UOM</th>
    <th align="RIGHT" width="100">Frozen Quantity</th>
    <th align="RIGHT" width="100">Plan Quantity</th>
    <th align="RIGHT" width="100">Acheived Quantity</th>
    <th align="RIGHT" width="100">Amount</th>
    <th align="LEFT">Reason</th></tr>';
    FOR mr IN (SELECT DISTINCT mrno, mresource
    FROM image.production_status_v
    WHERE pdate = TO_DATE (v_date)
    ORDER BY 1)
    LOOP
    l_table_data :=
    l_table_data
    || '<tr><font size="2" face="times"><th align="LEFT">'
    || mr.mresource
    || '</th>';
    n_sr_counter := 1;
    FOR sr IN (SELECT srno, sresource, uom, frozen_quantity, plan_quantity, achieve_quantity,price,
    remarks
    FROM image.production_status_v sr
    WHERE mresource = mr.mresource
    AND pdate = TO_DATE (v_date)
    ORDER BY srno)
    LOOP
    IF n_sr_counter > 1
    THEN
    l_table_data := l_table_data || '</font></tr>';
    l_table_data :=
    l_table_data || '<tr><font size="2" face="times"><td></td>';
    END IF;
    l_table_data :=
    l_table_data
    || '<td align="LEFT">'
    || sr.sresource
    || '</td>'
    || '<td align="LEFT">'
    || sr.uom
    || '</td>'
    || '<td align="RIGHT">'
    || TO_CHAR (sr.frozen_quantity, '99,999,999')
    || '</td>'
    || '<td align="RIGHT">'
    || TO_CHAR (sr.plan_quantity, '99,999,999')
    || '</td>'
    || '<td align="RIGHT">'
    || TO_CHAR (sr.achieve_quantity, '99,999,999')
    || '</td>'
    || '<td align="RIGHT">'
    || TO_CHAR (sr.price, '99,999,999')
    || '</td>'
    || '<td align="LEFT">'
    || sr.remarks
    || '</td>';
    n_sr_counter := n_sr_counter + 1;
    n_row_counter := n_row_counter + 1;
    END LOOP;
    l_table_data := l_table_data || '</font></tr>';
    IF n_sr_counter > 2
    THEN
    SELECT SUM (frozen_quantity)
    INTO n_sum_frozen_quantity
    FROM image.production_status_v
    WHERE mresource = mr.mresource AND pdate = TO_DATE (v_date);
    SELECT SUM (plan_quantity)
    INTO n_sum_plan_quantity
    FROM image.production_status_v
    WHERE mresource = mr.mresource AND pdate = TO_DATE (v_date);
    SELECT SUM (achieve_quantity)
    INTO n_sum_achieve_quantity
    FROM image.production_status_v
    WHERE mresource = mr.mresource AND pdate = TO_DATE (v_date);
    SELECT SUM (price)
    INTO n_sum_price
    FROM image.production_status_v
    WHERE mresource = mr.mresource AND pdate = TO_DATE (v_date);
    l_line_total :=
    '<tr bgcolor="#F0F0F0"><font size="2" face="times" color="BLUE">'
    || '<th align="RIGHT" colspan="3">Total</th>'
    || '<th align="RIGHT">'
    || TO_CHAR (n_sum_frozen_quantity, '99,999,999')
    || '</th><th align="RIGHT">'
    || TO_CHAR (n_sum_plan_quantity, '99,999,999')
    || '</th><th align="RIGHT">'
    || TO_CHAR (n_sum_achieve_quantity, '99,999,999')
    || '</th><th align="RIGHT">'
    || TO_CHAR (n_sum_price, '99,999,999')
    || '</th>
    </font></tr>';-- <td></td>
    l_table_data := l_table_data || l_line_total;
    END IF;
    IF mr.mresource = 'Stitching' then
    SELECT SUM(bqr)
    into n_sum_b_pieces
    from image.bundle2
    WHERE to_date(bqr_date) = TO_DATE (v_date);
    SELECT SUM(bqr * (SELECT ROUND (oe.price * er.rate)
    FROM orderent oe, ex_rate er
    WHERE oe.currency = er.currency
    AND oe.order# =
    SUBSTR (b2.order#, 1, 7)))
    into n_sum_b_price
    from image.bundle2 b2
    WHERE to_date(bqr_date) = TO_DATE (v_date);
    l_line_bpcs :=
    '<tr bgcolor="#F0F0F0"><font size="2" face="times" color="BLUE">'
    || '<th align="RIGHT" colspan="3">B Pieces</th>'
    || '<th align="RIGHT">'
    || ''
    || '</th><th align="RIGHT">'
    || ''
    || '</th><th align="RIGHT">'
    || TO_CHAR (n_sum_b_pieces, '99,999,999')
    || '</th><th align="RIGHT">'
    || TO_CHAR (n_sum_b_price, '99,999,999')
    || '</th>
    </font></tr>';-- <td></td>
    l_table_data := l_table_data || l_line_bpcs;
    END IF;
    END LOOP;
    l_table_footer := '</table>';
    --------------------------regards sectionstarts-
    l_regards :=
    '<p><font color="BLUE"><Address><br> Regards,<br> Information Systems
    </address></font>';
    -----------------------regards section ends;
    l_mesg :=
    l_mesg
    || l_greetings
    || l_table_heading
    || l_table_data
    || l_table_footer
    || l_regards;
    IF n_row_counter > 0
    THEN
    UTL_MAIL.send (v_sender,
    v_recipients,
    v_cc,
    NULL,
    v_subj,
    l_mesg,
    v_mtype,
    NULL
    END IF;
    END;
    /

  • TS1702 I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any furthe

    I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
    I have also sent 3 emails to the company if Smart Office 2 with no response.
    How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
    Zena Parton

    I have tried to submit a dissatisfaction report following your instructions from my invoice for the recent purchase of smart office 2.  I can get no further as a report code keeps appearing saying too many http redirects so I can not get any further.
    I have also sent 3 emails to the company if Smart Office 2 with no response.
    How do I report my dissatisfaction which is growing with the frustration of not being able to contact any one!
    Zena Parton

Maybe you are looking for

  • Replacing nav bar--is there a way to change all pages at once?

    I widened my site off of an iweb template and now the nav bar looks bad since it's too narrow and there is text that appears outside of the nav bar background. Since I can't change the color or looks of the nav bar, I've decided to put my own on top

  • USB ports have power but no data connection

    Hello I have a HDX 16-1040 US HP, PORTS External Ports * 5-in-1 integrated Digital Media Reader for Secure Digital cards, MultiMedia cards, Memory Stick, Memory Stick Pro, or xD Picture cards * 4 Universal Serial Bus USB 2.0 * 1 VGA (15-pin) * 1 HDMI

  • IChat & PGP

    Can PGP be used with iChat to create a secure encrypted connection between 2 non-mac accounts? If Apple's Mail can do it why not Apple's iChat? I have created a certificate using apples certificate assistant for the AIM account but there is no option

  • I bought a book on my mac and don't how to read it on my ipad

    I bought that book on amazon and transfered it to the kindle cloud and thought I could access it from my ipad but it shows only on my mac and does not get accessed on ipad...

  • Clone RAC+ASM database

    Hi, We are currentrunly using oracle 10.2.0.3 with 2 node RAC with ASM. How we can clone that.