Text in display mode, in VF02

Members,
When billing document is created, the Header text is populated automatically because of some enhancement.
In VF02, in standard SAP, this text is editable.
How to make Header text non-editable (only display) in VF02?
Thank you!
Jelena Perfiljeva
G Lakshmipathi
Eduardo Hinojosa

When you call the "Header Texts" menu, the following code will be executed:
SAPMV60A / FORM INIT_TEXTE
* fields active <> inactive
  IF t185f-trtyp CA 'AC' OR tvcom-txtgn IS INITIAL.
    display_flag = 'X'.
  ENDIF.
  CALL FUNCTION 'SD_WORD_PROCESSING_PUT'
       EXPORTING
           fi_application_data  = tvcom
           fi_display_flag      = display_flag
           fi_display_language  = '*'
            FI_GROUP             = TVCOM-TXTGN
*          FI_NEW_TEXT_LANGUAGE = SY-LANGU
            FI_OBJECT            = TVCOM-TDOBJECT
*          FI_RESET_FLAG        = ' '
*          FI_APPL_OBJECT_IDENT = ' '
*          FI_APPL_OBJECT_DESCR = ' '
            fi_default_fcode     = 'ENT1'
            fi_subscreen_number  = subscreen_kfte
*          FIT_EXCL_FCODE       =
            fit_xvbpa            = xvbpa[]
  CHANGING
      fct_xthead           = xthead[]
      fct_xvbuv            = xvbuv[]
  EXCEPTIONS
       error_occured        = 1
       OTHERS               = 2
The above code states: if transaction type is A (Display) or C (read from archive), then we set data object display_flag to X. When data object display_flag is set to "X", it means that the text cannot be edited (you can test this by changing the data object manually in the debugger).
For your requirement, you need to set the display_flag to "X" when you are in VF02. Currently the standard behaviour that we see above seems logical to me. After all, you are in VF02, so it makes sense that this  you can edit texts here.
I checked for a possibility of changing the value of display_flag in a user exit but it seems there is none located where you need it. Therefore, maybe it would be an option for you modify the above code so that it says
* fields active <> inactive
  IF t185f-trtyp CA 'AC' OR tvcom-txtgn IS INITIAL OR SY-TCODE = 'VF02'.
    display_flag = 'X'.
  ENDIF.
or something along those lines.

