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: 

how to set default values in dialog programming

Former Member
0 Kudos

hi gurus

can anyone suggest me

how to set default values in dialog programming

thanks&regards

kals.

5 REPLIES 5

Sm1tje
Active Contributor
0 Kudos

use the set parameter ID or just fill the field(s) with default values directly. There is nothing special to it, just enter value (based on some conditions if necessacarry) for screen field in PBO.

Former Member
0 Kudos

Wt ever u maintained in PBO will dispalyed automatically,

no need to maintain in the screen.

u can directly call in the PBO by using select statement.

or u can declare hard code values direcly.

with Regards,

Kiran.G

Former Member
0 Kudos

you can do it in top include.

or u can do it in screen panter.

mukesh

0 Kudos

it's a bit dirty but I usually just place it in the PBO with a flag for control. It's simple and not too costly i think.

MODULE preRender OUTPUT.

  DATA first_time TYPE flag VALUE 'X'.
  IF first_time EQ 'X'.
*   put your initialization code here
    CLEAR first_time.
  ENDIF.

ENDMODULE.

-MiR

Former Member
0 Kudos

hi kalyan

when ur defininfg the same data field which r being created at the time of screen creation use default statement while declaring and give the value thatu want ok it will work.

thank u .

snehi chouhan