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: 

How to make Billing Document FKDAT same as ERDAT while performing Post Goods Receipt through VL02N

0 Kudos
451

Hi Team

Trying to solve a Challenge

Not able to how to get it.

we have a sales order with 1 line item which is created on date( 27.12.2022).

we are returning this by creating return SO because of some reason (like excess qty, etc) though VA01. Return delivery is created on (28.12.2022).

We go to VL02N and perform Post Goods Receipt on(29.12.2022). A new Invoice will be created with date(29.12.2022).

but the problem is in invoice erdat is creating based on SY-datum. but FKDAT(Billing Date) is filling based on its return delivery which is 28.12.2022.

now the requirement is FKDAT also need to be filled same as ERDAT.

The change needs to be done when VL2O1 creates invoice after POST GOODS RECEIPT.

1 REPLY 1

Maciej_Domagała
Contributor
0 Kudos
380

You should be able to set this using standard customizing of "copying control": copying from delivery to invoice (tcode VTFL). For "billing type / delivery type" affected set data transfer routine (at item level) to 11 ("Bill. date= Today").

Setting this customizing may be too late for your documents already created (will affect future documents) - in this case for an existing delivery you can fill FKDAT manually in VF01 while creating an invoice.

regards