Multiple Assignment Blocks

Hi Gurus,
I have a requirement:
in the Quotation Screen of Web UI, Component - BT115H_SLSO
I have to give multiple assignment blocks for the Items based on the item category.
where user will be able to maintain different items for different item category.
Here for maintaining the items the Component is BT115QIT_SLSQ.
I have created a new component Z* copying this standard component and also the corresponding views, view set & windows.
I am able to get the view into a new assignment b lock for the items. But in the New Assignment blocks the Editable Row for entering the item is not coming and also the insert Button is disabled.
Can any one please help me how to activate the insert button and also how to add rows to the table/structure?
Also I need to control the display & edit of the items based on the Item category in these assignment blocks - how to do this?
Please help me out!
Thanks a lot!
Regards,
Tarak

The Hierarchy is this way.
BTOrder ->BTOrderHeader (BTAdminH ) ->BTHeaderItemsExt ( BTItems  ) -> BTAdminI.
BTItems is a parent of BTAdminI.
( You can look in GENIL_MODEL_BROWSER for ONEORDER).
Here is the code snippet to insert an item at BTAdminI.
lr_btitems = lr_btadminh->get_related_entity( 'BTHeaderItemsExt' ).
  IF lr_btitems IS NOT BOUND.
    lr_btitems = lr_btadminh->create_related_entity( 'BTHeaderItemsExt' ).
  ENDIF.
  CHECK lr_btitems IS BOUND.
  lr_btadmini = lr_btitems->create_related_entity( 'BTOrderItemAll' ).
  lr_btadmini->set_property_as_string( iv_attr_name = 'DESCRIPTION'
                                       iv_value = '' ).
Regards,
Masood Imrani S.

