Application Development and Automation 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: 
Read only

Default values wont appear in Tcode

Former Member
0 Likes
695

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

4 REPLIES 4
Read only

Former Member
0 Likes
573

its better to give those default values within the abap program. use INITIALIZATION event in your program to supply default values to screens.

Read only

0 Likes
573

thnks for reply ..i used initialization event and also appended .. then too its not appearing.

regards

farukh

Read only

Former Member
0 Likes
573

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.

Read only

Former Member
0 Likes
573

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