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

GOS Upload

Former Member
0 Likes
2,628

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

Former Member
0 Likes
1,781

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

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

4 REPLIES 4
Read only

matt
Active Contributor
0 Likes
1,781

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.

Read only

Former Member
0 Likes
1,781

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 ?

Read only

Former Member
0 Likes
1,781

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

Read only

Former Member
0 Likes
1,782

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