‎2022 Jun 16 9:13 AM
I have created a program that attach word documents DOCX in the attachment list of FB03. Then the user open it and make some changes and save it. If the file attached manually the user can edit and save it but if I attach it with the program he gets the following message:

and open this file with new name. As a result of this I cannot save it in attachment list.
In this case the attributes of the file are:

If I manually attach the DOCX file or I upload a .DOC file I can edit them and save them (changes will be stored in files of the attachment list). The attributes are:

As you can see there is a part with TECHNICAL ATTRIBUTES.
I uploaded the files with the following FMs
CALL FUNCTION 'SO_OBJECT_INSERT'
CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
Can someone tell me if there is a way to edit the programmatically attached DOCX file and save the changes to the attached file.
Thanks
Elias
‎2022 Jun 16 11:53 AM
Your logic for attaching is wrong. Maybe extra zero bytes, or shortened, or encoding conversion (shouldn't be done) or whatever...
NB: you'd be lucky to be able to recover the documents attached with the wrong logic.