Populate value in selection screen after entering sel screen values
any one pls tell me how to populate the date field value
after entering sel screen values like period.
if user enter period values based on that i have to calculate start date and back to display the value in same selection screen before continuing pgm.
Try something like:
PARAMETERS: s_yr LIKE t009b-bdatj OBLIGATORY, s_per LIKE t009b-poper OBLIGATORY, s_dat LIKE sy-datum. AT SELECTION-SCREEN OUTPUT. IF NOT s_per IS INITIAL AND NOT s_yr IS INITIAL. CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = s_yr * I_MONMIT = 00 i_periv = 'UT' i_poper = s_per IMPORTING e_date = s_dat EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4. ENDIF.
I changed the year to s_yr rather than a hardcoded value.
Message was edited by: Rob Burbank