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

Similar Messages

  • 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

  • KINAK field in Table KONV not getting updated with value W

    Hi,
    I have a PO where I am deleting a line item.
    After I delet line item the field KINAK in table KONV gets updated with value W.
    But I am getting instance where in some cases the field KINAK is not getting updated.
    The result is deleted line item is getting populated in PO output also.
    Regards
    Nandiini

    KINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
    A     Condition exclusion item
    K     Inactive due to calculation basis/shipping material type
    L     Condition exclusion header or inactive at header level
    M     Inactive due to manual entry
    T     Inactive at header level
    W     The document item is statistical
    X     Inactive via formulae of incorrect
    X     Inactive via formulae of incorrect
    Y     Inactive because of subsequent price

  • 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

  • On reversal of Invoice the table BKPF not getting updated properly

    Hi
    I have an issue, that when we create the Commercial Invoice, accounting document generated automatically. And after that due to some reason when we reverse the same through  VF11, the accounting document which was created while doing the invoicing not getting updated by "reversed with (STBLG)" field and "reversal Indicator (XREVERSAL) field in the table BKPF.
    However when I test the some scenario in Development and Quality server the same field is getting updated.
    I have already checked the Billing Document Type of SD and accounting document type but found everything in place.
    I am unable to get what is missing,and why this is happening in Production server only.
    Need your input at the earliest.
    Thanks in advance
    Regrads
    AA

    Hi
    thanks to all for their suggestion, the issue resolved with the help of SAP.
    For the forum members information :-
    This is standard system behaviour.
    BKPF-XREVERSAL is only populated/filled in the reversed original
    and in the reversal FI document if BKPF-STBLG and BKPF-STJAH
    are populated/filled in reversed original and reversal FI document.
    BKPF-STBLG and BKPF-STJAH are only populated/filled in reversed
    original and reversal FI document if the new/real cancellation
    procedure (-> with automatic clearing of the open items) is executed,
    and the new/real cancellation procedure is not executed, if an
    open item of the original, to be reversed FI document, has already
    been cleared (-> also see note 309208).
    Regards
    Amitesh Anand
    Edited by: AA on Apr 25, 2009 11:37 AM

  • Table COMM_IL_PRBDP not getting updated

    Hi Experts,
    We are trying to identify account by Object ID in Web UI.
    Once we hit search and confirm the object id the system should display account details also, but it is througing message as "no account information found" since COMM_IL_PRDBP table doesnu2019t have any values.
    Some one could help me where we need to do the settings so that the above table will get updated.
    Points will be added.
    Thanks in advance.
    Regards,
    Babu

    Hello Babu,
    table COMM_IL_PRDBP would have values only if you have maintained BPs for products.
    In order to maintain the values, you have to assign PRDBP reltype to the category to which your product belongs to.
    If you are using CRM Web UI, then you need to  bring this AB from Available to Displayed AB in you OVP.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • USEREXIT_PRICING_PREPARE_TKOMK - table TKOMK not getting updated

    Hi,
      When I try to use USEREXIT_PRICING_PREPARE_TKOMK to change a custom field in TKOMK I am facing some issues. It works alright the first time , when an order is created through VA01, but any subsequent chnage to the Z field is not getting reflected into TKOMK. I can see the header value being changed but not the actual table value. Also each timeI do a header re pricing TKOMK has a new entry.. is it supposed to have multiple entries?  I thought it would have only a single entry for an order?
    Regards,
    Hari.

    Hi,
    I think for that Z field's dataelement the following need to be set.
    go to se11->give the z data element -> go to further characteristics tab -> set the flag for 'Change document' checkbox.
    Thanks,
    Rangaraju

  • Table is not getting updated

    Hi,
    I have developed the code to create projects and to update the table ytest.
    When I write the project name and click on create button, one more screen comes(like LSMW screen) where we have to give the description.
    This is happening, but when the second screen comes(with project & description), whatever project name I have entered at the selection screen, does not appear in this second screen and also this is not updating the table ytest with project, description,owner and date of creation.
    Folloowing is the code,can anyone tell whats wrong in this?
    FORM CREATE_ENTRY .
        DATA:L_OK,
         L_CURSORFIELD(30).
      IF SPROJ IS NOT INITIAL.
        L_CURSORFIELD = 'PROJECT'.
      ELSEIF SSPROJ IS NOT INITIAL.
        L_CURSORFIELD = 'SUBPROJ'.
      ELSEIF SOBJEC IS NOT INITIAL.
        L_CURSORFIELD = 'OBJECT'.
      ENDIF.
      CASE L_CURSORFIELD.
        WHEN 'PROJECT' .
          PERFORM CREATE_PROJECT CHANGING YTEST-PROJECT
                                          YTEST-TEXT
                                          L_OK.
    FORM CREATE_PROJECT  CHANGING P_YTEST_PROJECT
                                  P_YTEST_TEXT
                                  P_L_OK.
      DATA:LT_DYNPREAD LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
      CLEAR  P_YTEST_TEXT.
      CALL FUNCTION '/SAPDMC/LSM_PROJECT_CREATE'
        EXPORTING
          WITH_DIALOG            = C_YES
        CHANGING
          PROJECT                = P_YTEST_PROJECT
          PROJECTTXT             = P_YTEST_TEXT
        EXCEPTIONS
          PROJECT_ALREADY_EXISTS = 1
          INSERT_ERROR           = 2
          CANCELED_BY_USER       = 3
          OTHERS                 = 4.
      IF SY-SUBRC = 0.
        P_L_OK = C_YES.
      ELSE.
        P_L_OK = C_NO.
        EXIT.
      ENDIF.
      CLEAR LT_DYNPREAD[].
      LT_DYNPREAD-FIELDNAME = 'PROJECT'.
      LT_DYNPREAD-FIELDVALUE = P_YTEST_PROJECT.
      APPEND LT_DYNPREAD.
      LT_DYNPREAD-FIELDNAME = 'DESCRIPTION'.
      LT_DYNPREAD-FIELDVALUE = P_YTEST_TEXT.
      APPEND LT_DYNPREAD.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME               = SY-REPID
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = LT_DYNPREAD
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          UNDEFIND_ERROR       = 7
          OTHERS               = 8.

    Hi,
       I  am not sure but Use CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
       It will work .
    Sali...

  • 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

  • FAGLFLEXT Table not getting updated

    Hello All,
    I have activated 0L leading ledger and the document splitting is up and active, however while posting a document, the FAGLFLEXT Table is not getting updated.
    Can anybody please help.
    Regards,
    Vikram

    Hello Vikram,
    Did you assigned any scenarios to ledger.There are six scenarios like profit center update,prep for consolidation and all....so if you assign these scenarios then the FAGLFLEXT  will be updated...
    pls let us know if you already assigned and then we need to look in to it...
    Thanks,
    Sai.

  • File to Proxy----Tables not getting updated.

    Hi all,
    I have File to proxy scnerio, where Data from file is uploaded in to BAPI in turn
    updated in to tables.
    If i take pay load from Moni  and test in SPROXY then tables is getting updated.
    But when i run Scnerio form XI tables are not getting updated.
    Please help......

    Hi ,
    Check this out if you missed any step.. This is exactly on your senario.
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • JTable containing checkbox column is not getting updated

    My application has a JTable and the first column is made up of checkboxes I have added a mouse listener for this table and implementd mousePressed(MouseEvent) method also. So when the user presses the mouse on these checkboxes I will update my loca data structure. Now the problem is this, when the user presses and drags the mouse to some other place(out of the current cell) then the table is not getting updated(the cell is not changing its value). But my local data structure is getting updated as the event is already fired. Please suggest me a solution for this.
    Thanks in advance
    Varun

    thanks for your information. Actually I have seen this tutorial before but I think my case is little different. Sorry for not explaining it completely. My table has got a checkbox column header and another checkbox which is not part of the table. The second column in the table contains a user object. User can select rows by clicking on the checkbox header (select all rows/ deselect all rows), by clicking on individual cells or by clicking on the third checkbox provided for a specific purpose. So whenever the user does this "selection" operation I update one member variable in the user object which is in the second column. I tried putting my code in the setValueAt() method of my table model but couldn't make it work because of my lack of experience in swing or programming. So please tell me whether what you have suggested is valid or not. I added a mouse listener because there was a requirement to show some information to the user when he do a double click on one column of the table.

  • Few keyfigures are not getting updated in the backup cube

    Hi,
    We run the daily backup process chain which extract data from planning
    area and store in the cube & ods.
    There are infopackages which update cube & ods, the datasource & info
    source is same for both ODS & backup cube.
    But a few keyfigures do not get updated in backup cube where as we see
    ODS getting updated for those keyfigures. Also there exist data in the
    planning area for these keyfigures.
    There is direct mapping between the keyfigures in cube & planning area.
    We tried to debug it and noticed that data gets updated in update routine table but not get updated in cube.
    There are total 25 keyfigures in the cube , out of this only 5 keyfigures are not getting updated.
    Need expert opinion on this.
    Regards,
    Chetana

    Hi Chetana,
    Check the backup step in your process chain. The Data Selection tab may have certain conditions on account of which certain keyfigures in your Backup Cube are not getting updated.
    Check if any ABAP routine or any selection conditions are maintained which are causing certain keyfigs to be excluded.
    ~Rishi

  • Overdelivery tolerance- confirm quantity (allocation) not getting updated

    Hi All
        I have a strange problem......could this be a gap with the SAP program
    I am using over and under delivery tolerance (say 10%)  in the customer master - sales - shipping tab. Now i create a order with
    Order qty          1100
    confirmed qty   1100
    delivery qty      1200      (since we have maintained 10 % over delivery tolerance)
    Now i want to update the order to 1200 for two reasons
    1) to keep the order in sync with delivery
    2) to update the allocations (this is because we have Allocation activated and not ATP at schedule line level)
    So when i go into the order and update the line to 1200 the following happens
    Order qty             1200 
    confirmed qty      1100   (not updated)
    delivery qty         1200       
    So my confirm qty is not getting updated to 1200 and hence my allocation tables are not getting updated. The same is getting updated when we have ATP at schedule line level. Could this be a gap with SAP that i dosent update allocations in this scenario.
    The reason it dosent confirm is that it assumes that the delivery is completed and since we have tolerance maintained it assumed to be a good scenario.
    Please help.
    Vikas
    Edited by: Vikas BhumiReddy on Oct 28, 2009 5:27 PM

    I am also facing the same issue. Have you found out any solution regarding this.

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

Maybe you are looking for