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.

Similar Messages

  • How to remove the filter in the assignment block.

    We have a requirement where we need to clear the custom filter automatically in the assignment block ,when we press the save button.
    Can any one help me to solve this issue.
    Thank you,
    Deepthi.

    Hi Deepthi,
    Get the Assig. Block iterator list and use the standard method DELETE_FILTER (of interface IF_BOL_BO_COL_ITERATOR) in the save event.
    Regards,
    Shobhit

  • How to Remove the default Block for payment in MIRO

    Hi,
    In MIRO after posting the document message is coming,
    "Document no. 5105600184 created (Blocked for payment)"
    But our requirement is to remove the default "Block for payment"
    What is the necessary setting to be done to remove it.
    Thanks
    Prasant

    Hi
    Thanks for your reply.
    But in vendor master "Payment Transaction Accounting View"
    I have selected the check box" free for payment".
    still the message is coming in MIRO
    Prasant

  • URGENT: How to remove the assignment of marketing attributes for an BP

    Hi Guys,
    In my project we are maintaining two marketing attributes for all the business partners.
    But there is a need now based on some condition we want to remove one of the assignment for the BP (I.e which ever BP matching certain condition written in my BP upload program)..
    I dont want to remove this manually using the transaction codes or the segment builder
    Is there any function module to remove the assignment of the marketing attribute for the BP which i can use in my upload program
    Would appreciate an early reply since it is very urgent...
    Regards,
    Sundar

    Hi Sundar,
    Most Easier approach is to code a BDC based on trasaction : CRMD_PROF_BP. in the search field pass BP ID, you will get the BP attributes and you can delete it their and then.
    Save.
    Data is back in Database.
    All will happen in BDC in background.
    Else you can use
    FM 'CRMT_MKTBP_WRK' to delete the assignments.
    This is the basic FM called to delete marketing attributes assignment.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • How to create the Check box and Text Area inside the Assignment block

    Dear all,
            I am new to web UI development. my requirement is to create the Check box and Text box in the Assignment block. Can anyone help me to do this requirement.
    Thanks & Regards,
    Ashok.

    Hi,
      Please place the below code in the GET_P methods of the fields.
      For Text Area 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_textarea.
      ENDCASE.
    For Check Box 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
      ENDCASE.
    Regards,
    Lakshmi.Y

  • Workflow item processed but not removing the billing block from item

    My credit memo has 310 items with billing block at header level and item level itself. We are removing billing block through workflow.
    The problem i am facing is work item is processed by the user but billing block is not removed from  the document at item level.
    Now if I want to remove the billing block what i have to do?

    Hi,
    Please check this sample code..
    PARAMETERS: p_vbeln TYPE vbak-vbeln.
    DATA: l_header_inx TYPE bapisdh1x,
          l_header_in  TYPE bapisdh1.
    DATA: lt_return TYPE STANDARD TABLE OF bapiret2.
    * update the flag.
    l_header_inx-updateflag = 'U'.
    l_header_inx-bill_block = 'X'.  " Billing
    l_header_in-bill_block  = ''.   " Remove Billing block.
    * Call the bapi.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument    = p_vbeln
        order_header_in  = l_header_in
        order_header_inx = l_header_inx
      TABLES
        return           = lt_return.
    * check for errors.
    LOOP AT lt_return TRANSPORTING NO FIELDS WHERE type = 'A' OR type = 'E'.
      EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
      WRITE: / 'Error in updating'.
    ELSE.
      WRITE: / 'Billing block removed'.
      COMMIT WORK AND WAIT.
    ENDIF.
    Thanks
    Naren

  • Modifying the Field labels dynamically at runtime.

    Hi,
    Is it possible to change the field labels dynamically at runtime . My
    requirement is when the user has to edit the quantity part ,he  presses  a fn key (F7 in my case ) that is displaying  a new field with the old label (quantity ) and old qnty label should be changed dynamically to '  previous quantity ' .
    Thanks For Your aniticpated responses.
    Message was edited by:
            Khaleel S.Mohammed

    Have you added teh Label as a text field?
    If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
    Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
    This will work out. Please let me know if you have any issues.
    Regards,
    Anish Thomas

  • Removing buttons from the assignment block

    Dear WebUI experts,
    I want to remove the buttons for creation of 'corporate account', 'group account', 'individual account' from the search account workcenter page.
    http://picasaweb.google.com/satishsoni.sap/SAP?authkey=Gv1sRgCJz0wMn5j_ftvgE
    The authorisations given to the user are display only still the create buttons are displayed.
    Thanks
    Satish

    Go to Tx: BSP_WD_CMPWB
    Enhance the component/ view: BP_HEAD_SEARCH/MainSearchResult
    Redefine method:  DO_PREPARE_OUTPUT with something like this:
    CALL METHOD super->do_prepare_output
      EXPORTING IV_FIRST_TIME = IV_FIRST_TIME.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATECORP'.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATEIND'.
    DELETE LS_BUTTON WHERE ON_CLICK = 'CREATEGROUP'.
    Before this I think you shold take a look at the Auth. Obj. UIU_COMP for authorizations on this buttons.
    Best Regards

  • Deleting Assignment Block dynamically as per requirement

    Hi All
    I  need to hide a assignment block (added it to overbiew page view area and component usage used) dynamically based on some condition.
    I have redefined DEATTACH_STATIC_OVW_VIESETS and added the view to deattach 
    , but still that view internal table contains the deleted view in REATTACH_OVW_VIEWSETS  so I have removed there also but still some where that internal table picking up that view and showing in screen.
    Can any body please guide me

    Hi,
    this may be useful:
    http://wiki.sdn.sap.com/wiki/display/CRM/Dynamcallyhidinganassignmentblock
    Regards
    Ajay

  • 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 use BAPI_SALESORDER_CHANGE to remove the billing block?

    Dears,
    I want to remove billing block using FM  BAPI_SALESORDER_CHANGE,
    I know it is associated with inport parameter ORDER_HEADER_IN, and the associated field is BILL_BLOCK, and this field should find
    in table VBAK-FAKSK.
    but if for a SO , the VBAK-FAKSK is not initial, and I want to remove its billing block, How should I do?
    Any body could help me?
    Thanks a lot.
    Julie.

    dear
    done.
    Thanks a lot.
    Julie

  • How to remove the Dunning block in the Invoice

    Dear All,
    For a particular customer, we dont have any "Dunning block" in the customer master.
    But "Dunning block" enable at the invoice level. Because of this we are unable to post the document to accounting.
    While releasing the document to acounting we are getting the following error.
    "Reference document 92002929 000001 (Error during INSERT) Message no. VF004" 
    Regards,
    Mullairaja

    Hi,
    Try doing this way
    Just Go to FBL5N look for the FI invoice, open the invoice and see the dunning block field is populated. You can unblock it by changing the document to change mode from the main menu bar.
    This is the procedure to unblock/block the dunning for a customer at line item level
    But in your case i am not sure the error is due to the dunning block just try
    Regards,
    Vassy

  • Why did VZW remove the call blocking feature?

    I believe the other carriers left it in and it is an excellent feature. Does VZW have any plans of including this in an update?  This is a great phone but I am annoyed that VZW feels the need to restrict its freatures.

        Sorry to hear that a feature is not available, dansx6. I unfortunately do not have any new details or info on whether the call blocking feature will be added back on at a later time. If something is announced regarding a new update for the G3, it should be on display at this link: http://bit.ly/n5snpq .
    If you have any additional questions, we are here to help out.
    NicandroN_VZW
    Follow us on twitter @VZWSupport

  • Unable to remove the "VV" block

    Hi Guru's,
              Not able to release invoice# ####. Fiscal year: 2007 from VV block through transaction YRBR. When I select the doc i want to release and click on “Blocking reason” button. I get the message “0 block have been removed.”
    What might be the reason for this? Appreciate your help in letting me know how i should go about debugging this.
    Thanks
    Preetham

    Hi,
    T/code: MRBR,some times requires user authorisations -  this depends upon the settings..If you are not an authorised user for this T/code,you stand to get such errors.Check up the authorisations [ T/code: pfcg].
    Regards,
    Ramesh.

  • Schedule line creation after Removing the credit block

    Hi Experts,
    I would appreciate some urgent help with following issue.
    When the order is created for the customer, the automatic credit check is carried out and order is blocked. Once the order is released from VKM1, when you display the order, the schedule line is not getting redetermined. How do I make the system to do create the schedule lines again?
    Appreciate any help.
    Thanks.
    Message was edited by:
            SAPguy

    Hi,
    Credit check is done to see if the customer has crossed his credit limit or not. Incase you want to forcefully release order we use [VKM1]. What is this got to do with the schedule lines??? Irrespective of whether the order is under credit hold or no the schedule line are determined the same way. Didnt understand the connection.
    Regards
    Nadarajah Pratheb

Maybe you are looking for

  • Creation of Order Object through DAF pipeline

    Hi all, Like how a transient profile object is created through DAF pipeline in the ProfileRequestServlet, i know there is an order object also created like profile, but i want to know which RequestPipeline is creating it????

  • Porblem with One  Info Object. in Two Structures

    Hi, I am have a Object like Material Type which i need to use in KF structure by filtering in selection, and also same in char Structure with different selection in one query. But my Problem is I am unable to Drag this Object in to the selection pane

  • Parallax scrolling

    I am trying to start the text off the page and scroll onto the page; however, I cannot figure it out. I followed the SourceSansPro file and copied the exact layout, but on my website the text does not scroll onto the screen.  Any help?

  • Replacement  function modules in ECC6

    Hi, We are working Upgrade project in Ecc6. We found that function module 1. TABLE_COMPRESS and                                                    2. STRING_MOVE_RIGHT                                                                                3.

  • Otally unable to save a download. Unable to run a download and used up all the faq suggestions

    I am unable to save or run a download. The reason being ' unable to read source code' Contact server administrator. I have used up all the suggestions in faq's and am able to download using explorer