‎2008 Jun 27 8:02 AM
Hi experts,
I want to put sy-datum + 1 as a default value on selection screen.
I tried this but it didnt work. Please help me.
DATA : tarih like sy-datum.
initialization.
tarih = sy-datum + 1.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
Thanks
‎2008 Jun 27 8:06 AM
Hi,
Do it in INITIALIZATION event.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
INITIALIZATION.
h_tarih = sy-datum + 1.
In this case no need to have one more extra variable. U can directly assign to ur parameter.
In data declaration u can only default hard coded values. But not calculated values. This is because first selection screen will be triggered and later ur calculations. So at the time of selection screen is triggered ur variable dont have any value. Thats why it was not working. Change ur code to like above. It will work fine.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Jun 27, 2008 12:37 PM
‎2008 Jun 27 8:06 AM
Hi,
Do it in INITIALIZATION event.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
INITIALIZATION.
h_tarih = sy-datum + 1.
In this case no need to have one more extra variable. U can directly assign to ur parameter.
In data declaration u can only default hard coded values. But not calculated values. This is because first selection screen will be triggered and later ur calculations. So at the time of selection screen is triggered ur variable dont have any value. Thats why it was not working. Change ur code to like above. It will work fine.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Jun 27, 2008 12:37 PM
‎2008 Jun 27 8:06 AM
Hi,
Check the below codee....
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory .
SELECTION-SCREEN END OF BLOCK 3.
initialization.
h_tarih = sy-datum + 1.
Rgds,
Bujji
‎2008 Jun 27 8:07 AM
DATA : tarih like sy-datum.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
at selection-screen output .
tarih = sy-datum + 1.
Try this...
Reward if useful...
Thanks,
Durai.V
‎2008 Jun 27 8:08 AM
Hi,
Go to the variants.
If it is ECC6.0, select the date field.
F4 on selection variable -> select dynamic date calculation
F4 on Name of variable -> select from option availalbe and enter the no. of days.
Execute the prg with the variant.
Regards,
Subramanian
Edited by: Subramanian PL on Jun 27, 2008 12:09 AM
‎2016 Mar 01 4:46 AM
sometime we shouldn't forget about 'append'
e.g.
INITIALIZATION.
PNPBUKRS-SIGN = 'I'.
PNPBUKRS-OPTION = 'EQ'.
PNPBUKRS-LOW = 'ABCD'.
append PNPBUKRS to PNPBUKRS.
‎2016 Mar 01 5:47 AM