Display only in Items assignement block

Hi experts.
I have a requirement where one of the columns of the "items" assignment block should be made display only.
I used the transaction bsp_wd_cmpwb to configure - but as this is a table view I don't have the option for display only (generally available for over view page. I am specifically looking for Product description in the items assignment block.
Can this be done by configuring. Do I need to code any thing. if yes please suggest how.
Thank you
Ram

Hello Ram,
Did you try to redefine method GET_I_xxx of your DESCRIPTION field already?
Check out if adding this line of code can do the trick:
    rv_disabled = 'TRUE'.
Regards,
Nicolas Busson.

Similar Messages

  • ML81N Make FM fields display only in account assignment

    Requirement is to make FM fields already derived from PO (derivation working correctly) display only or add an error message. Easy I thought just go to config for SES and click on Additional Fields display only (Cost Center?, WBS element? there was no funds management fields available)...then after some time investigating
    Have debugged the transaction and found some possibilities.
    (1) BADI TR_GET_ACCNT_ASSIGN called in function FM_ACCOUNT_GET_COBL from MS_ACCOUNT_ASSIGNMENT.
    (2) User Exit EXIT_SAPLFMCH_001 called in function FM_CHANGE_AA_SUBST
    (3) Use FMDERIVE to somehow check the PO derivation
    Just wondered if anyone had taken this further before I spend a lot more time understanding the whole process in order to achieve a small bit. Please I am a technical resource not FM specialist.
    If I could understand the process flow, at least it might help me make quickest simplest solution.
    thanks,

    Hi,
    You can customize the field status in tx OME9 for the relevant account assignment category.
    But be aware that this customizing will be valid for all purchasing documents and transactions - not only for ML81N and the services area.         
    During SES postings, inheriting the FM account assignment from the reference PO is the standard and expected behaviour, so you may see that FMDERIVE is not called when the PO reduction is to be posted during ML81N. Instead, the FMAA is read from table FMIOI and fmderive is skipped in those lines (fi transaction keys KBS/WRX, for instance).
    I hope this will help you
    Kind regards
    Mar

  • Wip Query have to display only rejection items

    Hi,
         This is my customization form wip query
    select m1.docnum 'WIP NO', d.U_RejQty 'WIPRej',d.U_RewQty 'WIP re-work' ,d2.U_RejQty 'QCRej',d2.u_rewqty'QC Re-Work',d2.U_Opename 'Operation',
    m1.u_qchname as PreparedBy,m1.u_shift,m1.u_remarks,m1.u_remrej,m1.u_Remscrp,m.docnum 'FO NO',m.plannedqty,m.rlsdate,m.itemcode,m.u_tdrawno,m.CardCode,n.cardname,
    (select itemname from oitm where itemcode=m.itemcode) 'Description'
    from OWOR m
    left outer join [@SHJ_WIP_UPD1] d on  m.DocNum =d.U_OrderNo
    left outer join [@SHJ_WIP_OUPD] m1 on m1.DocEntry =d.DocEntry
    left outer join [@SHJ_QC_INS5] d2 on m.DocNum =d2.U_OrderNo and m1.DocNum =d2.U_WIP
    left outer join OCRD n on
    m.CardCode=n.CardCode
    where m.rlsdate between {?FromDate} and {?ToDate}
    and (d.U_RejQty>0 or d.U_RewQty>0) and ( d2.U_RejQty>0 or d2.U_RewQty>0)
    In ths query am displaying the rejection items and rework items alone but for me its showing all the items rejection and rework items zeros also showing.
    am getting output like this
              I need output only highlighted item because there only rejection items
    Regards
    Vinoth

    Try This
    select m1.docnum 'WIP NO', d.U_RejQty 'WIPRej',d.U_RewQty 'WIP re-work' ,d2.U_RejQty 'QCRej',d2.u_rewqty'QC Re-Work',d2.U_Opename 'Operation',
    m1.u_qchname as PreparedBy,m1.u_shift,m1.u_remarks,m1.u_remrej,m1.u_Remscrp,m.docnum 'FO NO',m.plannedqty,m.rlsdate,m.itemcode,m.u_tdrawno,m.CardCode,n.cardname,
    (select itemname from oitm where itemcode=m.itemcode) 'Description'
    from OWOR m
    left outer join [@SHJ_WIP_UPD1] d on  m.DocNum =d.U_OrderNo
    left outer join [@SHJ_WIP_OUPD] m1 on m1.DocEntry =d.DocEntry
    left outer join [@SHJ_QC_INS5] d2 on m.DocNum =d2.U_OrderNo and m1.DocNum =d2.U_WIP
    left outer join OCRD n on
    m.CardCode=n.CardCode
    where m.rlsdate between {?FromDate} and {?ToDate}
    and (isnull(d.U_RejQty,0)>0 or isnull( d.U_RewQty,0)>0) or ( isnull(d2.U_RejQty,0)>0 or isnull(d2.U_RewQty,0)>0)
    Regards
    Kennedy

  • How to delete multiple empty lines in item assignment block in WebUI

    Hi Experts,
       When i am reading 'BTAdminI' context node data, I am getting empty lines along with data. I can able to delete only one empty lines when its executing second empty line its failing in loop. Can you suggest me how can i delete multiple empty lines. I am using below code.
    DATA: lr_entity1           TYPE REF TO cl_crm_bol_entity,
            lr_current          TYPE REF TO if_bol_bo_property_access,
            lr_iterator         TYPE REF TO if_bol_bo_col_iterator,
            lv_strukname        TYPE strukname,
            dref                TYPE REF TO data,
            lv_thtmlb_tableview TYPE REF TO cl_thtmlb_table_view,
            lr_cn               TYPE REF TO cl_bsp_wd_context_node_tv,
            cr_mixed_node_tv    TYPE REF TO cl_bsp_wd_mixed_node.
        FIELD-SYMBOLS: <fs_line_structure> TYPE data.
        lr_iterator = me->typed_context->btadmini->collection_wrapper->get_iterator( ).
        TRY.
            lr_current = lr_iterator->get_first( ).
          CATCH cx_root.
        ENDTRY.
        WHILE lr_current IS BOUND.
          lr_entity1 ?= lr_current.
          CHECK lr_entity1 IS BOUND.
          lr_entity1->get_attr_struct_name( RECEIVING rv_result = lv_strukname ).
          IF lv_strukname IS NOT INITIAL.
            CREATE DATA dref TYPE (lv_strukname).
            ASSIGN dref->* TO <fs_line_structure>.
            IF <fs_line_structure> IS ASSIGNED.
              lr_current->get_properties( IMPORTING es_attributes = <fs_line_structure> ).
              IF <fs_line_structure> IS INITIAL.
                me->typed_context->btadmini->collection_wrapper->remove( lr_current ).
                EXIT.
              ENDIF.
            ENDIF.
          ENDIF.
          TRY.
              lr_current = lr_iterator->get_next( ).
            CATCH cx_root.
          ENDTRY.
        ENDWHILE.

    Hi Nitish,
    Try below code instead of your code,
    Data:
    lt_empty_lines  TYPE TABLE OF REF TO cl_crm_bol_entity,
    lr_entity TYPE REF TO cl_crm_bol_entity.
    After getting collection from BTadmini use the below code.
    lr_iterator ?= lr_coll->get_iterator( ).
        lr_entity ?= lr_iterator->get_first( ).
        WHILE lr_entity IS BOUND.
          IF lr_entity->is_send_active( ) EQ abap_false.
            APPEND lr_entity TO lt_empty_lines.
          ENDIF.
          lr_entity ?= lr_iterator->get_next( ).
        ENDWHILE.
        LOOP AT lt_empty_lines INTO lr_entity.
          typed_context->btadmini->collection_wrapper->remove( lr_entity ).
          lr_entity->delete( ).
        ENDLOOP.
    Best Regards,
    Dharmakasi.

  • How to get and display only some items out of an xml source

    hi everybody,<br /><br />i have a designer-pdf based on a xsd. from within this pdf i call a second one and pass global variables to it. i want to use these vars to get specifics items out of an xml source. example:<br /><br />say that my xml is build like this:<br /><br /><form(min1-max1)><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /> <subform(min1-max unbounded)/><br /></form><br /><br />and i want just to pic up the subform element with index '2'. is there a way to do that?<br /><br />thanks,<br /><br />valerio

    If you've got a chunk of XML in a string, you can read from it using XPath notation.  Here's an example.  Hope it helps:
    var strXML = "JaredLangdonFredFlintstone";
    var oXML = XMLData.parse(strXML, false);
    var oFirstLName = XMLData.applyXPath(oXML,"//MyRoot/Person[1]/LName");
    var oSecondLName = XMLData.applyXPath(oXML,"//MyRoot/Person[2]/LName");
    xfa.host.messageBox("First LName is: " + oFirstLName.value + "\nSecond LName is: " + oSecondLName.value);
    Jared Langdon
    http://www.jlangdon.ca

  • Control display/edit mode of an Assignment Block through code

    Hi all,
    Requirement : If status in Opportunity is XYZ (BT111H_OPPT/Details - BTStatus/Struct.Act_Status), I need to show items Assignment block((BT111H_OPPT/ItemsList) in display mode. When user tries to go into edit mode, display error saying - "With XYZ status, items are not editable."
    Observations so far :  In "BT111H_OPPT/OpportunityOVViewSet", method set_view_group_context involves interface "IF_BSP_WD_VIEW_GROUP_CONTEXT" that has methods SET_VIEW_EDITABLE etc., But there is no method to change to display mode. CL_BSP_WD_VIEW_GROUP_CONTEXT uses this interface and has a subclass CL_CRM_WFD_VIEWGRP_CTXT. This subclass has the method SET_VIEW_DISPLAY_MODE.
    Question : How to access this method SET_VIEW_DISPLAY_MODE in my requirement? I tried to use the code from this method in my logic, but since attribute 'EDITABLE_VIEWS_TAB' is protected, I'm not able to do anything. Also is there any other way to get solution for my requirement.
    Thanks in advance,
    Vinoth

    HI Vinoth,
    if that method is not accessible then try with the below logic.
    In the item , fetch the required status(gv_status) which you required .
    THen in the item assignment block view, HTM..
    check for the diaplpy mode. and store the value in a llocal variable.
    lv_disaply_mode = controller->view_group_context->is_view_in_display_mode( controller ) .
    if controller->gv_status = 'XYZ'.
    lv_display_mode = abap_true.
    endif
    then pass this lv_display_mode varaible to the configtable display mode Attribute.
    <chtmlb:configTable id                    = "Table"
                          displayMode           = "<%= lv_displaymode %>"
    Hope this will help..
    Thanks
    Sudhansu

  • Copied layout is not working for Sales order item assinment block

    Hi Experts,
    I copied the standard componet BT115IT_SLS/items view layout  with custom role configuration key and worked fine.
    I have added one more field to the item view  with the same configuration and saved .When I opended the sales order in the WEB UI , The item assigment block is displaying with complete  BTADMINI context fileds and This is the issue.
    I have seen configured fields only in  the personalization and I have downloaded the items assigment block data to Execl.In the Execl sheet I can able to see the configured fields (availble fileds in the configuration tab in component workbemch) data only.
    But Items assignment block is displaying all the fileds (taking  from the context node BTADMINI).
    I have deleted existing customer configuration and again copied  from the standard layout.But I got the same issue.
    I have wriiten some code in the ON_NEW_FOCUS and commented the code.Still it not working.
    Please help me , where I have done the mistake and provide me some inputs.
    Thanks,
    Venkky

    Hi Experts,
    Solved isuues myself.
    The problem is inconsistency of BTAdminI context node . I have deleted the view enhancement and again enhanced the view .I copied the layout with customer role key and dispalyed expected layout.
    Thanks,
    Venkky

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Display Only Screen design

    Hi,
    I have created a screen layout wherein all fields are marked for display only. I assigned this screen layout in a functional authorization for buyers. When I checked, there are still fields left editable such as:
    1. Purch Org
    2. Company Code
    3. Conditions
    4. Line Item number
    5. All fields in account assignment tab of line item
    I want all fields to be display only. How will I do it?

    Hi Jackie,
    If you need all the fields to be in display mode assigned to the buyer. Remove the Authorization of ME21N from the user using the T Code SU01.
    Regards,
    Bijoy Kumar

  • How can i get the order form to display only those fields selected by user?

    Hi everyone,
    I'm a newbee so please bear with me.
    I would like to create an interactive form in a multi-page format. I would like to display our fifty odd products, divided into 5 different categories. The client browses through these pages then selects those that he wants to buy.
    The interactive order form at the end should display only the client’s choices along with the Total purchase order.
    In short, a little like a on-line catalogue and cart/basket that we see while buying online.
    Now, I've created my pdf brochure, and I have the order form on page 12-13 at the end with the subtotal, Vat and Total ...all that's fine. My only problem is I want the order form to display only those items selected by the user and not the entire list of items as shown in my current order form.
    Have a look at my pdf here http://www.upperside.fr/vijee/mpls09ex/EXHIBITOR%20SPECIAL%20ORDERS2010.pdf
    Can someone please help me/guide me to the right resources that I need to look up to achieve my end result.
    Thanks a lot in advance.
    Vijee

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

  • Display only "Active" Contacts and "Active" Account in LookUp

    Hello,
    I have a flag "Active/Inactive" on Account and Contacts.
    I would like to display only "Active" items in my LookUps.
    Has anyone a solution ?
    Thanks for your help.

    you would remove access to VD03 and give access to the new sap query (create a z-transaction)
    which you can easily build based on table KNA1.  The fields are AUFSD and LIFSD

  • Displaying non contract items also in the contract catalogue

    Hi SRM guru's
    While i am doing a shop using the contract catalogue in SRM 5.0.The non contract items are also displaying in the contract catalogue.
    Please let me know what i have to do for displaying only contract items in the contract catalogue.
    Thanks in advance.

    Hi,
    Please check help.sap.com.
    http://help.sap.com/saphelp_ccm20/helpdata/en/6e/89c4e2038c49969ab5ede5f6e24bd5/frameset.htm
    Regards,
    Masa

  • How to Set Assignment block in Display mode

    Hi All,
    I have a Z assignment block in Account (BP_Head), requirement to set this assignment block in display mode only.
    No user allowed to  edit its edit list.
    Could you help me how to do that with sample code and event.

    HI,
    In configTable set attribute displayMode = "TRUE". Then this AB will be always in display mode
    displayMode            = "TRUE" or
    if you ar using configCelleator uyou need to give iv_all_rows_editable = space
    cl_thtmlb_util=>translate_selection_mode(
      exporting
      iv_selection_mode    = ITEMS->SELECTION_MODE
    iv_all_rows_editable = space
      importing
      ev_selection_mode   = lv_cellerator_selectionmode
    ev_edit_mode        = lv_cellerator_editmode
      ev_selection_column = lv_cellerator_selectioncolumn ).
    Regards,
    Deepika.

  • How to force carraige return in display-only item

    Can I somehow force a carraige return in the text for a display only item? Aesthetically, I'd would like to have strategically-placed line breaks.
    Thanks,
    C

    Scott -- Sorry, I posted the wrong example entirely. Here's the assignment statement. If it isn't clear I'll try to put an example on apex.oracle.com... which I've not done before, so would be another learning experience :)
    :P1_MESSAGE_1 := 'my display text line1< br>my display text line2';
    My assignment statement is exactly the same format as what you posted on
    Jul 29, 2008 2:51 PM, with the space after the opening bracket removed, as you
    indicated it should be.
    :P1_MESSAGE_1 is a display only, saves state item. After the assignment
    statement (and submit), what is displayed is exactly what's in the single quotes, including the brackets and the "br" -- the html doesn't appear to be recognized as such:
    Item display is: my display text line1< br>my display text line2
    Does this clarify what I'm doing?
    Thanks,
    C

  • Dynamic hyperlinks as Display Only item?

    Hi, I need to add a hyperlink on a page, and the hyperlink will partially be derived from a page item on that page.
    When I put a Display Only item on that page, with the source type as Static Assignment and set to something like:
    <a href="http://webserver/page.html?number=:P2_NUMBER">blah</a>It displays exactly that, ignoring the HTML, and doesn't display it as a link.
    Simple I'm sure, but what am I doing wrong?

    What you set for the item would be its value (of an input HTML item)
    Try adding it to post or pre-element text of the item as
    &lt;a href=&quot;http://webserver/page.html?number=&P2_NUMBER.&quot;&gt;blah&lt;/a&gt;

Maybe you are looking for