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

Function module

Former Member
0 Likes
942

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 ?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
879

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

8 REPLIES 8
Read only

Former Member
0 Likes
879

Hi

U check standard FM module Avialble .....go to se37 and search..............

Ragards:

Prabu

Read only

Former Member
0 Likes
879

Hi,

check out this link-

Regards

Lekha

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
879

Qn Not clear

Read only

RaymondGiuseppi
Active Contributor
0 Likes
880

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

Read only

Former Member
0 Likes
879

Hi,

Use the below function modules for your requirment.

FIRST_DAY_IN_PERIOD_GET

LAST_DAY_IN_PERIOD_GET

Thanks,

Khushboo.

Read only

Former Member
0 Likes
879

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,

Read only

Former Member
0 Likes
879

hii

try using FM

G_POSTING_DATE_OF_PERIOD_GET
PA03_PERIODDATES_GET
FIRST_DAY_IN_PERIOD_GET
LAST_DAY_IN_PERIOD_GET

regards

twinkal

Read only

Former Member
0 Likes
879

Hi saranya,

Use the FM;-

G_POSTING_DATE_OF_PERIOD_GET

Best of luck,

Bhumika