How to read Assignment blocks mode options Lazy, Direct etc

Hi,
I need to read the Assignment block mode settings made in configuration i.e, Direct, Lazy etc in a program. Can some one help me out how to get these values for Account assignment block. Based on these modes, i need to programatically control and decide some rules.
Any pointers on this will be very helpful.
Thanks,
Udaya

Hi Udaya,
This is done in class CL_BSP_WD_OVW_VIEWSET, method DO_INIT_CONFIG
* get configuration in xml language
  me->configuration_descr->get_config_data(
    RECEIVING  rv_result = lv_config_xml
    EXCEPTIONS foreign_lock = 1
               config_not_found = 2 ).
* transform configuration xml into table definition
  CALL METHOD cl_bsp_dlc_config_ovw=>conv_xml_to_data(
              EXPORTING iv_xml = lv_config_xml
              IMPORTING rt_data = ls_assgnm_xml ).
  lt_assignm = ls_assgnm_xml-views.
* conversion of the load options (direct,expanded=abap_true and lazy,collapsed=abap_false)
  LOOP AT lt_assignm ASSIGNING <f>.
      <f>-traymode = XXX
Possible values (XXX in the code) are:
CL_BSP_WD_OVW_VIEWSET=>C_DIRECTMODE_ID
CL_BSP_WD_OVW_VIEWSET=>C_LAZYMODE_ID
CL_BSP_WD_OVW_VIEWSET=>C_HIDEMODE_ID
Regards,
Fabian