Similar Messages

  • How to view specific assignment block information for opportunity

    Hi everyone,
    We have the following requirement from our users:
    1) Users will specify a selection criteria to view only specific opportunities on the opportunity search screen
    2) Users will then select multiple opportunities from the result list
    3) Users want the ability to choose the specific assignment block information they want to view(opportunity header, sales team, partners etc)
    4) We should then display this in some form so that only specific AB information is available to the users
    As I am compartively new to the SAP world, I would really appreciate if some one could guide me here. Currently a solution is in place where users can launch a report which opens a new excel sheet which has information for about 7 assignment blocks(this is static and users cannot choose which ones they want). We essentially need a solution which can interact with our CRM system and give the users the ability to choose which AB information they want to view and then output this information in a printable format.
    I have been told that we can use Crystal reports to accomplish this but I am not very sure as these are primarily analytics tools? It would be great if anyone can provide some pointers.
    Regards,
    Abhinav

    Hello Madhusudan,
    In your overview page controller you have to overwrite methods: DETACH_STATIC_OVW_VIEWS (this is where you remove your assignment block from the page dynamically), REATTACH_STATIC_OVW_VIEWS (this is where you can put your assignment block back on the page). Both methods have a returning parameter where you can specify which assignment block you want to detach/reattach.
    Hope this helps.
    Best Regards,
    Yevgen

  • Read data from assignment block

    Hi all,
    I'm a bit puzzled for the moment with a development I've done.
    In short, I've created 2 views, 1 with a value node context node and 1 with a model node context node type BuilContactPerson.
    These 2 views are put on an overview page. On the overview page I have a button 'Save'. In the eh_onsave event I need to read the content of the assignment block from the model node. Anyone an idea how to get this done?
    Some background info on what I am doing.
    In the BP_CONT_SEARCH component I've enhanced the SearchResult view and put a button "Move" on top of the assignment block. I also made the SearchResult table multi select.
    The purpose of this is that you can select multiple contacts, hit the move button and then enter in a new customer where the contacts have to be moved to.
    So, the selected contacts are showing correctly in my assignment block and I can read the newly entered customer. The only thing that is left is that I need to loop over the contacts so I can move them. Code to move them is also already done and tested.
    Help is much appreciated.
    Thanks
    T

    Solved it myself.
    DATA:
             lr_entity_customer TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
             lr_entity_contact TYPE REF TO cl_crm_bol_entity,
             lr_iter TYPE REF TO CL_bsp_wd_collection_wrapper,
             lr_entity type ref to cl_crm_bol_entity.
      lr_iter ?= me->typed_context->contacts->get_collection_wrapper( ).
    lr_entity ?= lr_iter->IF_BOL_BO_COL~GET_FIRST( ).
    lr_entity->get_properties( IMPORTING es_attributes = lv_contactdetails ).

  • Can not update an assignment block with on_new_focus

    Hello Experts,
    I have the following problem. I created a new component which is similar to the component BP_BPBT to create activities for Business Agreements. In the overview page of the business agreement in WebUI, I have now the assigment blocks "Plannend activities" and "Interaction History".
    When I create a new activity in the assigment block "planned activities" with the new button and save the activity with the buttons "SAVE" or "SAVE AND BACK". The new created actity is shown, depending on the "Active Status" , in one of the assignment blocks "Plannend activities" and "Interaction History". When I create an another activity in the same way, the new actiity is not shown in the assignment blocks. But when I reload the page again, I can see the new created activity.
    During debugging, I see, that the first creating activity is in the collection in the method ON_NEW_FOCUS. When I create an another activity, the collection is not updated. Here is my coding:
    * get collection of dependent nodes
      TRY.
          entity ?= focus_bo.  "BuAg Entity 
        CATCH cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
      TRY.
      lr_entity = entity->get_related_entity( iv_relation_name = 'BuAgBuPaRel' ).
         lv_collection = lr_entity->get_related_entities(
             iv_relation_name = 'BuilInteractionHistoryRel'
    *  D022159: Performance optimization
             iv_mode          = lv_mode ).
    Can anyone explain me, why the activities (after the first one) are not in my collection.
    Can anyone help me to fix this problem?
    Kind Regards,
    John H.

    Hi,
    Please check if you have added your entity to collection after you save the entry. It looks like your value is saved in DB but its not reflected on UI because you are not refreshing your collection.
    I would suggest that you write a code after you save and commit to refresh your collection of the context node.
    Regards,
    Bhushan

  • Can not see assignment block conditions in rule policy

    Hi gurus,
    I can't define any conditions in a new lead distribution rule. When I create a rule under a rule folder I can see the assignment blocks "Rule Details", "Actions" and "Preview", but I can't see the assignment block "Conditions" in order to define de conditions of the rule policy. How do I have to do to see this assignment block?
    Thanks and regards,
    Jesú

    Hi Jesús,
    Seems strange because as soon as you click on enter after 'New' rule, all 3 assignment blocks should show up.
    Could you please check whether the view has been included in the viewset correctly in the runtime repository editor of the underlying BSP component? For the standard it is usually the component CRM_ERMS_RULEM. The viewset is CRM_ERMS_RULEM/RuleDetailsViewSet  and the ViewArea " RuleDetailsConditions " should be included.
    Thanks and Regards,
    Nisha
    Edited by: NishaNC on Nov 25, 2010 7:15 AM

  • 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

  • How to make an assignment block in an overview page read only

    Hi Experts,
    We have the following requirement:
    In Campaign overview page we need to make the Partner and Product assignment block read only.
    Can this be achieved through coding or through configuration?
    Please give detail steps for the appropriate approach.
    Thanks in advance.
    Regards,
    Sayan

    Hi Leon,
    Is there any authorization group which can be customized to take care of this situation?
    For Product Assignment block in DO_PREPARE_OUTPUT method of class CL_CPGOE_AB_OVELPRODUCTS_IMPL (Component : CPGOE_ABLOCKS :: View : OVELProducts) it is checking some authority. Any pointers where those authorities are maintained will be helpful.
    Creating a new configuration is not helping as the views are 'Table View'.
    We are looking for an approach which will avoid coding or involve minimum coding.
    Regards,
    Sayan

  • Multiple photo block issues?

    Hello,
    When I put multiple photo "blocks" in an iWeb Photo page, iWeb seems to do two odd things:
    1. The slideshow only sees one of the two blocks - can't tell the pattern, whether it is the one on top or on the bottom.
    2. When I click on the individual photos the wrong picture comes up.
    For example, take a look at my work in progress page. I created it by placing a bunch of photos in the first three rows, and then creating a brand new row at the bottom for the last two photos so they are even and symmetrical instead of along the left side of the page and uneven. When you click on Slideshow, you can't see the last two photos, and when you click on either of the last two photos, instead photos from the top come up.
    Anyone know a solution to either of these problems?
    Thanks!
    http://web.mac.com/danbmich/iWeb/Site/UW%20Arb.html
    iBook   Mac OS X (10.4.4)  

    IWeb only allows one photo group per photo page.
    You can manually edit the photo.html file, to consolidate the two photo groups. But you have to do it every time you re-publish your site.
    Open your photo.html in a text edit and search for:
    onclick=" startSlideshow('0')
    You see the first photo group index is from 0 to 8 and the second group is from 0 to 1. Change the second group to 9 & 10.
    As for your slideshow, you have to add the second group pictures into the slideshow.html in your 'UW Arb' folder.

  • 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

  • Adding an assignment block

    hi
    I have to add a new assignment block on the UI. I  have done it by creating a view in a new component and then getting the fields displayed on the UI by including that component in the Component Usage for the required component. The problem i am facing is that, all the fields are getting displayed in  the non-editable mode. I am not able to manipulate the values for these fields using the GET, GET_I methods also. Please help me in solving this problem.
    Help would surely be rewarded.
    Regards,
    Radhika

    Hi Radhika,
    Please note that fields will get value either from custom controller or component controller in your case.
    When you include any component in other component you need to specify which custom controller your component will be using to fetch the value.
    Eg: Your componet is C1 and you have added it in component useage of C2. Also C2 has cuco.Also you need to create cuco in c2 for your component c1so that c1 is able to fetch the value.
    Now when you have specified the cuco, you need to tell in component controller that if your component is C1 then your cuco is cuco(that you created in C2).
    This you do in implementation class of component controller and wd_usage_initialize method of implementation class of component controller. If you check any standard component, you will find custom controller for component usage components. Write code for your component C1.
    Then you will be able to use values and fetch values.
    Best regards
    Pankaj Kumar

  • Remove the assignment blocks dynamically at runtime

    hello friends,
    i want to remove the assignmnet blocks dynamically at runtime but based on the condition data avilable or not . example for opportunity window, whether the item list assignment block is empty then only i want to delete it . for this case i have to put a validation . im using  DETACH_STATIC_OVW_VIEW method for deleting the assignmnet blocks . but in my case based on validation only i want to delete . how to do the validation. please help me out .
    thanks in advance.
    regards
    sashi

    Hello there,
    I believe the Method DETACH_STATIC_OVW_VIEWS as you mentioned is the correct one to achieve this functionality.
    Here what exactly has to be done in your scenario is not clear from your question.
    However if we consider your example; you can refer to the code excerpt below
    UI COmponent : BT111H_OPPT  ( Header Component of Opportunity)
    Class: CL_BT111H_O_OPPORTUNITYO0_IMPL
    Method : DETACH_STATIC_OVW_VIEWS
    It already has in place
    * get Details CuCo
      lr_cuco ?= me->get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).
    then it checkes the Product Items.
    You can put ou validation logic in place and do like following:
    * Competitor products on Item level
      IF lr_cuco->is_competitor_available( iv_mode = lc_item ) = abap_false.
        ls_viewid-viewid = 'BT111H_OPPT/CompProdItemOV'.
        INSERT ls_viewid INTO TABLE rt_viewid.
         ENDIF.
    Please reply if this helps.
    Best Regards,
    Vinamra.

  • Supressing Drag&Drop for Assignment Blocks in Overview Page

    Hi Experts,
    in the standard setup it is possible to change the order of assignment blocks in a Web UI Overview page by means of drag and drop. Does anybody know how this feature can be suppressed if not desired?
    Thanks,
    Jens

    Hi,
    one solution is to deactivate this in the customizing of the businessrole.
    Add function profile PERSONALIZATION with value ALL_DISABLED to disable all personalization functionality.
    There are some other values possible like:
    WA_ENABLED or PP_ENABLED
    Just test a little bit arround which is the correct one for your requirement. ALL_DISABLED deactivates all personalization.
    Kind regards
    Manfred

  • Error in creating a view for an assignment block

    Hello All,
    I am trying to create an assignment block in web UI using links below.
    http://weblogs.sdn.sap.com/cs/mobile/view/wlg/21034?x-topic=89  -- to create a table and corresponding BOL entity.
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUITechnical-CreatingTableViewInWebUI u2013 to create an assignment block
    When I try to create an assignment block in CPG_MAIN, I am unable to find my zorder_so BOL entity. Any pointers would be of great help.
    Edited by: chandrakantklk on Jul 21, 2011 10:20 AM

    Unfortunately I did not see anything in this note that would help it appeared to be talking about IM and QM. 
    I do agree there is some inconsistencies and I am just not sure where....None of this makes any sense as I said one day it will work and then the next time you try it, it gives the error message....I am so at a lost at this point...

  • Setting up multiple billing blocks for a CMR - Credit Memo Request

    I am trying to set a billing block for a credit memo request.  The item category in VOV7 configuration only allows you to set one.  I need to be able to set any of them and for it to block.  If we do not use one; the system allows the credit memo to get created.  If we choose the one that we configured in VOV7 it allows us to only use that one.  The client needs to be able to select any billing block from the drop down when creating a credit memo request in VA01 instead of just one specific one.  Is this possible?  If so, where would I do this?

    Surprising! when a billing block is applied in the sales document, then the system will NOT allow to create the billing document(in your case credit memo). Can you check in t.code OVV3, the billing blocks are assigned to billing types? After assigning, create a new document and test. The path is SPRO->Sales and distribution -> billing->billing documents ->define blocking reasons for billing->assign blocking reasons to billing types.
    Regards,

  • Adding assignment blocks notes and marketing att to the Quickcontact Page

    Hi Gurus,
    My requirement is to assign new assignement blocks to the QuickContactCreate view in component BP_CONT.
    Right now when user want to create a Quick Contact create from Account Over view page, he could see a single view with general data. View name is  BP_CONT/ContactQuickCreateEF
    when you create a new contact(not a quick contact create) from master data, you could see notes and marketing assignment blocks along with general data.
    My requirement is to assign/display the same notes and marketing assignment blocks in QucikContactCreate Over view page also.
    Please tell how can i reuse/assign/display those two blocks in quick contact view
    I tried to assign the above blocks through confiuration but i dont see them in the left assignment block list to assign.
    can any one help me with steps how can i show those two assignment blocks on quickcontact create page and how can i use from contact over view page.
    Thanks for all.
    Seema

    not received answer from any one, thats why am closing this thread

Maybe you are looking for

  • Indesign & PDF printing problems

    Hello! I have a paper to be printed out on a Laser Printer (600-1200) It is a black and white document. The problem is that the results are very different, when you print directly from Indesign CS3, (which is the Indesign Document), & PDF. The simple

  • How to create an holap cube??

    hi all... i want to create an holap cube... how do i start with???

  • ICal Calendar Invite

    I'm using iCal to send appointment emails and am having trouble with them. I have multiple accounts set up on my iMac and sometimes my email comes from my work email (that's the preference) and sometimes they come from my personal account. How do i m

  • Linux memory ballooning problem

    Hi all, my customer has a MS HyperV 2012 (not R2) cluster for virtualization purposes.  Stumbled in dynamic memory allocation I just had a try, reading around about supported configurations etc. As per what i understand, for a 2012 environment the on

  • HT203128 my ipod wont start and make noise inside why?

    my ipod classic shows -is ok to disconect only- why?