‎2006 Jul 10 8:03 AM
hi friends .. a small problem .
in a program i had given default values in select-option ..from to .
and had assigned tcode for it.
when i run through se38..the default values appear in selection screen but when i run tcode , default values wont come ..
can any body explain .
regards
farukh
‎2006 Jul 10 8:06 AM
its better to give those default values within the abap program. use INITIALIZATION event in your program to supply default values to screens.
‎2006 Jul 10 8:13 AM
thnks for reply ..i used initialization event and also appended .. then too its not appearing.
regards
farukh
‎2006 Jul 10 8:19 AM
oh thats easy...
while creating TCode you must have chosen option 'Program and Screen' instead of 'Program and Selection Screen'. Delete your tcode now and create a new one, when you click on create you will get a pop up where you can choose 'Program and Selection Screen' and then you will get all the default values.
‎2006 Jul 10 8:24 AM
Hi Farukh,
REPORT ZTEST.
DATA SBOOK_WA TYPE SBOOK.
SELECT-OPTIONS FL_DATE FOR SBOOK_WA-FLDATE.
INITIALIZATION.
MOVE: 'BT' TO FL_DATE-OPTION,
'19960101' TO FL_DATE-LOW,
'19960630' TO FL_DATE-HIGH.
APPEND FL_DATE.
This code is working for me in both the cases from the report itsef in SE38 and i created one transaction in SE93 for this report there also i am getting the default values at the selection screen