7 Replies Latest reply: Feb 27, 2012 6:48 PM by Aswatha Narayana SA RSS

display mode in tabstrip screen

Rajee C
Currently Being Moderated

Hi Guru's,

 

I m new to ABAP. In SE80, I created screen with two tabs using tabstrip (one to fetch one DB records & another to fetch another DB records). I want the screen to be in display mode except mandatory field in both tabs.

 

My coding in PBO is,

CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '8010', SUB2 INCLUDING SY-REPID '8011'.

MODULE MODIFYSCREEN.

 

In this module, I wrote,

Loop at screen.

If screen-name = 'sub1' and screen-group1 = '111'

screen-input = 0.

modify screen.

endif.

elseif screen-name = 'sub2' and screen-group1 = '222'.

screen-input=0.

modify screen.

Endloop.

 

But it did not work and screen fields are not display mode. Please suggest me.

  • Re: DISPLAY MODE IN TABSTRIP SCREEN
    Aswatha Narayana SA
    Currently Being Moderated

    Hi,

     

    What you want is your screen fields to be in display mode right? But what you are doing is you are trying to make the subscreen itself to be in display mode. Instead you make use of screen field names only to make it non editable.

    Loop at screen.
    If screen-name = 'fieldname' and screen-group1 = '111'
    screen-input = 0.
    modify screen.
    endif.
    elseif screen-name = 'fieldname' and screen-group1 = '222'.
    screen-input=0.
    modify screen.
    Endloop
    
    *Note: fieldname is the name of the screen field that you assigned in layout.

     

    Hope this helps.

     

    Please revert in case it didn't help.

     

    Thanks and regards.

    Aswath

    • Re: DISPLAY MODE IN TABSTRIP SCREEN
      Rajee C
      Currently Being Moderated

      Hi,

       

      Thank you for the reply. I tried it; but it did not work. The screen fields are still in editable mode, not in display mode. What problem is in it?

       

      Some said the problem might be in GUI status. I even set up and called the GUI status and it works correctly. But the problem in setting up the screen fields in display mode still persists. Any help ?

       

      Thanks

      Rajee

       

      Edited by: rajeec on Feb 23, 2012 5:27 AM

Actions