Help on MSEG 2 items relationship!

Hi guys,
If we do some material movement (For instance, we move the material A from location C_A to C_B), there is 2 lines item created in table MSEG.
the question is how can we know the 2 items relationship, just checking the 2 items data?
thanks,
-James

Hi Seema,
Firstly I must say thanks to you.
And we do the movement-  material A from A_L (Storage location -mard-lgort) to B_L. In the table MSEG, there is also a field called 'lgort' to indentify storage location. The question is if we know material A current storage location B_L, but how we know its previous location (before movement)?

Similar Messages

  • Need Query for Item Relationship of Oracle Apps

    Hello Team,
    I need the Query to select the Item Relationship.
    In Oracle Apps we have different tyes of Structure
    ItemA -> ItemB
    ItemB -> ItemC
    ItemC -> ItemD
    ItemG -> ItemH
    ItemK -> ItemL
    ItemW -> ItemQ
    and this also is possible (meand many to one relationship)
    ItemA -> ItemB
    ItemB -> ItemC
    ItemC -> ItemD
    ItemT -> ItemD
    and in the Select Query i want the below result
    ItemA -> ItemB 1
    ItemB -> ItemC 2
    ItemC -> ItemD 3
    ItemG -> ItemH 1
    ItemK -> ItemL 2
    ItemW -> ItemQ 1
    and this also is possible (means many to one relationship)
    ItemA -> ItemB 1
    ItemB -> ItemC 2
    ItemC -> ItemD 3
    ItemT -> ItemD 1
    means i want the Hierarchy number also
    Please help me to in order to get the relationship by sql query.
    Kind Regards,

    thanks for the quick response and i would love to spend time perusing the forum for this question but i didn't have time today.  i'll do that now though.
    what i'm mostly interested in is a chronological view (lastUpdateDate) of the change to pricing for an item in the system.  there is a lot of activity in our system around price changes for promotions and i want to keep track of when it's changed in the source system and pair that with our other downstream systems.
    i'm assuming we can add this functionality through a udf some way or maybe sp_TransNotification proc?

  • Oracle PLM (Product Workbench) # Item Relationship Tab

    Hi Folks,
    Anybody can please share the concept/use of Item Relationship tab on Product workbench in PLM.
    I thought all the Item relationships I create in Oracle Inventory will be visible and I will be able to use it on product workbench, but the tabs remains empty or greyed out. I searched some stuff but really did not convince me a lot
    "Use the Relationships tab to view the reference designators, component operations and substitute components associated with the structure".
    If anybody can throw some more light that would be highly appreciated.
    Thanks
    RV

    Please see if these docs help.
    EGOIOIMP - User With Item Org Assign Privilege Not Able To Do This Using Import From Excel (INV_IOI_NOT_CATALOG_USER) [ID 1207273.1]
    Unable To Create Item Through Excel Upload, While Possible Through Html [ID 564270.1]
    Thanks,
    Hussein

  • One to Many Item relationship

    What relationship type I can use to define 1 to many relationship? I want notifications to the user to replace item A with item B, C and D, when he gets an order for Item A.

    Hi 1062454
    There are multiple relationships between items like substitute, up-sell, cross-sell etc.
    If you have defined the item relationships in Inventory and enabled the profile option 'OM: Enable Related Items' then in that case on the Quick Sales Order Form 'Related Items; button will be enabled.
    This related items feature would allow you to select item B, C, D etc in place of Item A.
    Thanks
    Mirza Tanzeel

  • Item Relationship for Obsolete Items

    This is a question for EBS R12.1.3 - OM/Inventory setups
    We have a process where once an item is determined to be phased-out, we set up an  item relationship for an active item that will be replacing the product we no longer want to produce.  My issue is that once we consume all of the phased-out product, we uncheck the "Customer Orders Enable" flag on the item master so that it can no longer be ordered.  The problem is that if the item isn't orderable, we can't pull the item up on the OE form to see it's replacement.  This leaves our customer service blind to the product they should be selling.
    Does anyone have a recommendation for OM or Inventory setups that would allow us to see the Item Relationship on the OE Form, but not allow orders to be placed for the obsolete item?  Not sure if it matters, but we do use the OM materialized views with Item Orderablility feature.

    I created an SR with Oracle.  They stated that this is not possible and is being considered as an enhancement request.
    Bug 6612972: INACTIVE ITEM NOT SHOWN IN LOV WHEN ORDERING SUPERCEDED ITEMS
    Bug 14013746: ITEM SUBSTITUTE DOESN'T WORK FOR OBSOLETE ITEM

  • How to add pl sql query into help text of an item.

    Hi
    In my database i have added comments to the colums. I would like to use this comments in the help text of the items of my application. I have the query but when I use it in the help text attribute it does not execute the query, it presents the query.
    Any ideas?

    It is probably too late now, but note that if you create your application using the Create Application Wizard and Application Models, based on User Interface Defaults created in the SQL Workshop, any column comments will automatically become application help text.

  • Item Relationship business events

    Hi All,
    Is there any business event which will trigger when item relationship is added or changed using Inventory item relationship form (INVISDRI)?
    Thanks in advance
    Rak

    Rak,
    I don't think there is one (even in R12). But depending on where you are coming from (Spares Management or Pure Engineering perspective), you may find something in those applications. Even clean item master import where you are creating Item relationships as part of the item import, you can use item create business event (checking the rows existance in the interface tables and base tables) and use that event.
    Also I am aware as part of the AIA effort to integrate the Agile PLM and EBS Item master, there are quite a few planned and I am sure this could be one of those. I saw a open world presentation where this is was one of those "Should Have" and not "Must Have" features.
    Sorry for the long answer, but the answer as I found now, is now.
    Thanks
    Nagamohan

  • Need help mapping one-to-many relationship

    [Sorry, inadvertently cross-posted]
    Hello,
    I have a one-to-many mapping question that's probably a no-brainer for the
    experts of the group out there. My problem is that I can't get a collection
    of Items for a given Theme to be populated and I don't know if it's a
    problem in my system.jdo or in my classes (or both). For example, for Theme
    10,
    I want a collection of two Items, item_ids 1 and 2.
    I have db tables named ITEM and THEME with the following layouts:
    ITEM
    |==========================================================|
    | item_id(pk) | item_name | item_number | theme_id(fk) |
    |==========================================================|
    | 1 | This is Item1 | 1234 | 10 |
    | 2 | This is Item2 | 2954 | 10 |
    | 3 | This is Item3 | 2094 | 17 |
    | 4 | This is Item4 | 946 | 11 |
    | ... |
    |==========================================================|
    THEME
    |=======================================|
    | theme_id(pk) | theme_description |
    |=======================================|
    | 4 | Space |
    | 10 | Town |
    | 11 | Train |
    | 17 | Pirate |
    | ... |
    |=======================================|
    I have two PersistenceCapable classes that map to the above tables:
    package com.lego.data;
    public class Item
    public int item_id;
    private String item_number;
    private String item_name;
    private int theme_id;
    public Theme theme;
    public String toString()
    return
    item_number+":"+item_name+":"+theme.getCode()+":"+theme.getDescription();
    package com.lego.data;
    import java.util.*;
    public class Theme
    public int theme_id;
    public String theme_description;
    public Collection items;
    public String toString()
    return theme_id+":"+theme_description;
    and here is my system.jdo file:
    <?xml version = "1.0" encoding = "US-ASCII"?>
    <jdo>
    <package name="com.lego.data">
    <class name="Item" identity-type="application"
    objectid-class="com.lego.data.IntOId">
    <extension vendor-name="kodo" key="table" value="item"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="item_id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="item_id"/>
    </field>
    <field name="item_number">
    <extension vendor-name="kodo" key="data-column" value="item_number"/>
    </field>
    <field name="item_name">
    <extension vendor-name="kodo" key="data-column" value="item_name"/>
    </field>
    <field name="theme_id">
    <extension vendor-name="kodo" key="data-column" value="theme_id"/>
    </field>
    <field name="theme">
    <extension vendor-name="kodo" key="theme_id-data-column"
    value="theme_id"/>
    </field>
    </class>
    <class name="Theme" identity-type="application"
    objectid-class="com.lego.data.ThemeKey">
    <extension vendor-name="kodo" key="table" value="theme"/>
    <extension vendor-name="kodo" key="lock-column" value="none"/>
    <extension vendor-name="kodo" key="class-column" value="none"/>
    <field name="theme_id" primary-key="true">
    <extension vendor-name="kodo" key="data-column" value="theme_id"/>
    </field>
    <field name="theme_description">
    <extension vendor-name="kodo" key="data-column"
    value="theme_description"/>
    </field>
    <field name="items">
    <collection element-type="Item"/>
    <extension vendor-name="kodo" key="inverse" value="theme"/>
    </field>
    </class>
    </package>
    </jdo>
    Thanks in advance for the help.
    -Tim

    Abe White wrote:
    The first thing to check is that you are always setting the "theme" field in
    your Items. If you add an Item i to the "themes" collection of a Theme t, but
    forget to also set i's "theme" field to t, then the change will never get
    written to the database.
    Next, make sure that whenever you set the "theme" field of an Item, you also
    set
    its "theme_id" field. You map both of these fields to the same column, so you
    better be sure they stay in synch.
    On a related note, you might try making the "theme_id" field non-persistent if
    things still aren't working for you. Mapping two fields to the same column
    might be causing trouble. It would be safer to make theme_id non-persistent
    anyway, and to always grab the id from the Theme stored in your "theme"
    field.
    Better OO programming and all that, though I can see that you might have
    performance issues in mind when doing it your way.
    Anyway, if you find that it works when you make theme_id nonpersistent, let us
    know and we'll see why the double-mapping of the column is causing problems,
    and hopefully find a fix.Abe,
    Thanks for the response but I'm still confused. I failed to mention that
    the Item and Theme tables are in an existing schema, so as you saw in my
    system.jdo, I am specifying application identity.
    Since this is an existing schema, the Item table has theme_id as the
    foreign key to the Theme table. So are saying that it is a problem to map
    the both theme_id as a data column and a Theme object in the Item at the
    same time?
    I guess what I don't understand is exactly what my system.jdo should look
    like to map a one-to-many relationship. In my case, from Theme (1) to Item
    (many). (See my system.jdo in previous post).
    Thanks
    -Tim

  • Help required - Sales order item is partially delivered but the item grayed

    I have a sales order 123 having say item10 with qty 1, item20 with qty 10 , item 30 qty 12
    Item 1 confirmed qty 1 and delivered qty is 1
    Item 2 confirmed qty 10 and delivered qty 10
    Item 3 confirmed qty 1 and delivered qty is 1
    Now the item3 still has open requirements of 11 to be delivered. But the item is GRAYED OUT already.
    even if I do ATP the qty is not confirming for the remaining 11 pieces.
    Why is that? How to make that item out from GRAY.
    How to confirm the remaining 11 qty for that item.
    Help required as early as possible.
    Appreciate ur help guys
    Radha

    hi Radha, how are you ?
         ---the partial deliveries in master data must have not been mentioned.
         ---the deliveries should be upto target quantity.
         ---check order type, item category and schedule line category.
         ---check unrestricted stock availability.
    thank you
    regards
    Khera.

  • BBP_PD_PO_GETDETAIL and item relationship issue

    Hi all,
    I'm working on a a requirement that deals with the distribution phase from SRM of a purchase order.
    What I have to do is basically intercept the order, extract its items and the itmlim_rel table in order to get an historical tracking for each position, so that I can "browse" from a certain position of the PO to the corrisponding position of the shopping cart which generated it. This to perform some checks on accounting details wrt the ones retrieved for the corresponding SC items.
    Here's a snippet of code (from a custom implementation of the method BBP_B46B_PO_OUTBOUND:
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
          EXPORTING
            i_guid       = is_header-guid
          TABLES
            e_item       = t_po_item
            e_itmlim_rel = t_po_itmlim_rel.
        READ TABLE t_po_item INTO l_po_item WITH KEY del_ind = ''.
        IF sy-subrc = 0.
          READ TABLE t_po_itmlim_rel
                 INTO wa_po_itmlim_rel
                 WITH KEY objtype_b = 'BUS2201001'
                          itm_guid_b = l_po_item-guid
                          objtype_a = 'BUS2121001'.     " from PO pos to SC pos
    The last READ TABLE ends with sy-subrc = 4, and here's the point. The GUIDs on the relationship table do NOT match the ones on the t_po_item table. How is that possible? There's something I'm missing, hope you gurus can provide me a suggestion or hint

    Hi,
    Actually,Data is coming in E_Item and PO is getting created  if I comment the code which i have written in BBP_DOC_CHANGE_BADI.As i told you earlier that I am using BBP_DOC_CHANGE_BADI only for value setting in my Custom fields of SRM Portal 7.0.If I uncomment that BADI again I am not getting data in E_Item..I am missing anything in this BADI.
    Cann you please check.
    I'll give the complete code:
    Code in BADI:BBPDOC_CHANGE_BADI._
    method IF_EX_BBP_DOC_CHANGE_BADI~BBP_PO_CHANGE.
    Checking mode of Purchase Order
        IF  iv_mode EQ gc_c OR   " Create
           iv_mode EQ gc_u OR   " Update
           iv_mode EQ gc_t.     " Check
       ES_HEADER-ZZ_LOGIC = 'X'.
        ES_HEADER-ZZ_LOGIC_DAT = SY-DATUM.
    ENDIF.
    Code in BADI:BBP_DOC_CHECK BADI
    Data : gs_header        TYPE BBP_PDS_PO_HEADER_D,     " PO Header Data
               gt_item          TYPE standard table of  BBP_PDS_PO_ITEM_D,       " Item Data for PO
               gs_item          LIKE LINE OF gt_item,    " Item Data for PO
    Checking mode of Purchase Order
        IF iv_mode EQ gc_c OR   " Create
           iv_mode EQ gc_u OR   " Update
           iv_mode EQ gc_t.     " Check
    if not iv_doc_guid is initial.
    Fetch PO Details
          CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
            EXPORTING
              I_GUID          = iv_doc_guid
              I_WITH_ITEMDATA = gc_x
            IMPORTING
              E_HEADER        = gs_header
            TABLES
              E_ITEM          = gt_item.

  • Help needed in list item...need to display employee of a selected dept

    Hi All,
    I am very beginner in D2K technology.I am using 10g Forms.
    Could you please help me...
    I have created a list item which contains dept_id=10,20,30....
    My requirement is when i will change the value of dept_id(select dept_id=20),the employees belong to that dept will display(need to display 5 employees of dept 20).
    I hav created two block--block2 and block3
    In block2,there is a list item
    In block3,there is a display item and i changed the properties number of record displayed to 10 of the block.
    I atteched a trigger when-list-changed and the code is :
    select last_name into :block3.item14 from employees where department_id=:block2.item4;
    But It is not working.....
    Thanks in Advance,
    Tapan.
    Edited by: user630863 on Aug 8, 2010 9:20 PM
    Edited by: user630863 on Aug 8, 2010 9:55 PM

    okk..well still i don't know the purpose of the form on which you are working why not the database block for emp?..but the requirement you are asking can be done through following code...
    Trigger - WHEN-LIST-CHANGED
    DECLARE
      CURSOR F_Cur IS
        SELECT ename
        FROM emp
        WHERE deptno = :list_item_name;
    BEGIN
      GO_BLOCK('BLOCK3');
      FIRST_RECORD;
      CLEAR_BLOCK;
      FOR G_CUR IN F_CUR LOOP
        :block3.item_name:=G_CUR.ename;
        NEXT_RECORD;
      END LOOP;
      FIRST_RECORD;
    END;
    Note: in the BLOCK3 there should be one item navigable by cursor. I mean if block3 is having only one item which is name item and it is display item then GO_BLOCK built-in will not work. So, you will need to create one more in block3 or make that name item as text item and set update_allowed to NO from the items' property.
    -Ammad

  • How to put an image in the popup help of a page item?

    I am using APEX 2.2. I want to put an image in the help text of a page input item.
    This is the help text:
    Some help text....
    <p><img src="&APP_IMAGES.auto_lov.jpg" /></p>This is rendered as:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=0&p_flow_id=103&p_fname=auto_lov.jpg" /></p>As you can see, the application id is not returned.
    If I put exactly the same text in a html region, the image is correctly displayed:
    <p><img src="wwv_flow_file_mgr.get_file?p_security_group_id=844129086577364&p_flow_id=103&p_fname=auto_lov.jpg" />So, is it possible at all to put in image in the popup help text of a page item?

    I solved it by putting the jpg file in an images directory on the web server instead of in the database. Not really what I want, but it works.
    <p><img src="&IMAGE_PREFIX./apps/auto_lov.jpg" /></p>

  • URGENT help !! 1-n relationship

    Hi ,
    i'm evaluation kodo (first impression : extremely powerful!)
    I'm trying to test a 1:n relationship with a join query between two tables
    (mysql database) , but i can't generate (by kodo) a single sql join
    statement. When i run the following code i have a query for
    TCatalogorisorse (obtaining a collection) and then automatically N query
    (for each element in the collection) on the TTiporisorsa table.....The
    results are correct...but i want a single join statement!!! help me, please
    This is the relationship followed by the columns:
    TCatalogorisorse (N) -------- (1) TTiporisorsa
    TCatalogorisorse [car_Code, car_Descrizione, car_Unitamisura ]
    TTiporisorsa[tpr_code,tpr_descrizione]
    Java code:
    public class TCatalogorisorse
    private int carCode;
    private String carDescrizione;
    private int carUnitamisura;
    private TTiporisorsa risorsa;
    public class TTiporisorsa
    private int tprCode;
    private String tprDescrizione;
    private Collection risorse ;
    Query:
    PersistenceManagerFactory pmf = new JDBCPersistenceManagerFactory ();
    PersistenceManager pm = pmf.getPersistenceManager ();
    Query query = pm.newQuery (provajdo.business.TCatalogorisorse.class);
    Collection results = (Collection) query.execute ();
    Metadata:
    <class name="TCatalogorisorse" objectid-class="TCatalogorisorseId">
    <extension key="class-column" value="none" vendor-name="kodo"/>
    <extension key="lock-column" value="none" vendor-name="kodo"/>
    <extension key="table" value="t_catalogorisorse"
    vendor-name="kodo"/>
    <field name="carCode" primary-key="true">
    <extension key="data-column" value="CAR_CODE"
    vendor-name="kodo"/>
    </field>
    <field name="carDescrizione">
    <extension key="data-column" value="CAR_DESCRIZIONE"
    vendor-name="kodo"/>
    </field>
    <field name="carUnitamisura">
    <extension key="data-column" value="CAR_UNITAMISURA"
    vendor-name="kodo"/>
    </field>
    <field name="risorsa">
    <extension key="tprCode-data-column" value="TPR_CODE"
    vendor-name="kodo"/>
    </field>
    </class>
    <class name="TTiporisorsa" objectid-class="TTiporisorsaId">
    <extension key="class-column" value="none" vendor-name="kodo"/>
    <extension key="lock-column" value="none" vendor-name="kodo"/>
    <extension key="table" value="t_tiporisorsa"
    vendor-name="kodo"/>
    <field name="tprCode" primary-key="true">
    <extension key="data-column" value="TPR_CODE"
    vendor-name="kodo"/>
    </field>
    <field name="tprDescrizione">
    <extension key="data-column" value="TPR_DESCRIZIONE"
    vendor-name="kodo"/>
    </field>
    <field name="risorse">
    <collection element-type="TCatalogorisorse"/>
    <extension vendor-name="kodo" key="element-inverse"
    value="risorsa"/>
    </field>
    </class>

    Thanks Abe,
    so are you saying me that kodo doesnt't currently generate dynamic sql
    with outer joins?
    can't i have
    select a.X,b.Y
    from a,b
    where
    a.Z=b.K
    please confirm my (last)
    conclusion!!
    thanks
    for the support... yes i would like an unique sql statement like this :
    select *
    from t_catalogorisorse cr , t_tiporisorsa tr
    where cr.tpr_code=tr.tpr_code;
    ....are you saying me that actually is not possible and so i must wait for
    kodo 3? (when it will be available?)...
    i am testing kodo to change the way to access databases (manually
    constructing queries :-( ) and this could be a big limitation, for big
    tables/databases this could be non good (i think).
    please reply with the definitive affermation.
    thanks
    Abe White wrote:
    Currently Kodo does not perform eager loading of relations. Kodo 3.0
    will support eager loading via outer joins (for 1-1) and batched selects
    (for 1-M/M-M). It lseems you're looking for a way to prevent extra
    queries for each TTiporisorsa when you read the set of all
    TCatalogorisorses. One way to accomplish this is to do a query for all
    the TTiporisorsas that will be loaded before you do your query for the
    related TCatalogorisorses. When you traverse the collection of
    TTiporisorsas, they will become cached. Then when each TCatalogorisorse
    loads its related TTiporisorsa, it will find it in the cache, and won't
    have to make a data store trip. So you end up with 2 queries instaed of
    (1 + #TCatalogorisorses).

  • Help in MSEG select performance.

    Hi all, please, help me with this performance.
    The coment lines was the original code.
    The previous code got time out and the new code is taking long long time. The range r_mblnr has about 1500 records.
    MSEG table has more than 1.500.000 records.
    Thanks in advance, regards
    RP
    **      SELECT  mblnr mjahr zeile bwart matnr werks lgort charg
    **              insmk lifnr shkzg waers dmbtr bnbtr bualt menge
    **              meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
    **              bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
    **              smblp
    **              FROM mseg
    **              INTO TABLE t_mseg_cancel
    **            FOR ALL ENTRIES IN t_mseg
    **            WHERE ( smbln EQ t_mseg-mblnr
    **              AND   sjahr EQ t_mseg-mjahr
    **              AND   smblp EQ t_mseg-zeile )
    **               OR ( lfbnr = t_mseg-mblnr
    **              AND   lfbja = t_mseg-mjahr
    **              AND   lfpos = t_mseg-zeile ).
    **      SELECT  mblnr mjahr zeile bwart matnr werks lgort charg
    **              insmk lifnr shkzg waers dmbtr bnbtr bualt menge
    **              meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
    **              bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
    **              smblp
    **              FROM mseg APPENDING TABLE t_mseg_cancel
    **              FOR ALL ENTRIES IN t_mseg
    **              WHERE   mblnr EQ t_mseg-mblnr
    **                AND ( lfbnr NE space
    **                 OR   smbln NE space ).
        LOOP AT t_mseg.
          add_range r_mblnr t_mseg-mblnr.
          add_range h_mjahr t_mseg-mjahr.
          add_range r_zeile t_mseg-zeile.
        ENDLOOP.
        SORT: r_mblnr BY low,
              h_mjahr BY low,
              r_zeile BY low.
        DELETE ADJACENT DUPLICATES FROM r_mblnr COMPARING low.
        DELETE ADJACENT DUPLICATES FROM h_mjahr COMPARING low.
        DELETE ADJACENT DUPLICATES FROM r_zeile COMPARING low.
        SELECT  mblnr mjahr zeile bwart matnr werks lgort charg
                insmk lifnr shkzg waers dmbtr bnbtr bualt menge
                meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
                bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
                smblp
                FROM mseg
                INTO TABLE t_mseg_cancel
                FOR ALL ENTRIES IN r_mblnr
              WHERE ( smbln = r_mblnr-low
                AND   sjahr IN r_mjahr
                AND   smblp IN r_zeile ).
        SELECT  mblnr mjahr zeile bwart matnr werks lgort charg
                insmk lifnr shkzg waers dmbtr bnbtr bualt menge
                meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
                bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
                smblp
                FROM mseg
                APPENDING TABLE t_mseg_cancel
                FOR ALL ENTRIES IN r_mblnr
              WHERE ( lfbnr = r_mblnr-low
                AND   lfbja IN r_mjahr
                AND   lfpos IN r_zeile ).
        SELECT  mblnr mjahr zeile bwart matnr werks lgort charg
                insmk lifnr shkzg waers dmbtr bnbtr bualt menge
                meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
                bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
                smblp
                FROM mseg APPENDING TABLE t_mseg_cancel
                FOR ALL ENTRIES IN r_mblnr
                WHERE   mblnr = r_mblnr-low
                  AND ( lfbnr NE space
                   OR   smbln NE space ).

    Hi Rodrigo,
    if this statement is really important, I would go back to a single Statement, I would create an additional index and I would change the last statement (may be):
    SELECT mblnr mjahr zeile bwart matnr werks lgort charg
           insmk lifnr shkzg waers dmbtr bnbtr bualt menge
           meins erfmg erfme bpmng bprme ebeln ebelp lfbnr
           bukrs lsmng lsmeh lfbja lfpos xwsbr sjahr smbln
           smblp
      FROM mseg
      INTO TABLE t_mseg_cancel
       FOR ALL ENTRIES IN t_mseg
    WHERE ( smbln EQ t_mseg-mblnr
         AND sjahr EQ t_mseg-mjahr
         AND smblp EQ t_mseg-zeile )
        OR ( lfbnr = t_mseg-mblnr
         AND lfbja = t_mseg-mjahr
         AND lfpos = t_mseg-zeile )
        OR ( mblnr EQ t_mseg-mblnr
         AND mjahr EQ t_mseg-mjahr          " if correct
         AND zeile EQ t_mseg-zeile          " if correct
         AND ( lfbnr NE space OR smbln NE space ) ).
    The new secondary Index should contain the fields: LFBNR, LFBJA and LFPOS.
    Don't forget to create new statistics after creating the index.
    Many people probably disagree with a new secondary index, but to improve your report, it is probably the only solution.
    You should not add a new index without good reasons, but a single index does not cost you too much (insert and update performance). You should not tend to create additional indexes for any statement, but on big tables it is sometimes unavoidable.
    Best regards
    Ralph Ganszky

  • Help with Scrolling Text Item.

    Hi , need help with making a text item scrollable.
    i.e. A field is 30 characters and i can only display 10
    characters, now what I would like is a scroll bar under the text
    item.
    Is this possible. I am using Forms 5.
    Thanx for any help.
    Pankaj Patel.
    null

    Petr Valouch (guest) wrote:
    : Pankaj Patel (guest) wrote:
    : : Hi , need help with making a text item scrollable.
    : : i.e. A field is 30 characters and i can only display 10
    : : characters, now what I would like is a scroll bar under the
    : text
    : : item.
    : : Is this possible. I am using Forms 5.
    : : Thanx for any help.
    : : Pankaj Patel.
    : Hi
    : You need that scrollbar under the item? You can set length
    of
    : text item and its size independently, so you can have text
    item
    : char(30) with size of 10 characters.
    An alternative is to declare the item as a multi-line text item
    with wrap set on. This would give you a vertical scroll bar on
    the item.
    Another option is to programmaticaly pop up an Editor, each time
    focus is moved to the item, or to actually change the width of
    the item when focus moves to it (and shrink it back when focus
    moves away.
    Simon Hedges
    Gloucester
    UK
    null

Maybe you are looking for