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

BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,068

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.

8 REPLIES 8
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,244

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?

Read only

Former Member
0 Likes
1,244

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

Read only

Former Member
0 Likes
1,244

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

Read only

0 Likes
1,244

Hi Balu,

To Open Posting Periods you can check with transaction OB52.

Thanks

Sudharshan

Read only

0 Likes
1,244

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.

Read only

0 Likes
1,244

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

Read only

0 Likes
1,244

thnks for ur suggestions, hope ur suggestions works.

Read only

Former Member
0 Likes
1,244

thnks