on 07-03-2007 8:42 AM
Hi,
I am modifying the payslip.
Here in input screen we r using plant option.
my problem is if the person shifts from one plant to another plant then the payslip of that person must be latest plant payslip.
but if the end user takes payslip of the persons according to plant wise then that particular persons payslip is comming in both the plants.
I am using the following FM.
CALL FUNCTION 'LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = W_BEGDA
IMPORTING
LAST_DAY_OF_MONTH = W_ENDDA.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
is there any function module like a person joining the middle of the month
for example:
he joins on 15 th of the month and it has to calculate the last day ofthe month.
Hi
Eg:
parameters: s_date type sy-datum,
e_date type sy-datum.
s_date = sy-datum.
call function 'RP_LAST_DAY_OF_MONTHS'
exporting
day_in = s_date
importing
last_day_of_month = e_date.
write : e_date.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The FM which you has written will give you the last date of month. Then what is the issue?
Regards,
Atish
Message was edited by:
Atish Sarda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.