To determine the mode(create/change/display)

Hi,
I want to add a piece of logic in IMPL class of an UI component based on which mode am into i.e create,change or display. IS there any class or attribute that gives us this info? thanks!
Regards,
Bhanu

Hi Bhanu,
Try to use below code you may have to modify it a bit:
DATA: lr_comp_controller    TYPE REF TO CL_BT120H_C_BSPWDCOMPONEN_IMPL.
lr_comp_controller ?= me->comp_controller.
is a create?
  lv_bp_type = lr_comp_controller->is_create( ).
  IF lv_x_save = abap_true.
    ls_button-enabled  = abap_true.
  ELSE.
eOVP: SAVE & CANCEL should be enabled as soon any AB is switched to edit mode
    IF lv_bp_type IS NOT INITIAL. " Create?
      lv_enabled = abap_true.
    ELSE.
      lr_entity = me->if_bsp_wd_history_state_descr~get_main_entity( ).
      lr_window_controller ?= me->view_manager->get_window_controller( ).
      IF ( lr_entity IS BOUND AND lr_entity->is_locked( ) = abap_true )
      OR   lr_window_controller->gv_object_locked         = abap_true.
        lv_enabled = abap_true.
      ELSE.
        lv_enabled = abap_false.
      ENDIF.
    ENDIF.
You can try and debug get_buttons method of BP_HEAD/BPHEADOverview. Here SAP has handled all three scenarios you need to implement.
Let me know if it helps.
Regards,
Bhushan

