‎2009 Feb 03 6:10 AM
HI i am creating a screen in which i have a date field type dats vis len 10.now if i press f4 i need to get a calendar and selecting the date i need that date to be in the field.now i am able to get the calender by writing in pov but on selecting the date it is on reflecting in the screen field.below is my code.please help me with some code.
CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'
EXPORTING
help_infos = HELP_INFO
IMPORTING
SELECTION = SELECTION
SELECT_VALUE = FIELD_VAL
RSMDY_RET = RSMDY_RET
tables
dynpselect = DYNPSELECT
dynpvaluetab = DYNPVALUETAB
.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
Regards
‎2009 Feb 03 6:12 AM
Hi,
Why cant you use system field ?
select-options : date for sy-datum.
‎2009 Feb 03 6:14 AM
Hi,
PARAMETERS: date LIKE sy-datum.Is above not working ?
Kind Regards,
Faisal
‎2009 Feb 03 6:15 AM
is it a module pool or what screen you are working on ?
in case of a Mp screen you can opt the below .
use dyn_value_update to populate the screen field for that date .
check if this date field is present in DYNPVALUETAB .
‎2009 Feb 03 6:15 AM
Hi Kiran,
If you declare your Select Option of Sy-datum type you dont require to add a Search help.
The search help is automatically attached.
Regards,
Amit.
‎2009 Feb 03 6:18 AM
solved by self.
i concatenated the result value into dynpro field
‎2009 Feb 03 6:18 AM
‎2009 Feb 03 6:19 AM
Hi,
U can use system field and achieve this.
Parameter: date type sy-datum.
this is enough..
Thanks.
‎2009 Feb 03 6:21 AM
Hi
copy FIELD_VAL to screen field( parameters or select-options)
Regards,
Janakiram.