Skip to Content
-1

I am not able to open a file .xlsx in GOS attachment

Hi All,

I am calling a transaction MIRO or FB60 through custom program to create the invoice document, once the invoice document gets created then I attached a file to the document which is stored in DMS server. In DMS I am able to open the file correctly but when I open the same file in invoice document (MIRO, FB60) , it opens in corrupted format. While other formats like .doc, .pdf, .jpg are getting open correctly. Your valuable inputs are very much appriicated.

Add comment
10|10000 characters needed characters exceeded

  • It's showing the XLSX file as if it was simple text (we can see "PK" at the beginning which usually indicates it's a ZIP file, an XLSX being a ZIP file with a specific hierarchy of files)

    Please download the file on your desktop and open it. Does it open correctly?

    Did you indicate &SO_FILENAME=filename.xlsx in the header while attaching it? (cf note 1582868 - GOS: Support for four-character file name extensions)

  • Hi Sandra,

    I have downloaded it on desktop and checked but it is giving the same issue.

    I have used the FM SO_OBJECT_INSERT to attach the file, where I am passing a parameter as a file name ( filename.xlsx ).

  • According to me (according to the note 1582868), you must pass the parameters OBJECT_TYPE = 'EXT' and OBJHEAD = VALUE soli_tab( ( LINE = '&SO_FILENAME=filename.xlsx' ) ) (use a valid ABAP syntax of course)

  • Get RSS Feed

1 Answer

  • Mar 06 at 08:12 AM

    Hi

    It looks like the mime type for XLSX is incorrect or missing

    please check Tx OAD2 or DC30

    regards

    Domi

    Add comment
    10|10000 characters needed characters exceeded