Similar Messages

  • Change the Layout for Create Change Display and   Alv List

    Hi All,
    I am working on Custom Development  WD Application for Maintain   Employee.
    I need to Get help/advice to hadle the two Problems.
    1) In my application I have to provide Create,Change & display Employee.
    Customer needs seperate Link/Application for all Create , Change and Display in Portal.
    I thought I am planning to Create Three Application in the WD Component(Create,Change & Display) while Pressing the Application I have to find out what is the Application They Pressed in the Componenet Controller to Change the Layout/Field (Edit/Display/Visisble) according to Create/Change/Display Employee.
    For this How to Find the Application name of the WD Componenet.
    2) To show the Employee List I am having using ALV LIst.
    But my List consuists of 35 Fields. Customer not ready for scrolling the List to see all columns.
    I thought I am planning to provide Visible/Invisble columns after providing one button.
    If they pressed this button It will next set of Columns with out scrollibng.
    How to handle this ?
    Kindly help/advise  me for both the Problems to proceed further.
    Thanks in advance.
    Dav

    1.For this How to Find the Application name of the WD Componenet.
    DATA:
      l_api                           type ref to if_wd_component,
      l_application_api               type ref to if_wd_application,
      l_application_info              type ref to if_wd_rr_application,
    lv_name                            type string.
      l_api              = wd_this->wd_get_api( ).
      l_application_api  = l_api->get_application( ).
      l_application_info = l_application_api->get_application_info( ).
      lv_name = l_application_info->get_name( ).
    > 2) To show the Employee List I am having using ALV LIst.
    >
    >  But my List consuists of 35 Fields. Customer not ready for scrolling the List to see all columns.
    Are they planning to buy Wide Screen monitor ??
    I am not really fan of the solution you propose, at the same time i am not having better idea. I would get the customer on table and see how they would like to have the presentation of 35 columns without scrolling.
    ALV provides customization, in that way users can select their own list of columns.

  • Configuration settings for Contract account create\change\display transacti

    Hello all,
    Does any one know IMG path for settings for contract account related activities (Tcode - caa1\caa2\caa3). We have 2 systems of SAP ISU. One system shows various fields blocks under 'General data' tab like 'Account management data', 'contract account remarks', 'invoicing', 'associated work activity' while other system only shows 'Account management data' and 'associated work activity'  that too with very less no of fields in there.
    Is it because of any functional settings through IMG or is there any other reason?
    Regards,
    Abhi

    Hi ,
    In IMG there is a setting where in you can make settings for the fields of activities like contract account create , change , display .
    Following is the navigation for the same .
    SPRO - Financial accounting ( new ) - Contract accounts receivable and payable - basic functions - contract accounts - field modifications - configure field attributes per activity .
    Here you can make the necessay settings for your activities as to you want to make the field as hide , display , mandatory etc.
    Secondly , in case of authorizations - System checks for following Auhtorization objects ;
    F_KKVK_BUK - For  co code .
    F_KKVK_VKT - Contract account type .
    F_KKVK_BEG  - Aurhoization group in contract account .
    E_REGIOGRP - Regional structure group .
    do revert back in case of anyother issues .
    Regards ,
    Dewang T.

  • Determining the LogFile created for a partition

    We have created a facility to log all exceptions to a single partition's
    log using LogMgr. Is there some method within Forte to determine the name
    of file being used written by the current partition's log manager?
    Thank you!

    Hello Don Burn,
    To know whether a Visual Studio version is installed on your OS, actually you can refer to the registry by refer to the following blog:
    http://www.mztools.com/articles/2008/MZ2008003.aspx
    However your issue seems more complex, since msbuild tool version is different when compare to Visual Studio version. And you can use different msbuild toolversion
    https://msdn.microsoft.com/en-us/library/bb383796.aspx
    So I'm not sure if I unstandand want you want to do here. Do you want to specify Visual Studio version or actually MSBuild version?
    Have you ever referred to the following registry:
    http://stackoverflow.com/questions/328017/path-to-msbuild
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\2.0
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\3.5
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0
    On x64 machine you need to check WOW64node. And then you will see the MSBuild installed location on your OS.
    Hope the above info helps you know what you should do here.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Addition of the tab in the PO Create / Change using ME21N/ME22N Via BADi.

    Hi All,
    I am trying to add an additional tab in the scree of the Transacton ME21N / ME22N at the Item Level. The Label  of the tab is 'Test123'.
    I have already created a Separate screen ZTEST1_111 Dynpro 0100 and have a box with two input fields and the twp radio buttons
    and a Push button.
    I have Created the Implementation of the BAdi ME_GUI_PO_CUST and have Written the code inside the Method Suscribe where I have put in the code as follows:
    wa_susc-name = 'BOX1'.
    wa_susc-program = 'ZTEST1_111'.
    wa_susc-dynpro = '0100'.
      wa_susc-STRUCT_NAME = 'ZMEPO_BADI_STRUCT1'.
      wa_susc-label = 'Test123'.
    wa_susc-position = 5.
    wa_susc-height = 7.
    append wa_susc to RE_SUBSCRIBERS.
    I have also written some piece of code to the other methods as well.
    Please do let me know where have I gobe wrong. why there is no result inspite of doing the right coding.
    Am I missing on something...?
    Please guide me the right way..? If in case I need to do anything more..?
    Regards,
    Deepak.

    Hi,
    You have to implement ME_PROCESS_PO_CUST for this.
    method if_ex_me_process_po_cust~fieldselection_item this method enables you to influence the field selection properties for a field.
    By making changes to this table CH_FIELDSELECTION - Field selection table, you can influence the display properties of a field.
    it has following for selection status
    '-'   Field is suppressed
    *''   Field is purely a display field
    '.'   Input field
    '+'  Mandatory field.
    Hope this helps.
    Regards,
    Pawan

  • How do I determine the order of photos displayed in slideshow?

    I'm using my ipod to teach art, using a dlp projector. I've got pictures sorted by topic. But I need to know how to organize the photos to display in the order I want them to. Can you help?
    Thanks!
    Mike

    This topic was answered:
    http://discussions.apple.com/thread.jspa?messageID=3744842&#3744842
    You need to rename your photos using 001.name.jpg, 002, ect.
    Your best bet is to open the set of images in your photo editor, like Aperture or Lightroom then sequence them to your liking then export the set of images to a seperate folder numbering them 001 to 999.jpg should be good to go.
    Although I would think there must be a better way.

  • Requisitioner Help in Purchase Order Create  / Change / Display

    Hi Friends,
    Requiremnet : i want F4 Help in the Requisitioner Field from the Employee Master Table
    Is there any Exit or Enhancement Spot for this.
    Regards:
    Sridhar.J

    Answered by Own
    Thank You.
    Regards:
    Sridhar.J

  • Re: Determining the LogFile created for a partition

    Hi,
    Yes there is a way using FORTE agent.
    Asuming Agent is an ActivePartition, aFileName will contain
    the log file name of the partition.
    aSysAgent : SystemAgent = Agent;
    aSysAGent.ExecuteCommand('FlushLogFiles');
    aFileNameInst : ConfigValueInst =
    (ConfigValueInst)(aSysAgent.FindInstrument('LogFile'));
    aFileName : String = aFileNameInst.GetData().TextValue.Value;
    Hope this help !
    Jean-Baptiste BRIAUD,
    [email protected]
    SEMA GROUP
    France

    Hi,
    Yes there is a way using FORTE agent.
    Asuming Agent is an ActivePartition, aFileName will contain
    the log file name of the partition.
    aSysAgent : SystemAgent = Agent;
    aSysAGent.ExecuteCommand('FlushLogFiles');
    aFileNameInst : ConfigValueInst =
    (ConfigValueInst)(aSysAgent.FindInstrument('LogFile'));
    aFileName : String = aFileNameInst.GetData().TextValue.Value;
    Hope this help !
    Jean-Baptiste BRIAUD,
    [email protected]
    SEMA GROUP
    France

  • How to get the mode (change/display/create/edit) of a CRM WEBUI

    Hi,
    I have a table(custom) in my CRM WBUI ServiceContratc Page. Now I want to hide this table in create mode.
    Could you please let me know, how can I know in which mode I am on WEB UI(Like Create/Change/Display)
    Thanks,
    Aparna

    Hello,
    use below method to check whether view is editable/display mode ...
    me-->view_group_context->is_view_in_display_mode( me ). here "me" refers to the implementation class of view.
    Regards,
    Sandeep Kumar B

  • Collective Entry of Mesurement Documents - Change / Display Mode

    Hi All,
    Is there any T code or table view or program to view / display the Collective entry of measurement documents?
    We use T-code IK34 to make collective entries, but I am not able to find any T codes / menu path for viewing the same in change / display mode.
    Pls. post your suggestions. Thanks in advance.........JK

    Hi Muralidharan
    Sorry, I am afraid not !
    I want to view the data entered in IW34 as it is in display mode.
    This is basically to ensure if all the values have been entered by the person who is entering the data in collective entry sheet.
    Any clues, pls. help.
    Tks and best regards.
    Kannan J

  • Error while creating/changing/desplay cost element

    Gents
    Need urgent help. I am getting a below error while creating/changing/Displaying the cost element.
    Table CI_CSKB is not an active table
    Message no. AD 228
    Kindly help me to get the resolve this issue.
    Thanks and Regards
    Vinay Thakre

    hi
    In Cost Elements (Data is Dependent on Controlling Area), please go to extras and check your controlling area while creating the cost element, and make sure if u r creating Primary CE, it has been created as a G/L account and also make sure you use correct CE Category.
    Thanks
    plz award points if helpful.

  • Permanent Crash related to changing display settings while FCP is open.

    Recently, the display settings (arrangement) on my two monitors started changing by itself while I was working in FCP 6.5. I'm using ancient monitors (Viewsonic MB90 and Mitsubishi Diamond Pro 920. I just don't have the money to upgrade right now). Tis was annoying but I dealt with the problem by creating two different windows layouts. Then things got worse (the only thing I had done was install 8 gigs of additional memory on top of the original 2). FCP started crashing and now I can't even open the application. It doesn't react.
    Apple recently posted a not very informative acknowledgement of the problem with changing display settings while FCP is open, but it doesn't suggest solutions to my problem. It would be helpful to know a) what resolution and refresh rates are best for these old monitors and b)how to open FCP again. Your help is greatly appreciated.
    FCP 6.5
    2x3g quad core xeon
    Thanks,
    Alex

    THIS IS IT!
    Disabling the nVidia deep colors for 3d applications solved the uber-annoying "flicker-screen-settings-and-disrupt/crash-other-programs" issue. I specifically only disabled deep colors for Premiere, not for all 3d applications I use, because none of them have caused the same problem as Premiere.
    This display-screen setting issue probably occurred because I use a Dell u3011 monitor which displays Adobe RGB color gamut, not just sRGB.
    However, now this brings up another question with disabling deep colors (effectively disabling the Adobe RGB use of the Dell monitor):
    QUESTION: If I have CG-rendered frames that seem to be created in sRGB and Adobe RGB (in two different programs), what color space should I be mixing/editing them in?
    I'm somewhat of a novice with the color spectrum/gamut issue. From what I understand, if I edit both CG images in sRGB, I'll be losing color data from the Adobe RGB-created CG image. If I edit both CG images in Adobe RGB, will I create minor banding effects on the sRGB image because it doesn't have the color range that I'm editing in? Perhaps my question is more relevant to AfterEffects compositing of the images rather than simply/only editing them in Premiere.
    The end result is something like an architectural film/ flythrough.
    Thanks,
    -Matt

  • Auth. obj. controlling options Create - Change of Table Entry for SE11

    Hello,
    Could someone please guide me to the authorization object/s which controls the options : Create - Change reached by trans. code SE11, Change, Contents (Ctrl + Shift + F10) , Execute (F8), Table Entry, Create - Change.
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Hi,
    when you execute SE11 authorization object S_DEVELOP was check.
    S_DEVELOP has following nodes.
    Activity :    create,change,display
    Package :  z,y
    Object name : z,y
    Object type :  type of object i.e domain,table, index etc.
    Authorization group ABAP/4 pro : *
    now suppose you want to give user authorization for display only then
    Activity should have value 03 only.
    in future please post your authorization related thread in security forum.
    Security
    regards,
    kaushal

  • All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"?

    All photos in portrait format are displayed blurred in the preview mode "fill" of the library. In all other modes e.g. "fit"or "1:2" the photos are sharp. How can I change this, so that the photos are still sharp when displaying them in the mode "fill"? My Lightroom release is 5.7.1.
    Thanking you in anticipation!

    I'd like to get all these '-1 suffix' files together with their associated Develop adjustments into one folder (if they aren't already) so I can see them in Grid view in the Library module, which I use as my basic starting point for everything else at this early stage of my Lightroom 'career'.
    To see what folder these are stored in, right-click on a photo and select "Go to Folder in Library".
    Advice: if you are going to use Lightroom effectively, you probably want to stop using folders as your method to create a grouping of photos that are already in Lightroom; there are plenty of built-in tools, such as keywords, collections, color labels, etc.
    I don't understand why the search on the entire catalog picked up apparently the same two file versions but also got the Develop adjustments when going to the relevant Folder didn't show the adjustment black squares against each image in Grid view nor were they there when the images were opened in the Develop module.  Perhaps if I understood this, I'd be a bit more confident of moving forward myself.
    These are most likely different versions of the same photo, in different folders. Lightroom stores the edits in its own catalog, and so it knows that one folder's photos have edits, and the other folder's photos do not have edits. Please understand that Lightroom is a database, it knows where the photos are at the time you import them (or add them to the catalog by synchronize), and then if you move things around in your operating system, Lightroom does not know anything about that and problems begin. Thus the advice to organize using Lightroom tools and methods and not operating system tools and methods.

  • Using Win 10 there is a need for an app to determine the full device display area and aspect ratio programitically; the dimensions are needed to create full-screen bitmap.

    While Windows.Current.Bounds returns the application windows size, in order to create a full-screen bitmap my app would need to retrieve the full display area  of the device. I cannot even get the aspect ratio.
    Pre-Win10, using Windows.Current.Bounds I can create a bitmap of whatever size application window the user is seeing. When the user is showing my app at full screen, I can therefore get the full display area and aspect ratio of the device and create a full-screen
    bitmap.
    With Win10, the user would need to know to hide the taskbar and also display at full-screen before an app can retrieve the display area and aspect ratio using Windows.Current.Bounds.
    Before Win10 it's obvious to the user that full-screen is or is not being used. When I create the bitmap, I create it to fit the application window. When the app is displayed full screen, the bitmap will be full screen. Also, the app starts full-screen so
    I can detect the display area at startup if I need to.
    With Win10, to the user the app "looks like" it is full screen with the taskbar displayed even though it's not really full screen.
    I believe that in Win10 determining the full display area will be useful and not just retrieving the application window size.
    musical9

    Rob, Is this forum best way to get my suggestion to the development team?
    Before Win10 it's obvious to the user that full-screen is or is not being used. When I create the bitmap, I create it to fit the application window. When the app is displayed full screen, the bitmap will be full screen. Also, the app starts full-screen
    so I can detect the display area at startup if I need to.
    With Win10, to the user the app "looks like" it is full screen with the taskbar displayed even though it's not really full screen.
    Yes, Windows.Current.Bounds does work the same, but I believe that in Win10 determining the full display area will be useful and not just the application window.
    musical9

Maybe you are looking for