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: 
Read only

Problem with editing attached DOCX

ekekakos
Participant
0 Likes
992

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

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
947

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.