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

Similar Messages

  • Transport controls on edit mode audition 2

    I seem to have lost my transport controls on edit mode for adobe audition 2.  How do I get
    it back to the way it should be?  Also, where can I buy updated versions of adobe audition?

    You've probably just covered up the transport controls - it's not that difficult to do. Just shift a few panes around along the bottom, and they'll probably reappear.
    You can't purchase a perpetual Audition licence any more - you have to rent the software through the Creative Cloud. If you look around this forum, you will find plenty of comments about that...

  • Displaying TPM header fields on assignment block - CGPL/IBOM Framework

    Hello Folks,
    Our system is on CRM 7.0. The requirement I have at hand is to display 2 addtional fields 'Status' and 'Tactic' from the Trade Promotions Header on the 'Trade Promotions' assignment block on the Agreements Overview page.
    UI Component - agroe
    View - AGROE/TradePromotion
    These fields are already existing on the Trade Promotion Overiew page and are part of the TPM header.
    What I did till now is,
    1. Used trasnaction CRMC_MKTIB_IL_CUSTOM and under application CRMD_MKTPL changed the attribute structure of the Node MKT_AGR_TPM from CRMS_MKTPL_IB_AGR_TRADE to ZCRMS_MKTPL_IB_AGR_TRADE. I have copied ZCRMS_MKTPL_IB_AGR_TRADE from the original structure and added two new fields for STATUS and TACTIC.
    2. On the View configued the two new fields.
    But the values are not showing up on the assignment blocks.
    This query I guess boils down to the CGPL/IBOM Framework. Could someone please suggest the steps I need to enable the two fields on the assignment block? If anyone has pointers to information on CGPL/IBOM Frameworks please also share the same.
    Thanks & Regards,
    Gaurav
    Edited by: Gaurav Walia on Oct 18, 2009 12:24 PM

    Hi Gaurav,
    Initially I thought that the issue can be that you just replaced the Assigment structure, but the Model Collection, Item and Persistency Class methods may still be using the same structure CRMS_MKTPL_AGR_TRADE in the methods. But that is not the case as they are mostly not redefined.
    (Anyhow, you have to debug methods FETCH_DB,MOVE_DB_STRUCT_2_ATTR, MOVE_ATTR_2_DB_STRUCT of class
    CL_CRM_MKTPL_ASSIGN_TPM_PERS to validate the dataflow.)
    Did you maintain the same in IBOM customizing?Check TCODE;CRMC_MKTIB_IL_CUSTOM.
    The IBOM Collection Class CL_CRM_MKTPL_IB_AGR_TPM_COLL is using structure CRMS_MKTPL_IB_AGR_TRADE in some of the methods.All these things need to be taken care of.
    Personally, I would have tried to create a new relation with same cardinality and key fields and tried to map the same onto UI,as substituting standard IBOM structures and classes may create issues for me in future.
    Regards,
    Masood Imrani S.

  • Table Control in Editable mode

    Hello All,
    I have created an infotype which has a table control. But all the table control lines are in non-editable mode. I would like to have all the lines in editable mode.
    Kindly help out.
    Regards,
    shails

    If your internal table contains no record and when you are refering to the table control then all the lines will get disabled.
    Now you will be knowing the number of lines your table control displays in singe page...say 10 lines.
    So initially in the PBO append 10 initial lines to your itab. then set the property lines of the table control to the total lines of internal table.
    Now in pbo capture the user command page down and append 10 initial lines to your itab.
    Hope you got the idea.
    Now if your itab already has some records , then just set the lines as total record count of your internal table.
    Also change the property in the screen attributes for each field of the control

  • Creating a new field in assignment block  through EEWB

    Hi,
    I need to create a new field in an Master data --> Listings --> Listing items/Products assignment block. I do not have option to use AET (using CRM 7.0) for this assignment block. I think I should use EEWB only.
    Now, how can I find the right EEW Bus. object and the extension type to create new fields.
    Please suggest.
    Thanks,
    Praveen

    CRMCMP_LST/CondRecDispView.
    Here I would like to create new field in the header area. I found that the structure used by the BOL entity, in this view, cannot be enhanced. This new field will be defaulted according to the user information everytime the user creates a new Listing.
    Also, this field should be available in display view.
    Please suggest.
    Thanks,
    Praveen

  • How to edit a newly created assignment block?

    I created a new AB and it shows up and saves values input too. However, when I open it up for editing, unlike other ABs, it does not show any buttons for editing. So I can not edit already input values. Any ideas what I am missing here? I created the view as a form type with std buttons. It is in configurable mode too.
    Regards,
    Amar.

    Hi Amar,
    yes, you need to code for the edit button. Have a look at the last lines of methode DO_PREPARE_OUTPUT() of class CL_BP_DATA_MARKETINGATTR4_IMPL.
    Also check the usage of the VIEW_GROUP_CONTEXT in method EH_ONTOEDIT().
    cheers Carsten

  • Display/Edit mode in IR - SCV

    Hi all GURUS,
    I'm new to PI.
    I cannot edit any vlues in a particular Software Component Version & its name spaces & values (DT , MT, MM, SI,OM). This was previousely working fine & I wanted to change the DT of particlar name space & it doesnt allow me to do. Only I can do is viewing ."Software Component Version Cannot be changes" appears only on that SCV. Other SCV's are working fine. How do I enable this option ?
    Thank you all in advance

    Hi,
    Just to be sure check whether you are logged in dev enviornment or any other test or production enviornment.
    Other than dev enviornment, you would not able to edit any objects.
    If it has been working for you all these days, I strongly suspect that you might have logged in some other environment rather than dev.
    Regards
    Anandh.B

  • Change from edit mode to display mode

    Hi ppl
    In transaction CO11N , I want to change the quantity (COWB-ERFME) column of a table control
    from edit mode to display mode. I created a badi implementation for WORKORDER_GOODSMVT.
    This gets triggered before the screen with quantity (COWB-ERFME) is displayed. How to code, to change the column from edit mode to display mode.
    I tried using transaction variant and it is working , but I want it to be plant specific. So I m trying badi.
    Need ur help to go abt the coding

    Hi
    U make sure a method of the BADI WORKORDER_GOODSMV is called in PBO while looping table control, if it's so u can use the statament LOOP AT SCREEN.ENDLOOP:
    LOOP AT SCREEN.
      IF SCREEN-NAME = ....
         SCREEN-INPUT = 0.
         MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Max

  • Capture opportunity linkages in Change history assignment block

    Hi,
    I have a requirement in CRM , where I have to capture the opportunity linkages in change history assignment block of the UI.
    For example , if a opportunity is created as a follow-up from another opportunity , this linkage details must be displayed in the
    change history assignment block of both the opportunities . The details that should be available is that linkage is created with time stamp.
    If anyone has any inputs, please let me know.
    Thanks in advance,
    Best Regards,
    Brinda

    Hi,
    please check if this customizing path helps you:
    CRM->Transactions->Settings for Service Requests->Settings for Processing Log
    Here you should be able to define what changes are logged in the change history.
    Kind regards
    Manfred

  • Open file in edit mode

    I need to open a file in edit mode. In my web part on item click I need to do some action before hand (like create a folder and copy file, then open it in edit mode).
    I came across the code segment below to set to a hyperlink's onClick() event
    <a onfocus="OnLink(this)"    href="/Shared Documents/myDoc.docx"    onmousedown="return VerifyHref(this,event,'1','SharePoint.OpenDocuments','')"        onclick="return DispEx(this,event,'TRUE','FALSE','FALSE',            'SharePoint.OpenDocuments.3','1', 'SharePoint.OpenDocuments',            '','','','1','0','0','0x7fffffffffffffff')">Click</a>
    But in my case, it would be nice if I can open in C# code behind, after the folder operations in my Visual web part.
    SPfile's file.OpenBinary() give a byte[], but was unable to open file.
    I am using a LinkButton for the user to click on. Any advise ?

    Hi Ahamed,
    I guess you need to undertake some action server side before you redirect the user. There are a number of different ways to do it ... maybe using a long running process with redirect at the end ... or some jQuery that calls a "handler" waits for a response
    and then redirects the user.
    For the code to duplicate or copy the file see here:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.aspx
    if the existing code you have to open the document in edit mode works you should be able to reuse it.
    Thanks Chris

  • I would like to freely add clip art in Full Edit Mode in PSE 5.0

    Hello,
    I am new to Photoshop Elements. I have PSE 5.0 on a windows XP platform with service pack 3 installed. I want to be able to create flyers with PSE and would like to freely be able to add various types of clip art into my canvas. I know you can do this when you're creating slides, but I want to be able to do this in PSE full edit mode, not by creating a slide show via the organizer.
    There are tons of clip art online and they have various file types too. I am also wondering if I can use any of the file types as well. The ones that PSE has for the slide shows are .png. But online I have seen .wmf, .mpf, .jpg as well. How can I incorporate all this clip art for use in creating flyers and/or logos by just starting with a blank 8.5 x 11 canvas in full edit mode?
    Any expert help here would be greatly appreciated. I was able to do this using Word, but Word of course lacks the graphic quality and optionality of PSE greatly.
    Sincerely,
    Lee

    Thanks for your reply here Bob. I have read what you mentioned above and am not quite sure how to do it that way. What I have been doing so far is to find a clip art item somewhere, copy it to the clipboard, then bring it into PSE with the File-New-from clipboard command.
    This will bring it into it's own space and Layer as a separate file on it's own. Then I select it, copy the selection to the clipboard once again, move over to my blank canvas which only has one background layer now, and paste it onto this canvas.
    This seems to be working, but I loose the Vector graphic aspect of the clip art image because it converts it to a raster type of image now. So I have to be very careful in resizing it to not loose resolution and such.
    I noticed when I go to create a slide show in PSE, I have access to the graphics palette where you can double click a piece of clip art and it goes right onto your slide and stays as a vector image. I can get to these images while in full-edit mode, but I have to use the file-open command and navigate to the right folder and then open one up into full-edit mode as it's own layer. But then once again, I loose the vector aspect and I have to go through the process of selecting it, copying it to the clipboard and then pasting onto my blank canvas.
    I know that MS Word is no match for this product, but at least there I could easily add clip art to any flyer I am making without loosing the vector aspect. But I know that the quality is so much better here in PSE and that I just need to learn how to utilize more of its functionality and power. Hence why I am writing this post I suppose.
    Isn't there an easier way to get clip art into your blank canvas in full edit mode without having to go through all this and/or without having to create a slide show to get access to this clip art pallete? And having to loose the vector aspect of the clip art is not so wonderful either. Did I buy the wrong Adobe application - Ha!
    Should I be using Illustrator since I want to create flyers using clip art, type and effects?
    My apologies for this long post, but I would really like to be able to utilize, if at all possible, PSE 5.0's full power to create great quality flyers using all these things.
    Thanks again,
    Lee

  • Assign role request through code not going to Operational level

    Hi All
    We are trying to assign roles through code using the OIM API's as suggested in the documentation
    "http://docs.oracle.com/cd/E27559_01/doc.1112/e28183/oim_up.htm#autoId40".
    We have 2 Approval policies one is at Request Level (i.e. Auto Approval) and the other is Operational level(Scope=ALL Scope) with workflow, So once the request is getting raised with the code successfully it is getting completed. The expected behavior is that it should go to the approval workflow attached at operational level.
    When we tried to attach a workflow at the request level, the request is going through Approval workflow attached at request level and once we approve at request level it is getting completed and not going to operational level.
    But we will have Request level as auto approved and Operational level with two level of Workflow.
    Thanks in Advance

    Check whether you have configured Request Type in your approval policy properly for operational level approval. In the Rule Components section check whether you have configured everything correctly. Also dont raise the request from system admin login as it will be treated as a direct provisioning request and your approval policies will not be invoked. Login through an end-user and test it

  • 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 disable the assignment block's Edit button

    Hi guys,
    I need to disable the edit button in assignment block Parties Involved on an opportunity. Only authorised people would be able to see Edit button as enabled.
    I'm not able to do this in the BTPARTNER/Partner as I don't get process id and order id in Partner view.
    Kindly suggest a way to disable the EDIT button of assignment block (in display mode).
    Regards,
    Shaili

    Make use of Parameter ID to set the values at Document Header page and on individual assignment block get this value to enable or disable the button.
    Regards,
    Harshit

  • How to make an assignment block with valuenode editable?

    Hello All,
    I have read the blog [How to display a z-table in an assignment block|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock]. This all went fine. Now I have a question if it is possible to make this table editable and if so, how?
    The problem is, it is valuenode for a custom z-table, without a GUID as key. (just partner number) So making a Simple Object of my z-table doesn't work, because the default class works with GUID as key. But I also can't seem to find if it is possible to make a valuenode editable.
    I also read these blogs, but they didn't do the trick for me either:
    [CRM Web UI Technical - Creating Table View In Web UI|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
    [Create a Z BOL Object Part 1|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
    I am silently hoping that there is an easy way of making my current assignment block editable by implementing a simple Save method or something similar. I do not prefer to have to recreate my view and stuff.
    Anyone an idea?
    Regards,
    Martijn.

    Hi Martijn,
    Try this code..
    If the main entity(assuming one order entity) is editable, set the view to editable.
    DATA:      lr_entity       TYPE REF TO cl_crm_bol_entity.
      lr_entity ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
      if lr_entity->lock( ) = abap_true.
        *me->view_group_context->set_view_editable( me ).*
      endif.
    Check this therad for setting the view context.
    Edit the order
    Hope this helps..
    Cheers,
    Sumit Mittal

Maybe you are looking for

  • Message-Split in a Sync Scenario

    Hello Experts. As i am quite new to Pi, i have some problems with an integration scenario we are about to implement. As i am not really into the topic, i do'nt even know, if the prefered solution can be implemented in PI or if our current approach is

  • Report without HEADER LINE

    how to create a report with out the HEADER LINE concept....because I want the output as only some of the fields from the table..... And this type of programming consumes much processing than the normal one..... NOTE: In normal process I am facing mem

  • Why does my layer freeze after putting it in a clipping mask?

    I have a new retina-display iMac, and my version of Photoshop (Creative Cloud) is up-to-date. Whenever I drag an image from my browser over to my open Photoshop file and place it, it's fine. But when I then try to move that layer into an existing cli

  • Pro Application Support 3.1 and 1.0 update

    The is New Pro Application Support for 10.4 users http://www.apple.com/support/downloads/proapplicationsupport31macosx104.html for 10.3.9 users http://www.apple.com/support/downloads/proapplicationsupport31macosx1039.html the Pro Applications Update

  • ITunes 11.0.4 not recognizing iPhone 4S

    Hello, I have currently wasted most of the friday trying to fix this without any luck. Previous version of iTunes didn´t recognize iPhone at first as well, but after reinstalling everything (everything from Apple) I have managed to fix it. But 11.0.4