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

File from network to external email

Hi..Good morning .

I need to send my adobe form(pdf) from my network directory to external email i.d.It is not in R/3

I am able to send my form from my desktop and my C and D directories ..But unable from network directory..

Plz help me out and give code..

Thanks.

vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 16, 2006 at 01:30 PM

    Hi Raghu,

    If you are referring the application server as the network directory, then you need to use the open dataset/read dataset/close dataset commands to read data from the file.

    Let us know what do you mean by a network directory?

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ravi,

      Thanks for the reply.!

      I mean a network shared folder on the network that is accessible to the Application server. I'm also able to download a file to the same place but unable to pull a file into my program from there.

      The address is in this format
      Host\Shared\SFA_ADOBE

      Thanks

      Raghu

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 02:13 PM

    Any one to help me out..

    Thanks.

    Raghu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 02:18 PM

    Hi Ravi..

    I coded like below to download.

    data: begin of itab occurs 0,

    fld1 type sy-tabix,

    fld2 type sy-tabix,

    End of itab.

    data: i type sy-tabix.

    PARAMETER: F_name like rlgrap-filename DEFAULT

    '
    mmpnas02\shared\sfa_adobe\DOCUMENT.XLS'.

    i = 1.

    Do 10 times.

    itab-fld1 = i.

    itab-fld2 = i + 10.

    append itab.

    i = i + 1.

    Enddo.

    CALL FUNCTION 'WS_DOWNLOAD'

    EXPORTING

    FILENAME = F_name

    FILETYPE = 'DAT'

    TABLES

    data_tab = itab

    EXCEPTIONS

    FILE_OPEN_ERROR = 1

    FILE_WRITE_ERROR = 2

    INVALID_FILESIZE = 3

    INVALID_TYPE = 4

    NO_BATCH = 5

    UNKNOWN_ERROR = 6

    INVALID_TABLE_WIDTH = 7

    GUI_REFUSE_FILETRANSFER = 8

    CUSTOMER_ERROR = 9

    OTHERS = 10

    .

    IF sy-subrc <> 0.

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

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

    endif.

    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.