Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HTTP_POST_FILES problem with destonation

Former Member
0 Likes
933

Hello Everybody.

I have a Problem with posting file from sap portal functional to content server(SAP HR Photo) .

I'm Use webDynpro to select file from my windows machine(Mozilla browser). After choosing table components contain

call function 'HTTP_POST_FILES' "destination rfc_destination
    EXPORTING
      ABSOLUTE_URI                   = absolute_uri
      RFC_DESTINATION               = sdoki_http_app_server_rfc_dest
      COMPONENT_PATH                  = path
    IMPORTING
      status_code                = status_code
      status_text                 = status_text

    TABLES
*      resp                  = response_entity_body
*      resphead              = response_headers
*      reqhead               = request_headers
      COMPONENTS            = components
*      compx_255             = componentsx
    EXCEPTIONS
      system_failure        = 1
      communication_failure = 2  .

variables contain:

path = 'C:\Users\username\Desktop\'

components[]: /name = 'foto.jpg'/mimetype = 'image/jpeg'/FSIZE = 0/compid = 'data'

2 REPLIES 2
Read only

Former Member
0 Likes
636

error: no such file or directory.

when i run from abap program - everething is fine.

Read only

Former Member
0 Likes
636

Hi Mikhail !

Have you resolved this problem?