UI - detect item code change in matrix

Hi everybody,
We are facing here a strong problem regarding an add-on managing pricing info in transactions:
We are trying to detect if the item code has been changed on any document line.
To do this job we usually use the "et_Validate" event and test the value of "ItemChanged" property of the related event pointer.
It appears that when the user leaves column 1 on the form matrix (which contain the itemcode), this property is always False, unlike other cases on other columns.
So we cannot say.
We thought about storing in a string array in vb all the itemcodes, and do checks according to the index (line index on the matrix will match value index in string array)
But there may be a more elegant way to solve this problem.
Please advise.
Kind regards,
PS. We are using SBO 2004A with Patch 21

Hi Cyril
I'm using a hashtable for this purpose.
key=formtype&formcount&linenumber
values are references to a specific value class
then i use the gotfocus,lostfocus and formclose - events for managing the hashtable and to determine if values got changed.
hth

Similar Messages

  • Workshop 8.1 detect source code changes

    Hi,
    I'm working on a web service application using Workshop 8.1sp4. When I run my web application in debug mode, the server will only detect Java source code changes within the webapps (WEB-INF/src). If I move the source code outside the webapp and into a seperate java project folder (still the same Workshop application), Weblogic will not detect changes. Is there any way to get this to work?
    Thanks,

    Hi
    I tested the scenario on 8.1Sp4 and could replicate the issue. This looks like a bug.
    Could you please open a BEA support case to get a fix? You could open a support case either at http://support.bea.com or by calling 1-888-232-7878
    I could get it working only after I clean and build the java project followed by the web project, then the web project recognizes the changes in the java project.
    The web project should be built after the java project, if the order changes it does not work.
    Vimala-

  • Item CODE CHANGE

    Hi
    I am facing Problem regarding Item Code . I had posted Inventory Opening Balance of Items And Now I want to change the Item Codes but the Description remain same and the stock also  .

    Hi,
    Item Code cannot be change if Transaction are booked.
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • Item code change into another item code

    Hi friends,
    problem situation:-
    i am having X item in A warehouse,i realised that now that is not going to sell, then there are Y item in B warehouse, in know that if i make X as aY1 and transfer to B warehouse it is going to sell(IS IT POSSIBLE TO MAKE X AS Y1???) ,at that time A warehouse stock should get deducted and Y warehouse stock should get added.(IS IT POSSIBLE???)
    MAHESH AMALE

    Hi,
    Please check the following thread regarding your issue and see if it is relevant :
    Re: Item Master Data
    Regards,
    Jitin Chawla

  • How I can know which row is parent item code or child item in matrix?

    Hi,
    In marketing document, when insert a item into contents page, if it is a BOM then all child item will be inserted into matrix automatically. My question is when i view the rows in matrix how i can know which row is normal master item and which row is a child item row? From the UI, i can only see the child item code looks readonly but how i can know it in my add-on code? I tried to get the edittext box object from item No. cell, but i can't find any difference.
    Thanks!
    Lan

    Sorry, i found an issue when i try to retrieve the BOM Type column value. I am in adding mode, when i insert a BOM with components, the bom type will appears as "Component of a Sales BOM". But in the event, when I try to get the value from this cell (it is combobox), it gives another value which is not same with the one it appears in the matrix. Is anyone know how to solve my problem?
    Thanks!
    Lan

  • Ship to party Jursidiction code change at line item leve in Sales order

    Hell Gurus,
             Here is requirement for enhancement in Sales order. For determining tax following logic is requird to modify jursidiction code of ship-to party at line item level.
    after entering header details and line item, then user exit should be there(which user exit??) and i need to compare countries of Ship-from(Plant i believe) and Ship-to party(customer) if country is same, then jursidiction code of Ship-to party at line item level should be changed with value from Jursidiction code of Ship-from party(plant this value will come from <b>T001W</b>) table. this should happen before save(while entering line items, user may go and check jursidiction code change)
    what i need here is which user exit is triggerd ater line item entry, and how to change jursidiction value( i believe we need XVBAP, XVBPA, might be XADRC(Jursidiction code) . if some one provide user exit and logic with structure details then it would be of great help.
    hoping to get reply
    Thanks in Advance
    Siva

    Can you check in MV45AFZB Include but i am not sure
    FORM USEREXIT_FILL_VBAP_FROM_HVBAP.
    VBAP-zzfield = HVBAP-zzfield2.
    ENDFORM.
    FORM USEREXIT_SOURCE_DETERMINATION.
    set source
    VBAP-WERKS          = zzfield1.
    set item category
    VBAP-PSTYV          = zzfield2.
    ENDFORM.
    *eject
    Reward Points if it is helpful
    Thanks
    Seshu

  • Detect purchase requisition item text changes

    Hi Abap Gurus,
    During a PR modification (ME52N), I need to read the purchase requisition item text at runtime to compare with the stored item text (read text) and detect if it have changes.
    Actually, I am using the badi ME_REQ_POSTED.
    How could I detect the PR item text changes? or How could I read the item text at runtime.
    Somebody could help me with this....
    Other ideas will be welcome.....
    Regards,
    Jaya Sankar.M

    Hi,
    But can you change the purchase requisition item text using the badi?

  • Inventory account not defined in item code

    Hi,
         Iam trying to add A/p Credit memo from A/P invoice (Copy to method) and changing Unit price of one item (there 8 items) then it gives error of "Inventory account not defined item code" i check all accounts in Item group and Wh also.i also change item gr.of particular item and update it correct item gr.relogin but still problem occurs so pl suggest me solution.
    Regards
    Sudhir Pawar.

    HI
    If ur using purchasing acc.System  method u have to define the accounts for purchase acc., purchase offset acc. then ly it will allow to add. Also check the new  item group which u have changed now,  check whether all acc.s r there r not in that group.
    Also Purchase Return acc.
    Giri
    Edited by: Giri dharan on Aug 18, 2009 11:15 AM

  • Last line item gets changed to first line item for cs01

    HI experts,
               I have writen a BDC for Tcode cs01.
    I am facing a problem in that.If sucppose there are 4 line items,
    the first three line itmes are getting uploaded correctly but the kast line item gets changed to first line item.
    below is part of my code.
    DELETE ADJACENT DUPLICATES FROM T_MAT COMPARING MATNR.
    SORT T_MAT BY MATNR. "HEADER DATA
    SORT T_BOM BY MATNR1. "ITEM DATA
    *CLEAR : COUNTER, ITEM_NO.
    LOOP AT T_MAT INTO W_MAT.
      REFRESH GT_BDCDATA.
      CLEAR   GW_BDCDATA.
    perform bdc_dynpro      using 'SAPLCSDI' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29N-STLAN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29N-MATNR' W_MAT-MATNR.
                                 'lejn44001'.
    perform bdc_field       using 'RC29N-WERKS' W_MAT-PLANT.
                                 '4600'.
    perform bdc_field       using 'RC29N-STLAN' W_MAT-BOM_USAGE.
                                 '1'.
    *perform bdc_field       using 'RC29N-DATUV'
                                 '22.06.2010'.
    perform bdc_dynpro      using 'SAPLCSDI' '0110'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RC29K-BMENG'
                                  '1'.
    perform bdc_field       using 'RC29K-STLST'
                                  '1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-EXSTL'.
    perform bdc_dynpro      using 'SAPLCSDI' '0111'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29K-LABOR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
      cnt = cnt + 1.
      CONCATENATE  '0' CNT INTO VAR.
       ADD 1 TO COUNTER.
       ITEM_NO = 10 * COUNTER.
       OVERLAY ITEM_NO WITH '0000'.
       W_BOM-ITM_NO = ITEM_NO.
    perform bdc_dynpro      using 'SAPLCSDI' '0140'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSTP(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-BOM_COMP.
    clear new_mark.
    CONCATENATE 'RC29P-MENGE(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY.
    clear new_mark.
    CONCATENATE 'RC29P-POSTP(' VAR ')' INTO NEW_MARK.
    perform bdc_field USING new_mark W_BOM-ITM_CAT.
    clear new_mark.
    clear VAR.
      ENDLOOP.
    loop at T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
    perform bdc_dynpro      using 'SAPLCSDI' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POSNR'.
    perform bdc_field       using 'RC29P-POSNR' V_CNT.
                                 '0010'.
    perform bdc_field       using 'RC29P-IDNRK' W_BOM-BOM_COMP.
                                 'PURCHASECOST'.
    perform bdc_field       using 'RC29P-MENGE' W_BOM-QTY.
                                 '20'.
    perform bdc_field       using 'RC29P-MEINS'
                                  'M'.
    perform bdc_dynpro      using 'SAPLCSDI' '0131'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RC29P-POTX1'.
    perform bdc_field       using 'RC29P-SANKA'
                                  'X'.
    V_CNT = V_CNT + 10.
    ENDLOOP.
    CLEAR V_CNT.
      perform screen_data. " IS ALL ABOUT CALLING TRANSACTION......
      ENDLOOP.
    following is The input file format m providing.
    Material     Plant     BOM usage     Item No     Item Cat     BOM component     QUANTITY
    WRJN46106     4600     1     10     z     PURCHASECOST     10
    WRJN46106     4600     1     20     z     SOURCINGCOST     15
    WRJN46106     4600     1     30     z     INVRESERVE     12
    WRJN46106     4600     1     40     Z     INVRESERVE1     20
    in this the first 3 line items are coming correctly but the 4th one gets changed to
    first line item.
    e.g INVRESERVE1 changes to purchasecost.
    plz help.
    Thanks n regards,
    Ashmita singh.

    Hi Suneel,
    I hardly can't believe that. There must be an mistake by your own in the smartform itself. Would you please share some screens or better, the smartform-XML itself. You can pass out everything else and just share the table and a dataset to try this.
    I'm pretty sure that there is something wrong with the settings or even the loop itself. I never faced a problem like that or even heared about such things.
    I would love to have a look inside.
    Before you share it, create a new one with just the table inside and try it with the same data. Perhaps it is just of to much folders or something like that, so the generating comes in trouble.
    Regards
    Florian

  • Item Codes-Automatic(urgent)

    Hi All,
    I want to define Item Code as Default i.e In SAP How we are getting the Default numbering for eg.1,2,3,4.........I want in the same way for the Item Code.IS IT POSSIBLE through Query based FMS or any other way??
    Thanks in Advance.
    mona

    Dear Mona,
    In order to resolve the issue, please do the following steps :-
    1. Create a Initial Item code I0000 manually in the application.
    2. Save the following query :-
    Select max(Itemtype)
    + cast(substring( max(Itemcode), 2, len(max(Itemcode)))
    + 1 as nvarchar(10)) from OITM                                              
    Where Itemtype = $[OITM.Itemtype]
    3. Create a formatted search based on the above query and assign it to the itemcode field. (Open Item master in add mode )
    4. Then select refresh the formatted search regularly with the Item description change.
    5. Then Go to item master data in add mode put something in item code field and then type the correct item description and click tab.
        Now your Itemcode field will display as "I0001".
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • SBO 2007 PLD AR invoice item code not printing

    Hi,
    We have a problem which just started yesterday on an installation that has been running fine for a long time.   The PLD format for the AR Invoice usually prints the row ItemCode no problem.  Since yesterday it started printing the item's manufactirers number instead.   If we changed the default layout to the SAP supplied layout the problem was the same.   Went in to the customised PLD and amended it to one field and then back to the ItemCode now it does not print anything in that field, and nor do the system provided PLDs either, although they have/can not be amended.
    Any ideas?
    Thanks
    Simon

    Hi Thanks for the replies,
    The system is on SP00 PL49.    There are no add-ons, and certainly no add-on have been removed or added recently.  The AR invoice PLD has been in use for at least six months without modification.   The field for item code in the PLD looks fine, if I amend it to show, say, the INV1 warehouse code instead, it works fine.  If I switch it back to Itemcode it print nothing.   If I check the table it looks fine also.  It is very strange that the same symptom is experienced in the customer modified PLD and system default PLDs
    Any ideas?
    Simon

  • Renaming Item codes

    Hi
    What will be consequences if you rename the item codes in the database?  that is after having the opening balances done for some items and some items are used in POs.
    Thanks
    SV Reddy

    Hi,
    If you rename a item and then create an order for that item, you will be able to change the code of the item since no formal document or transaction was created for that item.
    Regarding the order, you will not be able to cancel the order since B1 will look for updating the ordered amount of the item and since the item does not exist you will not be able to cancel the order.
    The correct way to work in that case is to cancel the order and then cancel the item.
    Regards
    Vikas
    SAP business One Forums Team

  • Item Codes with description in inventory - R12

    Dear All
    In R12, Inventory module, from where and how to get the item code and item description simultaneously.
    e.g: Suppose I have an item having 3 segments. I want to display the item code with descriptions like this:
    01-Stores | 001-Waste | 0001-Cotton
    where '01' is code of segment 1 and its value against a value set is 'Stores'
    similarly '001' is code of segment 2 and its value against a value set is 'Waste'
    and '0001' is code of segment 3 and its value against a value set is 'Cotton'
    Please advise
    I shall be ever thankful.
    Thanks & Best Regards
    OraLearner

    Start with this    SELECT     ffv1.description || ffv2.description || ffv3.description
         FROM mtl_system_items_b msi
              fnd_flex_values_vl ffv1,
              fnd_flex_values_vl ffv2,
              fnd_flex_values_vl ffv3,
        WHERE ffv1.flex_value = msi.segment1
          AND ffv1.flex_value_set_id = 1010291
          AND ffv2.flex_value = msi.segment2
          AND ffv2.flex_value_set_id = 1010292
          AND ffv3.flex_value = msi.segment3
          AND ffv3.flex_value_set_id = 1010293
          AND msi.organization_id = &organization_id and msi.inventory_item_id = &inventory_item_id  You will have to change the value set ids above. You can find those id's by going to the KFF definition screen for items.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • Item Codes and Revisions to Items

    Hi Experts!
    I have a client who does Custom Manufacturing. I have a question about Item Codes and Revisions.
    My understanding is that it is better to use a unique Item Code for each change to an Item. Therefore every revision would have a new Item Code with all the nessesary drawings etc. linked to it.
    Is there a way to keep the same Item Code and just mark it as Revision 1, 2,3 etc....(not in the ItemCode) BUT keep the history of the old revisions, like the drawings that was attached to it...
    Any help would be appreciated.
    Thanks.
    Marli

    Hi Marli,
    Unfortunately No. Item Code is the primary key for item table OITM.  You have to make it unique.  You could keep the same initial with suffix like a, b, c to make the different item codes but identifiable easily.
    Thanks,
    Gordon.

  • Item code

    Dear All,
    We have inventory settings as follows:
    1. Group
    Fruit
    2. Name
    Pineaple
    3. Code
    P001
    4.Grade
    value : 24 -> Grade A, Grade B, Grade C
    5. Price List
    Grade A, Grade B, Grade C
    I am really confusing whether I have to create itemcode P00124A or just P001, but I create UDF contains grade value 24, price list grade A, B, C and warehouse code A, B, C.
    But if the item have to downgrade because of quality decrease, I have to change its level to grade B or even C. If the quality is more and more decrease (not B or C), I have to change the item code.
    Pls give advice. Thx
    Rgd,
    Edu
    (Georgia will win)

    I am happy to hear your answer.
    I suggest to use batch no. as lot number for the item. I create UDF in category : inventory --> batch number for items named grade and then I link it to a grade value table.
    I agree with your idea :
    lots
    grade A
    grade B
    but lot number required by user is the date of the fruit receiving. So, it is important and it will be a main criteria to assess the grade value in making downgrade decision.
    Anyway, in administration module --> general settings --> tab inventory --> unique serials number by field : I choose none. What will be I choose so that the above can be applied ?
    However, what about the price list ? do you have the automation to make the unit price change automatically when the warehouse code change ?
    Pls give advice.
    Rgd,
    Steve "Edu"

Maybe you are looking for