Call Same screen in display Mode

Hi all ,
I have designed a screen with Inputfields as UI elements.
On a button click , i need to display the same screen in DISPLAY mode .
Is there any solution other than making a copy of the same screen ?
Thanks
Supriya

Hi supriya,
Create Transparent Container or Tray to place all your input fields.
Create one attribute of type  WDY_BOOLEAN and bind it to enable property of your TC or Tray.
On action of button click enable that property using set_attribute.
    get single attribute
      lo_el_context->set_attribute(
        EXPORTING
          name =  `ENABLED` // your attribute
            value = ABAP_FALSE ).
Cheers,
Kris.

Similar Messages

  • Call Transaction "MIGO" in display mode only

    Hi friends,
    I have changed the standard the SAP standard program MB51 to a Customer Program 'ZMB51' based upon the user requirement.Iam able to get all the values (output)
    Now my requirement is .... iam trying to call transaction "MIGO" when the user clicks on the Material Document Number (MBLNR) (as how in Standard program)
    I ve used "ALV_GRID..." display. and given a callback_user_command also .... iam able to call the trasaction ...... but it is editable and not in the display mode ..........
    Here my code :
    FORM SY_UCOMM_FOR_MBLNR USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE
    SLIS_SELFIELD.
      IF RS_SELFIELD-FIELDNAME EQ 'MBLNR'.
      IF NOT RS_SELFIELD-VALUE IS INITIAL  AND
             RS_SELFIELD-VALUE NE SY-ULINE.
          CALL TRANSACTION 'MIGO'.
        ENDIF.
        IF R_UCOMM EQ SPACE.
        ENDIF.
      ENDIF.
    ENDFORM.                    " SY_UCOMM_FOR_MBLNR
    So ??????????????????
    What is the remedy ????
    Expecting ur answers....
    Thanks in Advance
    Cheers,
    R.Kripa.

    Hi ... it is solved ...
    I ve changed the code as how it was in MB51 report.
    Here is my code
    FORM SY_UCOMM_FOR_MBLNR USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE
    SLIS_SELFIELD.
      CASE RS_SELFIELD-TABNAME.
        WHEN 'I_FINAL'.
          READ TABLE I_FINAL INDEX RS_SELFIELD-TABINDEX.
      ENDCASE.
      CHECK SY-SUBRC = 0 .
      IF R_UCOMM = '&IC1'.
        CHECK RS_SELFIELD-TABNAME = 'I_FINAL'.
        CASE RS_SELFIELD-FIELDNAME.
          WHEN 'MBLNR'.
            SET PARAMETER ID 'MBN' FIELD I_FINAL-MBLNR.
            SET PARAMETER ID 'POS' FIELD I_FINAL-ZEILE.
            SET PARAMETER ID 'MJA' FIELD I_FINAL-MJAHR.
        ENDCASE.
        IF SY-SUBRC = 0.
          SELECT SINGLE * FROM MKPF
                    WHERE  MBLNR = I_FINAL-MBLNR
                      AND  MJAHR = I_FINAL-MJAHR.
          IF SY-SUBRC = 0.
    MIGO_DIALOG is a funcion module to set the MIGO transaction
    in Display mode.
            CALL FUNCTION 'MIGO_DIALOG'
              EXPORTING
                I_ACTION            = 'A04'
                I_REFDOC            = 'R02'
                I_NOTREE            = 'X'
                I_NO_AUTH_CHECK     = ' '
                I_DEADEND           = 'X'
                I_SKIP_FIRST_SCREEN = 'X'
                I_OKCODE            = 'OK_GO'
                I_MBLNR             = I_FINAL-MBLNR
                I_MJAHR             = I_FINAL-MJAHR
                I_ZEILE             = I_FINAL-ZEILE.
          ENDIF.
        ENDIF.
      ENDIF.
    But still if anyone knows how to call MIGo transaction i Display mode using 'CALL TRANSACTION 'MIGO''.
    Thanks friends,
    Cheers
    R.Krpia.

  • Can we get OKET screen in display mode ..

    Hi all
    I am working on OKET - Maintain settings for price Calculation 
    and need to get this screen  in display mode ..
    can anybody please help me or provide me transaction code where i will get this screen in display mode .
    is Display settings for price calculation is available ?? if yes please share the path or T.Code
    thanks in advance
    Sachin

    Dear Sachin
    OKET is not available in display mode.
    br, Guido

  • Opening a selection screen in display mode

    I have an ALV grid created in OOPS. Each line of this ALV has name of a report and its variant name. Here I have created a button on toolbar. When a user selects a line and clicks this button, selection screen of the selected report is to be opened in display mode with selection screen filled as per its variant. Both the report name and varaint name will be same as the selected line. I am able to open the selection with varaint filled, but it comes in editable mode. How do I make it non-editable mode?

    Hi,
    For making your selection screen non editable you will have to disable them for input.
    For this you will have to modify the screen structure.
    try this:
    loop at screen
    if screen-fieldname = 'XYZ'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    You can write this code at selection screen of the program which calls this selection screen.
    Call this code under a condition, so that it get triggeres only when you call this screen form the ALV.

  • How to display the error message on screen in display mode

    Hi all,
    How to display error message as as status message on the screen(module pool).
    The requirement is if I call the screen, it should get with the error message in the status bar. If I write with error message 'E' error mesage information displays and when I click on exit, it lives the current transaction.
    Thank you!
    Prasad

    Hi,
    Try as below.
    MESSAGE IXXX DISPLAY LIKE 'E'.
    LEAVE TO SCREEN XXXX.
    After displaying the information message like E, leave to the screen you want to navigate or can also navigate to the transaction required.
    Regards,
    Nangunoori.

  • Copa Report selection screen in display mode

    Dear Friends:
    In COPA Report, we have sales group,Fiscal year and Currency type in our selection screen,sales group should be in display mode i.e. the user
    must not be able to change the sales group.
    How to reslove the problem.Please advise.
    Thanks&Regards
    MSReddy

    Hello
    Create some authourization checks for the user. Try to check with BASIS team.
    Also check if you can default entries for a particular user.
    reg

  • 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.

  • Default value in selection screen in display mode

    Hai Friends,
    In my selection screen i have a parameter PA_LEVEL, this should have a default value as 10 but it should not be in the change mode. i want that to be in the display mode as in FAGLL03 ( Ledger value ).
    how can i do this.
    Moderator message - Please do not ask such basic questions. This can easily be answered by searching the forum.
    Edited by: Rob Burbank on Apr 16, 2009 12:18 PM

    Hi,
    Use LOOP AT SCREEN...ENDLOOP. in the AT SELECTION-SCREEN OUPTUT event to disable the input field.
    LOOP AT SCREEN.
    IF screen-name CS 'FIELDNAME'.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.

  • Save button in PO screen in display mode

    Hi Friends,
    I am creating purchase order with reference to purchase requisition. In purchase order screen all data has pull-up  but save button is in display mode, i can not save purchase order. I have gone through to spro purchase requisition/ order document type. I could not understand how to fix this problem, please the detail reply.
    Thanks
    Sunny

    Hi
    click on check icon and check the message what message you get from system
    Regards
    Kailas Ugale
    Edited by: kailasugale on Jun 8, 2011 9:54 AM

  • Calling same screen in different programs?

    Hi All,
    I have to call same custom screen in different programs.
    So what is the best way to do this? I dont want to create the same screen in every program, insted I want to create 1 screen and call the same one in every program.
    Any ideas?
    Thanks.

    Hi,
    you are right. It's not possible. I just wan to add quote from ABAP documentation about statement CALL SCREEN.
    The statement CALL SCREEN accesses the dynpros of the relevant main program of the current program group and these use the global data and dialog modules of the main program. Except when calling a dynpro in an externally called subroutine, the main program usually is the current program. If the specified dynpro does not exist in the main program of the program group, an untreatable exception occurs.
    Cheers

  • Screen in display mode

    I have crated a screen my screen should be in display (non-edit) mode .My screen contains two blocks for each block i need to give  a tile also something like this block1 and block2 .can one help in this issue?
    Thanks,

    If you are using a dynpro, you can assign text to the box frame title dynamically at runtime.  Here is a sample program to show you.
    * This program demonstrates how to dynamically add text to
    * a box/frame at runtime.
    report zrich_0005 .
    <b>**  Make sure that the box/frame is set as OUTPUT and the name
    **  of the box/frame is BOX_NAME.</b>
    parameters: p1 radiobutton group grp1 default 'X',
                p2 radiobutton group grp1.
    <b>
    * Enter this field name into your BOX field name on the screen
    data: box_name(30) type c.</b>
    data: ok_code type sy-ucomm.
    start-of-selection.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    module status_0100 output.
      set pf-status '0100'.
    *  SET TITLEBAR 'xxx'.
    <b>* Just fill the text in the PBO
      if p1 = 'X'.
        box_name = 'P1 was pressed'.
      elseif p2 = 'X'.
        box_name = 'P2 was pressed'.
      endif.</b>
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    module user_command_0100 input.
      case ok_code.
        when 'BACK'.
          set screen 0.
          leave screen.
      endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    Regards,
    Rich Heilman

  • Select-option or parameter with display mode

    hai experts,
    i need to give select-option or parameter with display mode in selection-screen.
    my requirement is.......
    to give last print out time in selection screen with display mode mean user cant able to change the time......
    reward avail for hope ful answer.....
    thanks in advance...
    regards,
    jai.m

    Hi jaya,
    write the following code.
    parameters: p1 type c.
    initialization.
    p1 = 'c'.
    at  selection-screeen output.
    loop at screen.
           if screen-name = 'P1'.
              screen-input = '0'.
              modify screen.
           endif.
    endloop.
    regards,
    Santosh Thorat

  • 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.

  • 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

  • MacBook pro will not boot. I get the gray screen, an apple icon and spinning wheel. Tried to start in safe mode but get the same screen. The only thing different was that I loaded the zedge sync app yesterday. Now getting this problem.

    Macbook pro will not boot. I get the gray screen, an apple icon and spinning wheel. I tried to start in safe mode, but get this same screen. The only thing different is that I added the zedge update app to do a sync for adding ringtones to my apple cell phone. How can I get a good boot. I am fairly new to apple computer.

    Reset PRAM: http://support.apple.com/kb/PH4405 and then try a normal boot.
    Run the Startup Manager to select Startup disk:  http://support.apple.com/kb/HT1310
    If those did not work your disk may be sick or dying.  The top priority at this point is to make a backup copy of your data.
    Check the health of the disk.  Boot in Recovery Mode (Boot, Command-R).  Run Disk Utility.  Click on the upper left disk icon.  Does the S.M.A.R.T. status say “Verified”?  If not the disk/SSD is unhealthy and needs to be replaced.  Even if it does not show “Verified” you can still attempt a backup. 
    Click on the icon indented below, usually called “Macintosh HD” and Verify Disk.  If it finishes with a green “OK” message then all is well with the disk.  If it shows errors in red then you have found a problem to address once the system is backed up.  Do not attempt software repairs until you have secured the data.
    If the disk will not show up at all in Disk Utility as your ran the tests above then it may be dead or it may have a bad internal SATA cable.  A trip to an Apple store for confirmation would be in order.
    If you have an external disk drive you can use as a backup drive then do so.  If not Google “Hitachi USB 3.0 external hard drive 1TB” to purchase one or go to a brick-and-mortar store (including an Apple store) to pickup one.  Any 1 TB external drive will do.
    Assuming it is still breathing you can try to recover the data without booting from the sick disk. 
    Reformat the external disk.  (This will erase all data on the external disk.)
    Boot in Recovery Mode.  Start Disk Utility.  Plug in the new disk.  Select it’s disk Icon (the second one down, left justified). Select the Partition tab.
    Partition Layout > Single Partition
    Name: Emergency Recovery 1 (or whatever name you wish to use)
    Format: Mac OS Extended (journaled)
    Options… > GUID Partition Table > OK
    Apply
    Select the Restore tab.
    Drag the old system volume (Macintosh HD) to Source.
    Drag the new disk volume (Emergency Recovery 1) to Destination.
    Click on Restore.
    It may take a long time for the backup.
    If that will not complete post back for other emergency data recovery methods, including those from a brody.
    If the backup succeeds, use the First Aid tab in Disk Utility to select the old volume (Macintosh HD) and Repair Disk.  If it does not finish with a green OK message try to repair it once or twice more.  If it repairs with a green OK message, will it boot normally?  If not, boot from the Recovery Partition and reinstall OS X.
    If it is still not healthy, post back for further instructions.

Maybe you are looking for