Application Development 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: 

GOS Upload

former_member205144
Active Participant
0 Kudos

Hi,

   I am trying to upload files from my Web portal to Masters like Customer,Vendor etc.I am using SO_OBJECT_INSERT for this.The attachment is happening,but only for a few file types.For files like txt,pptx,docx,xlsx it is uploading corrupt file.Can anyone help me sort out this.

Regards

Lavanya

1 ACCEPTED SOLUTION

former_member205144
Active Participant
0 Kudos

Got the solution...

We need to use the class CL_FITV_GOS,Save method.But this class won't be available if Travel Management Module is not there.SO,here is the link which has the source code of that method.

http://scn.sap.com/thread/1345017

Related links :

http://scn.sap.com/docs/DOC-26795

https://scn.sap.com/thread/2114696

4 REPLIES 4

matt
Active Contributor
0 Kudos

I had something similar. Using abap2xlsx, I created an Excel file and sent it to SAPOffice, which is then reflected in the portal in the UWL. When I tried to open the excel, I got a message as attached.

Clicking through the message the excel opened fine. A search on OSS showed that this is fixed in a portal support package.

0 Kudos

See...In FM SO_OBJECT_INSERT,the parameter object_hd_change has a parameter FILE_EXT,which is of length char 3.So,how can we use files like docx,xlsx ?

0 Kudos

txt file is not getting correct data.What can be the reason?

former_member205144
Active Participant
0 Kudos

Got the solution...

We need to use the class CL_FITV_GOS,Save method.But this class won't be available if Travel Management Module is not there.SO,here is the link which has the source code of that method.

http://scn.sap.com/thread/1345017

Related links :

http://scn.sap.com/docs/DOC-26795

https://scn.sap.com/thread/2114696