Change Freight costs document 's settlment date and pricing date
Plz advice me on following.
Freight costs document is created after transportation closing in transaction VI01.
I could find that VFKP-budat is the settlement date of a document. My first requirement is, the settlement date of this document should be saved to sy-datum when it's created/changed. And the second requirement is, pricing date should be equal Planning date from Shipment document. This can be found in vt02n tcode. The pricing date field is vfkp-prsdt. This should be updated with vttk-DTDIS which is planning date.
Can anyone help me by suggesting some bapi or something to update these two fields.
When we communicated to SAP, they suggested to use the exit- EXIT_SAPLV54U_004 enhancement.
Thanks in advance.