Skip to Content
author's profile photo Former Member
-1
Former Member

How to download the attachments from GOS toolbar.

Hi,

I am facing a problem. I have to go to transaction ME33k and click the GOS toolbar. Then click on the attachment list. After the attachment list arrives, I need to transfer the files to the local system. The issue is that I need to do all this using a custom program. The custom program will transfer the files into the local system and then mail them to specified recipients.

The custom program has been made but I am unable to download files from the SAP internal location to the local PC. Please advise.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2006 at 07:42 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2006 at 08:56 PM

    Hello Jayanta Biswas,

    I am experiencing your issue with FM BDS_BUSINESSDOCUMENT_GET_TAB.

    Were you able to figure out why its throwing the "Nothing Found" exception?

    Thanks for your help,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2008 at 11:36 AM

    Please try the next abap code to download all applicant attachments. SAP system 6.40

    in this - OBJECT_ID - applicant SAP number

    • ------------------------------------------------

    data: i_connections type BDN_CON occurs 0,

    i_connections_rec type BDN_CON .

    data fol_id like soodk.

    data doc_id like soodk.

    data: OBJCONT type SOLI occurs 0 .

    DATA: PATH TYPE CHAR255,

    COMP_ID TYPe CHAR255 .

    CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'

    EXPORTING

    CLASSNAME = 'APPLICANT'

    OBJKEY = OBJECT_ID

    • CLIENT = SY-MANDT

    TABLES

    GOS_CONNECTIONS = i_connections

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    LOOP AT i_connections INTO i_connections_rec .

    move i_connections_rec-LOIO_ID to FOL_ID .

    move i_connections_rec-LOIO_ID+17(25) to doc_id .

    CALL FUNCTION 'SO_OBJECT_READ'

    EXPORTING

    FOLDER_ID = FOL_ID

    OBJECT_ID = doc_id

    TABLES

    OBJCONT = OBJCONT .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    LOOP AT i_connections INTO i_connections_rec .

    move i_connections_rec-LOIO_ID to FOL_ID .

    move i_connections_rec-LOIO_ID+17(25) to doc_id .

    CALL FUNCTION 'SO_OBJECT_READ'

    EXPORTING

    FOLDER_ID = FOL_ID

    OBJECT_ID = doc_id

    TABLES

    OBJCONT = OBJCONT .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    CONCATENATE 'D:\GOS\' i_connections_rec-DESCRIPT '.' i_connections_rec-DOCUCLASS into PATH .

    CONCATENATE i_connections_rec-DESCRIPT '.' i_connections_rec-DOCUCLASS into COMP_ID .

    CALL FUNCTION 'SO_OBJECT_DOWNLOAD'

    EXPORTING

    DEFAULT_FILENAME = COMP_ID

    FILETYPE = 'BIN'

    PATH_AND_FILE = PATH

    EXTCT = 'K'

    NO_DIALOG = 'X'

    TABLES

    OBJCONT = objcont .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDLOOP .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 03, 2014 at 10:56 AM

    Hi Jayanta,

    Did you find any solution???

    Please reply

    Regards,

    Sankar

    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.