Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

change/display dialog program

Former Member
0 Kudos

Hello all,

I am using dialog program to display the records on the screen. On screen layout i declared all fields as output fields only. Now I want to add a button (change/display) on to screen so that when ever i press the button the screen has to change from display to change mode(just like the normal display/change button in se38) and vice versa so that i can edit the fields and save it again.

I would like to know if there exists any function module to do so or can some one please help me with a code.

Thanks to all in advance.

5 REPLIES 5

Former Member
0 Kudos

Hi,

at pbo, you need to

loop at screen.

  • and set the input flag

screen-input = 'X'. "or may be 1.

endloop.

That's all!

regards

Siggi

0 Kudos

http://saphelp47x200/helpdata/EN/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm

More here .

Njoy Coding.

Manohar

Message was edited by: Mano Sri

Former Member

Hi Madhu,

Define your fields as input/output fields. In the PBO, you can either turn them on or off by applying the logic below.


LOOP AT SCREEN.
  IF SCREEN-NAME   = 'ABC' OR
    SCREEN-GROUP1 = 'TEST'.
    SCREEN-INPUT = 1. " Make it editable field
    MODIFY SCREEN.
  ENDIF.
ENDLOOP.

If you do SCREEN-ACTIVE = 1 or 0, you are actually showing or hiding the field itself, but if you do SCREEN-INPUT = 1 or 0, you are just making the field editable or display only.

Srinivas

0 Kudos

Hi ,

As said you can use loop at screen in PBO to decide the way the fields need to be.

Or u can create two subscreens with similar fields .

One screen has all fields enabled and other has fields disabled . As the user presses the toggle button you can call subsreens accordingly

0 Kudos

Thank you allvery much.