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

Regarding posting period

Former Member
0 Likes
875

Hi,

I have company code and postind date from legacy file.

My spec is saying CALL FUNCTION "BAPI_COMPANYCODE_GET_PERIOD" to check if the posting period is open, if the period not open, print error u201CPosting period is not opened.u201D

based on what result of BAPI , i can say posting period is not open.

just by checking RETURN2 is not initial or any specific message need to check?

Because RETURN2 is throwing so many other errors also?

Regards

Ram

Moderator Message: Spec-dumping is not allowed.

Edited by: kishan P on Nov 4, 2010 2:21 PM

Hi,

I have company code and postind date from legacy file.

My spec is saying CALL FUNCTION "BAPI_COMPANYCODE_GET_PERIOD" to check if the posting period is open, if the period not open, print error u201CPosting period is not opened.u201D

based on what result of BAPI , i can say posting period is not open.

just by checking RETURN2 is not initial or any specific message need to check?

Because RETURN2 is throwing so many other errors also?

Regards

Ram

Moderator Message: Spec-dumping is not allowed.

Edited by: kishan P on Nov 4, 2010 2:21 PM

4 REPLIES 4
Read only

Former Member
0 Likes
798

Hi,

this function is not for purpose to tell you if period is open.

Purpose of this function is for Posting date give Period and fiscal year, some company have SAp set up that for example

01/01/2010 is period 6 and fiscal year 2009.

Most company didn' t have this shift and 01/01/2010 is period 01 and year 2010.

Use function:

CKML_F_POSTING_PERIODS_GET

bwkey is fromT001K for your company code BUKRS find BWKEY value

JAHR: put current year

T_period will give you list of open periods(usually two periods open).

Bye Jan

Read only

0 Likes
798

Ok.Thank you

Just i have to validate period is open or not using the posting date and company code.

If not open have to give the error message saying that "period not open"

what is the procedure. i donno much about FICO.

Regards

Ramakrishna L

Moderator Message: If you have no clue what you are supposed to do, then you need to get it clarified from your Functional Consultant. This is not the place for it

Edited by: kishan P on Nov 4, 2010 2:22 PM

Read only

Former Member
0 Likes
798

Hi,

You can check on table T001B for allowed posting periods.

Thanks.

Read only

GauthamV
Active Contributor
0 Likes
798

Use these FM to check if posting period is open or not.

FI_PERIOD_CHECK

FI_PERIOD_DETERMINE.