11-12-2009 7:15 AM
Can I specify default values in screen.
for example for date I want to use default value sy-datum.
I dont want to write the code in screen flow logic.
screenfield-name = sy-datum.
Is there any other way for specify default value in screen?
11-12-2009 7:21 AM
I think the only way is to assign the default values in the PBO only.
But for transactions, by creating the TRANSACTION VARIANTS you can given the default values and it is also possible to make it NON-EDITABLE or INVISIBLE as well.
11-12-2009 7:25 AM
Hi Santosh,
Can you just brief me about the transaction variants and how do I use in the screen
11-12-2009 7:24 AM
Hi,
If you want to display as default values you can write the code in PBO only.
Regrds,
Nikhil.
11-12-2009 7:30 AM
Hi Shah,
S we can do it.
In screen layout, -> Goto -> Secondary Window -> Dictionary/Program Fields -> Enter 'SYST' in Table name
-> Select DATUM field and place it in ur layout. If u want, u can change the text label for date also.
Save & activate.
It will contain today's date as default value.
Thanks,
Edited by: Sap Fan on Nov 12, 2009 8:31 AM
11-12-2009 7:37 AM
Yap I took the field in syst structure.
But this is only for date for about other fields.
04-28-2010 7:04 AM
Hi,
Check the Screen field whether initial or not. if initial set the default vale in PBO.
In PBO Event
IF <Screen Field> IS INITIAL.
<Screen Field> = Default Value.
ENDIF.
Regards,
Rajesh S