Table control itab not getting updated.

Hi,
I have a table control created with the help of the wizard.
There are initailly no entries in the table and the user enters it during execution.
However the entries do not get updated in the internal table.
The modify statement below fails giving sy-subrc value 4.
MODIFY gt_bank_det_new
    FROM gwa_bank_det_new
    INDEX zbp_bank_dt_new-current_line.
Can you suggest what could be going wrong. There are no type mismatches and the table is a standard one.
Thanks in advance.
Arindam.

Hi
in PBO
Loop at itab with control tc.
endloop.
In PAI,
loop at gt_bank_det_new.
module  modify_tab.
endloop.
in Program
module modify_tab
describe table  itab lines tc-lines.
if tc-lines <= tc-current_line.
MODIFY itab FROM wa INDEX tc-current_line.
else.
append wa to itba.
endif.
endmodule.
Cheers
Ramchander Rao.K

Similar Messages

  • Module Pool - Table Control - Data not getting displayed in Control

    Hi,
    I have a table contol in my module pool program. In my processing I am filling an internal table & then in my PBO I am linking the internal table to table control. The issue is that even though the internal table is getting filled correctly (found through debugging), the data is not getting populated in table control. Nothing is populated on screen. I am writing part of code below
    Declaration:
    Types: begin of ty_control,
            SELECTED TYPE C,
            TEXT TYPE DPR_CAUSE_T-TEXT,
          end of ty_control.
    CONTROLS :  TBL_CONT TYPE TABLEVIEW USING SCREEN '9001'.
    DATA:       lt_table_cont type TABLE OF ty_control with header line.
    Fields in TBL_CONT:
       TBL_CONT-SELECTED
      TBL_CONT-TEXT
    PBO Flow Logic:
      MODULE STATUS_9001.
    MODULE fill_data.
      LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
      ENDLOOP.
    PAI Flow Logic:
    Loop at lt_table_cont.
       MODULE UPDATE_DATA.
    endloop.
    MODULE USER_COMMAND_9001.
    PLZ let me know what might be the problem. I have been trying to figure out but cant.
    Thanks.

    Hi Sonali,
               When ever you need to do anything with the table control, i mean if u want to display data in table control or you want to validate the data entered in table control Should be done within Loop and Endloop.(PBO or PAI's which ever is appropriate)
    Here the data is not bieng displayed in ur table control because you have not used the MODULE fill_data  between
    LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
    ENDLOOP.
    so do it like this
    LOOP AT lt_table_cont WITH CONTROL TBL_CONT cursor TBL_CONT-top_line.
    MODULE fill_data 
    ENDLOOP.
    this will solve your problem.
    Regards,
    Syed

  • Excise table J_1IEXCDTL not getting updated with Excise Base value.

    Hi All,
    The the field EXBAS of table J_1IEXCDTL is not getting updated for ETT (Transaction Type) DLFC.
    For other transaction types, the same is getting populated.
    Is there a setting for controlling the same?
    If yes, can you please guide me.
    Best Regards
    Debaditya Ghosh

    First you should ensure that it is flowing in your billing document.  If so, automatically, it will also flow in your excise invoice and the field EXBAS will be updated accordingly.
    From your comments, it seems, the amount is not flowing in your billing document and excise invoice.  If so, ensure that you have assigned  the correct tax code in FV11 for your ED condition type.
    thanks
    G. Lakshmipathi

  • GLPCA table not getting updated correctly for VBUND

    Hi All,
    I have come across one issue that the value of trading partner field (VBUND) in table GLPCA are not getting updated correctly for document type KP.
    In vendor master this field has different value versus it is showing in GLPCA-VBUND.
    Does any one knows about ?
    Thanks for your help on it.
    Regards,
    Manoj

    Hi Sridhar,
    Thanks for your response on it.
    This note is not applicable for our system as we are working on 4.0B with support pack 52.
    Also we are getting this worng update of this field (GLPCA-VBUND) while doing MR11 creating document with doc. type KP. This value is not picking from vendor master (LAF1-VBUND) and randamly picking any value. Not sure from where ?
    Please advise your thought.
    Thanks,
    Manoj

  • Table not getting updated

    Hi
    I'm having a problem with updating an item which is not a database item.
    I have about 8 fields , Items 1-7 belong to table A and item 8 belongs to table B
    I have block level triggers like post-insert, pre-update and pre-delete to take care of the insert, update and delete which are all working fine.
    Except when I update Item 8 ONLY , table B does not get updated and I get the message frm-40401 - No Changes To Save
    I'm not able to figure out what else is needed. Pls help.
    Thanx

    There may be a better answer, but try setting the Lock Record property to Yes on the non-base-table item.
    If that doesn't work, in the item's when-validate-item trigger, set one of the first seven items values to itself:
    :Blk.Itm1 := :Blk.Itm1;
    This will cause the record status to be CHANGED, so the record update will take place.

  • Table J_1iexcdtl not getting updated?

    Hi,
       I m facing a problem while creating excise invoice
    the header table that is J_1iexchdr is getting updated
    but the excise detail table J_1iexcdtl is not getting
    updated.
      Pls help.
    Regrds

    First you should ensure that it is flowing in your billing document.  If so, automatically, it will also flow in your excise invoice and the field EXBAS will be updated accordingly.
    From your comments, it seems, the amount is not flowing in your billing document and excise invoice.  If so, ensure that you have assigned  the correct tax code in FV11 for your ED condition type.
    thanks
    G. Lakshmipathi

  • Values not getting updated in table mvke

    Hi,
    I am working on a module pool program.In the o/p screen there are many records.If the user wants to change the field values of a particular record,he clicks on the checkbox besides that record and when he click on the change button,control goes to update screen.In this screen when the user changes the value of one particular field and click on the checkbox beside and then click on the execute button,the changed value of that field should get updated in that particular record in the database table.Here I want to update mvke and marc tables.
    I have used FM BAPI_MATERIAL_SAVEDATA to update the database tables.
    Only marc table is getting updated with changed values.mvke table is not getting updated.What would be the reason for this.
    I am sending a part of my code.Please check it.
    form move_mat_data .
    *Header
    gt_bapi_head-material = gs_output1-matnr.
    gt_bapi_head-ind_sector = gs_output1-mbrsh.
    gt_bapi_head-matl_type = gs_output1-mtart.
    gt_bapi_head-basic_view = 'X'.
    gt_bapi_head-purchase_view = 'X'.
    gt_bapi_head-account_view = 'X'.
    gt_bapi_head-sales_view = 'X'.
    *Client
    gt_bapi_client-matl_group = gs_output1-matkl.
    gt_bapi_client-base_uom = gs_output1-meins.
    gt_bapi_clientx-matl_group = 'X'.
    gt_bapi_clientx-base_uom = 'X'.
    *Plant
    gt_bapi_marc1-plant = gs_output1-werks.
    gt_bapi_marc1-pur_status = gs_output1-mmsta.
    gt_bapi_marc1-mrp_type = gs_output1-dismm.
    gt_bapi_marc1-mrp_ctrler = gs_output1-dispo.
    gt_bapi_marc1-serv_level = gs_output1-zserclass.
    gt_bapi_marc1-availcheck = gs_output1-mtvfp.
    gt_bapi_marcx-plant = gs_output1-werks .
    gt_bapi_marcx-pur_status = 'X'.
    gt_bapi_marcx-mrp_type = 'X'.
    gt_bapi_marcx-mrp_ctrler = 'X'.
    gt_bapi_marcx-serv_level = 'X'.
    gt_bapi_marcx-availcheck = 'X'.
    Material Description
    REFRESH gt_materialdesc.
    gt_materialdesc-langu = gs_output1-spras.
    gt_materialdesc-matl_desc = gs_output1-maktx.
    append gt_materialdesc.
    *Sales
    gt_bapi_mvke1-sales_org = gs_output1-vkorg.
    gt_bapi_mvke1-distr_chan = gs_output1-vtweg.
    gt_bapi_mvke1-sal_status = gs_output1-vmsta.
    gt_bapi_mvke1-valid_from = gs_output1-vmstd.
    gt_bapi_mvkex-sales_org = 'X'.
    gt_bapi_mvkex-distr_chan = 'X'.
    gt_bapi_mvkex-sal_status = 'X'.
    gt_bapi_mvkex-valid_from = 'X'.
    endform. " move_mat_data

    Hello Hema,
    Find the fields which you need to populate with values:
    As an example i'm trying to update DISPO from MARC and VKORG from MVKE.
    No need to fill clientdata and clienddatax.
    * Header data
          MOVE g_wa_mat_out-s_matnr TO g_r_headdata-material.
          MOVE 'X' TO g_r_headdata-mrp_view.
    * Plant data
          MOVE g_wa_mat_out-t_werks TO: g_r_plantdata-plant,
                                        g_r_plantdatax-plant.
              MOVE g_wa_mat_out-t_dispo_new TO g_r_plantdata-mrp_ctrler.
              MOVE 'X' TO g_r_plantdatax-mrp_ctrler.
              MOVE g_wa_mat_out-t_vkorg_new TO g_r_salesdata-sales_org.
              MOVE 'X' TO g_r_salesdatax-sales_org.
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.
    Edited by: Sasidhar Reddy Matli on Feb 7, 2008 11:49 AM

  • Data is not getting updated in table using RFC

    Hi Experts,
    In my scenario, I am calling one RFC using RFC receiver channel. After running scenario, channel is showing status that RFC executed successfully. But when I am checking tables in R/3 system, data is not getting updated.
    Moreover , when we tried to execute the RFC manually in R/3 system, that time data uploaded into table successfully.
    Could anybody tell me what would the reason that data not uploading into table when we send it through XI.
    Regards,
    Sari

    HI Sari,
    as you have scenario with RFC receiver.. and as you mentioned that it not updating tables when run through PI but when you execute RFC manually tables got updates.. then following are the options you can check..
    -- if you check RFC communication channel and if everything ok on then.. this means that your RFC is getting triggered successfully..but as you said tables are not updated.. for this you can go to SXMB_MONI and check the log take payload after mapping.. and compare it with the input when you try to execute it manually.. I think the input when you try manually and input to RFC when you try through PI is different and that is causing the Problem.. you will be able to see the difference in input then check.. I think the problem is data and not RFC communication channel..so by using this you will come to know difference
    -- else if possible configure your ID in PI in RFC Receiver and then check and put breakpoint on ABAP side.. so that when PI will hit RFC you will get it in debug mode and able to see what is going wrong..
    Thanks,
    Bhupesh

  • The currency is not getting updated in the table VBAP

    Hi ,
    The currency is not getting updated in the table VBAP. The currency was suppossed to be copied from the header table VBAK for a Sales Order. When the user creating a Sales Order the currency WAERK is not shown in VBAP table. VBAK-WAERk is in EUR . Does anyone know why is this happenning?
    Currency is maintained in the Customer Master, Material Master and Sales Org. Any suggestions?.
    Also it is happened for only one line item in a set of line items , Other line items did display the currency field.
    The net Value has data in it .
    The system is ECC 5.0
    Regards,
    Senthil

    Dear Senthil,
    Please apply the following notes (if they apply to your support pack level) and retest:
    1460621 VBAP-WAERK is deleted after the sold-to party is changed
    1426441 VBAP-WAERK deleted for subitems
    1493998 VBAP-WAERK deleted for subitems
    This should resolve the issue. I hope this helps.
    Best regards,
    Ian Kehoe

  • 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

  • Mat doc not getting updated in AFRU table

    Hi All,
      While doing the confirmation cancellation for the rework order the referance material document is not getting updated in the AFRU table.
      The referance operation set is used for the rework production order and there are no component assigned ,the components to be issued are  entered at the time of confirmation.
    The material document is getting updated in case of confirmation in AFRU table but the same is not getting updated in WABLNR field in case of cancellation of confirmation.
    When I checked MSEG all the material documents are observed with referance to the order number but the same are not displayed in AUFM and AFRU table.
    This behaviour is not obeserved in case of normal production orders. what can be the reason behind the same?
    Regards
    Ankush

    Dear Ankush
    please see FAQ note 540392 question 11.
    11.        Question:
    Despite successful goods movements, the material document is not
    updated in field AFRU-WABLNR. Where do I find the document number?
    Answer:
    As of Release 3.1H, the system provides the reference from
    confirmation to material document via table AFWI. The system still
    only uses AFRU-WABLNR in the case of header confirmations or
    confirmations for an individual operation. With milestone
    confirmations or with separate goods movements, in other words goods
    movements that are posted in the update program or via requests
    (BAPIs, collective entry, mass processing, BDC/PDC), table AFWI is
    always supplied due to technical reasons.
    BR Sabine

  • TDS amount not getting updated in the table under the field QBSHB

    Dear Friends,
    The TDS amount entered while booking the vendor invoices through MIRO T-cde, is not getting updated in the table BSEG under the field QBSHB. 
    Kindly let me know the reason for the same and guide me to correct it
    TIA.
    Regards,
    Vincent

    HI Vincent,
    Bseg-QBSHB field is relavent for classic WT.
    I hope you are using the EWT.
    Hence if you post a document through MIRO it will not update
    (but if you post document FB60 it will update but wrongly).
    Reason is Miro document is posted through interface.
    Hence SAP is suggested to not refer the Bseg-QBSHB and etc., fields.
    refer only with_item table.
    Please refer the below replay from SAP
       Please refer the below note .363309
    Please review attached note 363309 for detailed explanation
    BSEG-QBSHB is designed to fill for the classic withholding tax. And
    extended withholding tax information is stored exclusive in table
    WITH_ITEM.
    You can check in table BSEG for the fields and will find that system
    do NOT update field BSEG-QBSHB.
    In your line layout,you define a field BSEG-QBSHB. But actully the field
    of vendor/customer line item is filled with zero from FI. Thus,it shows
    zero in line item display.
    And as note 363309 says,
    "Remove the field which contains the withholding tax information
    from your display variant.
    If you want to display the withholding tax information, double-click on
    the document number and subsequently choose 'Withholding tax' button."
    (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
    Extended withholding tax and not suppose to use in report FBL1N.
    It basically does not make any sense to use the withholding tax fields
    of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
    activated extended withholding tax.
    regards
    Madhu M
    Edited by: M Madhu on Jan 31, 2011 1:19 PM

  • Not getting updating in a table....

    Hi friends,
    Currently i working on integration of apex with ebs R12.....And i have successfully integrated following the rod west document....
    I created one DB application in my sample schema that is associated with apex 4.0.....
    Application details:
    *) login page(where i will be giving username and password)
    *) page 1 (consist of several form fields, like
    --->name:
    --->module:
    --->projects:
    ----->email:
    the above are the fields, if i put any entries in the above field means, it will get automatically inserting in the report column, which is also in the same page consist of the above fields in the table manner...
    since this report table consist of an edit icon in front, if i clicked the edit icon of an one row means, it will go to another page..
    *) i.e. page 3(consist of the same fields with entries in it automatically corresponding to the each and every row, suppose if i want to update any changes means i can update in it....
    this is my application that i developed it is working well with in the sample schema apex 4.0..
    What i did is i created a new workspace with APPS schema in it...and i have imported my application that i developed in sample schema to APPS schema....
    Since after importing to APPS schema...when i tried to open the application, it is not showing any datas in it...That is due to the tables that are supporting the application is not in APPS schema, so what i did is i have given grant privilege to the respective tables and also i have created a synonym for accessing the table in APPS schema for supporting the application.....
    Now if i tried to put any entries in the form in page 2, it is getting inserting in the report column which is also in the page2....
    But my problem starts here, if i clicked the edit icon symbol in each and every row of the report column it is going to the page 3 which has a respective form fields, but it is not showing any entries in it automatically, and if i tried to put any entry in it, it is not getting updating in the report table......
    why this problem occurred for my application in APPS schema....But my application works very well within the sample schema......why it is not showing any entries in the form automatically soon after i clicked the edit icon in each and every row.....
    i couldn't know what is the real problem behind this..... help me friends,
    Thanks in Advance..
    Regards,
    Harry...

    Goodmorning,
    Have you had a look for notes, Depending on the release and industry sollution you can find several notes on this subject (start looking for message RW 022).
    Annemarie de Bruijn

  • Base table is not getting updated

    Hi friends,
    am trying to update the attribute18 from the per_vacancies table by adding 1 to it
    when am running the concurrent program it is not updating the table
    what might be the reason
    this is my code
    CREATE OR REPLACE PACKAGE BODY apps.update_vacancy_pkg
    IS
    PROCEDURE update_vacancy_prc (p_err_buf OUT VARCHAR2, p_ret_code OUT NUMBER)
    IS
    l_object_version_number per_vacancies.object_version_number%TYPE;
    l_vacancy_id per_vacancies.vacancy_id%TYPE;
    l_inv_pos_grade_warning BOOLEAN;
    l_inv_job_grade_warning BOOLEAN;
    l_validate NUMBER := 0;
    l_assignment_changed NUMBER;
    l_return_status VARCHAR2 (240);
    l_openings VARCHAR2 (240);
    l_err_msg VARCHAR2 (200);
    l_vac_id per_vacancies.vacancy_id%TYPE;
    l_attr VARCHAR2 (100);
    l_attr1 VARCHAR2 (100);
    l_attr2 VARCHAR2 (100);
    l_attr3 VARCHAR2 (100);
    l_attr4 VARCHAR2 (100);
    BEGIN
    BEGIN
    SELECT object_version_number, attribute7, vacancy_id
    INTO l_object_version_number, l_openings, l_vac_id
    FROM per_vacancies
    WHERE vacancy_id IN (SELECT MAX (vacancy_id)
    FROM per_vacancies);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_vac_id := 0;
    l_openings := 0;
    END;
    BEGIN
    SELECT MAX (attribute18)
    INTO l_attr
    FROM per_vacancies;
    SELECT (REGEXP_SUBSTR (l_attr, '.*C'))
    INTO l_attr1
    FROM DUAL;
    SELECT REGEXP_REPLACE (l_attr, '^.*C(.+)$', '\1')
    INTO l_attr2
    FROM DUAL;
    SELECT TO_NUMBER (l_attr2) + 1
    INTO l_attr3
    FROM DUAL;
    SELECT l_attr1 || l_attr3
    INTO l_attr4
    FROM DUAL;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_attr4 := 0;
    END;
    l_object_version_number := 0;
    l_assignment_changed := 0;
    l_return_status := 0;
    per_vacancy_swi.update_vacancy
    (p_validate => l_validate,
    p_effective_date => SYSDATE,
    p_vacancy_id => l_vac_id,
    p_object_version_number => l_object_version_number,
    p_number_of_openings => l_openings,
    p_budget_measurement_value => l_openings,
    p_attribute18 => l_attr4,
    p_assignment_changed => l_assignment_changed,
    p_return_status => l_return_status
    COMMIT;
    fnd_file.put_line (fnd_file.LOG, 'Executed Vacancy' || l_vac_id);
    fnd_file.put_line (fnd_file.LOG,
    'Assignment chaged = ' || l_assignment_changed
    fnd_file.put_line (fnd_file.LOG, 'Return Status = ' || l_return_status);
    fnd_file.put_line (fnd_file.LOG, 'l_attr4= ' || l_attr4);
    END;
    END;
    it is hsowing in the log file with 1 added to the attribute18
    but the table is not getting updated
    can some one of you suggest a solution pls
    thanks
    Edited by: 776317 on Apr 27, 2011 9:15 PM
    Edited by: 776317 on Apr 27, 2011 10:01 PM

    but how come the seeded api has this
    PROCEDURE update_vacancy
    (p_validate in number default hr_api.g_false_num
    ,p_effective_date in date
    ,p_vacancy_id in number
    ,p_attribute17 in varchar2 default hr_api.g_varchar2
    ,p_attribute18 in varchar2 default hr_api.g_varchar2
    .);Enable trace/debug, this may give you an idea about the data which is not saved.
    Thanks,
    Hussein

  • Field TSABR is not getting updated in MHIS table.

    Hi All,
    The field TSABR (Scheduling Status: New Start Called) is not getting updated in MHIS table.
    Please do tell me how it will get updated.
    What is a logic behind it.
    Many Thanks in advance.
    Regards,
    Sanjay Tiwari

    Hi,
    I checked it my system and that field was getting updated ..
    For calls with status "New start called " will get updated in MHIS and for these call you will  only have the field scheduling status :planned date called " as marked . pls check
    regrds
    pushpa

Maybe you are looking for

  • Changing the column position & width using Screen Variant..

    Hi Experts,     Iam trying to change the column position and width for the standard transaction (eg. FB60 or VA02) using the transaction code SHD0 (Transaction and Screen Variant).     Iam able to create and save the transaction and screen variant an

  • Sun server - file not found warning message - send-file reports: HTTP4142

    (File not found) [25/Sep/2012:17:37:34] warning ( 9732): for host 127.0.0.1 trying to GET /vt/css/body_ie8.css, send-file reports: HTTP4142: can't find C:/Program Files/Sun/WebServer7/https-AC7440R877W6X.com/web-app/AC7440R877W6X.com/vt/css/body_ie8.

  • Free Printer With Mac mini

    Just a note, I bought my mini this morning, and I got a free HP DeskJet 5940 Photo Printer With it. It was $99 and then a $99 rebate!

  • How do I create a continuous PDF from another application?

    I need help creating a continuous PDF from a Quark Xpress document. I was able to achieve this on Photoshop once before (couple months back) and now I cannot remember how I did it.

  • Listing Attribute Names

    I've been looking through the Javadoc for a while now, and maybe I'm just blind, but is there a way to programatically get a list of the possible attribute names of a given public object? -Bert