Skip to Content

Changing filename of attachment using GOS

Hi Gurus ,

I am in the middle of the technical issue related to the GOS_EXECUTE_SERVICE function module.

Everything is working fine but when i am attaching a file from my pc, it's taking the filename as it is. it sounds good. 😊

But here comes the problem, i have a requirement of adding the filename starting with a common name.

Suppose i have attached a file and it's name is abc.pdf but i want to display it as zbp_abc.pdf.

Thanks and Regards.

Dhananjay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    Posted on Apr 22, 2014 at 11:26 AM
    -1

    at lastly found the answer.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dhanajay,

      Above mentioned solution was very helpful for me.

      But My requirement is how to put validation while deleting attachment.

      Validation:User ID through which attachment got created should allowed to Delete attchment.

      I am not getting right place to put validation.

      Regards,

      Pai

  • Posted on Mar 11, 2014 at 10:26 AM

    Hey, is there anyone who can help me?πŸ˜”

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 13, 2014 at 04:55 AM

    Hey anyone.. πŸ˜” Just tell me something. πŸ˜•

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 13, 2014 at 12:11 PM

    Hi Dhananjay,

    Go through this my document link below for ref purpose , here defined the process of attaching file using GOS and while attaching file it gives an option to give name of file as per your requirement. It's enables a tool for attachment which is much like in VF03 or other standard tcodes.

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

    Many Thanks / Himanshu Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 19, 2014 at 08:52 AM

    even now i have not the answers.

    Please tell me if you have.. πŸ€ͺ 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 20, 2014 at 11:43 AM

    Hi,

    At lastly i debugged deeply 'cl_gos_srv_attachment_create' class with 'execute' method and i found that i can change it at the 'SO_OBJECT_INSERT' . But this is the standard class and standard function module, so how i can add my piece of code for my requirement???.

    Any ideas?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 27, 2014 at 08:54 AM

    Hey any exrta suggestions?? πŸ˜•

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 30, 2014 at 11:00 AM

    Hi Dhananjay,

    there will be a standard solution for this from Basis 7.30. Please have a look on KBA 1895197. But this is a manual solution to change the filename after it was attached.

    (Please not, that this development currently available only from GOS standard attachments and not for ArchiveLink business documents.)

    Best regards,

    Janos

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.