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

Question on BAPI

Former Member
0 Likes
833

I'm using the BAPI

BAPI_ACC_GL_POSTING_POST to post the doc in f-02 tcode.

When i pass period 3 and docdt,postdt as today dt

its giving error period 3 is not allowed even period is open.

But samething if bapi fails i'm creating bdc its posing records?.

Any idea?.

but if i use the postdt and docdt as 03032006 its working fine in bapi.

Q is why for today dt bapi is throwing error but bdc s working?.

Thanks in advance

Kumar

6 REPLIES 6
Read only

Former Member
0 Likes
790

Hi,

Ya may it is b'coz of the date which you are giving the current date and period is previous say 3.

May be I think it will check the date(PO/Current) with the period which you are passing to it.

And as you said it is posting when you are passing the date of 3rd period dt.

Could you try with this BAPI 'BAPI_ACC_DOCUMENT_POST' this will also serve the same of Acnt Doc post. Check..

Thanks.

Read only

Former Member
0 Likes
790

Hi,

This is because the current posting period is not open yet and you cannot post your accounts in the current period. Looks like the one open is period 3.

Have the functional person open the current period and you will be able post the document.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

0 Likes
790

current period is open.

fyi,even i post thr bdc it posing only in 5 even i mentioned period 3 and docdt post dt as today date.

if i use docdt post dt as 03032006 its posting in period 3.

question is bapi s throwing error so bdc also should throw error is it..

Read only

0 Likes
790

Hi,

Can you tell exactly what error it is giving.

Thanks.

Read only

0 Likes
790

Period 03 is not allowed -error msg in bapi

Read only

0 Likes
790

even this bapid also throwing same err msg BAPI_ACC_DOCUMENT_POST'