2008 Jun 19 5:43 AM
Hi,
I have a field in selection-screen. That field is date field type d. I need to provide F4 help for that. can any one help me in this regard.
Regards,
Pavankumar.
Hi,
I have a field in selection-screen. That field is date field type d. I need to provide F4 help for that. can any one help me in this regard.
Regards,
Pavankumar.
2008 Jun 19 5:47 AM
Hi Pavan,
Use the Function Module " F4_DATE ". It will solve your problem.
&******** Reward Point if helpful***********&
2008 Jun 19 5:48 AM
Hi
Use this Function Module:-
F4_DATE
displays a calendar in a popup window and allows user to choose a date, or it can be displayed read only.
Reward if help.
2008 Jun 19 5:54 AM
Hi,
In select optins use:
SELECT-OPTIONS: w_date For sy-datum.
Then F5 will be automatically availabel. No need to do anything extra.
Regards
Raju Chitale
2008 Jun 19 5:55 AM
Declare the field of TYPE sy-datum instead of TYPE d, F4 help is provided by default.
2008 Jun 19 6:09 AM
Hi,
It can be done in two ways.
1. By declaraing the parameter of type sy-datum this will by default give the F4 help.
PARAMETERS: P_DATE TYPE sy-datum.
Or.
2. By using function module
DATA: DATE1 LIKE WORKFLDS-DAY. "new
CALL FUNCTION 'F4_DATE'
EXPORTING
DATE_FOR_FIRST_MONTH = SY-DATUM
IMPORTING
SELECT_DATE = DATE1
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
FACTORY_CALENDAR_NOT_FOUND = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
PARAMETER_CONFLICT = 7
OTHERS = 8.
IF NOT DATE1 IS INITIAL.
WRITE DATE1 TO Q0002-GBPAS DD/MM/YYYY.
ELSE.
CLEAR Q0002-GBPAS.
ENDIF.This will help you.
Plz reward if useful.
Thanks,
Dhanashri.
Edited by: Dhanashri Pawar on Jun 19, 2008 7:09 AM
2008 Jun 19 6:15 AM
Hi,
try using this
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-008.
PARAMETER : path LIKE sy-datum.
SELECTION-SCREEN END OF BLOCK b1.
reward points if useful
Nitin Sachdeva
2008 Jun 19 6:38 AM
Hi
To provide F4 help for field on selection screen just refer to type sy-datum. like
parameters p_date type sy-datum.
If the field is to select in range give as select options.
SELECT-OPTIONS s_date for sy-datum.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |