Skip to Content
author's profile photo
Former Member

Upload Files thru Internal ITS of SRM

Hello Gurus,

I need your help, please.

I need to upload a file from a webpage to SAP and then process the information.

I work with SRM 4.0 with ITS Internal.

The page has to be done in SAP. I tried the FM GUI_UPLOAD, but i receive a error.

Is any way to do this?

Thanks in advanced, for your help.

Best Regards.

Paulo

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Sep 02, 2008 at 03:40 PM

    Hello Paulo,

    what do you mean with "upload a file from a webpage".?

    Do you mean upload a file from a webserver (the url to the file starts with http or https)

    or do you only mean to upload a file from the filesystem into the R/3.

    For the first you have to use function module DP_GET_STREAM_FROM_URL

    (see note 1227526)

    For the second you can use method gui_upload from class cl_gui_frontend_services.

    Both use a java applet to work and are supported for service webgui.

    If you use an own IAC service you have to use the macro MIME-UPLOAD for case 2.

    (described in the Web Transaction API, example in service it00).

    If you use service webgui and gui_upload and you get an error, please describe the error and

    tell me, what ITs version you use.

    Best regards,

    Ralf

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Ralf Scheurer,

      Thanks for your rapid answer.

      It's the second option. I look for the example that you told and it's that what i need.

      Do you have more examples that you can give me, please?

      Best Regards.

      Paulo

  • author's profile photo
    Former Member
    Sep 02, 2008 at 05:04 PM

    Hello Paulo,

    unfortuanatelly I do not know of any other examples, belonging to the SAP_BASIS component

    (which is contained in every R/3).

    There are two other examples in service bbpstart and bwsp, but I don't know, if you have these

    services in your R/3, because they are belonging to another component (bbpstart, I think to srm).

    In it00 click on "continue", then on "upload/download", it is template it00/99/sapmitst1_2500.html,

    the related abap coding is in the PAI of dynpro 2500 of program sapmitst1.

    This is all true, if you are not using the webgui service, but an own IAc service.

    If you use the webgui service, then it is better to use function module gui_upload.

    The description of the makro mime-upload you find in the sap help library under

    http://help.sap.com/saphelp_nw04/helpdata/en/54/4d9993c6592941a407313a6763575c/frameset.htm

    Best regards,

    Ralf

    Add comment
    10|10000 characters needed characters exceeded