Updating field in table data provider

Hi. I'm trying to get familiar with JSC2 (plus being new to Java) and am running into what must be simple problems, but I can't seem to find a solution. Here is the code behind a login button on a page. The user will enter an email address and a password, then click a login button. I use the email address to see if they are in the cached row set, then if they are there I want to increment a column in the table to indicate that they are logged in. Here's where I run into problems. I'm trying to use syntax that I'm finding in various tutorials and sample code, but it keeps telling me that it can't find the symbol "setValue" and I don't get it.
Here's my code for the button:
public String loginBtn_action() {
try {
RowKey userRowKey = tblusersDataProvider.findFirst
(new String [] { "tblUSERS.EMAILADDRESS", "tblUSERS.PASSWORD" },
new Object [] { useridFld.getText(), passwordFld.getText() });
if (userRowKey == null) {
error ("Invalid userid or password! Try again!");
return null;
else {
int userActive = getSessionBean1().getTblusersRowSet().getInt("tblUSERS.ACTIVE");
if (userActive == 0) {
userActive = userActive + 1;
userRowKey = tblusersDataProvider.getCursorRow();
try {
// Update Info in DB Rowset
FieldKey activeFldKey = tblusersDataProvider.getFieldKey("tblUSERS.ACTIVE");
tblusersDataProvider.setCursorRow(userRowKey);
// Store Value in Session
tblusersDataProvider.setValue(activeFldKey, userRowKey, userActive);
tblusersDataProvider.commitChanges();
catch (Exception ex) {
log ("Active Update Error:" + useridFld.getText() + " " + passwordFld.getText(), ex);
error ("Database Error during log in! (active update): " + ex.getMessage());
return "pgMenu";
} else {
error ("This userid is already logged in!! Multiple login's aren't allowed!");
log ("Multiple login attempt: " + useridFld.getText());
return null;
return null;
catch (Exception exx) {
log ("Error during user DB access: " + exx.getMessage());
error ("Error during userDB access: " + exx.getMessage());
return null;
}

The error message that you are giving is telling you, in a round about way, that there is no wetValue method for the data provider that takes a field key, row key, int.
If you type
tblusersDataProvider.setValue(
and then press ctrl-space, a list pops up to show all the setValue methods and what types of arguments they take.
You will see that they take Object as the last argument . None of them take an int.
To fix your problem, try something like this
tblusersDataProvider.setValue(activeFldKey, userRowKey, (Integer) Integer.valueOf(userActive));

Similar Messages

  • How to update field in table FAGLFLEXA/FAGLFLEXT

    Hi Gurus,
         we are stay in ECC 5.00. The new g/l have activated but we have not assigned the relevant scenario to the ledger (Refer note no 990612)
         now we have assinged following field:
         FIN_CCA: RCNTR (Cost center), SCNTR (Sender cost center)
         FIN_CONS: RASSC (Trading partner), RMVCT (Transaction Type)
         FIN_GSBER: RBUSA (Business area), SBUSA (Trading partner's business area)
         FIN_PCA: PRCTR (Profit Center), PPRCTR (Partner Profit Ctr)
         FIN_SEGM: SEGMENT (Segment), PSEGMENT (Partner segment)
         FIN_UKV: RFAREA (Functional Area), SFAREA (Partner Functional Area)
         our problem is the data was posted before that does not update fields in table FAGLFLEXA/FAGLFLEXT,How to update field in table FAGLFLEXA/FAGLFLEXT?
    Thanks,

    Hello Jenjira,
    Since this was a question asked few years back, I think you can share your experience with activation of a Scenario subsequent to Go-Live of new GL functionality (We are contemplating activation of one more scenario for Functional Area updation in new GL. 4 update scenarios were activated at time of New GL Implementation 4 years ago).
    Please share following:
    1. Impact of this subsequent activation on Open documents in the live system.
    2. How you addressed the issues arising on Point 1.
    3. Any support that you got from SAP Support Team on issues thereof.
    Any inputs will be of great help.

  • Unable to create or update the Excel Personal data provider in Web Rich

    Hi All,
    Iam getting the below error message ,when iam using Excel as personal data provider in WEBI Rich Client.
    "Unable to create or update the Excel Personal data provider in Web Rich Client Cannot open the workbook WIS:10872"
    Please suggest a solution ,it helps a lot..
    Regards
    Mahesh

    Hi,
    Was this issue resolved? I see this post has been marked answered but there wasn't any information on what it took to resolve the issue.
    We have our CMS and processing servers on Linux while our Scheduling servers are on Windows. The WEBI reports with external data providers fail to run on Infoview/ scheduler.
    We were told this is addressed in FP 3.6 but that is not the case. We installed FP 3.6 but still continue to see these errors. It required us to manually deploy the ExtensionFactoryService package for enabling the refresh of such reports on infoview/schedulers. It also involves placing of the file used [.xls/.txt] on the linux server on the PersonalDPFiles directory.
    No luck so far!!!
    Any help would be greatly appreciated!
    Thanks
    Avinash

  • Table Data Provider

    Hi,
    I am trying to manually fill a table component from a ResultSet.
    My question is : what Table Data Provider to use ?
    If you have a look to this adress : http://developers.sun.com/prodtech/javatools/jscreator/reference/fi/2/data-providers.html
    you will see that we should have a "ResultSet Table Data Provider" in the Palette Window but it is not my case.
    Thank you in adavance for any help !
    Marc

    Hi,
    The article at http://developers.sun.com/prodtech/javatools/jscreator/reference/fi/2/data-providers.html was writen pre EA and not all that accurate. I let the author know that it needs to be corrected.
    We published a new tutorial that might help you. While it is about Hibernate, you can apply the same techniques to your result set results:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html

  • SetAttribute not updating field in table or database

    Hi I'm using Jdev 11.1.2.3.0,
    I have a table where only one attribute is editable (There's also a condition on whether it is editable or not). The table is in editAll mode.
    Basically I launch a business action that should multiply this attribute in AMImpl and set the new value. It also sets two other attributes in the view (based on entity)
    Ok so the weird behavior is that the attribute is not being updated neither in the database nor on the page, while the others are being updated (in the db, and the table).
    I'm obviously committing because the other variables are set, and also refreshing the table (I even have a button that can re-execute the query but nothing changes). I even debugged my code and noticed that new different value of the attribute is being when i call the row.setAttribute method.
    Now another thing, I removed the whole column of the editable attribute from the table, and launched the business action; The fields in the database were updated with the correct values.
    Does anyone have any ideas of what might be happening, any help would be appreciated
    Thanks,
    Mo

    Hi Timo,
    I'm making the changes inside the Application Module class, by getting the view object first then the selected row, and after doing the calculations I'm using the row.setAttribute() method. The same goes for the other two attributes that are affected by changes.
    I tried closing and opening the browser and app, the values didn't change in either (db and page).
    I'm also using taskflows to launch business actions (don't know if that changes anything)
    Thanks
    Mo

  • Date of Last.Del field is not updated in EKEK table

    Hello All,
    We have one date update problem for one Scheduling agreement, the field is LFDKD (Date of Last.Delivery) in the table EKEK -Header Data for Scheduling Agreement Release and  this date hasnt been updated only for one SA since 2008 , it remains as it is like 18.02.2008, but the date of last field (LWEDT) is updated correctly till date. So due to this problem , the SA release is sent to the vendor through EDI and the date of last delivery is sent wrongly in 2008 date even though after that many goods receipt has been done for this SA.  Any idea why it didnt get update till date ?
    Thanks in Advance
    Benny

    Hello Benny,
    Please check if the following notes can help :
    1337084 Release header contains doc. date instead of delivery date
    1309001 Incorrect date for last goods receipt in sched. agreement
    Regards,
    Mauro

  • BO Advance analysis 1.1.4,  Info Field like Last Data Update Table

    Hi Experts,
    I am using BO Advance analysis 1.1.4 for reporting output. There we have option to show Info Field like Last Data Update.
    It is using this function to get that info :
    =SAPGetSourceInfo("DS_1", "LastDataUpdate")
    Anybody have idea what BW table it is refering to get that info.
    As per my understanding, since these workbook of Adv. Analysis are refering Query which are built on MultiProviders, it go and find out the last cube/dso successful data load.
    Also I manually checked the date and time of last successful update in cube, but it is not matching as far as time is concern. Date is matching.
    Please help me to get the correct table which gave that info (date and time).
    Thank-You.
    Regards,
    Vinod

    Hi Tammy,
    I was trying for the similar requirement to get the "Last refreshed time" of the table used in the calculation  view  in HANA.
    It uses the same formula : =SAPGetInfoLabel("LastDataUpdate")
    But since Analytic View actually doesn't store any data, it is virtual. The date am seeing is the last changed date. i.e if i do any changes on the model, am seeing the last date when I changed it.
    Is there any function which we can use to get the Last refreshed date of the table in the model am using?
    Regards,
    Krishna Tangudu

  • Cannot update table data based on values of numeric fields

    I have a button on a form with two numeric fields: P11_numeric1 and P11_numeric2.
    I want to be able to either run a stored procedure or execute the update logic. We're on apex 4.0.
    I tried the follow syntax in a process run by a button:
    begin
    schema.procname(:P11_numeric1,:P11_numeric2);
    end;
    And nothing happened.
    If I try to run the proc in toad with hard coded parameter values, the proc works.
    I tried this:
    begin
    update schema.tablename
    set value=:P11_numeric1
    where id=:P11_numeric2;
    commit;
    end;
    And this doesn't work.
    I tried:
    begin
    update schema.tablename
    set value=1
    where id=2;
    commit;
    end;
    And that worked, so I assume the issue is with getting the numeric field values. Am I using incorrect syntax?

    I'm on apex 4.0.2 btw. I had two main problems: 1) the process that my procedure was in was in a sequence number lower than the MRU process sequence number. I didn't want to use the MRU so I changed it to being called by ajax calls only (which I don't have on the page, effectively not firing this process on page submit). Changing the sequence number of the process call to the procedure higher then allowed me to run the stored procedure.
    The next problem was that the fields weren't being passed into the proc.
    It looks like the type of the field made a bit of a difference to sending in the parameter for the procedure. The data is either integer or numeric and if the fields were set to a text field, and the proc was changed to accept varchar2 data and convert using to_number in the proc that the data was accepted and was fine. For the integer fields, I was able to (and wanted to) change the field type to display only as this is a read only screen with an button to save the data. For the numeric fields, for some reason the display field type did not allow the field value to be passed to the stored proc.
    I'll take a look at the session values not getting set but has anyone heard of that happening to display only fields with numeric data specifically?

  • 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

  • Updated a field in table fkkvkp

    Hi Guys
    I am trying to make changes to the address field in table fkkvkp. My program works in development but does not work in QA.
    Can any one explain why this is happenning.The internal table is populated correctly.Please see code below.
    SORT gt_itab BY vkont.
      LOOP AT gt_itab.
        CLEAR: gt_contractaccountdata,
               gt_contractaccountdatax.
        UNPACK gt_itab-adrnb TO gt_contractaccountdata-addr_no.
        APPEND gt_contractaccountdata.
        gt_contractaccountdatax-addr_no = 'X'.
        APPEND gt_contractaccountdatax.
        READ TABLE gt_contractaccountdata INDEX 1.
        READ TABLE gt_contractaccountdatax INDEX 1.
        CALL FUNCTION 'BAPI_ISUACCOUNT_CHANGE'
          EXPORTING
            contractaccount      = gt_itab-vkont
            partner              = gt_itab-gpart
            contractaccountdata  = gt_contractaccountdata
            contractaccountdatax = gt_contractaccountdatax.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        REFRESH: gt_contractaccountdata,
                 gt_contractaccountdatax.
      ENDLOOP.

    Hi,
    Have you compared versions between the one in development and in QA.
    Also, Check if there are missing transports and the transports imported successfully.
    Also, Try using wait parameter in the transaction commit. Normally, because of volume of data, it may take some time to get updated in the database.
    Title you have provided is not correct
    Hope it helps.
    Sujay
    Edited by: Sujay Venkateswaran Krishnakumar on Sep 6, 2010 3:42 PM

  • Unable Update profile due request data for "state" field

    Anyone else having a problem updating their profile? Once I log-in the site send me page to update my profile. Once I try to click update, it comes back with an error message requesting the "state" field be complete. But there is no "state" field provided or it is not visible.
    Who ever create the profile page needs to check their work.

    Thank you all for responding.
    @ Sushant - We definitly have data in that PSA table linked to the data source (8ZECPCO22 , where ZECPCO22 is the direct update DSO) and this data is what we want to delete through process chains. As mentioned earlier we are able to manually delete these PSA requests via manage of the data source.
    Few more detail information below:
    ZECPCO22 is the direct update DSO and as per the data flow the data is further loaded from this DSO (data source -8ZECPCO22) into a master data infoobject or other targets via a infopackage and with processing type "PSA and then into Data target in series".
    So looking at the infopackage one can definitly confirm that the PSA table is used and since the DSO is a direct update we cant have change log table.
    However we are unable to delete these PSA requests through process chains using a "Delete PSA request" nor "Delete Change log Request" process types.
    Any suggestion is appreciated.
    Warm Regards
    Vikram S Reddy

  • What are the tables will update while loading Master data ?

    Hello Experts,
    What are the tables will update while loading Master data ? And requesting you to provide more information about Master data loading and its related settings in the beginning of creation infoobjects. 

    It depends upon the type of Master data u r loading....
    In all the master data loadings, for every new value of master data an SID will be created in the SID table /BI*/S<INFOOBJECT NAME> irrespective of the type of master data.
    But the exceptional tables that get updated depending on the type of master data are.....
    If it is a time Independent master data then the /BI*/P<INFOOBJECT NAME> table gets updated with the loaded data.
    If it is a time dependent master data then the /BI*/Q<INFOOBJECT NAME> table gets updated with the loaded data.
    If the master data is of time Independent Navigational attributes then for every data load the SID table will get updated first and then the /BI*/X<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    If the master data is of time dependent navigational attributes then for every data load the SID table will get updated first and then the /BI*/Y<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    NOTE: As said above, For all the data in P, Q, T, X, Y tables the SID's will be created in the S table /BI*/S<INFOOBJECT NAME>
    NOTE: Irrespective of the time dependency or Independency the VIEW /BI*/M<INFOOBJECT NAME> defined on the top of /BI*/P<INFOOBJECT NAME> & /BI*/Q<INFOOBJECT NAME> tables gives the view of entire master data.
    NOTE: it is just a View and it is not a Table. So it will not have any physical storage of data.
    All the above tables are for ATTRIBUTES
    But when it comes to TEXTS, irrespective of the Time dependency or Independency, the /BI*/T<INFOOBJECT NAME> table gets updated (and of course the S table also).
    Naming Convention: /BIC/*<InfoObject Name> or /BI0/*<InfoObject Name>
    C = Customer Defined Characteristic
    0 = Standard or SAP defined Characteristic
    * = P, Q, T, X,Y, S (depending on the above said conditions)
    Thanks & regards
    Sasidhar

  • Data is not getting updated in DB table

    hi all
    i am doing IDOC to jdbc scenario
    i am triggering idoc from R/3 and the data is going into DB table
    sender side:       ZVendorIdoc
    receiver side:
    DT_testVendor
      Table
        tblVendor
          action       UPDATE_INSERT
          access      1:unbounded
            cVendorName 1
            cVendorCode 1
         fromdate    1
         todate      1
          Key
            cVendorName  1
    if i trigger idoc for example vendor 2005,2006 and 2010 data is getting updated in the table
    but again if i trigger idoc for same vendor nos data does not get updated in DB table while message is successfull in moni and RWB both
    plz suggest if any change need to be done to update the data
    Regards
    sandeep sharma

    Hi Ravi
    you are right, vendor no is my key field . problem is when i send data again then it should Update the data but it's not updating the data again
    i did on exp with this : i deleted all the record from the table and then  triggered idoc for vendor 2005 , 2006,2010 after this data is updated in the table i deleted the rows for vendor no 2006 and 2010 and kept the row for vendor 2005
    then i again trigered the idoc for vendor no 2005,2006 and 2010 now this should update and it should insert rows for vendor no 2006 and 2010 but i am surprised its not updating the data
    Thanks
    sandeep

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • 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...

Maybe you are looking for

  • Flash 5 speed in movieclip duplication

    this is my situation: I have a "cube" matrix containing boolean values: its dimension is 10 x 10 x 10. I have an isometric cube movieclip: it rapresents a matrix cell. In the render function of the matrix i clicle on the 3 dimensions X, Y, Z; if the

  • Exchange ActiveSync not working if form based authentication or SSL enabled

    Hi, I just wanted to share my experience setting up Exchange with iPhone. In case your exchange account on iPhone 2.0 is setup correctly and it synchronizes (no error messages received during the validation process) but you cannot see any email, cale

  • StackOverflowError with HashMap

    We are experiencing a problem where we get a StackOverflowError after recursing too many times in a HashMap. It's quite a deep recursion, from what I can tell, over 1024 times. The odd thing is that we are only getting this error on a Windows machine

  • EBS Forms functional script runs fine in OpenScript but not from OTM

    Hi, I have an EBS forms functional test script which runs fine in OpenScript, but when scheduled from OTM, the web part runs fine but when it comes to forms, the script fails with the following error: Forms Object Not Found! XPath: //forms:window[(@n

  • Help Viewer Font Size Way Too Small

    Hello, The font size of the adobe help viewer content is way too small (it looks like a 4 pt or something). I can hardly read it at all. Can someone please tell me how to enlarge it? Thanks a lot! Mike