To post a document with reference in SAP FI, use the T-code FB50. Click the Goto tab and Post with reference, as shown in the following screenshot.
Enter the following details −
After providing the necessary details, click the Save button at the top to post a new document.