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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

8 Answers

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

    at lastly found the answer.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Dhananjay Choubey

      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 comment
    10|10000 characters needed characters exceeded

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

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

    Add 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 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 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 comment
    10|10000 characters needed characters exceeded

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

    Hey any exrta suggestions?? πŸ˜•

    Add 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 comment
    10|10000 characters needed characters exceeded