Application Development 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: 

Override standard rule for posting dates of invoices

former_member436332
Participant
0 Kudos

Hello Experts,

As per standard rule, If a parked document is in previous period and the period is open then while posting it takes the date as posting date of the parked document and not the current date.

We are passing the current date in the posting date field but still this is happening. FM used to post invoices is "PRELIMINARY_POSTING_POST_ALL"

Please provide some inputs to override the standard rule and put the posting date as current date every time.

Thanks in advance,

Veena

4 REPLIES 4

ashok_mohan
Participant
0 Kudos

Check the FM BAPI_ACC_DOCUMENT_POST.

0 Kudos

Hi Ashok,

Posting date is getting changed to current date using BDC on FBV4. But when the parked document is in previous period and if the previous period is open, then posting date automatically changes to the date in previous period. It is overwriting the current date that we pass based on standard rule. Please let me know if we can bypass this rule.

Thanks & Regards,

Veena

0 Kudos

Hi Veena,

There is a BTE to bypass the standard rules when using the BAPI BAPI_ACC_DOCUMENT_POST. For eg, to change the posting key. Check the below link. Use this for changing the date.

BTE BAPI_ACC_DOCUMENT_POST

0 Kudos

We had tried this BAPI and it was not working as expected. That's why we are using BDC on FBV4 to change posting date and then FM "PRELIMINARY_POSTING_POST_ALL" to post. I tried with BTEs 00001020, 00001025, and 00001030. Whatever value we pass in these BTEs are getting overwritten outside BTEs (In FM OPEN_PERFORM of these BTEs) with the original values. 😞