ITEM INTREST  NOT UPDATATING THE G/L ACCOUNTS?

hi
I HAVE BEEN TRYING TO POST THE INTREST ON ARREARS THROUGH T CODE F.24 I COULD ABLE TO VIEW THE INTREST BUT IT IS NOT BEING UPDATED IN GL ACCOUNTS AND SUNDRY DEBTORS INDIVIDUAL BALANCES. CAN SOMEBODY HELP ME?
i did all configuration steps,
IN OBV1                                           G/L ACCOUNT
1000 CUSTOMER POSTING                  RECN A/C
0001 INTREST RECIVED                        INCOME A/C
ITS URGENT,I WILL ASSIGN POINTS TO RIGHT SOLUTION
REGARDS
RAMANA RAO

Hi Ramana Rao
I have a similar issue and would like to know what changes you made to OBV1 to allow the posting to the customer account ?
I have the same set up of account symbols (1000 & 0001) but when I do not specify a GL Account for Acct symbol 1000 I receive an error in the interest calculation program...
It was my understanding that the 1000 should post to the customer and not require a specific account.
Help would be appreciated !
Cheers
Chris

Similar Messages

  • I can not update the app, my account is not being accepted. Help!!

    I need help updating iMovie, my account is not being accepted by the system.

    This what finally worked for me
    updating apps on 4s iPhone and iPad 3.
    delete apps on both devices.
    restart both devices.
    then you should be able to use everything appropriately.
    AT&T was having problems last week, I removed that app plus coupons, gas buddy and one other.
    Actually I removed that would not update.
    I still can not connect to safari.
    The error message says it can not find the server.
    Do you know how to fix this?
    Thanks for help.

  • Creation of Legacy Asset in AS91 - Not updating the recon account

    Hi,
    I have an issue while creating a legacy asset using AS91. I found that it is not updating the asset reconciliation account in the G/L. What could be the issue?
    Thanks,
    Ram

    Hi
    For uploading the Asset GL's you need to using a dummy/control account for uploading the asset data. USaullay data migration account is used for this purpose. OSAV is generally used for uploading assets in GL only.
    Frist go to OAMK and remove recociliation account type assets (this is for allowing direct posting in Asset reconciliation account).. then go for OSAV and after completing the posting then again go to OAMK and again put the reconciliation account type assets. If you for got this step ...later on the Asset GL's will not be updated.
    Radha

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information. Outcome: Unknown Error

    Received this error (The workflow could not update the item, possibly because one or more columns for the item require a different type of information.) recently on a workflow that was
    working fine and no changes were made to the workflow.
    I have tried a few suggestions, i.e. adding a pause before any ‘Update’ action (which didn’t help because the workflow past this action without incident); checked the data type being written
    to the fields (the correct data types are being written); and we even checked the list schema to ensure the list names and the internal names are aligned (they
    are), but we still cannot figure out why the workflow is still throwing this error.
    We located the area within the workflow step where it is failing and we inserted a logging action to determine if the workflow would execute the logging action but it did not, but wrote the same error message.
    The workflow is a Reusable Approval workflow designed in SharePoint Designer 2010 and attached to a content type. 
    The form associated with the list was modified in InfoPath 2010. 
    Approvers would provide their approval in the InfoPath form which is then read by the workflow.
    Side note - items created after the workflow throws this Unknown Error some seem to be working fine. 
    We have deleted the item in question and re-added it with no effect. 
    Based on what we were able to determine there don’t seem to be any consistency with how this issue is behaving.
    Any suggestions on how to further investigate this issue in order to find the root cause would be greatly appreciated?
    Cheers

    Hi,
    I understand that the reusable workflow doesn’t work properly now. Have you tried to remove the Update list item action to see whether the workflow can run without issue?
    If the workflow runs perfectly when the Update list item action is removed, then you need to check whether there are errors in the update action. Check whether the values have been changed.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Received notice of an update for one of my apps and when I tried to update the message reads "Account Not in this store"  i must switch to a Canadian store before purchasing

    Received notice of an update for one of my apps and when I tried to update the message reads "Account Not in this store"  i must switch to a Canadian store before purchasing.  I deleted app and tried to download again but still got the message.  Anyone know how to fix?  FYI have had phone for 2 years and this is the first time this has happened.

    The Apple id that you created do you remember if you created with your region sellected as Canada or US. If so you can change Region directly on your device by clicking on App Store icon, Scroll to bottom and tap your app is, click view acct and change region

  • BAPI_SALESORDER_CREATEFROMDAT2 is not updating the ITEM Qty after Free ITEM

    Hi,
    I am using BAPI_SALESORDER_CREATEFROMDAT2 to create a order.We have customization for populating a FREE ITEM for a Order ITEM.
    Now the Problem is that .....if I am passing more then one Material as ITEM it is not updating the next ITEM Qty and also not populating FREE ITEM afterwords first one.
    Please help me.
    Regards
    Ricky

    Hi,
    Find below the code :
      read table i_table_t into lwa_table_s index 1.
      if sy-subrc eq 0.
    *Order Header
        lwa_ord_head_in-doc_type          = 'ZSO'.
        lwa_ord_head_in-sales_org         = '1000'.
        lwa_ord_head_in-distr_chan        = '10'.
        lwa_ord_head_in-division          = '10'.
        lwa_ord_head_in-req_date_h        = lwa_table_s-delivery.
    *Order Header Update
        lwa_ord_head_inx-doc_type         = 'X'.
        lwa_ord_head_inx-sales_org        = 'X'.
        lwa_ord_head_inx-distr_chan       = 'X'.
        lwa_ord_head_inx-division         = 'X'.
        lwa_ord_head_inx-req_date_h       = 'X'.
        lwa_ord_partners-partn_role       =  'AG'.
        lwa_ord_partners-partn_numb       =  lwa_table_s-sold_to.
        append lwa_ord_partners to lt_ord_partners.
        if lwa_table_s-ship_to is initial.
          lwa_ord_partners-partn_role     =  'WE'.
          lwa_ord_partners-partn_numb     =  lwa_table_s-sold_to.
          append lwa_ord_partners to lt_ord_partners.
        else.
          lwa_ord_partners-partn_role     =  'WE'.
          lwa_ord_partners-partn_numb     =  lwa_table_s-ship_to.
          append lwa_ord_partners to lt_ord_partners.
        endif.
        lt_table_it_t = lwa_table_s-zsd_table_it_t.
        loop at   lt_table_it_t into lwa_table_it_s.
          lwa_ord_items_in-material      = lwa_table_it_s-matnr.
          lwa_ord_items_in-plant         = wa_table_s-plant.
          lwa_ord_items_in-target_qty    = lwa_table_it_s-qty.
          lwa_ord_items_in-comp_quant    = lwa_table_it_s-qty.
          append lwa_ord_items_in to lt_ord_items_in.
          lwa_ord_items_inx-material     = 'X'.
          lwa_ord_items_inx-plant        = 'X'.
          lwa_ord_items_inx-target_qty   = 'X'.
          lwa_ord_items_inx-comp_quant   = 'X'.
          lwa_ord_items_inx-updateflag   = 'I'.
          append lwa_ord_items_inx to lt_ord_items_inx.
    Schedule Line Information
          lwa_schedule_lines-sched_line  = 'X'.
          lwa_schedule_lines-req_date    = lwa_table_s-date_del.
          lwa_schedule_lines-date_type   = '1'.
          lwa_schedule_lines-req_qty     = lwa_table_it_s-qty.
          append lwa_schedule_lines to lt_schedule_lines.
          lwa_schedule_lines_x-updateflag = 'I'.
          lwa_schedule_lines_x-sched_line = 'X'.
          lwa_schedule_lines_x-req_date   = 'X'.
          lwa_schedule_lines_x-date_type  = 'X'.
          lwa_schedule_lines_x-req_qty    = 'X'.
          append lwa_schedule_lines_x to lt_schedule_lines_x.
        endloop.
    Here I am getting First Item and it's free configured Item perfectly for the Qty 1.
    But when I pass more then 1 Qty or Multiple ITEMS it is not populating other respective free configured ITEMS with them.Also IT is not updating the other ITEM Qty other the first one.
    For Example:
    Item  No      ITEM            Qty           .......
    10             ITEM1           1 EA        ..........
    20             FREE1          1 DAY     ..........
    30             ITEM2            0             ..........
    40             ITEM3            0             .........
    In above example After 30 and 40 two Free ITEM should be generated with 1 Day and for Qty 1 EA
    Regards
    Ricky

  • BAPI_PO_CHANGE to update the Price for the line item not updating the Price

    Hi,
    I am using BAPI_PO_CHANGE to update the Price for the line item. This BAPI is not updating the Price. I am using external cummit also, but the BAPI is not updating price.
    I am passing following data to the BAPI.
    Plant: CQ11
    PO                   Material                Price
    4500002142     TEST_BATCH     12
    Please provide suggestion.
    Regards,
    Jubin.

    Hi,
    check this link...this has sample code
    [http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm]
    Regards,
    Surinder

  • HT4484 i used to have an app store and lost it and i created a new one and i can not update the iphoto app because it was updated with the old account, is there a solution for this problem?

    i used to have an app store and lost it and i created a new one and i can not update the iphoto app on my macbook pro because it was updated with the old account, is there a solution for this problem?

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple ID to another. Apple does not merge Apple IDs. You will never be able to access your content bought with one Apple ID with a new Apple ID.

  • Csi_item_instance_pub.update_item_instance not updating the serial no

    HI all,
    csi_item_instance_pub.update_item_instance not updating the serial no. for Sales order transaction.
    Actyally we have multiple error transaction for hte same serial no. for that i am planning to process the last transaction i.e. Sales order issue transaction.
    While updating the serial no. with latest transaction i am getting "Msg1: Invalid Party location provided. The Location (38916) passed for the Instance Location Type "HZ_PARTY_SITES" is invalid or does not exists in TCA tables."
    Even i had check for a customer this is the correct locaiton_id.
    Below is my code:
    which i took from one of the thread and pass my instance value.
    =================
    DECLARE
    ln_order_num NUMBER;
    lc_p_sno VARCHAR2(30); -- Variable for printer serial no.
    LC_COMMIT VARCHAR2(5) := 'T';
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    t_output varchar2(2000);
    t_msg_dummy number;
    l_loc_id number :=38916;
    --x_msg_count NUMBER;
    CURSOR ib_cur IS
    SELECT cii.instance_id
    ,cii.serial_number
    ,cii.inventory_item_id
    ,cii.object_version_number
    FROM csi_item_instances cii
    WHERE cii.instance_id = 734113452;--instance_id
    --ORDER BY 1;
    TYPE ib_rec_tbl_type IS TABLE OF ib_cur%ROWTYPE;
    ib_rec_tbl ib_rec_tbl_type;
    -- Variables needed to call the Item Instance update API
    l_api_version CONSTANT NUMBER := 1.0;
    --l_msg_count             NUMBER;
    --l_msg_data              VARCHAR2(2000);
    l_msg_index NUMBER;
    l_instance_id_lst csi_datastructures_pub.id_tbl;
    l_instance_header_rec csi_datastructures_pub.instance_header_rec;
    l_party_header_tbl csi_datastructures_pub.party_header_tbl;
    l_party_acct_header_tbl csi_datastructures_pub.party_account_header_tbl;
    l_org_unit_header_tbl csi_datastructures_pub.org_units_header_tbl;
    l_instance_rec csi_datastructures_pub.instance_rec;
    l_party_tbl csi_datastructures_pub.party_tbl;
    l_account_tbl csi_datastructures_pub.party_account_tbl;
    l_pricing_attrib_tbl csi_datastructures_pub.pricing_attribs_tbl;
    l_org_assignments_tbl csi_datastructures_pub.organization_units_tbl;
    l_asset_assignment_tbl csi_datastructures_pub.instance_asset_tbl;
    l_ext_attrib_values_tbl csi_datastructures_pub.extend_attrib_values_tbl;
    l_pricing_attribs_tbl csi_datastructures_pub.pricing_attribs_tbl;
    l_ext_attrib_tbl csi_datastructures_pub.extend_attrib_values_tbl;
    l_ext_attrib_def_tbl csi_datastructures_pub.extend_attrib_tbl;
    l_asset_header_tbl csi_datastructures_pub.instance_asset_header_tbl;
    l_txn_rec csi_datastructures_pub.transaction_rec;
    l_install_location_id NUMBER;
    l_return_status VARCHAR2(5);
    lc_init_msg_lst VARCHAR2(1) := 'T';
    ln_validation_level NUMBER;
    lc_error_text VARCHAR2(4000);
    l_install_location_type_code csi_item_instances.install_location_type_code%TYPE;
    j BINARY_INTEGER := 0;
    l_party_tbl_idx BINARY_INTEGER;
    BEGIN
    --Create a savepoint
    -- SAVEPOINT dcrd_csi_upd_ib_snm;
    OPEN ib_cur;
    FETCH ib_cur BULK COLLECT
    INTO ib_rec_tbl;
    CLOSE ib_cur;
    IF ib_rec_tbl.COUNT > 0
    THEN
    --fnd_file.put_line(fnd_file.log, 'Begin loop');
    dbms_output.put_line('Begin loop');
    FOR i IN ib_rec_tbl.FIRST .. ib_rec_tbl.LAST
    LOOP
    --Set savepoint before processing record.
    --SAVEPOINT dcrd_csi_upd_ib_snm;
    l_instance_header_rec.instance_id := ib_rec_tbl(i).instance_id;
    csi_item_instance_pub.get_item_instance_details(p_api_version => l_api_version
    ,p_commit => fnd_api.g_false
    ,p_init_msg_list => fnd_api.g_false
    ,p_validation_level => fnd_api.g_valid_level_full
    ,p_instance_rec => l_instance_header_rec
    ,p_get_parties => fnd_api.g_true
    ,p_party_header_tbl => l_party_header_tbl
    ,p_get_accounts => fnd_api.g_true
    ,p_account_header_tbl => l_party_acct_header_tbl
    ,p_get_org_assignments => fnd_api.g_true
    ,p_org_header_tbl => l_org_unit_header_tbl
    ,p_get_pricing_attribs => fnd_api.g_false
    ,p_pricing_attrib_tbl =>l_pricing_attribs_tbl
    ,p_get_ext_attribs => fnd_api.g_false
    ,p_ext_attrib_tbl => l_ext_attrib_tbl
    ,p_ext_attrib_def_tbl => l_ext_attrib_def_tbl
    ,p_get_asset_assignments => fnd_api.g_false
    ,p_asset_header_tbl => l_asset_header_tbl
    ,p_resolve_id_columns => fnd_api.g_false
    ,p_time_stamp => SYSDATE
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    lc_error_text := NULL;
    l_instance_rec.instance_status_id :=510;
    l_instance_rec.instance_id := l_instance_header_rec.instance_id;
    l_instance_rec.install_date := sysdate;--'13-APR-2011';--sysdate;--'12-MAR-2008';
    l_txn_rec.transaction_type_id := 33;
    l_instance_rec.instance_usage_code :='OUT_OF_ENTERPRISE';
    -- l_instance_rec.INV_SUBINVENTORY_NAME :='STAGE';
    l_instance_rec.install_location_type_code := 'HZ_PARTY_SITES';
    --l_instance_rec.install_location_id := 38916;
    l_instance_rec.location_id := l_loc_id;--38916;
    l_instance_rec.location_type_code := 'HZ_PARTY_SITES';
    l_instance_rec.object_version_number := l_instance_header_rec.object_version_number;
    l_txn_rec.transaction_id := fnd_api.g_miss_num;
    l_txn_rec.transaction_date := SYSDATE;
    l_txn_rec.source_transaction_date := SYSDATE;
    l_txn_rec.transaction_type_id := 8; --Id for DATA_CORRECTION transaction type
    --Change Owner party details
    --FOR i IN l_party_header_tbl.FIRST..l_party_header_tbl.LAST
    -- LOOP
    -- IF l_party_header_tbl(i).relationship_type_code = 'OWNER'
    --THEN
    l_party_tbl(j).instance_party_id := l_party_header_tbl(i).instance_party_id;
    l_party_tbl(j).relationship_type_code := l_party_header_tbl(i).relationship_type_code;
    l_party_tbl(j).party_id := 167048;
    l_party_tbl(j).contact_flag := 'N';
    l_party_tbl(j).object_version_number := l_party_header_tbl(i).object_version_number;
    l_party_tbl_idx := j;
    j := j + 1;
    --END IF;
    --END LOOP;
    dbms_output.put_line('l_party_tbl count is '||l_party_tbl.COUNT);
    j := 0;
    dbms_output.put_line('l_party_acct_header_tbl count is '||l_party_acct_header_tbl.COUNT);
    --Change Owner party account details
    --FOR i IN l_party_acct_header_tbl.FIRST..l_party_acct_header_tbl.LAST
    -- LOOP
    -- IF l_party_acct_header_tbl(i).relationship_type_code = 'OWNER'
    -- THEN
    l_account_tbl(j).ip_account_id := l_party_acct_header_tbl(i).ip_account_id;
    l_account_tbl(j).instance_party_id := l_party_acct_header_tbl(i).instance_party_id;
    l_account_tbl(j).party_account_id := 133045;--61217;
    l_account_tbl(j).object_version_number := l_party_acct_header_tbl(i).object_version_number;
    l_account_tbl(j).bill_to_address := 37729;--77370;
    l_account_tbl(j).ship_to_address := 37730;--77648;
    l_account_tbl(j).parent_tbl_index := l_party_tbl_idx;
    j := j + 1;
    -- END IF;
    -- END LOOP;
    dbms_output.put_line('l_account_tbl count is '||l_account_tbl.COUNT);
    --j := 0;
    --Change Operating Unit details
    FOR i IN l_org_unit_header_tbl.FIRST..l_org_unit_header_tbl.LAST
    LOOP
    IF l_org_unit_header_tbl(i).relationship_type_code = 'SOLD_FROM'
    THEN
    l_org_assignments_tbl(j).instance_ou_id := l_org_unit_header_tbl(i).instance_ou_id;
    l_org_assignments_tbl(j).instance_id := l_org_unit_header_tbl(i).instance_id;
    l_org_assignments_tbl(j).relationship_type_code := l_org_unit_header_tbl(i).relationship_type_code;
    l_org_assignments_tbl(j).active_start_date := sysdate;--'13-APR-2011';--sysdate;
    --l_org_assignments_tbl(j).operating_unit_id := 86;
    l_org_assignments_tbl(j).object_version_number := l_org_unit_header_tbl(i).object_version_number;
    END IF;
    END LOOP;*/
    -- Call instance update API if a serial no. is to be updated
    /*fnd_file.put_line(fnd_file.log
    ,'Updating IB record for IB# ' || ib_rec_tbl(i).instance_id);*/
    dbms_output.put_line('Updating IB record for IB# ' || ib_rec_tbl(i).instance_id);
    csi_item_instance_pub.update_item_instance(p_api_version => l_api_version
    ,p_commit => LC_COMMIT --Handled outside API
    ,p_init_msg_list => lc_init_msg_lst
    ,p_validation_level => ln_validation_level
    ,p_instance_rec => l_instance_rec
    ,p_ext_attrib_values_tbl => l_ext_attrib_values_tbl --Null
    ,p_party_tbl => l_party_tbl --Null
    ,p_account_tbl => l_account_tbl --Null
    ,p_pricing_attrib_tbl => l_pricing_attrib_tbl --Null
    ,p_org_assignments_tbl => l_org_assignments_tbl --Null
    ,p_asset_assignment_tbl => l_asset_assignment_tbl --Null
    ,p_txn_rec => l_txn_rec
    ,x_instance_id_lst => l_instance_id_lst
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data);
    dbms_output.put_line('API STATUS# ' || l_return_status);
    if l_msg_count > 0
    then
    for j in 1 .. l_msg_count loop
    fnd_msg_pub.get
    ( j
    , FND_API.G_FALSE
    , l_msg_data
    , t_msg_dummy
    t_output := ( 'Msg'
    || To_Char
    ( j
    || ': '
    || l_msg_data
    dbms_output.put_line
    ( SubStr
    ( t_output
    , 1
    , 255
    end loop;
    end if;
    IF l_return_status = 'S'
    THEN
    commit;
    /*fnd_file.put_line(fnd_file.log
    , 'Error updating the install base for IB# ' || ib_rec_tbl(i)
    .instance_id);*/
    dbms_output.put_line('Error updating the install base for IB# ' || ib_rec_tbl(i)
    .instance_id);
    FOR i IN 1 .. l_msg_count
    LOOP
    fnd_msg_pub.get(p_msg_index => -1
    ,p_encoded => 'F'
    ,p_data => l_msg_data
    ,p_msg_index_out => l_msg_index);
    lc_error_text := lc_error_text || (substr(l_msg_data, 1, 255));
    END LOOP;
    dbms_output.put_line(lc_error_text);
    --Rollback the transaction if error occured.
    --ROLLBACK TO dcrd_csi_upd_ib_snm;
    ELSE
    /*fnd_file.put_line(fnd_file.log
    , 'Install base update successful for IB# ' || ib_rec_tbl(i)
    .instance_id);*/
    dbms_output.put_line('Install base update successful for IB# ' || ib_rec_tbl(i)
    .instance_id);
    lc_error_text := 'SUCCESS!';
    END IF;
    --Update the temporary table record status
    --update_status(ib_rec_tbl(i).snm_id, l_return_status, lc_error_text);
    END LOOP;
    --Commit transactions.
    COMMIT;
    END IF;
    commit;
    EXCEPTION
    WHEN no_data_found THEN
    --fnd_file.put_line(fnd_file.log, 'No records to process');
    dbms_output.put_line('No records to process');
    WHEN OTHERS THEN
    /* fnd_file.put_line(fnd_file.log, 'Error in update_ib procedure');
    fnd_file.put_line(fnd_file.log, to_char(SQLCODE) || ' - ' || SQLERRM);
    dbms_output.put_line('Error in update_ib procedure');
    dbms_output.put_line(to_char(SQLCODE) || ' - ' || SQLERRM);
    END;
    ================================================
    Thanks,
    Raj
    Edited by: user13275176 on Apr 14, 2011 7:07 AM

    That is a wrong way to do that (I am not sure of the business needs and the situation in you are in that is forcing you to do that).
    If you want the instance as if it is in Inventory, perform inventory receipt transaction. You should not just change the ownership (rather I should say you 'cannot' since the API should not allow you change the instance usage code to INVENTORY and location to Inventory just like that) and location details as inventory without performing the transaction in inventory.
    What about your inventory, you do not want quantity back in inventory?
    Thanks
    Nagamohan

  • Not Updating the Values in the JComboBox and JTable

    Hi Friends
    In my program i hava Two JComboBox and One JTable. I Update the ComboBox with different field on A Table. and then Display a list of record in the JTable.
    It is Displaying the Values in the Begining But when i try to Select the Next Item in the ComboBox it is not Updating the Records Eeither to JComboBox or JTable.
    MY CODE is this
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.DefaultComboBoxModel.*;
    import javax.swing.table.*;
    import java.sql.*;
    import java.util.*;
    public class SearchBook extends JDialog implements ActionListener
         private JComboBox comboCategory,comboAuthor;
         private JSplitPane splitpane;
         private JTable table;
         private JToolBar toolBar;
         private JButton btnclose, btncancel;
         private JPanel panel1,panel2,panel3,panel4;
         private JLabel lblCategory,lblAuthor;
         private Container c;
         //DefaultTableModel model;
         Statement st;
         ResultSet rs;
         Vector v = new Vector();
         public SearchBook (Connection con)
              // Property for JDialog
              setTitle("Search Books");
              setLocation(40,110);
              setModal(true);
              setSize(750,450);
              // Creating ToolBar Button
              btnclose = new JButton(new ImageIcon("Images/export.gif"));
              btnclose.addActionListener(this);
              // Creating Tool Bar
              toolBar = new JToolBar();
              toolBar.add(btnclose);
              try
                   st=con.createStatement();
                   rs =st.executeQuery("SELECT BCat from Books Group By Books.BCat");
                   while(rs.next())
                        v.add(rs.getString(1));
              catch(SQLException ex)
                   System.out.println("Error");
              panel1= new JPanel();
              panel1.setLayout(new GridBagLayout());
              GridBagConstraints c = new GridBagConstraints();
              c.fill = GridBagConstraints.HORIZONTAL;
              lblCategory = new JLabel("Category:");
              lblCategory.setHorizontalAlignment (JTextField.CENTER);
              c.gridx=2;
              c.gridy=2;
              panel1.add(lblCategory,c);
              comboCategory = new JComboBox(v);
              comboCategory.addActionListener(this);
              c.ipadx=20;
              c.gridx=3;
              c.gridwidth=1;
              c.gridy=2;
              panel1.add(comboCategory,c);
              lblAuthor = new JLabel("Author/Publisher:");
              c.gridwidth=2;
              c.gridx=1;
              c.gridy=4;
              panel1.add(lblAuthor,c);
              lblAuthor.setHorizontalAlignment (JTextField.LEFT);
              comboAuthor = new JComboBox();
              comboAuthor.addActionListener(this);
              c.insets= new Insets(20,0,0,0);
              c.ipadx=20;
              c.gridx=3;
              c.gridy=4;
              panel1.add(comboAuthor,c);
              comboAuthor.setBounds (125, 165, 175, 25);
              table = new JTable();
              JScrollPane scrollpane = new JScrollPane(table);
              //panel2 = new JPanel();
              //panel2.add(scrollpane);
              splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,panel1,scrollpane);
              splitpane.setDividerSize(15);
              splitpane.setDividerLocation(190);
              getContentPane().add(toolBar,BorderLayout.NORTH);
              getContentPane().add(splitpane);
         public void actionPerformed(ActionEvent ae)
              Object obj= ae.getSource();
              if(obj==comboCategory)
                   String selecteditem = (String)comboCategory.getSelectedItem();
                   displayAuthor(selecteditem);
                   System.out.println("Selected Item"+selecteditem);
              else if(obj==btnclose)
                   setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
              else if(obj==comboAuthor)
                   String selecteditem1 = (String)comboAuthor.getSelectedItem();
                   displayavailablity(selecteditem1);
                   //System.out.println("Selected Item"+selecteditem1);
                   System.out.println("Selected Author"+selecteditem1);
         private void displayAuthor(String selecteditem)
              try
              {     Vector data = new Vector();
                   rs= st.executeQuery("SELECT BAuthorandPublisher FROM Books where BCat='" + selecteditem + "' Group By Books.BAuthorandPublisher");
                   System.out.println("Executing");
                   while(rs.next())
                        data.add(rs.getString(1));
                   //((DefaultComboBoxModel)comboAuthor.getModel()).setVectorData(data);
                   comboAuthor.setModel(new DefaultComboBoxModel(data));
              catch(SQLException ex)
                   System.out.println("ERROR");
         private void displayavailablity(String selecteditem1)
                   try
                        Vector columnNames = new Vector();
                        Vector data1 = new Vector();
                        rs= st.executeQuery("SELECT * FROM Books where BAuthorandPublisher='" + selecteditem1 +"'");     
                        ResultSetMetaData md= rs.getMetaData();
                        int columns =md.getColumnCount();
                        String booktblheading[]={"Book ID","Book NAME","BOOK AUTHOR/PUBLISHER","REFRENCE","CATEGORY"};
                        for(int i=1; i<= booktblheading.length;i++)
                             columnNames.addElement(booktblheading[i-1]);
                        while(rs.next())
                             Vector row = new Vector(columns);
                             for(int i=1;i<=columns;i++)
                                  row.addElement(rs.getObject(i));
                             data1.addElement(row);
                             //System.out.println("data is:"+data);
                        ((DefaultTableModel)table.getModel()).setDataVector(data1,columnNames);
                        //DefaultTableModel model = new DefaultTableModel(data1,columnNames);
                        //table.setModel(model);
                        rs.close();
                        st.close();
                   catch(SQLException ex)
    }Please check my code and give me some Better Solution
    Thank you

    You already have a posting on this topic:
    http://forum.java.sun.com/thread.jspa?threadID=5143235

  • ITunes could not update the carrier settings on your iPhone

    When I try to download and install the new carrier settings file, I get the message "iTunes could not update the carrier settings on your iPhone. You do not have enough access privileges for this operation." (I got a similar message when I tried to download and install the OS update.)
    I've been able to work around the problem by creating a different user and installing from there. But I'd like to be able to find and correct the cause of the error message instead of using a workaround. It seems like there's a file or folder somewhere that has somehow become read-only. Does anyone know where iTunes downloads the carrier settings and OS update files?

    Jim VanLeeuwen wrote:
    You will find them in separate folders within your user account Library/iTunes folder.
    That was it. Somehow the owner of ~/Library/iTunes got changed to root.
    Jim VanLeeuwen wrote:
    Have you tried using Disk Utility to Repair Permissions?
    Right after I posted the message I thought that the age-old placebo of repairing permissions might actually fix my problem. Because of your quick reply I found the ownership problem before repairing permissions. So here was the perfect chance for a test. Repair Permissions ran successfully but the owner of ~/Library/iTunes was still root. Repair Permissions fails the test.
    I manually changed the owner to steve and was able to download and install the carrier settings.
    Thanks!

  • Items qty not updated  in VL02

    Hi,
            I've searched in forum.I've got solution.I've 26 line items and want to update all the records.It updates only 24 items remaining 2 items are not updated.Because the screen size is for 12 items.Please assist me.
    n = 1.
    LOOP AT it1 WHERE vbeln = it-vbeln.
    CONCATENATE 'LIPSD-G_LFIMG(' n ')' INTO a.
    PERFORM bdc_field USING a it1-G_LFIMG.
    n = n + 1.
    IF n gt 12 .
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=P+'.
    n = 1.
    PERFORM bdc_dynpro USING 'SAPMV50A' '0220'.
    ENDIF.
    ENDLOOP.
    PERFORM bdc_dynpro USING 'SAPMV50A' '0220'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=SICH'.
    Thanks
    Bala

    Hi BP,
              If i give P++,it directly goes to the last page.It was not update the middle records like13,14th items.
    Thanks
    Bala.

  • System not changing the G/L account when material group is changed in Pr

    Hi Experts,
    Issue- System not changing the G/L account when material group is changed in Purchase requistion.
    Process followed:
    1. Create Service Pr with material group 5040 which is assigned to valuation class 3511 and 3511 is assigned to g/l account 51370000
    2. Changed Service PR material group from 5040 to 5050. 5050 is assigned to valuation class 3512 and 3512 is assigned to G/L account 51260000
    The issue is when we changed the material group from 5040 to 5050 system is not picking the g/l account which is assigned to 5050 i.e. 51260000
    instead the g/l remains remains as before which is there for 5040 i.e. 51370000
    Please let me know how can we resolve this problem and pick the correct g/l. Please find the attachments
    Regards
    Badri

    Hello Badari,
    if you are using the item category D "Services", explanation from note  663983 - ME22(N), ME52(N): No new G/L account from material group applies:
    Please consider the following:
    You can maintain the material group both at item level and at service line level. If you subsequently change the material group at item level, the material groups remain unchanged in the services. As a result, the G/L account is not redetermined at service line level.
    In order for the G/L account to be redetermined, you must explicitly change the material group in the service line.
    Kind Regards
    TomT

  • Approval Workflow does not update the Content Approval status if started automatically

    Hi,
    I’m using a simple Approval Workflow associated with
    Content Approval on site pages. It works fine when I set it to be started manually (by using
    Allow this workflow to be manually started by an authenticated user with Edit Item permissions
     option) and on the completion of the workflow the
    Content Approval status is updated accordingly. But when I set it to be started automatically (by using
    Start this workflow when a new item is created
     / Start this workflow when an item is changed
    options), it does not updates the Content Approval status. Note that I’ve set the
    Update the approval status after the workflow is completed (use this workflow to control content approval)
    option to true.
    Regards

    Hello,
    It is recommended to select "Start this workflow to approve publishing a major version of an item" when you want to use the workflow to manage content approval for
    a library.
    According to the Notes for “Enable Content Approval” option in
    this reference:
    If you are using this Approval workflow to manage content approval (moderation) for a library, and you selected the Start this workflow to approve publishing a major version
    of an item check box on the Add a Workflow page..
    If you did not select the Start this workflow to approve publishing a major version of an item check box on the Add a Workflow page because you do not want this workflow to
    be the default content approval workflow for a library, you can select the Update the approval status (use this workflow to control content approval) check box to make this workflow a secondary content approval workflow that specific users can
    start manually.
    That means having an approval workflow start automatically when a document is changed or created is not a good practice when you want to use the workflow to manage
    content approval for a library. You should either select "Start this workflow to approve publishing a major version of an item" or give users the option to start the workflow manually at the time they want to submit for an approval.
    Thanks & Regards.
    Lily Wu

Maybe you are looking for