on 2005 Aug 04 8:39 AM
I am a rookie in SAP i have a small problem with date.Do we have any function module to find out the first day in a month if we give out the system current date ?? Pls help me out.
Easiest way is
wrk_date = sy-datum
wrk_date+6(2) = '01'.
pass wrk_date to FM DATE_TO_DAY..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this:
data: wa_day(9) type c,
wa_date type sy-datum.
wa_date = sy-datum.
wa_date+6(2) = '01'.
call function 'DATE_TO_DAY'
exporting
date = wa_date
IMPORTING
WEEKDAY = wa_day
.
write: / 'First day of this month is', wa_day, wa_date.
Regards,
Ville
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
remember one thing with date you can do manipulation like -n or +n
n = 1,2,3........
it will delete n days or add n days.
hope the tip help. FM i can't say, but go to se37 type date and press F4, if any FM is there , system will show
regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
most easiest way...
concatenate sy-datum(4) '01' into date1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.