‎2008 May 02 7:39 AM
hi all,
i have a seletion screen in my report with two different blocks
begin of block b1.
select-options: s_date like sy-datum.
end of block b1.
and the date is in the format like 200801
and i have another block
begin of block b2.
parameters : p_date as checkbox default no.
select-options: o_print like pbed-perxx.
end of block b2.
and the requirement is like when i enter the date in s_date in 200801 format then the last two values should be automatically
filled in o_print.
like as follows
s_date 200801 to 200812
o_print 01 to 12please help me in this regard i have tried with at selection-screen output but its not relevent.
thanks in advance.
anupama
‎2008 May 02 9:15 AM
Hi Anupama,
You can try the code given below and check whether your requirement is satisfied. The field will be populated when executed.
TABLES:pbed.
SELECTION-SCREEN BEGIN OF BLOCK b1.
SELECT-OPTIONS:s_date FOR sy-datum.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2.
PARAMETERS : p_date AS CHECKBOX."DEFAULT no.
SELECT-OPTIONS: o_print FOR pbed-perxx.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT s_date.
o_print-low = s_date-low+6(2).
o_print-high = s_date-high+6(2).
APPEND o_print TO o_print[].
CLEAR o_print.
ENDLOOP.
Regards,
Sujith