Error Updating field

Hi to everyone,
Can you please look at the code below and see what I’m doing wrong?
On form Invoices I have a button to create Direct Debit transactions
The code for the button should do the following:
Select all unique Clients that have the direct debit checkbox checked
Cycle through those Clients and:
Select all transaction records for the Client that have not been invoiced already
Sum the TxAmount field of all the transaction records for the Client that have not been invoiced already
Create a new record in the invoice table using the current ClientID, current date, sum from the previous amount, and calculated tax.
Cycle back through the transaction records for the Client and insert the newly created invoice number into each transaction involved in creating the invoice.
I seem to be getting different errors when I click on the button, the most common being No Current Record Selected in the last step “'Add newly created invoice number to
transactions used to create invoice”.
Thanks for your help
Dante
Tables
tblClient (ClientID(key), Address, DirectDebit, ProductCount)
tblProduct (ProductID(Key), fkClientID, Productype, EnrolmentDate, Isactive)
tblInvoice (InvoiceID(Key), fkClientID, InvoiceDate, Amount, Tax, Paid)
tblTransaction (TxID(Key), fkProductID, TxDate, TxType, TxAmount, TxInvoice)
Code button
Dim db As DAO.Database
Dim rstClient As DAO.Recordset
Dim rstTrans As DAO.Recordset
Dim rstInvoice As DAO.Recordset
Dim rstSum As DAO.Recordset
Dim strSQL As String
Dim strSQLClient As String
Dim strSQLSum As String
Set db = CurrentDb
'Select all unique Clients that have provided direct debit information
strSQLClient = "SELECT DISTINCT ClientID " _
& "FROM tblClient " _
& "WHERE (tblClient.DirectDebit = 40);"
Set rstClient = db.OpenRecordset(strSQLClient)
rstClient.MoveFirst
Do While Not rstClient.EOF
'Select all transactions that have not previously been invoiced
strSQL = "SELECT * " _
& "FROM (tblTransaction " _
& "INNER JOIN tblProduct ON tblTransaction.fkProductID = tblProduct.ProductID) " _
& "INNER JOIN tblClient ON tblProduct.fkClientID = tblClient.ClientID " _
& "WHERE (((tblTransaction.TxInvoice) IS NULL) " _
& "AND ((tblClient.ClientID) = '" & rstClient!ClientID & "'))"
Set rstTrans = db.OpenRecordset(strSQL)
'Sum all transactions that are Fees and have not been previously invoiced
strSQLSum = "SELECT SUM(tblTransaction.TxAmount) As InvoiceSum " _
& "FROM (tblTransaction " _
& "INNER JOIN tblProduct ON tblTransaction.fkProductID = tblProduct.ProductID) " _
& "INNER JOIN tblClient ON tblProduct.fkClientID = tblClient.ClientID " _
& "WHERE (((tblTransaction.TxInvoice) IS NULL) " _
& "AND ((tblTransaction.TxType) = 'Fee') " _
& "AND ((tblClient.ClientID) = '" & rstClient!ClientID & "'))"
Set rstSum = db.OpenRecordset(strSQLSum)
'Add a new record to the invoice table with the sum of the amount and tax fields of all transactions not previously invoiced
Set rstInvoice = db.OpenRecordset("tblInvoice")
rstInvoice.AddNew
rstInvoice("fkClientID").Value = rstClient("ClientID")
rstInvoice("InvoiceDate").Value = Format(Now, "m/dd/yyyy")
rstInvoice("Amount").Value = rstSum("InvoiceSum")
rstInvoice("Tax").Value = rstInvoice("Amount") * 0.05
rstInvoice.Update
'Add newly created invoice number to transactions used to create invoice
rstTrans.MoveFirst
Do While Not rstTrans.EOF
rstTrans.Edit
rstTrans("TxInvoice").Value = rstInvoice("InvoiceID")
rstTrans.Update
rstTrans.MoveNext
Loop
Set rstTrans = Nothing
rstClient.MoveNext
Loop
Set rstClient = Nothing
Set rstInvoice = Nothing
Set db = Nothing
Forms!frmInvoices.Refresh

