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

Previous dated document posting in current posting period

Former Member
0 Likes
814

Dear Gurus,

Hope you all are fine and in good health. I have made one proxy program which is actually posting the FI documents. There is new requirement that if posting do not occur due to old dated document, it should post it on current open period. For example, current open period is 7 and if i get a document of last year of which period has been closed, it should post it in current period which is open. Can anyone tell how can i do this?

Thanks

1 ACCEPTED SOLUTION
Read only

PeterJonker
Active Contributor
0 Likes
746

Change the bookdate in your program to a date for which the booking period is open. Maybe you need to add some info in a description field so it is clear the date has been changed.

4 REPLIES 4
Read only

PeterJonker
Active Contributor
0 Likes
747

Change the bookdate in your program to a date for which the booking period is open. Maybe you need to add some info in a description field so it is clear the date has been changed.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
746

Your program should analyze T001B (*) and adjust BUDAT/BUPER/GJHAR before generating the document.

Regards,

Raymond

(*) also KAPS for CO and some tables for Assets...

Read only

Former Member
0 Likes
746

Thanks for your reply guys. Can you please tell me any FM which can give current fiscal year and current opened fiscal period?? i need that for this task.

Thanks

Read only

0 Likes
746

Hi Imarn,

Pass the current date to FM BAPI_COMPANYCODE_GET_PERIOD to get the period.

View the link for checking the period  open or not.

Hope it helpful,

Regards,

Venkat.