Similar Messages

  • 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 read data from select Options in another view without using context

    I have 2 views, one for selection screen and another for displaying result.
    In selection screen view I have define a select options with the help of webdynpro component.
    Now my object is display result in result view based on entry of selection screen.
    I don't want to do binding in context node, without that how I can read data of select option
    in result view?
    Regards,
    Rasmi Ranjan Mishra

    Solve by own.
    If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
    in another view also.
    Regards,
    Rasmi Ranjan Mishra

  • How to get the change mode option for the line items in SC

    Hi Everybody,
    1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
    2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
    so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
    thanks in advance.

    Hi Everybody,
    1. when the SC has 2 line items and in that if both the line item are rejected by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line items of both the rejected one, the change is enable and the requester can do the changes in the line items of the shopping cart which is working fine. but in the other case
    2. when the SC has 2 line items and in that if any one of the line item is rejected and other one is approved by the approver and the requester is receiving it for accept changes and when he click on the change button and wants to change the line item of the rejected one, the change is getting disabled but for the approved line item the requester can able to do the changes.
    so can anyone help me out how to solve this issue that if any one line item is rejected in the shopping cart also it should get the editable mode when the requester wants to do any changes.
    thanks in advance.

  • How to read large blocks of data as quickly as possible in Labview?

    <p>&nbsp;Hello friends,</p>
    <p>I meet a problem in reading visa &nbsp;data. It's a usb-raw device, it needs a indepent thread to read the data without any delay(Thread priority Critical). I can do this in both CVI &amp;Labview. The difference is, in CVI, I can exchange the buffer data(read by Visa-read) by exchange the pointer of the buffer, this could avoid data copy. But in Labview, how can I do this to avoid data copy which would delay the Visa-read loop?</p>
    <p>PS. the data block(Buffer length) is big,512KB. And the length could not be small since it would make data loss. I have tested this. The program attached could work wihout problem, but if I try to show the data, there would be a data loss. How can I get it ?</p>
    Attachments:
    20141220122944.png ‏8 KB

    Use a Queue to send the data to another loop that can process the data.  Have a look at the Producer/Consumer architecture.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • C2 audit mode Option in SQL server 2000

    Hi,
    How to set c2 audit mode Option for only customized tables not for entire database SQL server 2000

    Don't do that on the database level but on the application level:
    Note 1916 - Logging table changes in R/3
    Markus

  • How system read transaction for movement type

    Dear friends,
    We are facing problem - in case of movement type 101 system is reading PRD transcation key for valaue of inventory with another transaction key WRX.  I dont know the logic how system read transction key.
    If I use 101 movemment type then how system reads transcation key ie. GBB, PRD etc..... I need to know that logic . Please let me know and give me transction code to same I can check for other movement types.
    Thanks
    ravi

    Tcode OBYC is where all these transactions keys and all the G/ls are assigned to them.
    There are normal accounting entries at time of GR i.e.
    Material - Debit
    GR/IR - Credit
    AT  IR:
    Vendor - Credit
    GR/IR - Debit
    Now on above entries, system looks for transaction key for material and post its entry and then key for Gr/IR and posts the credit
    entry in case of GR and vice versa for IR.
    Please check these answered links for further details:
    obyc
    OBYC
    OBYC
    OBYC transaction?
    Edited by: Afshad Irani on Apr 20, 2010 4:04 PM
    Edited by: Afshad Irani on Apr 20, 2010 4:05 PM

  • Reading the block message or text from sales order header.

    Dear All,
    Please let me know how to read the block text which is present in the sales order header under texts tab.
    thanks in advance
    regards,
    Shoban

    HI
    Please look intothe follwoing code, which helps you to understand how to read the header slaetext.
      DATA: BEGIN OF text_head.
              INCLUDE STRUCTURE thead.
      DATA: END OF text_head.
    DATA: BEGIN OF TEXT_LINES1 OCCURS 10.
          INCLUDE STRUCTURE TLINE.
    DATA: END OF TEXT_LINES1 .
    DATA: text_id     LIKE thead-tdid     VALUE '0001'.
      DATA: text_spras  LIKE thead-tdspras   VALUE 'EN'.
      DATA: text_name   LIKE thead-tdname.
      DATA: text_object LIKE thead-tdobject VALUE 'VBBK'.
    CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                       = text_head-tdid
            language                = text_head-tdspras
            name                    = text_head-tdname
            object                  = text_head-tdobject
          TABLES
            lines                   = text_lines1
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
        CASE sy-subrc.
          WHEN 1. RAISE invalid_id.
          WHEN 2. RAISE invalid_language.
          WHEN 3. RAISE invalid_name.
           WHEN 4. RAISE NOT_FOUND.
        ENDCASE.

  • 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

  • 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 can I assign a period (instead of B) in Keynote for blank screen so I can use a Logitech R800 presenter? An option in next version?

    I have recently bought a Logitech R800 presenter which works very well with Keynote on a MacBook Pro. The start/stop presentation key does not work but that can be easily fixed by assigning F5 to "Start presentation" for Keynote in the keyboard system preferences. The remaining issue is that the blank screen button sends a period (".") which works as a prompt for a blank screen in PowerPoint, but in Keynote it causes the slideshow to end. Keynote uses the letter "B" for blank screen.
    How can I assign a period (instead of B) in Keynote for blank screen? Some sort of work around would be very useful as I often use blank screen in my presentations and much prefer Keynote to PowerPoint.
    Perhaps it will be an option in next version of Keynote?
    Thanks

    As far as I know you can not change these keystrokes without changing the Program files. I am sure it is possible there, but I have no idea where to even start to tell you where to find it.
    Your best bet it to go to the Keynote Menu>Provide Keynote Feedback and let Apple know you would like the option to change them.

  • How to open an URL from Forms in blocking mode?

    Can anyone tell me if it is possible to open a website from within forms in blocking mode? The reason why I have to use blocking mode is that the user has to take some action in the website and has to end that session explicitly with a button on the website. After that, a file is written on the server that is needed for further action. Without that file the process can't go on.
    I use Forms (32-bits) versie 10.1.2.0.2.

    Thanks for your answer.
    Your suggestion is only possible with a timer-trigger (correct me if I'm wrong). And that's the point.... The time the user can act in the website is unlimited. So, how to set up a timer-trigger? Another work around is to make a process that works at some time and searches for the files on the server. But that's not what we want to do.
    Does anyone have another idea?

  • How to add "ATTACHMENTS" assignment block in standard component ERP_H

    Dear All,
    I have a requirement where i have to add the "Attachments" assignment block to standard component "ERP_H". I have taken following steps so far and i am able to display the view in the component ERP_H, however no funtionality has been defined.
    I created a component usage of component "GS_CM" in the runtime repository of component ERP_H
    and now i am able to display the assignment block in the overview page of component ERP_H
    Now i have to create a custom controller and here is where the problem lies. When i try to create a custom controller, it asks for a BOL Entity, and in order to have the same BOL entity as in component GS_CM, i have to add Model "CM" to the runtime repository of component ERP_H, however i m not able to add Model CM in the runtime repository of component ERP_H unabling me to create the custom controller.
    Any pointers would help, if there is any other way to create custom controller instead of adding bol component in the runtime repository.
    Regards,
    Pradeep

    hi,
       can you please add the solution , how u have done  it?

  • How to import an assignment block into a word document

    hi all,
              how to import an assignment block into a word document ,actually we an option called import to Excel,
            but i don't know make it for Word document.....
    Regards
    Sunil Kumar SA

    Use the Media Browser in Word, which you can access via the Ribbon (Insert -> Picture) or via the Insert menu.
    Regards
    TD

  • How can the info block be assigned with the view and assign view to users.

    Dear Friends,
    Anyone could plz tell me how can the info block be assigned with the view and assign view to users.  Also how can the info block in sale summary be assigned with a view and how to assign this view for user.
    Regards,
    Ashima

    Hi,
    To define view and to make it default
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Define Reporting Views (Tcode:OVCD).
    To assign default user to the view.
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Default View To User (Tcode:OVCC).
    To assign Elements of SAPScript "SD-SALES-SUMMARY" to information Blocks To A View use
    Goto SAP IMG > Sales and Distribution > Sales Support (CAS) > Sales Summary > Assign Information Blocks To A View (Tcode:OVCB).

Maybe you are looking for

  • Unable to import video frompanasonic VDR-D105 DVD video camera to imovie HD

    Trying to import my video from my dvd camera but imovie can not find camera. When I connect the firewire the camera locates DVD player software and allows me to play it on my computer, but not able to import to imovie. DVD Player allows my to clip my

  • Sometimes PDF mails are going without an attachment.

    Hi, I have 3 output types and the 3 custom programs. When the background job scheduled, the standard RSNAST00 will call the custom programs, 1)      The logic which added in the custom programs is once adobe form gets generated for output types, I ha

  • Windows and Mac Logos

    And finally, I would like to use the Windows XP and Mac OSX logos on my cd and perhaps on the cd back cover. How is this done, can I just go to a website and cut and paste them? Do I have to go through some long process and pay money?

  • ITunes store download fail

    I recently bought a few albums from the iTunes store but randomly 3 of the songs did not properly download and they can't be put onto my iPod as it says they cannot be converted.  Playing them on the laptop, they stop halfway through.  I don't know h

  • Ios 7 app udates

    With automatic updates, I am curious if there will be some type of communication telling us what was updated, and what the update was.