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: 

Changing the posting date automatically for SAP documents

Former Member
0 Kudos

Hi Experts,

I have a requirement of automatically changing the "Posting Date" to Current date of an Invoice and Credit Memo just before it is posted.

I am aware of a configuration where we can default the Posting date to be System's Current date but that will be applicable to all types of documents.

Could anyone suggest me the best way to do it. Like where should I put my code to update the posting date?

Thanks,

Arash

1 REPLY 1

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Check the copy rules (tcode VTFA, VTFL) and check the VOFM subroutines in field VBRK/VBRP for items. Check if there are VOFM in the customer name range. See Note 327220 - VOFM function and its objects for further information.

I hope this helps you

Regards

Eduardo