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.

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 .

Similar Messages

  • Is there a way to download the attachments from the responses all at one time?  Attachments are .doc

    Is there a way to download the attachments from the responses all at one time?  Attachments were uploaded as a  .doc file

    Yes, read this tutorial:
    http://forums.adobe.com/docs/DOC-2656
    Near the bottom it explains how to download multiple files in a ZIP file.
    Randy

  • HT6154 how to download the files from mail like gmail or yahoo or hotmail to my iphone 5s.I have not seen the option in my iphone 5s

    how to download the files from mail like gmail or yahoo or hotmail to my iphone 5s.I have not seen the option in my iphone 5s

    Download what files?
    What is the actual problem that is occurring?

  • How to reterive the attachments from a message with message id.

    Hi Friends,
    I want to know that How can i retrieve the attachments from an incoming message.
    Also how can I separate the body part from message. How can I get a list of files attached with a message.

    JavaMail API don't give really method to parse multipart message
    See http://www.jservlet.com/
    Object Pop3.Tools that will help you to parse a multipart message, get file attachment with specific file extension.
    regards,

  • How to Download the report from the workitem?

    Hi,
    I have one typical requirement that is to download the report from the Workitem by the manager?
    Would any body please give the solution and procedure?
    If you have any sample code for that give it tome?
    Early reply is appriciable.
    Regards,
    Chow.

    If it is an ALV report you don't have to do any coding. You don't say which report it is.
    If it is a report that uses write statements you can also export to a spreadsheet, but of course the cell matching is not quite as for ALV reports since the report creator decides the alignment. Use the menu item "System" => "List" => "Save" (the menu item names may be a little different since I have translated them from Norwegian).

  • How to download the videos from my olympus linear pcm recorder?

    how can I download my videos from my olympus linear pcm recorder?

    You need a good program to import and organize.  You can purchas iPhoto or download the free Picasa app from google.
    http://picasa.google.com/mac/
    Regards,
    Captfred

  • How to download the manual from a mobile browser?

    Hi, I have simple question, how can I download pdf mamual, ideally in czech language to my mobile phone using my mobile browser? Can anybody give me a step by step tutorial?  When going to Blackberry web using mobile browser, I see mobile version of web sites and there is no way how to switch to full version... Thanks for help Dan
    Solved!
    Go to Solution.

    I finally found a way how to get into the manuals section from a mobile browser. The only way I found is to hack the browser and change the user agent string, so the server will think I am using ordinary desktop browser... Regarding this I would like to to say that it is more valuable to say that something is not possible rather than saying nothing. This would save me a lot of time and frustration when trying to figure out how to do that. I think there is planty of space left for improvement on your mobile web pages....

  • How can download the roles from one system and upload them into another  ??

    Do anyone have the solution ..... ......it  very  important.

    Hi,
    Visit [Role Maintenance Functions|http://help.sap.com/saphelp_nw04/helpdata/en/e4/15e48efd6c11d296430000e82de14a/content.htm] in section Download/Upload.
    To avoid inconsistencies, all roles from which a role is derived are also downloaded. When you download composite roles, all the roles which they contain are also downloaded.
    When you upload a role, all role data, including authorization data is uploaded from a file into the SAP system. The user assignments for the role and the generated profiles for the role are exceptions in this case. You must therefore regenerate the authorization profiles after the upload.
    Mass Download:
    Save several roles on the PC.
    You can choose on the selection screen whether you:
         Also want to transport the single roles contained in the selected composite roles (Customizing switch ADD_COMPOSITE_ROLES in table SSM_CUST)
         Also want to transport the generated profiles for all single roles (PROFILE_TRANSPORT in table PRGN_CUST)
    You can define the default setting for both options using the value in the Customizing switch. If you explicitly set a switch to NO, the option in question on the selection screen is not active. Otherwise, it is active.
    Regards,
    Srilatha.

  • ME51N - How to fetch the attachments from Documents icon

    Hi Experts,
    In the ME51N while creating the Purchase Requisition the creator will attach a PDF document in the DOCUMENT icon... How can i fetch the document and attach in the workflow... I have tried to find this DRAD table but i didnt found any entry...
    Please kindly help me how can i achieve this...
    Thanks,
    Srikag.

    Hi,
    In the ME51N while creating the Purchase Requisition the creator will attach a PDF document in the DOCUMENT icon
    Default configuration for document repository is in SAP database. There are possible ways of re-linking it to SAP content server.
    How can i fetch the document and attach in the workflow..
    You need to look for relevant tables in the database to get appropriate linkage using which your configure the same in your workflow item.
    Hope this helps.
    Regards,
    Deepak Kori

  • I can't find how to download the Apps from Itunes to my Ipod Touch 4G ios 6

    Tried so hard. Look at Youtube video and still can't.

    See the manual
    iPod touch User Guide iOS 6
    Are you talking aboput syncing to your iPod fro iTunes on your compouter? If hes then
    If you  have iTunes 11 turn on the Sidebar.  Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar.
    On the computer go to iTunes>Help>iTunes Help>Syncing your iPod....>Sync You Device and follow the instructions.

  • How to download the database form the call manager 7 to excel?

    how to download the database from the call manager 7 to excel document?

    No, it never did - the "ask" for the DRS folks to provide unencryption capabilities for their TARs is still out there (several other BUs want this) but so far as I know there's been zero movement on it.  I've about given up hope on the DRS folks at this point - pretty clear this isn't a priority for them and I don't see much in the way of any kind of improvements on the product schedule for them at all, this included.
    As a side note I've been pushing the Connection product managers to give us off box file system access to limited directories via a proxy service and roles (i.e. similiar to the ODBC proxy but for SFTP access) - armed with this we can provide our own (far superior) disaster recovery tools that work on a pull model instead of the full push DRS is built on - this would get partial backups, individual restores, about 6x increase in performance (more actually - I have a prototype that is hovering right around 10x the speed of DRS end to end), smaller backups, requires less space and resources on the server etc... etc...  Fun stuff like doing a full backup on Sunday mornings and deltas every day of the week after that and another full backup Sunday etc... would be possible.  Imagine.
    I'll probably get more traction with that but it's a long road I'm afraid - as ever, asking your account team to enter a PERs helps - makes it more difficult for the product folks to delay on assigning engineering resources to such efforts.

  • SM35 - How to download the log!!!!!!!!

    Hello experts,
    Can anyone guide me how to download the log from SM35. Previously I saw some thread in SDN, someone developed a program to download the log...
    can anyone paste the code... if have any...
    Thanks a lot in advanse... I really appreciate your valuable time

    Nitesha,
    1. Use Tcode SM35P and then select log for display.
    2. Use Printer icon to convert the list to ALV Grid.
    3. Download to local file using System->List->Save->Local File
    Thanks
    Palani

  • How to download .doc file from ms sql

    Hi guys.,,,!
    I have a problem in file uploading and downloading. The problem is i upload my .doc file in ms sql server successfully completed. After that i would like to download the file from the database.can anybody tell that how to download the file from the database.

    mani_miit wrote:
    I have a problem in file uploading and downloading.OK.
    The problem is i upload my .doc file in ms sql server successfully completed. Sorry, I don't see a problem here? You said that it is successfully completed. Please elaborate the problem.
    After that i would like to download the file from the database.can anybody tell that how to download the file from the database.Just get an inputstream of the file from the database using ResultSet#getBinaryStream() and write it to the output of whatever UI technology you're using.

  • Got my serial number but dont know how to download the program

    I entered my code and got my serial number but dont know how to download the program from there.  there is no buttons or direction to follow please help

    Here is one place:
    Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools

  • How to export all the attachments from Oracle Apps R12?

    Hi
    Our configuration single node EBS R12.0.6, DB 10.2.0.3 & AIX 5.3.7. We are live with ERP since 2009. In our application/database instance, we have hundreds of attachments for the PO and iRecruitment candidates CV's etc. How can we analyze the details of the attachments like fnd_attached_documents table, etc?
    Besides, we are planning to implement new document management system. Our management is interested to keep some/all of the uploaded ERP attachments into Document Management System repository. So, my question is how can we export all these attachments from ERP?
    Please help me.
    Regards
    Arizuddin

    Besides, we are planning to implement new document management system. Our management is interested to keep some/all of the uploaded ERP attachments into Document Management System repository. So, my question is how can we export all these attachments from ERP?Is this a 3rd party software? If yes, you may contact them and see if they provide any way to migrate attachments.
    You may also see the following docs.
    How to migrate the old attachments from a prior release [ID 558470.1]
    How To Download Attachment File From fnd_lobs [ID 1457782.1]
    Attaching A File To An Object via A Public API [ID 281130.1]
    How To Extract attachements From The Database When a URL Is in The APPLSYS FND_LOBS Table Under The Heading of File_Name [ID 800973.1]
    Is There A File Size Limit For EBS Attachments [ID 739643.1]
    Thanks,
    Hussein

Maybe you are looking for