'Add a new record to the invoice table with the sum of the amount and tax fields of all transactions not previously invoiced
Set rstInvoice = db.OpenRecordset("tblInvoice")
rstInvoice.AddNew
rstInvoice("fkClientID").Value = rstClient("ClientID")
rstInvoice("InvoiceDate").Value = Format(Now, "m/dd/yyyy")
rstInvoice("Amount").Value = rstSum("InvoiceSum")
rstInvoice("Tax").Value = rstInvoice("Amount") * 0.05
new_invoice_id = rstInvoice!InvoiceID
rstInvoice.Update
'Add newly created invoice number to transactions used to create invoice
rstTrans.MoveFirst
Do While Not rstTrans.EOF
rstTrans.Edit
rstTrans("TxInvoice").Value = rstInvoice("InvoiceID")
rstTrans("TxInvoice") = new_invoice_id
rstTrans.Update
rstTrans.MoveNext
Loop
Hi Dante,
Perhaps you can try this.
After the Update of a new rstInvoice record the rstInvoice.InvoiceID is not available anymore. So catch it before the Update, and use that value.
See the "corrections" in the above part.
Imb.

Similar Messages

  • Error 'Update Was Terminated' - While clearing an open item

    Hi,
    We are facing a problem where we receive an error - "Update Was Terminated" when we try to clear some entries for 3-4 vendors (posted in period 12 of year 2006. it happens only for those 3-4 vendors). We have identified the problem as follows:
    1) We ran program SAPF190 and found that there is a defference in the 'debit balance' and Total of line items' for these vendors. I ran program SAPF71 (in Quality server) which rectified some entries. However, some entries still remain incorrect and these entries that still remain incorrect are ones - "which have a posting date of 10 oct 2006, but the posting period picked up by the document header is period 12, instead of period 7". Now, some other documents posted for the same vendor on the same date have picked up the correct posting period i.e. 7. I am really baffled at how this actually happened and howcome the system allowed it??
    2) After running program SAPF190, there were some entries that got corrected (these entries were just not captured by the system in the balance field, and did not have the same problem as the entries mentioned above where the wrong posting period was picked by the system). When i tried to clear the line items for the vendors whose entries had been rectified, it still gve the update error. When i checked the number range status, i noticed something very odd:
    "The number range status shows a number much higher than what the system is automatically picking for the documents (e.g system picks 230 as the document number when posting, but the number range staus in FBN1 shows current number as 256). Also, once 256 is reached (i posted 26 documents for it) and we post the 257th document, the error remains and the status number now moves up 100 places to 356). At this time if i post another document it picks the number 258 instead of 356...and if i keep posting documents till 356 is reached, im sure when i post the 357th document, the status will jump to 456)
    Can someone please help me here!! I dont understand how and why this is happening!!
    Thanks!!
    Regards,
    Angad

    >
    Ravi Sankar Venna wrote:
    > Hello,
    >
    > Please let me know the ERROR name you are getting and what is the transaction code you are using to clear. (F.13 or F-44)
    >
    > Try to analyze the dump in ST22.
    >
    > Regards,
    >
    > Ravi
    Hi,
    The error is "Update was terminated" . It sends this message to my inbox!! After searching a bit i found about the two reports - SAPF190 and SAPF071. After running them i found some balance mis-match. I ran the two programs and it rectified those mis-matched entries!! However, even after that, it is giving me the same "update was terminated" error. We are using F-44 for clearing.
    This error is coming only for those entries which we had posted using a user-exit. Basiaclly these are entries for late payment which were programmed to be posted directly at the time of invoicing. I just checked the code of the exit, and these entries were (astonishingly) made directly into the BKPF and BSEG tables (infact the posting period was hard-coded to '12', which is why even when my posting date for these documents is 10.10.2006, it still enters posting period '12' in the header instead of '7'.). Therefore, there were balance mis-match when we saw the monthly balance in FK10N and compared it with the line items total for that month. However, on running report SAPF071, it corrected those entries, but the update error problem still persists!!
    The exact error:
    Update was terminated
    System ID....   QAS
    Client.......   100
    User.....   MOHGYA323233
    Transaction..   FB1K
    Update key...   4A206A2D00E5001202000000C0A80A35
    Generated....   04.06.2009, 11:24:59
    Completed....   04.06.2009, 11:24:59
    Error info...   F1 805: Clearing: Line item 001

  • MIRO Error - Balancing field "Profit Center" in line item 001 not filled

    Dear Experts,
    Recently we upgraded to ECC 6.0 from 4.6C. We implemented new GL functionality.
    We have also introduced new Profit Centers and have updated the same in Material Master.
    Now, the new Profit Centers are valid from 01.04.2009 till 31.12.9999.
    Now my problem is while doing MIRO after 31.03.2009 for old PO's i.e. the PO's which were created before 01.04.2009 the system gives me error "Balancing field "Profit Center" in line item 001 not filled".
    This is because for the particular line item it picks the profit center from material master, but the validity of that (NEW) profit center is from 01.04.2009 whereas I want to do the posting in back date i.e. for eg. 28.03.2009. Due to which it does not get any profit center.
    How do I resolve this problem. Is there any exit or BADI to do the same.
    Regards...

    Hi
    There could be multiple reasons for this. Pls check on:
    1. For the Expense Account assigned in DIF, have u made the assignment for deriving Profit Center & Business Area in T Code OKB9
    2. Ask your FI Consultant to check the Splitting Characteristics for the MIGO. Check the Splitting Characteristics assigned to the Accounting Document Type assigned to T Code MIGO. Also check if all the GL Accounts have been assigned a splitting characteritics. The path is:
    IMG> Financial Accounting(New)>General Ledger Accounting (New)>Business Transactions>Document Splitting
    3. Do you maintain profit center as a default in material Master? If yes, check if the same has been assigned in the view extended for the plant concerned?
    Pls check the settings. If any doubt, revert back.
    Thanks & Best Regards,
    rahul.

  • Issue with field data type NUMBER(22,5) while updating field data.

    Hi,
    I have a field with data type NUMBER(22,5).
    While inserting or updating field data it should take 17 digit and after decimal point 5 digit total 22 digit.
    I set 22 for maximumLength property of messageTextInput field.
    While updating field I am getting following problems,
    1) I provide the value as 1234567890123456789012 (22 digit) and click apply button.
    then I got error message as
    Error
    मैकेनाइजड दो पहिया/तीन पहिया वाहन - Value 1234567890123460000000 exceeds the maximum allowed value (NUMERIC (22, 5))
    2)then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)
    The I tried with simple SQL insert statement to insert data and it successfully insert 12345678901234567.12345 value.
    Any item property I missed here to set?
    Please suggest.
    Thanks & Regards,
    Sagarika

    hi
    according to
    " then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)"
    this statement ,it seems that it is definitely applying round or somthing like that function in the code before inserting value in the table("try with select round(12345678901234567.1234 ) from dual u will get the same result = 123456789012345600 ") ,
    bcz u r able to insert the same directely into the table using insert statement so kindely have look on the code if something like this is not happening there.try to check code in related EOimpl class
    try to to use debugging mode ,and the 23 char problem is related to maximum lenghth of text box make it 23 it will get resolved and u will be able to enter 17 digits with 5 digits after decimal point
    thanx pratap

  • Error: COUNT field incorrect in jdbc

    hello
    please help me out!!!!!! am trying to retrive data (ID) which was updated before in this program. now am getting error:COUNT field incorrect. and can it be displayed by using JOptionPane?
    pst=con.prepareStatement("select ID from db1 where NAME=?,EMAIL=?");
    ResultSet rs=pst.executeQuery();
    while(rs.next()){
      System.out.println(rs.getString(0));

    pawankarra wrote:
    thnx for ur replay.........This should read:
    Thanks for your reply.Notice the corrected spelling of three of the four words in the sentence (you could have misspelled all of them by using "4" instead of "for") and the use of only one period/fullstop at the end of the sentence.
    In reply to your original question, the column numbers in JDBC start at 1, not at 0. So this line of code is the problem:
    System.out.println(rs.getString(0));It should read:
    System.out.println(rs.getString(1));And, being an autogenerated column, isn't it a numeric value? Do you really want to read it as a String?

  • Reason for Error "Unknown field type (28) encountered."

    Hello,
    I'm from Germany, so sorry for my English first.
    I got the error "Unknown field type (28) encountered." when I run
    a simple "SELECT * FROM system.functions" on my ADD-Database.
    The solution for this problem is found in the KBA 2145730.
    If I use the ADS DLLs v. 11.10.0.22 I got the error, but if I use the
    ADS DLLs v. 9.10.0.35 everything is fine.
    For solving other problems I think it would be better to use the newest
    version, but in this case I can't. At this time it is not a problem, because
    I can't find any real reason so that I must update for now, but nevertheless
    I'd like to know, why this error occurs. What is type 28? Or (what real
    would be great) can I make changes to my software, so that I can
    avoid this problem? I hope you can help me with this "riddle" and wish
    all of you a great day.
    Greetings from Germany,
    Gerit Freericks

    For backwards compatibility the server will send different field types (i.e. char vs varchar, ansi vs unicode, etc).
    The server determines this based on the ACE (Advantage Client Version).  By swapping in new DLLs you are telling the server that you are running a newer client and it can send the newer field types etc for the system tables.
    In addition to swapping the DLLs re-build the application with the new TDataSet (re-compile) and this should resolve your issue.
    For the field types look at ACE.pas  (or ACE.h) in the TDataSet (on the latest).  It looks like 28 is an NMEMO (Unicode Memo field)

  • ERROR: Update mode C is not supported by the extraction API - R3 11

    Hi gurus,
    I just tryed to implement the solution I found at this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    The data source is based on an Infoset on the KONV R/3 Table.
    I setted the AIM delta process and I did all the activities as written in the document.
    The process works if I load data to bw in "full", with "Init without data transfer" and "delta" mode. Of course if I change a Purchase document, it will be posted in the delta queue and then loaded to bw with the next delta load.
    The "initialize delta process" (with data) doesen't work and returns the following error:
    Update mode C is not supported by the extraction API
    the error code is R3 11.
    have you any idea about it???
    Thanks!!!
    Regards!
    Matteo

    Hi,
    for me it sounds quite simple. It is that the update mode 'C' get flagged as 'not allowed' for this extractor. Did you check with rsa3? I guess you will get the same error message. May be you can start debugging in rsa3 to find the place where the update mode gets checked.
    Anyway, it shouldn't be a issue as you have a workaround. May be you should raise a error message at sap because of this.
    regards
    Siggi

  • PHP Show if hides update fields, but they get overwritten with an empty string

    I have an issue with a page where some update fields are displayed depending on who is logged, for example:
    <?php if ($row_Users['UserID']=="101"){ ?>
    <input <?php if (!(strcmp($row_lodges['101_finalist'],"Yes"))) {echo "checked=\"checked\"";} ?> type="checkbox" name="101_finalist"  value="Yes"/>
    <input type="text" class="rankfield" name="101_rank" value="<?php echo($row_lodges['101_rank']); ?>" />
    <?php }  ?>
    <?php if ($row_Users['UserID']=="102"){ ?>
    <input <?php if (!(strcmp($row_lodges['102_finalist'],"Yes"))) {echo "checked=\"checked\"";} ?> type="checkbox" name="102_finalist"  value="Yes"/>
    <input type="text" class="rankfield" name="102_rank" value="<?php echo($row_lodges['102_rank']); ?>" />
    <?php }  ?>
    The issue I have is that if User101 is logged in and updates fields 101_finalist and 101_rank, it overwrites 102_finalist and 102_rank with an empty string.
    Is it possible to prevent each user from seeing the other fields for other users, and prevent the existing values for those other users not be overwritten?
    Hope that makes sense!
    Thank you.

    That would mean multiple nominations when really there only needs to be one nomination per category in any given country.
    It would be:
    1, 345, 101, Borana Lodge, 7, 2, Yes, 1
    1, 345, 102, Borana Lodge, 7, 2, Yes, 3
    1, 345, 103, Borana Lodge, 7, 2, No, NULL
    Instead of:
    1, 345, Borana Lodge, 7, 2, Yes, 1, Yes, 3, No, NULL
    Sorry, Lodge isn't in the nominations table, the list above is what is displayed on the site. Lodge gets looked up in the Ldoges table.
    At the moment it works like this:
    People can visit a website and vote for lodges in different categories, giving them a score out of 10 for each.
    If a lodge gets a vote in a particular category an admin person creates a nomination for that lodge, in that category.
    And the last bit is where judges login and tag the ones they think should be finalists.

  • Error publishing from Muse - "error updating device redirect setting"

    After recent upgrade of Muse I am getting an error message when publishing. The pages are published correctly but there is an error which prevents the final completion of the process. message = "Error updating device redirect settings click resume to try again." it never works. What is up? is this a Business Catalyst error or a a Muse error?

    I turned off the firewall, logged out from Creative Cloud and restarted my computer. After rebooting, I logged in to Creative Cloud, open Muse and connect to Business Catalyst without no problem,

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • How to update fields in multiple tables ?

    Dear all,
    What is the fastest way to update fields in multiple tables... from a single change table...as below is my code to update the fields but it is taking long time to update as i need to keep log file if any one update fails....
    CREATE OR REPLACE
    package body DO_DC_NAME_UPDATE_OTHER_TAB
    as
    type rowidArray is table of rowid index by binary_integer;
    type custRec is record
    n_cust_ref_no dbms_sql.number_table,
    v_name dbms_sql.varchar2_table,
    v_name_chg dbms_sql.varchar2_table,
    rowid rowidArray,
    changed dbms_sql.varchar2_table
    procedure VALIDATE_CUST_NAME( p_n_cust_ref_no in number,p_v_name_chg in out NOCOPY varchar2, p_changed in out NOCOPY varchar2 )
    is
    begin
    FOR cr_cust IN (SELECT --a.n_cust_ref_no,a.v_name,UPD_V_NAME, a.n_weight,a.V_LASTUPD_INFTIM
    from GNMT_CUSTOMER_MASTER_CHG where n_cust_ref_no=p_n_cust_ref_no)
         loop
    -- v_name
    if nvl(trim(cr_cust.v_name),0) != nvl(p_v_name_chg,0)
    then
              p_v_name_chg := p_v_name_chg;
              --p_v_name := p_v_name;
              p_changed := 'Y';
    end if;
         end loop;
    end;
    procedure DO_NAME_UPDATE_OTHER_TAB
    is
    l_record custRec;
    l_array_size number default 20000;
    l_done boolean;
    l_cnt number default 1;
    cursor c is select a.n_cust_ref_no, a.v_name,a.v_name_chg, a.rowid, 'N'
                        from GNMT_CUSTOMER_MASTER_CHG a--,GNMT_CUSTOMER_MASTER b
                        where a.v_name <> trim(a.v_name_chg); --and  a.n_cust_ref_no in (1434775,1561181,1601870);
    begin
    open c;
    loop
    dbms_application_info.set_client_info
    ( 'processing ' || l_cnt || ' thru ' || (l_cnt+l_array_size-1) );
    fetch c bulk collect into l_record.n_cust_ref_no, l_record.v_name,l_record.v_name_chg,l_record.rowid, l_record.changed
    LIMIT l_array_size;
    l_done := c%notfound;
    --dbms_output.put_line ('message10');
    for i in 1 .. l_record.n_cust_ref_no.count
    loop
    VALIDATE_CUST_NAME(l_record.n_cust_ref_no(i),l_record.v_name_chg(i),l_record.changed(i) );
    end loop;
    --dbms_output.put_line (l_record.n_cust_ref_no(i)||','||l_record.V_OCCUP_CODE(i)||','||l_record.CHANGED(i));
    /*forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_CUSTOMER_MASTER q
    set q.v_name = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_name) = l_record.v_name(i)
    and l_record.changed(i) = 'Y';*/
    -- update v_name in all the related tables
    forall i in 1 .. l_record.n_cust_ref_no.count
    update ADE_CUSTOMER_MASTER q
    set q.v_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_name) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_POLICY_DETAIL q
    set q.v_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_name) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_QUOTATION_DETAIL q
    set q.v_NAME =l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_name) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update NBDT_BENEFICIARY q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PSDT_NOMINATION_TRANSACTION q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PSMT_POLICY_BENEFICIARY q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    commit;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PSMT_POLICY_TRUSTEE q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PSMT_QUOTATION_BENEFICIARY q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PSMT_QUOTATION_TRUSTEE q
    set q.V_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_NAME is not null;
    commit;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNDT_BLACKLIST_DETAIL q
    set q.v_FNAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_FNAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_FNAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update INDT_LIAM_DETAIL q
    set q.v_FNAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.v_FNAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.v_FNAME is not null;
    commit;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_POLICY q
    set q.V_PAYER_NAME = l_record.v_name_chg(i)
    where q.N_PAYER_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_PAYER_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_PAYER_NAME is not null;
    commit;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_QUOTATION q
    set q.V_PAYER_NAME = l_record.v_name_chg(i)
    where q.N_PAYER_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_PAYER_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_PAYER_NAME is not null;
    commit;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_QUOTATION q
    set q.V_PROPOSER_NAME = l_record.v_name_chg(i)
    where q.N_PROPOSER_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_PROPOSER_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_PROPOSER_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update GNMT_POLICY q
    set q.V_PROPOSER_NAME = l_record.v_name_chg(i)
    where q.N_PROPOSER_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_PROPOSER_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_PROPOSER_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update CLMT_CLAIM_MASTER q
    set q.V_CLIENT_NAME = l_record.v_name_chg(i)
    where q.N_CLIENT_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_CLIENT_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_CLIENT_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update CLMT_CLAIM_MASTER q
    set q.V_INTIMATOR_NAME = l_record.v_name_chg(i)
    where q.N_CLIENT_REF_NO = l_record.n_cust_ref_no(i)
    and trim(q.V_INTIMATOR_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_INTIMATOR_NAME is not null;
    forall i in 1 .. l_record.n_cust_ref_no.count
    update PYMT_VOU_MASTER q
    set q.V_PAYEE_NAME = l_record.v_name_chg(i)
    where q.n_cust_ref_no = l_record.n_cust_ref_no(i)
    and trim(q.V_PAYEE_NAME) = l_record.v_name(i)
    and l_record.changed(i) = 'Y'
    and q.V_PAYEE_NAME is not null;
    /*forall i in 1 .. l_record.n_cust_ref_no.count
         INSERT INTO GNMT_CUSTOMER_MASTER_LOG
              (N_CUST_REF_NO, V_TITLE_CODE, V_NAME, D_BIRTH_DATE, V_SEX, V_RELIGION_CODE, V_NATION_CODE, V_OCCUP_CODE, V_ALIVE, V_SMOKER,
              N_NO_STICKS, D_DEATH_DATE, V_BUMI_NON_BUMI, V_AGE_ADMITTED, V_SHORT_NAME, V_FIRST_NAME, V_LAST_NAME, V_EMAIL, V_DESIGNATION,
              N_HEIGHT,N_WEIGHT,V_TITLE_CODE_CHG, V_NAME_CHG, D_BIRTH_DATE_CHG, V_SEX_CHG,V_RELIGION_CODE_CHG,V_NATION_CODE_CHG, V_OCCUP_CODE_CHG, V_ALIVE_CHG,
              V_SMOKER_CHG, N_NO_STICKS_CHG, D_DEATH_DATE_CHG,V_BUMI_NON_BUMI_CHG, V_AGE_ADMITTED_CHG, V_SHORT_NAME_Chg, V_FIRST_NAME_Chg,
              V_LAST_NAME_Chg, V_EMAIL_Chg, V_DESIGNATION_Chg,N_HEIGHT_Chg,N_WEIGHT_Chg, V_UPD_STATUS_DC,-- V_LASTUPD_PROG, V_LASTUPD_INFTIM,
              V_LASTUPD_USER_DC, V_LASTUPD_PROG_DC,V_LASTUPD_INFTIM_DC
              SELECT N_CUST_REF_NO, V_TITLE_CODE, V_NAME, D_BIRTH_DATE, V_SEX, V_RELIGION_CODE, V_NATION_CODE, V_OCCUP_CODE, V_ALIVE, V_SMOKER,
              N_NO_STICKS, D_DEATH_DATE, V_BUMI_NON_BUMI, V_AGE_ADMITTED, V_SHORT_NAME, V_FIRST_NAME, V_LAST_NAME, V_EMAIL, V_DESIGNATION,
              N_HEIGHT,N_WEIGHT,V_TITLE_CODE_CHG, V_NAME_CHG, d_birth_date_chg, V_SEX_CHG, V_RELIGION_CODE_CHG,V_NATION_CODE_CHG, V_OCCUP_CODE_CHG, V_ALIVE_CHG,
              V_SMOKER_CHG, N_NO_STICKS_CHG, D_DEATH_DATE_CHG, V_BUMI_NON_BUMI_CHG, V_AGE_ADMITTED_CHG, V_SHORT_NAME_Chg, V_FIRST_NAME_Chg,
              V_LAST_NAME_Chg, V_EMAIL_Chg, V_DESIGNATION_Chg,N_HEIGHT_Chg,N_WEIGHT_Chg--, V_LASTUPD_USER, V_LASTUPD_PROG, V_LASTUPD_INFTIM
              ,'PROCESSED'
              ,user,--P_USER,
              'DC_PAKAGE',
              sysdate--P_DATE
              FROM GNMT_CUSTOMER_MASTER_CHG where n_cust_ref_no =l_record.n_cust_ref_no(i)
              --and n_cust_ref_no not in (select n_cust_ref_no from GNMT_CUSTOMER_MASTER_LOG);*/
    exit when (l_done);
    l_cnt := l_cnt + l_array_size;
    end loop;
    commit;
    end;
    end;
    thank You

    Dear SeánMacGC thanks for reply,
    But "a.changed" is not a field in GNMT_CUSTOMER_MASTER_CHG. what i am doing in this procedure is i am collecting bulck data and validating field by field from GNMT_CUSTOMER_MASTER_CHG with GNMT_CUSTOMER_MASTER table as their structure is same.. if v_name is not same as v_name_chg then i am setting changed flag to "Y" changed is "changed dbms_sql.varchar2_table" and updating GNMT_CUSTOMER_MASTER in bluck where changed flag ='Y'...
    type custRec is record
    n_cust_ref_no dbms_sql.number_table,
    v_name dbms_sql.varchar2_table,
    v_name_chg dbms_sql.varchar2_table,
    rowid rowidArray,
    *changed dbms_sql.varchar2_table*
    i cannot use simple SQL as i need to validate field for each records with GNMT_CUSTOMER_MASTER_CHG and insert into log file as well.....
    to run this procedure:
    execute DO_DC_NAME_UPDATE_OTHER_TAB.DO_NAME_UPDATE_OTHER_TAB;
    Thanks...

  • Updated field in IC Agent Inbox

    Hi Forum,
    What is the "Updated" field in agent inbox? Am not able to see any values in that when I search for service requests. Please help me on how to show the updated date in that.
    Regards,
    Shridhar

    Hi Shridhar,
    I am afraid the "Updated" field is not managed at all.
    If you look at workbench component ICCMP_INBOX, view InboxItems, context > context nodes > tree structure > tree node proxy > double-clic on class CL_ICCMP_IN_INBOXITEMS_CN02, double-clic on method GET_LASTUPDATE. Statement "clear value." indicates no value is returned.
    Now you could enhance view ICCMP_INBOX,/InboxItems with custom code, and set your own content into method CL_ICCMP_IN_INBOXITEMS_CN02->GET_LASTUPDATE.
    Do not count on reporting framework to provide the value for that field. Although structure CRMT_REPORT_LOCATORLIST foresees it, it is not filled with value by search query: see method CL_CRM_QUERYAUI_RUN_BTIL->GET_RESULT_LIST to get exact list of fields returned. CREATED_AT_DATE field is part of it, but not  CHANGED_AT_DATE.
    But you may perform the re-read of last change date even in CL_ICCMP_IN_INBOXITEMS_CN02->GET_LASTUPDATE method, because SAP already takes advantage of user-buffering in function CRM_ORDER_READ.
    So adding following code to CL_ICCMP_IN_INBOXITEMS_CN02->GET_LASTUPDATE should show you correct last update
    data:
      lv_header_guid type crmt_object_guid,
      lt_guids       type crmt_object_guid_tab,
      ls_req_obj     type crmt_object_name,
      lt_req_obj     type crmt_object_name_tab,
      lt_orderadm_h  type crmt_orderadm_h_wrkt,
      lv_date        type sydatum,
      lv_time        type syuzeit.
    lv_header_guid ?= me->bo->get_property( 'GUID' ). 
    check lv_header_guid is not initial.
    insert lv_header_guid into table lt_guids.
    ls_req_obj = 'ORDERADM_H'.
    insert ls_req_obj into table lt_req_obj.
    call function 'CRM_ORDER_READ'
      exporting
        it_header_guid       = lt_guids
        it_requested_objects = lt_req_obj
      importing
        et_orderadm_h        = lt_orderadm_h
      exceptions
        others               = 4.
    if sy-subrc is initial.
      read table lt_orderadm_h into crmt_orderadm_h_wrk index 1.
      if sy-subrc is initial.
        CONVERT TIME STAMP crmt_orderadm_h_wrk-changed_at TIME ZONE sy-zonlo
            INTO DATE lv_date TIME lv_time.
      may need to convert first to strings
        concatenate lv_date lv_time into value separated by space.
      endif.
    endif.
    Hope you can use these ideas
    Kind regards
    Walter

  • While Doing F-28 error-Balancing field "Profit Center" in line 002 not fill

    Hello Sir,
    I am doing F-28 Customer Incoming Payment , i have clear three invoice against payment.
    So when i post that entry system gives me error Balancing field "Profit Center" in line 002 not filled".
    so that entry could not found profit center. (Document Splitting Activate)
    So can i assign Customer reconciliation account in T code - FAGL3KEH and assign Common Profit Center there.
    Plz guide me , if i will assign there recon account ?.
    reply soon
    Thanks
    J

    Hi James,
    According to me, you have two options, either enter the PC at the time of document entry or Go to doc.splitting & uncheck the PC mandatory field under doc. splitting characteristics for GL accounting.
    Your problem will get resolve by doing this.
    Thanks & Regards
    Anuj Agarwal

  • Error updating adobe download assistant from version 1.0.6 to 1.2.9

    i am getting an error updated adobe download assistant from version 1.0.6 to 1.2.9.  "The application cannot be installed due to a certificate problem.  The certificate does not match the installed application certificate, does not support application upgrades, or is invalid.  Please contact the application author.

    Sammybobammy89 what Adobe software title are you trying to install?  To resolve your current error remove version 1.0.6 prior to installing version 1.2.9.

  • Error Updating table condition table 372 in J1IIN

    Hello all,
    I am facing the problem while working in ECC 6.0 environment in the transaction code J1IIN.
    I have maintained the condition type JEXP ( A/R BED %) as 14% with the Key combination Country/Plant/Control Code (Table 357). While iam saving the Excise invoice the system is throwing the error like error updating the table condition table 372
    I have gone through the post given by Ms. Jyoti few days back and tried to do some changes in the customisation.
    I tried to maintain a different access sequence for the condition type JEXP i.e a new Access sequence(ZJEX) and also a new condition tpe (ZJEP). We don't have other Excise condition type in our Pricing procedure.
    In the access sequence except condition table 372, I have maintained all other condition tables.
    Still the error is persisiting. Can anyone put some light on the issue.
    I have even traced the values being hit in the tables directly. There is no relation of table 372, then why is it being cause of the error.
    Also while debugging it gives a message "An exception (CX_BADI_INITIAL_REFERENCE) occured".
    Does this help in anyways.
    Gurus plz give u r suggestions.
    Thanks in advance,
    Regards,
    Karthik.

    Hello Srinivas/Sandeep
    Please ensure that access sequence in the condition type JEXC has got the table 372. If it is not there please maintain it.
    The standard access sequence used in all duty condition type
    is JEXC  which has got the table 372 this will get updated once
    you save your excise invoice.
      If the issue is resolved, kinldy close the message.
    Regards
    MBS

Maybe you are looking for