Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

F4_DATE

Former Member
0 Likes
784

Does anyone have an example of how to use F4_DATE? Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
734

I added the F4_DATE to my form, but I was also using the KD_GET_FILENAME_ON_F4 and it was working beautifuly by itself the thing is, now since I added the f4_date when I choose a file from list shown in the window the program gets executed inmediatly like if I pressed F8 just by choosing the file and it doesn't wait for me to enter data into the field that has the date and then press F8.

Why is that?

6 REPLIES 6
Read only

Former Member
0 Likes
734

hi,

Fm F4_DATE..

pass the FACTORY_CALENDAR_ID..

it will return the date selected and week begin and week end as per Factory calender.

the F4 pop up shows hoilday list as per the factory calender..

you can see the factory calender in t-code SCAL

prabhudas

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
734

Hi,

You just need to pass the FACTORY_CALENDAR_ID as the importing parameter.

Use table TFACD and refer the values in field IDENT. Use these values in FACTORY_CALENDAR_ID and you will get a popup for date selection.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
735

I added the F4_DATE to my form, but I was also using the KD_GET_FILENAME_ON_F4 and it was working beautifuly by itself the thing is, now since I added the f4_date when I choose a file from list shown in the window the program gets executed inmediatly like if I pressed F8 just by choosing the file and it doesn't wait for me to enter data into the field that has the date and then press F8.

Why is that?

Read only

0 Likes
734

make sure you are using the correct events....

check in which even your are using the code... and try modifying that event if you can.

Read only

0 Likes
734

Hi, <li>I tried to use F4_DATE. It is used to select particular date.

 REPORT ztest_notepad.
 DATA:model_valid_date LIKE  workflds-gkday,
      h_date           LIKE  workflds-gkday.

 CALL FUNCTION 'F4_DATE'
   EXPORTING
     date_for_first_month = model_valid_date
   IMPORTING
     select_date          = h_date.

 WRITE h_date.
Thanks Venkat.O

Read only

0 Likes
734

Thank you, have a nice day. Regards