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

Upload Excel to content server using an RFC

Hi ,

We are trying to upload an excel file to the SAP content server using an RFC. The RFC will be invoked from .NET .

Created an RFC , which uses SAPoffice objects to upload the file to the content server. Uses various FM like

SO_LOIO_PHIO_CREATE,SO_SPLIT_FILE_AND_PATH and SO_KPRO_DATA_INTO_OBJCONT_PUT just to name a few. This RFC works fine when I test from

SAP GUI, but when we test from the RFC, it errors out. The file is stored in the local folder and the file path is sent thru the RFC.

From .NET the user uses single signon to logon to SAP.

Appreciate any input.

Thanks

Lalitha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2012 at 07:38 AM

    Hi

    Lalitha,

    If you give the file path to the RFC it will wont work. For handling this requirement you need to pass the entire file to the RFC not the Path.

    What you can do is read the file in binary mode form .net application and pass this binary file to the RFC.

    Regards,

    Mitul.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2012 at 06:14 AM

    Hi

    Pls check RFC destination is configured correctly or not..and also pls check SM58 to check the RFC log entries.

    Thanks,

    Chandra

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 29, 2012 at 06:27 AM

    Hi Lalitha,

    There are many possible reasons for the RFC errors.

    1. Incorrect Username/Password.

    2. User Not Authorised for RFC or other authorisations for the Transaction.

    3. Firewalls in the source and destination system which restrcit access.

    Hence, if you can share some inputs about the error received and whether your RFC call reached SAP and then SAP rejected the call or whatever the error maybe.

    Regards,

    Pranav.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 30, 2012 at 06:12 AM

    go to sm58, open rfc name and test rfc connection.. if test shows green line... and some seconds etc, then rfc is fine, in case of red line, there is a problem

    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.