‎2008 Sep 01 12:19 PM
Hi Friends,
I am using BAPI_ACC_DOCUMENT_POST in my report program. One of the parameter which i am passing to the bapi is fiscal year.
i have tried fiscal year from 1995 to 2009, for all this fiscalyear i am getting error as "Fiscal year XXXX is not allowed ".
XXXX- any valid fiscal year
Can anybody tell me why this error is generated.
‎2008 Sep 01 12:26 PM
what posting date did you enter? if the fiscal year of the company code is equal to the calendar year, than the fiscal year has to be the same, as the year in the posting date. Could you please check?
‎2008 Sep 01 12:29 PM
Check in the transaction ob29 fiscal year 1995 to 2009 maintained or not. If any one year not maintained or not.
I think fiscal year means u should give 2007-2008 or 2008-2009.
Thanks
‎2008 Sep 01 12:33 PM
Hi Balu,
I have used this FM and this error comes mostly in the cases where there are possiblities that some of the posting periods are blocked by the funcitonal people for business reason. So the possible solution is you can discuss with you functional consultant on this to check if the posting periods are blocked for the particular range you specified.
Regards,
Shobana.K
‎2008 Sep 01 12:35 PM
Hi Balu,
To Open Posting Periods you can check with transaction OB52.
Thanks
Sudharshan
‎2008 Sep 01 12:37 PM
Hi,
actually Functional people have given me a test data,
in that test data the value for fiscal year is 2005. The bapi is accepting this fiscal year when i tried executing it in SE37 transaction. But when 2005 is passed to the bapi thru my program then the already metioned error is getting generated.
‎2008 Sep 01 1:05 PM
HI balu, first find the fiscal year for the given period by using fm DATE_TO_PERIOD_CONVERT
then give the same fiscal year to your fm BAPI_ACC_DOCUMENT_POST as input and try
Suku
‎2008 Sep 01 1:30 PM
‎2008 Sep 05 11:26 AM