04-29-2008 1:04 PM
hi gurus
can anyone suggest me
how to set default values in dialog programming
thanks®ards
kals.
04-29-2008 1:10 PM
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.
04-29-2008 1:19 PM
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
04-29-2008 1:46 PM
you can do it in top include.
or u can do it in screen panter.
mukesh
04-29-2008 2:06 PM
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
04-29-2008 2:18 PM
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