Item edit end issue

Hi,
I have a datagrid, some calculations fired if a number is change in a particular column (ITEM_TOTAL), for that I have a function that fires on dg method itemEditEnd="onItemEditEnd(event)"
If a press ENTER after changing the number the function fires all the time but if I leave the cell using the mouse pointing to any other place sometimes it doesn't work. Is this a bug? I'm using flash builder 4 with SDK 3.5
Or maybe I'm missing something. Here is my function:
private function onItemEditEnd(e:DataGridEvent):void
                if(e.dataField == "ITEM_NAME") { //One column that have comboBox as itemEditor
                    var cEditor:myItemEditor = dgCustomEditor.itemEditorInstance as myItemEditor;
                    var item:Object = cEditor.selectedItem;
                if(e.dataField == "ITEM_TOTAL") { //Other column just for numbers
                    //calculations
                acExecution.refresh(); //This is DG arrayCollection
Any ideas?
Thanks
Johnny

FYI,
Here is a hint for the solution:
http://www.adobe.com/devnet/flash/articles/detecting_datagrid_edits.html
Regards
Johnny

Similar Messages

  • Buyer change the PO line items and end up with Awaiting Approval status.

    Can you please help to look into this issue.
    1.Buyer change the PO line items and end up with Awaiting Approval status.
    2. But user claim that she got enough limit and should not route to her manager's approval. Also check with her manager and this PO do not exist his queue.
    Any clue or tips on how to investigate on this issue. All your tips are appreciated,
    -Rick

    You cannot change these POs because their changed version has status
    'Deleted'. My proposal to fix them will be the following:
    You will have to set changed version as closed(DOC_CLOSED set to X)
    and in active version set DOC_CLOSED to space.
    __-For the above statement, Can you guys please let me know, which table DOC_CLOSED belongs to and what are the steps to do this, as i come from a functional back ground.__

  • PR item release workflow issue

    Hi All,
    I have 1 issue with PR item workflow. We have PR itme based workflow with different agents for each line item.
    The issue is when approver goes to execute the work item, all the other items are available to the approver to edit or release other items as well. We want to disable other items being available to the approver for which he is not the approver.
    Thanks and Regards,
    Srikar

    Hi Srikar,
       You can do this by using parallel processing in workflows. I am giving you the scenaio we use. We use this in invoices with multiple line items.
    This scenario is implemented using a sub workflow. In the main workflow when you insert a multistep task, go to "Miscellaneous" tab to implement parallel dynamic processing. here you have to pass a multi line container element containing line item numbers. Your sub workflow will trigger one for each entry in multi line element. Do not do any changes to you PR object with in Sub Workflow just get the results of decisions taken by user back to main workflow. Like (App - for approval, Rel - For release, Rej - for rejecetion, etc). When you have all decision collected and returned to main workflow, pass the results in a multi line container element to an activity. Then based on results decide weather you want to release or reject.
    Doing this if one person releases his line item, it will not effect the other workitems which have gone to other approvers.
    We do agent assignment based on profit centers.
    Best of luck.
    Regards
    Anuj Nagpal.

  • Updating service contract line item's end date

    Hi,
    I am trying to extend the end date on a line item in a service contract via the DI and it is giving me the following error:  'Item's end date cannot be greater than contract's end date' and I don't understand why.
    I retrieve the service contract object, change the header end date then find the line item  I need, update it with the same end date and then issue call the SC update method.  Here's my code:
        Try
                 SC.Lines.SetCurrentLine(SerialNbrLineNumber)
                 NewStartDate = LineEndDate
                 'calculate new end date & extend service contract
                 NewEndDate = NewStartDate.AddYears(Warranty_Duration)
                'never make the contract end date earlier than it had been
                SC.EndDate = IIf(NewEndDate > SC.EndDate, _
                                                             NewEndDate, _
                                                             SC.EndDate)
                'update service contract detail with new end date
                 If NewEndDate > LineEndDate Then
                     SC.Lines.EndDate = NewEndDate
                 End If
                 If SC.Update() <> 0 Then
                    rs.RtnCode = -1
                    rs.RtnMessage = B1Comp.GetLastErrorDescription()
                 End If
    I did see something in the di help that mentions that B1 calcs an end date based on the "duration of coverage" field but I don't think I could use that because I might only change the end date for one line item. 
    BTW I can do this in the application with no problem.
    Thanks in advance for any assistance.

    Known B1 bug.  Should have checked support first.  More info on note # 1026540

  • WF deadline - last end issue

    Iu2019m having a trouble with a deadline work item.
    Customer requisition:
    If the approver reserves the work item for 7 days without execute it, it will have to go back to every original approvers.
    I have implemented this logic in that way:
    Work itemu2019s latest end: &_WORKITEM.ACTUALSTARTDATE& + 7 days.
    In the deadline outcome there is a condition to continue with the loop and go back to the work item.
    There we have 2 different problems:
    1)  When the work item is created, the expression &_WORKITEM.ACTUALSTARTDATE& is empty, so the system defines the latest end as: creation date + 7 days, which is not correct. The correct latest end will be: reservation date + 7 days.
    2)  When the work item reach the latest end and it is recreated, the new work item's latest end is identically to the first work item latest end: first work itemu2019s creation date + 7 days.. for this reason, the new  work items are always missed the deadline and the workflow is stack into a loop :S The second work item will have to update the latest end date.
    Please, somebody know why these 2 problems are happening and how can I fix them? Maybe somebody know any other way to implement customeru2019s requirement.
    Iu2019ll really appreciate any help on this issue.
    Thank you very much!

    Try this:
    METHOD if_swf_ifs_workitem_exit~event_raised.
      TYPE-POOLS: swlc.
      CONSTANTS: c_selected TYPE sww_wistat VALUE 'SELECTED',
                 c_wdreserveddate TYPE swc_elem VALUE 'WDReservedDate',
                 c_wdreservedtime TYPE swc_elem VALUE 'WDReservedTime'.
    *Get context of work item.
      DATA: wa_header      TYPE swr_wihdr,
            wi_container   TYPE  REF TO      if_swf_ifs_parameter_container,
            wa_wi_return   TYPE swwwiret,
            v_date         TYPE swwwiret-wi_asd,
            v_time         TYPE swwwiret-wi_ast,
            v_wf_id        TYPE sww_wiid,
            wa_wf_container TYPE swr_cont,
            i_wf_container TYPE STANDARD TABLE OF swr_cont,
            v_sy_subrc TYPE sy-subrc,
            v_workitem  TYPE swlc_workitem.
      me->wi_context = im_workitem_context.
      IF im_event_name EQ swrco_event_state_changed.  "when the wi status change.
        CALL METHOD wi_context->get_header
          RECEIVING
            re_workitem_header = wa_header.
        IF wa_header-wi_stat EQ c_selected.
         CALL FUNCTION 'SWW_WI_RETURN_READ'
           EXPORTING
             wi_id       = wa_header-wi_id
           IMPORTING
             wi_return   = wa_wi_return
           EXCEPTIONS
             read_failed = 1
             OTHERS      = 2.
         IF sy-subrc EQ 0.
          v_date = sy-datum.
          v_time = sy-uzeit + 3900.
         ENDIF.
    *- read workitem
          CALL FUNCTION 'SWL_WI_READ'
            EXPORTING
              wi_id    = wa_header-wi_id
            CHANGING
              workitem = v_workitem.
    update it
          v_workitem-deadlines-wi_led = v_date.
          v_workitem-deadlines-wi_let = v_time.
          v_workitem-deadlines-wi_ded = v_date.
          v_workitem-deadlines-wi_det = v_time.
          v_workitem-update_deadlines = 'X'.
          CALL FUNCTION 'SWL_WI_DEADLINES_UPDATE'
            EXPORTING
              wi_id     = wa_header-wi_id
              do_commit = 'X'
            CHANGING
              workitem  = v_workitem
            EXCEPTIONS
              OTHERS    = 1.
          IF sy-subrc EQ 0.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDMETHOD.

  • Query-Select Item Code ending in 'NI'

    How do I select an Item Code ending in 'NI'?

    Hi Daniel,
    Please check below query which will give you Item ending with 'NI'
    SELECT T0.[ItemCode], T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] LIKE '%NI'
    Hope this help
    Regards::::
    Atul Chakraborty

  • Possible to make an item editable for certain users and read only for other

    Is it possible to make an item editable for certain users and read only for others?
    I've been able to accomplish this by taken the select statement that I used to define an authorization scheme, placing it in the Read Only condition of the item. However, I would like to simply reference the authorization scheme to utilize caching, and to help keep things cleaner for future maintenance.
    Is it possible to reference an authorization scheme in an item condition similar to the way another item can be referenced by preceding it with a colon (i.e. :P1_First_Name)?

    Thank you, your suggestion worked.
    It would be nice on a future release of APEX if a drop-down box existed under the Ready Only section that would allow an existing Authorization Scheme to be selected or negated when applying the Read Only attribute to a form item.

  • User exit about change item's goods issue day in transaction code VA01

    Hi everyone.
    Can someone give me some advice how to change item's
    goods issue by user exit?
    thank you in advanced.
    Regards.
    Eric xu.

    Can u be more clear.
    This are the exits used for the VA01
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    V45A0001            Determine alternative materials for product selection
    Regards

  • Tree slow and bug with Add Multiple Items to End

    Hello,
    I use "Add Multiple Items to End" to fill a tree quickly in Labview 8.5.
    In my test example, It's possible to choise an array of 100, 255 or 1000. parents.
    Each parent has 10 children
    100 is correctly, 255 is slowly an 1000 is big bug !
    Y does a solution, or it has Labview major weaknesses with the function tree.
    Thanks for you help.
    A. Carbonnel
    AC
    Attachments:
    Load Tree.vi ‏37 KB

    Here is the response of France rupport labview
    Sir,
    The behavior you observed beyond 1000 elements vi Tree is a known bug of R & D LabVIEW. Pending that it is corrected in a future version, I invite you to use the ActiveX Treeview. He should be able to meet your expectations in terms of number of elements.
    You can see an example of the use of the ActiveX in attachments.
    Sincerely,
    AC
    Attachments:
    Tree view.zip ‏48 KB

  • Making catalog free text item editable

    Hi Guys,
    We are working wirh SRM 7.0, SP09 for extended classic scenario. One of our requirement to make the catalog free text item editable was achieved by a solution as suggested in below thread.
    Editing of catalog transfered item in SC
    This solution helped to make the free text catalog item editable in SC for the requester.
    I observed that once SC is submitted and send for completion approval, the approver is no longer able to edit the free text of the catalog item. We want to allow the purchaser to edit the free text description, product category and price.
    Can anyone sugegst some approach? Your inputs will be highly regarded.
    Thanks & regards,
    Prashant

    Hi Prashant ,
    To make the filed editable  you need set the meta data in completion workflow
    you need set the meta data for field .
    Thanks & Regards
    Pradeep Kumar Dondeti

  • Funds Management Year-end Issue

    For Funds Management Module year end activity, it mainly involves commitment and budget carry forward.
    For a particular Fund / Fund Centre, we transferred the commitment and the budget from 2011 to 2012. However it was not distributed accordingly in 2012. From the screenshot below, you can see that the budget (Sender) had multiple levels (Fund Centres).
    1.MIMOS
      2.1000
        3.MM05
          4.MM0501
            5.MM050107
    However, the receiver was only at the highest level which is MIMOS. Now under the budget reports, it is showing insufficient funds @ the Fund Centre level.
    Please guide me on how do I redistribute Funds to the lower levels Fund Centres.
    Please refer to the screenshot at: http://nazrinrizal.blogspot.com/2012/01/funds-management-fm-year-end-issue.html
    Help would be very much appreciated. Thanks!

    You could try out transaction FM9P for year 2012 in your test system to reconstruct the distributed values.
    To me it seems that the actual budget for 2011 has only been entered for the top-level MIMOS and distributed from there (I assume you are using Former Budgeting), and thus the carryforward only considers the "actual" fund center + fund combination for which the budget was entered.
    If budget would have been entered to the lowest-level fund center, you would have to run FM9Q to sum it up for the above fund center hierarchy levels.

  • After Edit Library Item-  "Premature end of JPEG file"

    Hello, I'm using Windows 7 Home Premium 64-bit.  In DW CS5 after editing a Library item and saving, DW asks if it should update pages containing the item.  I tell it to go ahead, and after some processing I get an error box titled "JPEG Library Error."  The message is "Premature end of JPEG file."  Nothing else except "OK"!  I can't imagine what this is referring to or if the error is causing the pages to not be updated with the edited lbi.  I don't have any JPEG images i nthe Library item.  Here's a link to the Libraty item:
    http://www.techno-archive.com/Library/bottom_menu.lbi
    After I dismiss the error in DW the Update Pages dialog sits there with the Done button grayed out.  The bottom few lines of the log look like this:
    updated gallery_rec\trees\firetree\firetree-sky2.html
        item Library\bottom_menu.lbi
    updated gallery_rec\trees\firetree\firetree-tree1.html
        item Library\bottom_menu.lbi
    updated gallery_rec\trees\firetree\firetree-tree2.html
        item Library\bottom_menu.lbi
    updated gallery_rec\trees\firetree\firetree-tree3.html
        item Library\bottom_menu.lbi
    updated gallery_rec\trees\firetree\firetree.html
        item Library\bottom_menu.lbi
    Done.
      files examined: 641
      files updated: 641
      files which could not be updated: 0
    total time: (0:00:19)
    Updating F:\techno-archive\
    Done.
      files examined: 15697
      files updated: 0
      files which could not be updated: 0
    total time: (0:00:57)
    It doesn't tell which pages got updated and which didn't or why those that didn't did not get updated.
    Any ideas anybody?
    Thanks, - Dave

    Update- Solved!
    An answer to this thread dated April 30, 2009 of the same subject by David_Powers, community Professional, did the trick.  I wound up renaming the DW Configuration folder in C:\Users\dmckeen\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration (where dmckeen is my username) and letting DW rebuild it.
    Thanx

  • Confirmation Reversal - PO Line Item Edit Issue

    As per the business rule, if you reverse/delete the confirmation on a line item on the PO, you should be able to edit that line item.
    However, in my case, even after deleting confirmation also, PO line item cannot be changed.
    Generally when you delete the confirmation, where(which table) does this info stored and where shuld I look for this info - which Badi, FM?. 
    Currently what is happening is that when you change a line item, the program looks in table bbp_pdbei table and if the entry exists, it thinks that that line item is confirmed.  Is that ok or should this entry be deleted from this table if the confirmation is deleted. 
    Any help will be highly appreciated.
    Thanks

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Macbook Pro (end of 2010 edition) Safari issues?

    My Safari needs constant refreshing to get it to load a page. It used to be fine, but now i find that even Firefox is quicker to load. Safari needs to be constantly re-clicked to actually load a page. Its ridiculous!

    Hi U,
    CPU Check Usage UsingA ctivity Monitor
    Sometimes a process can run amok and use more of the CPU than it should, potentially causing a slowdown and/or heat issues and/or other issues. To check on this, first use your Mac as you normally would, the longer the better (checking this right after starting up may not show you anything). After you’ve used your Mac for awhile (again, the longer the better), go to Applications > Utilities > open Activity Monitor > in the top menu at right, select All Processes in the drop down menu > click on the column heading titled % CPU (this will update continuously, showing the percentage each process is using) > toward the bottom left of the window, click on CPU (this will show % Idle, which will also tell you how much of the CPU is being used). 

  • Item Conversion Template Issue for Oracle Migration - Copy functionality

    Hi,
    I am working on Migration project which is from Radius ERP to Oracle 11.5.10.2.
    Currently working on Item Conversion. This Item conversion having the fileds like (ORGANIZATION_ID,SEGMENT1,DESCRIPTION,ITEM_TYPE,COST_OF_SALES_ACCOUNT,SALES_ACCOUNT,ATTRIBUTE_CATEGORY,ATTRIBUTE1,ATTRIBUTE2,ATTRIBUTE3,ATTRIBUTE4,ATTRIBUTE5,ATTRIBUTE6,ATTRIBUTE7,ATTRIBUTE8,ATTRIBUTE9,ATTRIBUTE10,ATTRIBUTE11,ATTRIBUTE12,ATTRIBUTE13,ATTRIBUTE14,ATTRIBUTE15,GLOBAL_ATTRIBUTE10,REF_INVENTORY_ITEM_ID,REF_ORGANIZATION_ID).
    I have validated those fields and loaded into interfacing to Oracle Successfully in the master Org and Validated through Frontend.
    when I close the form, I will be receiving the below warning message and telling that Template id needs to be assign to the item before assigning item to the Org. The message is showing like
    "*You have not applied a template to this item, please apply a template before assigning this item to an ORG.*"
    Please find the below package which I wrote for this conversion requirement.
    The customer is saying like need to achieve the copy functionality based on the "REF_INVENTORY_ITEM_ID and REF_ORGANIZATION_ID".
    The Issue is am not able to handle the copy functionality and getting above message. kindly refer the package and suggest me where i am doing the mistake. Its high priority issue for me.
    Thanks in advance.
    CREATE OR REPLACE PACKAGE APPS.xxxx_inv_items_conv_pkg
    AS
    PROCEDURE xxx_item_conversion_proc (
    errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2,
    p_org_id IN NUMBER,
    -- p_commit_point IN NUMBER,
    p_load_code IN VARCHAR2
    IS
    <<Local Variables Declaration>> <<For space limit deleted these variables>>
    CURSOR cur_item_master (pc_org_code VARCHAR2)
    IS
    SELECT itemstg.*
    FROM xxx_inv_system_items_stg itemstg
    WHERE itemstg.organization_id = pc_org_code
    AND itemstg.status_flag IS NULL;
    CURSOR cur_item_master_dup (pc_org_code VARCHAR2)
    IS
    SELECT itemstg.segment1, itemstg.organization_id
    FROM xxx_inv_system_items_stg itemstg
    WHERE itemstg.ROWID <
    (SELECT MAX (b.ROWID)
    FROM xxx_inv_system_items_stg b
    WHERE b.segment1 = itemstg.segment1
    AND b.organization_id = itemstg.organization_id
    AND b.organization_id = pc_org_code
    AND itemstg.status_flag IS NULL
    AND b.status_flag IS NULL);
    BEGIN
    IF p_load_code = 'Insert'
    THEN
    l_transaction_type := 'CREATE'; -- Default Value in I/F Table
    ELSIF p_load_code = 'Update'
    THEN
    l_transaction_type := 'UPDATE'; -- Default Value in I/F Table
    END IF;
    DBMS_OUTPUT.put_line ( 'Validation Starts At :'
    || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH24:MI:SS')
    --Checking for Duplicate Records items
    BEGIN
    UPDATE xxx_inv_system_items_stg a
    SET a.status_flag = 'E',
    a.error_message = 'Duplicate Record'
    WHERE a.ROWID >
    ANY (SELECT b.ROWID
    FROM xxx_inv_system_items_stg b
    WHERE a.segment1 = b.segment1
    AND a.organization_id = b.organization_id)
    AND a.organization_id = p_org_id
    AND a.status_flag IS NULL;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Exception in updating duplicates'
    || SQLERRM
    END;
    DBMS_OUTPUT.put_line ('CheckPoint: Duplicate Record');
    BEGIN
    SELECT organization_id
    INTO l_organization_id
    FROM org_organization_definitions
    WHERE organization_id = p_org_id;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    DBMS_OUTPUT.PUT_LINE(p_org_id||' Org Does Not Exist');
    -- p_retcode := '2';
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.PUT_LINE('Exception in Getting Org Id'||'Cannot Proceed');
    -- p_retcode := '2';
    END ;
    DBMS_OUTPUT.put_line ('CheckPoint: Orgcode' || l_organization_id);
    /* IF p_retcode = '2'
    THEN
    RETURN;
    END IF;*/
    --Block             : Setting Master and Validation Orgs Flags
    BEGIN
    SELECT DECODE (master_organization_id, l_organization_id, 'Y', 'N'),
    master_organization_id
    INTO l_master_org,
    l_master_org_id
    FROM mtl_parameters
    WHERE organization_id = l_organization_id;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_master_org := 'N';
    l_master_org_id := NULL;
    DBMS_OUTPUT.PUT_LINE(p_org_id||' Org Does Not Exist');
    END ;
    DBMS_OUTPUT.put_line ('master_organization_id');
    SELECT fnd_profile.VALUE ('USER_ID')
    INTO l_user_id
    FROM DUAL;
    -- Block : Set the SET_PROCESS_ID
    l_set_process_id := l_organization_id;
    l_insert_count := 0;
    LOOP
    BEGIN
    SELECT COUNT (segment1)
    INTO l_insert_count
    FROM mtl_system_items_interface
    WHERE set_process_id = l_set_process_id
    AND transaction_type = l_transaction_type
    AND process_flag = 1;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_insert_count := 0;
    END;
    EXIT WHEN l_insert_count = 0;
    l_set_process_id := l_set_process_id + 10;
    END LOOP;
    DBMS_OUTPUT.put_line ('SET PROCESS ID -l_insert_count ' || l_insert_count);
    IF p_load_code = 'Insert'
    THEN
    BEGIN
    FOR recitem_data IN cur_item_master_dup (p_org_id)
    LOOP
    UPDATE xxx_inv_system_items_stg
    SET status_flag = l_processed_flag,
    error_message = l_error_message
    WHERE segment1 = recitem_data.segment1
    AND organization_id = recitem_data.organization_id
    AND status_flag IS NULL;
    COMMIT;
    END LOOP;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( 'Update of Duplicates Failed : '
    || SQLCODE
    || '--'
    || SQLERRM
    END ;
    END IF;
    FOR recitem_data IN cur_item_master (p_org_id)
    LOOP
    <<Local Variables Declaration>> <<For space limit deleted these variables>>
    IF p_load_code = 'Update'
    THEN
    l_error_message := 'Update Mode' || l_error_delimiter;
    END IF;
    --l_count := -1;
    BEGIN
    DBMS_OUTPUT.put_line ('CheckPoint: ItemValidationStart');
    SELECT DISTINCT inventory_item_id,
    restrict_subinventories_code,
    restrict_locators_code
    INTO l_inventory_item_id,
    l_restrict_subinventories_code,
    l_restrict_locators_code
    FROM apps.mtl_system_items_b msi
    WHERE msi.organization_id = l_organization_id
    AND msi.segment1 = UPPER (recitem_data.segment1);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_count := 0;
    -- l_processed_flag := 'F';
    DBMS_OUTPUT.put_line ('inventory_item_id - AFTER MAIN LOOP' || l_inventory_item_id||'-'||l_processed_flag);
    DBMS_OUTPUT.put_line ('inventory_item_id - AFTER MAIN LOOP' || l_inventory_item_id||'-'||recitem_data.ref_inventory_item_id);
    WHEN OTHERS
    THEN
    l_count := -1;
    -- l_processed_flag := 'F';
    DBMS_OUTPUT.put_line ('inventory_item_id - AFTER MAIN LOOP' || l_inventory_item_id||'-'||l_processed_flag);
    END ;
    DBMS_OUTPUT.put_line ('inventory_item_id - AFTER MAIN LOOP'||recitem_data.ref_inventory_item_id);
    IF l_count = -1
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Exception - Checking Item already Present'
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ('Exception - Checking Item already Present'||l_processed_flag);
    ELSIF (l_count > 0 AND p_load_code = 'Insert')
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Item Already Exists In '
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ('Exception - Checking Item already Present1'||l_processed_flag);
    ELSIF (l_count = 0 AND p_load_code = 'Update')
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Item Not Present In '
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ('Exception - Checking Item already Present2'||l_processed_flag);
    END IF;
    BEGIN
    SELECT count(*)
    INTO l_seg_count
    FROM apps.mtl_system_items_b msi
    WHERE msi.organization_id = l_organization_id
    AND msi.segment1 = UPPER (recitem_data.segment1);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_seg_count := 0;
    l_processed_flag:='F';
    l_error_message :=
    l_error_message
    || 'Item Not Present In Oracle'
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ('inventory_item_id - l_seg_count ' ||l_seg_count||'-'||l_processed_flag );
    WHEN OTHERS
    THEN
    l_seg_count := -1;
    l_processed_flag:='F';
    l_error_message :=
    l_error_message
    || 'Item Not Present In Oracle'
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    END ;
    IF p_load_code = 'Insert'
    THEN
    IF l_organization_id != l_master_org_id
    THEN
    BEGIN
    SELECT COUNT (1)
    INTO l_org_item_count
    FROM apps.mtl_system_items_b msi
    WHERE msi.organization_id = l_master_org_id
    AND msi.segment1 = UPPER (recitem_data.segment1);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_org_item_count := 0;
    DBMS_OUTPUT.put_line ('l_org_item_count ' ||l_org_item_count||'-'||l_processed_flag );
    WHEN OTHERS
    THEN
    l_org_item_count := -1;
    END ;
    IF l_org_item_count = -1
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Exception - Checking Item in Master '
    || l_error_delimiter;
    ELSIF l_org_item_count = 0
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Item Does Not Exist in Master '
    || l_error_delimiter;
    END IF;
    END IF;
    END IF;
    DBMS_OUTPUT.put_line ( 'CheckPoint: Iteminmasterorg'
    || l_org_item_count
    IF (recitem_data.description IS NULL AND p_load_code = 'Insert')
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message || 'Description is NULL' || l_error_delimiter;
    END IF;
    IF (recitem_data.sales_account IS NOT NULL)
    THEN
    BEGIN
    SELECT code_combination_id
    INTO l_sales_account
    FROM gl_code_combinations_kfv
    WHERE code_combination_id= recitem_data.sales_account;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    -- l_processed_flag := 'F'; --QUESTION
    l_error_message :=
    l_error_message
    || 'Sales Account Not Setup '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ( 'CheckPoint: Salesacct_Validation'
    || l_sales_account||'-'||l_processed_flag
    WHEN OTHERS
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Sales Account Exception '
    || SQLERRM
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ( 'CheckPoint: Salesacct_Validation'
    || l_sales_account||'-'||l_processed_flag
    END ;
    END IF;
    IF (recitem_data.cost_of_sales_account IS NOT NULL)
    THEN
    BEGIN
    SELECT code_combination_id
    INTO l_cost_of_sales_account
    FROM gl_code_combinations_kfv
    WHERE code_combination_id =
    recitem_data.cost_of_sales_account;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'COGS Account Not Setup '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ( 'l_cost_of_sales_account'
    || l_cost_of_sales_account||'-'||l_processed_flag
    WHEN OTHERS
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'COGS Account Exception '
    || SQLERRM
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ( 'l_cost_of_sales_account'
    || l_cost_of_sales_account||'-'||l_processed_flag
    END check_cogs_account;
    END IF;
    BEGIN
    select distinct organization_code
    into l_ref_org_code
    from org_organization_definitions
    where organization_id = recitem_data.ref_organization_id ;
    EXCEPTION
    WHEN OTHERS THEN
    l_ref_org_code:= NULL;
    l_processed_flag:='F';
    l_error_message :=
    l_error_message
    || 'Reference Org Not Present'
    || p_org_id
    || ' Organization '
    || l_error_delimiter ;
    DBMS_OUTPUT.put_line ('l_ref_org_code'|| l_ref_org_code||'-'||l_processed_flag);
    END;
    BEGIN
    select concatenated_segments
    into l_ref_inventory_item_code
    from mtl_system_items_kfv
    where inventory_item_id = recitem_data.ref_inventory_item_id
    and organization_id = recitem_data.ref_organization_id ;
    EXCEPTION
    WHEN OTHERS THEN
    l_ref_inventory_item_code :=NULL;
    l_processed_flag:='F';
    l_error_message :=
    l_error_message
    || 'Reference Item Not Present'
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    DBMS_OUTPUT.put_line ('l_ref_inventory_item_code'|| l_ref_inventory_item_code||'-'||l_processed_flag);
    END;
    IF (l_master_org = 'N' AND p_load_code = 'Insert')
    THEN
    BEGIN
    SELECT count(*)
    INTO l_description_count
    FROM mtl_system_items_tl
    WHERE organization_id = l_master_org_id
    AND inventory_item_id =
    (SELECT inventory_item_id
    FROM mtl_system_items_b
    WHERE organization_id = l_master_org_id
    AND segment1 = recitem_data.segment1);
    END ;
    IF l_description_count > 0 THEN
    l_processed_flag:='F';
    l_error_message :=
    l_error_message
    || 'Item Description Not Present'
    || p_org_id
    || ' Organization '
    || l_error_delimiter;
    END IF;
    END IF;
    IF l_processed_flag = 'S'
    THEN
    BEGIN
    INSERT INTO mtl_system_items_interface
    (organization_id,
    segment1,
    description,
    ITEM_TYPE,
    COST_OF_SALES_ACCOUNT,
    SALES_ACCOUNT,
    attribute_category,
    set_process_id,
    transaction_type,
    process_flag,
    copy_organization_code,
    copy_item_number,
    creation_date,
    created_by,
    last_updated_by,
    last_update_date
    --attribute_category
    , attribute1
    , attribute2
    ,attribute3
    ,attribute4
    ,attribute5
    ,attribute6
    ,attribute7
    ,attribute8
    ,attribute9
    ,attribute10
    ,attribute11
    ,attribute12
    ,attribute13
    ,attribute14
    ,attribute15
    ,global_attribute10
    VALUES (l_organization_id,
    recitem_data.segment1,
    recitem_data.description,
    recitem_data.ITEM_TYPE,
    recitem_data.COST_OF_SALES_ACCOUNT,
    recitem_data.SALES_ACCOUNT,
    recitem_data.ATTRIBUTE_CATEGORY,
    l_set_process_id,
    l_transaction_type, --,l_transaction_type
    l_process_flag,
    l_ref_org_code,
    l_ref_inventory_item_code,
    SYSDATE, l_user_id,
    l_user_id, SYSDATE
    -- l_attribute_category
    ,recitem_data.attribute1
    ,recitem_data.attribute2
    ,recitem_data.attribute3
    ,recitem_data.attribute4
    ,recitem_data.attribute5
    ,recitem_data.attribute6
    ,recitem_data.attribute7
    , recitem_data.attribute8
    ,recitem_data.attribute9
    , recitem_data.attribute10
    ,recitem_data.attribute11
    ,recitem_data.attribute12
    ,recitem_data.attribute13
    ,recitem_data.attribute14
    ,recitem_data.attribute15
    , substr(recitem_data.global_attribute10,1,length(recitem_data.global_attribute10)-1) --recitem_data.global_attribute10
    l_insert_count := l_insert_count + 1;
    /* IF (l_insert_count = NVL (p_commit_point, 10000))
    THEN
    -- l_set_process_id := l_set_process_id + 10; -- REVERT BACK CHANGE
    l_insert_count := 0;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_processed_flag := 'F';
    l_error_message :=
    l_error_message
    || 'Error in Inserting Item '
    || SQLERRM
    || l_error_delimiter;
    END ;
    COMMIT;
    DBMS_OUTPUT.put_line ('CheckPoint: Insertion Completed in Intfacetable');
    END IF;
    BEGIN
    UPDATE xxx_inv_system_items_stg
    SET status_flag = l_processed_flag,
    error_message = l_error_message
    WHERE segment1 = recitem_data.segment1
    AND organization_id = recitem_data.organization_id
    AND status_flag IS NULL;
    COMMIT;
    DBMS_OUTPUT.put_line ('Error Message'||l_error_message);
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (fnd_file.LOG,
    'Error:Updating Item:'
    || SQLCODE
    || '-'
    || SQLERRM
    END;
    END LOOP; --FOR recitem_data IN cur_item_master
    DBMS_OUTPUT.put_line ( 'Validation Ends At :'
    || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH24:MI:SS')
    DBMS_OUTPUT.put_line ('Number of records inserted into Table Successfully -->'|| l_insert_count);
    END;
    END xxxx_inv_items_conv_pkg;
    Edited by: 896170 on Apr 12, 2013 11:58 PM

    Issue got solved... changed the PO line amount as:
    <?xdoxslt:set_variable($_XDOCTX,'line_amt',xdoxslt:to_number(LINE_AMOUNT))?>
    Reference :Syntax for 'to_number'
    Regards
    Manikanta Panigrahi

Maybe you are looking for

  • What are the tables/view used to Compute Dependecies Report

    Hi, what are the tables/views we have in APEX, which is used to create the Compute Dependecies Report Home -> Application xxxxx > Application Reports > Shared Components > Database Object Dependencies thanks, Deepak

  • Ojects from Package cannot be transported

    Hello, When I try and release a transport request, I get the following message. Objects in package ZXI cannot be edited in transportable Workbench requests in the current system DXA. The transport routes are configured such that objects from package

  • Sun one web server 6.0 sp9. Crash occurred in function JVM_NewArray or JVM_

    We have a web page with 2 frame set (fa, and fb) fb has a table with a cell containing div of another table xx. We face the case where the result in the table xx is not completely displayed due to server crash. Each time this page is serviced the ser

  • Convert to Apple TV converts 5.1 to stereo.

    Using iTunes to convert a .mov file (H.264 MPEG 4 6-ch High efficiency AAC) for the Apple TV resulted in a .m4v file (H.264 2-ch AAC). Surely I should not lose the surround sound?

  • Issue with AutoSuggest + UpdateContent

    Hi, Using Spry.Utils.updateContent when I load part of a page containing an AutoSuggest the AutoSuggest breaks. Seems like the XML datasource is not fired in that case. If I put the AutoSuggest code out of the destination DIV it works. Click here to