09-09-2021 7:44 AM
problem.pngHello,
I have a program in which we upload a file in a document number. Once we process this document, there is a new posted document number.
When I want to see the attached document in FB03 in attachment file. The document is opened in html which this format.
The program was working fine but after a patching it is showing those junk characters. I think it is due to any SAP note that I should implement. Any ideas?
Thanks a lot
09-09-2021 8:00 AM
09-09-2021 8:10 AM
Hello,
I think it is a standard issue. I am checking the custom programs and they mainly go to database tables. The programs were working perfectly in the past. So I think it is more related to an SAP note.
09-09-2021 8:13 AM
09-09-2021 10:20 AM
Why is it "opened in html"??? If the file has a PDF extension, it should first be displayed in your PDF viewer. What about other documents created before the error occurred?
My 2 cents: such a big horrible issue is not due to a SAP note, but to erroneous coding and to special case occurring.
09-09-2021 10:50 AM
I attach the document in fb02, then I execute a custom program that will add the info in an IDOC. The program posts a new document and when I enter in this new document, there are 3 documents, 2 of them are fine but the attached one has this strange junk characters.
Before the patching, the program was working perfectly. After this patch, it is working very bad.
09-09-2021 12:39 PM
Are the old correct PDF "opened in html" or in another application?
09-10-2021 12:21 PM
Hello,
The program contains an outbound idoc which is containing in one segment the attached file. Then the inbound idoc is having a path but I do not see the attached file. In FB02 when you add an attachment to a document number and you click on it, it is opening an html with the file. The same when I go with the new posted document but when I open the file it is getting the junk characters.
I do not know if I should create a segment in the inbound idoc which will contain the data.
09-10-2021 12:30 PM
OK. It's all custom IDoc solution there, no idea what is this path, what is this segment made of. I'm blind, please guide me (and any people viewing the question).
09-10-2021 2:52 PM
Can you paste the first displayed characters of your pdf (does it start with '%PDF')
09-12-2021 6:24 AM
Hi Raymond,
yes it starts with %PDF
%PDF-1.7 %âãÏÓ 7 0 obj <>stream
09-12-2021 7:21 AM
Could you reproduce the case with a dummy PDF file with no private information, and attach here both this PDF file and copy/paste the junk characters please. Thank you.
By the way, in your title, you are talking about "conversion", don't you mean "display" or do you really mean there is a kind of conversion somewhere, what is it then? (I don't call transferring, whatever the means, attaching and displaying the PDF a "conversion")
09-13-2021 8:34 AM
Hello Sandra,
It happens when I attach any PDF document. It is not that I was uploading an important document. Anyway I am thinking it is probably related to Archivelink. The outbound IDOC is sending the document with name and type of document, i.e. PDF. However, the inbound IDOC is via link. I am checking one user exit ZXEDFF14.
The name of the tittle, well at the beginning I called it conversion because I see those junk characters.
I am going to check today if it is something of archiving and not ABAP.
09-13-2021 10:38 AM
Thanks. By the way, in case it's due to the type in ArchiveLink, then maybe you see %PDF-1.7 etc. in your browser because the HTTP request header was not sent "Content-Type: application/pdf" (that you can see via Developer Tools/F12), probably it's more something like "Content-Type: text/plain".
NB: about what I previously asked, you can try with a tiny PDF like this one: https://www.tagg.org/pdftest.pdf