Similar Messages

  • Material Mater Purchase Order Text in Display Mode in T.Code MM02

    Dear Experts,
    In some code when I want to change the PO text in Material master it reflect in Display mode but maximum code display in change mode plz explain where is the setting.
    RCR

    HI,
    To change the settings of any field in transaction to display, change, required, or hide, u have to pick the field selection group from OMSR and then go to OMS9, select your transaction and then change the settings.
    Hopw this helps,
    Swapnil

  • Material PO Text in display mode

    Hi,
    When we create Purchase order with the material Code, then short text is copied from Material Master Also Material PO text is also copied from the same.
    Requirement is if material code is present in PO ( ME21N) then short text of material should be in display mode & Material Po Text( in Text tab) is also to be in display mode
    User should not be allowed to change the same , at present it is allowing the user to change short text of Material & Material PO text also.
    Please suggest
    Thanks In adavnce
    Regards,
    Rajesh

    Hi
    Check it in SPRo- sap img- Material management- Purchasing- Purchase order- Define screen layout at document level.
    Select NBF and then select Basic data item and select short text to display
    It will work
    Regards,
    Raman

  • My iPhone 4s no longer displays photos or text in horizontal mode. Is there a reset option or a known way to have this functionality return?

    My iPhone 4s no longer displays photos or text in horizontal mode. Is there a reset option or a known way to have this functionality return?

    RRGarcia wrote:
    My iPhone 4s no longer displays photos or text in horizontal mode. ...
    It could be this... Orientation Lock
    Settings > General > Lock Rotation..
    Or...
    Double-press the home button...
    Swipe to the right until you get to the Portrait Orientation Button...

  • Info record PO text--to be display mode

    Dear All,
    I want in PO item texts, only Info record PO text to be in display mode, not other texts.
    When i make display mode the Texts  in Define screen Layout at document level, all item texts are displayed.
    Kindly advise how to achieve this requirement.
    Regards

    Maintain the Copying rules, Path with OLME -> Purchasing Info Record -> Texts for Purchasing Info Records -> Define Copying Rules, Also check the link for details - [PO item text update control to Info record  |PO item text update control to Info record]

  • Making short text field in Display mode for one particular Purchasing

    Hi All,
    This is regarding Making the Short text field in Display mode of PR for one Particular Purchasing.. i am giving you a bit elaborate...We are into E-Catalog Procurement.I will do the shopping from the Vendors external catalog and i will return back to SAP.
    While doing so, i dont want the user to change the Short Text field. I want that field shud display the Description. When i tried with the Screen Layout settings, it is fully grayed out and i am not able to see the Description of the Material. Is there any other options to get this enabled?. Please advice me on this settings to be done. Thanks in Advance.
    With Regards,
    Saakithyan

    Hi
    Define a Field selection key (new not the one which is assigned to document type) which makes  short text editable in screen layout config. and assign it to functional authorization value in t.code OMET. (it should be numeric). Then assign that functional authorization value in user master SU01 for users with parameter id EFB.
    Then it will work
    Regards
    Antony

  • Texts in vendor display mode

    hi experts,
    i want to confirm that in xk03 one can change the text(i.e. there in services for object). in display mode one should not be able to change it.
    plz revert back with ur views.
    regards,
    Hitesh

    Hi,
    Check with your Basis Consultant for display authorization.
    Regards,
    Chetan.

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

  • Blurry fonts in iMac in Target Display Mode

    When I connect Macbook Pro retina with iMac using Thunderbolt to Thunderbolt cable, and use iMac in Target Display Mode the text and fonts are really blurry.
    It is the same text in Macbook:
    Text in iMac:
    The resolution of iMac display is "Best for display", however, I have tried to change it without any success.
    Does anyone has similar problem or anyone knows how to fix it? Thanks in advance!

    I have found an interesting regularity. If I open window (let's say PDF file) in Macbook Pro and drag it to iMac, then everything is okey. Unless I resize it. Once I resize it, it becomes blurry/smooth again.
    Why had this problem and how to fix it?
    Changing the resolution in Macbook Pro can help, but 1) I need to change the resolution in Macbook every time when I connect external monitor 2) I cannot resize windows in iMac 3) if I change resolution in Macbook Pro items become really small, so it is hard to see something.
    Please help!
    OS: OS X Yosemite 10.10
    Macbook: MacBook Pro (Retina, late 2013)

  • Apex 4.2.1: Icon display mode bug

    Minor but very annoying bug in 4.2.1. The App Builder application home page (4000:1) has a link in the right sidebar to choose Display Mode (Icons or plain text) for the 5 big buttons at the top (Run App, Supporting Objects, Shared Components, Utilities and Export/Import).
    I prefer the Hide Icons setting and it is saved as a Per User preference and defaults to Icons so one would expect that once I set it to Hide Icons that's that.
    But the Edit Page nn and Application nn links in the Developer toolbar on a rendered page are like f?p=4000:4150:953853045141::NO:*1*,4150... So they clear out the cache for page 1 and it resets to the default Icon view :-(
    Could this please be fixed? I love the artwork and the quality of the icons but I really don't want it taking up so much screen real estate.
    Thanks
    Edited by: VANJ on Jan 9, 2013 2:56 PM

    Hi Vikas,
    I have the issue as bug# 16095793.
    BTW, are you sure that the value is normally saved as a user preference? Because I did a quick test, changed to Hide Icons, logged out and then logged in again and the Builder showed the icons again. Could also not find it in the code that the value is stored as a preference.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Selection screen in display mode

    Hi all,
    I have a selection screen with 2 radio buttons & 2 text boxes. If I click the first radio button, the 2nd text box shud be in display mode & if I click the 2nd radio button, the 1st text box shud be in display mode.
    How to do it?
    Thanks in advance.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1,
                 s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn.
    select-options : s_ponum for eban-ebeln.
    SELECTION-SCREEN END OF BLOCK MODE.
    Pls look into the code above.
    G.Vijay

    Hi vijaykumar,
    1. simple.
    2. your code only,
       just copy paste.
    3. It will work as u require.
    4.
    report abc.
    TABLES : EBAN.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1 <b>USER-COMMAND RAD DEFAULT 'X'</b>,
    s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn <b>MODIF ID M1</b>.
    select-options : s_ponum for eban-ebeln <b>MODIF ID M2</b>.
    SELECTION-SCREEN END OF BLOCK MODE.
    <b>at selection-screen output.</b>
      LOOP AT SCREEN.
        IF S_PR = 'X' AND SCREEN-GROUP1 = 'M2'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
          IF S_PO = 'X' AND SCREEN-GROUP1 = 'M1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    regards,
    amit m.

  • Text symbols displaying wrongly

    Hello Experts..
       I had created a zprogram . In that i want text symbols . so i created a text symbols ie text-001 and text-002. in the text elements screen i entered date and material for this text symbols. But in the output it is displaying item data and header data instead of date and material.So please tell me the solution and also tell me why the system is displaying like this.One more thing is that in the text elements screen if i change into display mode it is showing like 001 - item data, 002-header data, 003-display options etc.
    Thanks for all the replies

    Hi
    It appears that the text symbols 001 and 002 and 003 were already defined for
    Header data, Item data and display options.
    so now you define your own symbols like 025 and 026 (some numbers) and against them define DATE and MATERIAL
    and use those numbers 025 and 026 in the program code
    do this and see it will work.
    Regards
    Anji

  • Display Mode - Module Pool

    Hi Friends,
    Need help in Module Pool,
    when button click want to display screen in Display Mode only.....

    Hi Sharavan,
    I hope you want to achieve the Toggle Display Functionality. To achieve this you have perform this following steps:
    1. Define the names Properly for each of the individual Screen Elements. Like for Button you can do BTN_01.. etc etc...
    2. In the PBO Module define a Module like MODULE screen_settings. In this you will run the following code:
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'BTN_01'.
            SCREEN-INPUT = 0.
            MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    For a group of BTNs or Text Elements you can form a GROUP and can Enable and Disable all at once.
    3. The Next step is the handling of the Table Control.In the PBO event there you will have the LOOPing the Table control.
    There inside the loop place a Module and enable and disable each and individual rows.
    You must keep a central Instance from where you can check whether you want the screen elements in DISPLAY/CHANGE mode.
    Hope this will help.
    Thanks,
    Samantak.

  • How to display form in display mode only

    Dear firends...
         My BSP applications's page which is form actually is opend in change mode by default, I want to initialize this page in display mode as default. please help me to know how could carry out this task. Any suggestion, code, article will be great help of mine.
    thanking you,

    I think you mean HTMLB textEdit. Is that right ?
    If it's the case, you have the <i>disabled</i> attribute to set to 'TRUE' in order to prevent any input by the user.
    Here is the example adapted from SBSPEXT_HTMLB, page TextEdit.bsp
    <htmlb:textEdit  id       = "txtEdit"
                     text     = "The quick brown fox jumped over the lazy dog."
                     disabled = "true" />
    Best regards,
    Guillaume

  • QM_QCERT_01 - DISPLAY MODE to CHANGE MODE

    Dear Experts,
    I had make a copy of SAPScript form-QM_QCERT_01 in to ZQM_QCERT_01 and does some changes, the changes/enhamncements are working fine but i want to add a new window of footer for which it is not allowing since all its attributes are in display mode, create-new window is also in display mode , how can i change it to change mode and add a footer window into the form.
    Alternatively is their any footer SAP SCRIPT command available ?, so that fixed text will always appear at the footer , this will also helps me to solve my issue
    Your answer to this query highly appreciated
    SHAFEEQ

    Hi,
    1.Go to Se71.
    2.give the form name zformname and language as DE.
    3.Edit the form and utilitiea--->convert from language
      slanguage:DE
      destination language:En.
    4.Now make your changes(creating the window).windows---edit ---create element.
    5.page windows---window name and dimensions
    Regards,
    Kumar(if helpful reward).
    Edited by: shiva kumar on Apr 14, 2008 3:03 PM

Maybe you are looking for