05-04-2006 3:43 PM
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
05-04-2006 4:06 PM
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.
05-04-2006 4:44 PM
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
05-04-2006 4:55 PM
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..
05-04-2006 5:03 PM
05-04-2006 5:05 PM
05-04-2006 5:09 PM
even this bapid also throwing same err msg BAPI_ACC_DOCUMENT_POST'