2010 Nov 04 5:03 AM
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
2010 Nov 04 7:22 AM
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
2010 Nov 04 8:44 AM
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
2010 Nov 04 8:14 AM
Hi,
You can check on table T001B for allowed posting periods.
Thanks.
2010 Nov 04 8:28 AM
Use these FM to check if posting period is open or not.
FI_PERIOD_CHECK
FI_PERIOD_DETERMINE.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |