You cannot use FB02 to create attachments because some users have limited access to SAP.
Use FB03 to create attachments.
Recording mode: Batch Mode
Steps to record:
Enter the company code, document number, and fiscal year.
Press Enter twice, and then click Save .
Click the Create Mapping link, click the Edit tab, and click the Add Attachment button.
In this way, you will be able to map the attachment location and later add a path in the data file for the attachment location.