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

Posting period problem in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,571

I am using BAPI_ACC_DOCUMENT_POST to post documents for AR.It works fine in all the scenarios except when 2 posting periods are open.The previous posting period is open till 1st week of next month.I want to post in the 1st week for the previous posting period.I get the error

period 05 is not allowed.Is there any value i need to pass

to the function module.Please help.The normal fb01 does post to the previous period.

1 ACCEPTED SOLUTION
Read only

abdul_hakim
Active Contributor
0 Likes
1,567

HI Prasad

Welcome to SDN.

As far as i know you cannot post when the period is open.

please check with your FI consultant and tell them that the respective period is open..

Cheers,

Abdul Hakim

mark all useful answers..

5 REPLIES 5
Read only

abdul_hakim
Active Contributor
0 Likes
1,568

HI Prasad

Welcome to SDN.

As far as i know you cannot post when the period is open.

please check with your FI consultant and tell them that the respective period is open..

Cheers,

Abdul Hakim

mark all useful answers..

Read only

Former Member
0 Likes
1,567

Hi,

BAPI will return if period is not open like this.

'perios 04 2006 is not open for posting'.

but your error message is period 05 is not allowed. please check the date that you are passing and check the year that you are passing to it.

If not get period and year using the FM 'FI_PERIOD_DETERMINE' and pass this year and period to it.

Thanks.

Read only

0 Likes
1,567

Right now both periods 05 & 06 are open.When i debugg and see there is a check for posting period.It gets the current period and if it is not equal to current period it gives the message

Read only

0 Likes
1,567

Hi,

Check wether you are passing the year and posting date and period in all the tables where ever required.

Like AR, AP, GL where ever you are trying to post it.

check it throughly...

Thanks.

Read only

0 Likes
1,567

Thanks for ur suggestions