‎2008 Aug 29 6:47 AM
How to get the first date and the last date of the field budat (posting date) and bzdat(asset value date) based on the posting period or settlement period given in the selection screen.Both posting period and settlement period will be the same.Please tell some function module ?
‎2008 Aug 29 6:58 AM
Use FM
- [FIRST_DAY_IN_PERIOD_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=first_day_in_period_get&cat=sdn_all]
- [LAST_DAY_IN_PERIOD_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=last_day_in_period_get&adv=false&sortby=cm_rnd_rankvalue]
- [GET_ACCOUNT_OF_PERIODS|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=get_account_of_periods&adv=false&sortby=cm_rnd_rankvalue]
- [DATE_TO_PERIOD_CONVERT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=date_to_period_convert&adv=false&sortby=cm_rnd_rankvalue]
Parameters like MONMIT or PERIV come from T001 Company Codes and T093C Company codes in Asset Accounting
Regards
‎2008 Aug 29 6:53 AM
Hi
U check standard FM module Avialble .....go to se37 and search..............
Ragards:
Prabu
‎2008 Aug 29 6:53 AM
‎2008 Aug 29 6:55 AM
‎2008 Aug 29 6:58 AM
Use FM
- [FIRST_DAY_IN_PERIOD_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=first_day_in_period_get&cat=sdn_all]
- [LAST_DAY_IN_PERIOD_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=last_day_in_period_get&adv=false&sortby=cm_rnd_rankvalue]
- [GET_ACCOUNT_OF_PERIODS|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=get_account_of_periods&adv=false&sortby=cm_rnd_rankvalue]
- [DATE_TO_PERIOD_CONVERT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=date_to_period_convert&adv=false&sortby=cm_rnd_rankvalue]
Parameters like MONMIT or PERIV come from T001 Company Codes and T093C Company codes in Asset Accounting
Regards
‎2008 Aug 29 6:59 AM
Hi,
Use the below function modules for your requirment.
FIRST_DAY_IN_PERIOD_GET
LAST_DAY_IN_PERIOD_GET
Thanks,
Khushboo.
‎2008 Aug 29 6:59 AM
hi,
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
I_GJAHR = p_year
I_MONMIT = 00
I_PERIV = 'K4'
I_POPER = v_period
IMPORTING
E_DATE = date_low
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WI
use this F N
it will hep u.
thanks,
‎2008 Aug 29 7:01 AM
hii
try using FM
G_POSTING_DATE_OF_PERIOD_GET
PA03_PERIODDATES_GET
FIRST_DAY_IN_PERIOD_GET
LAST_DAY_IN_PERIOD_GETregards
twinkal
‎2008 Aug 29 7:13 AM
Hi saranya,
Use the FM;-
G_POSTING_DATE_OF_PERIOD_GET
Best of luck,
Bhumika