Application Development 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: 

Upload to the MIME repository in a Production environment (on premise)

Tukutupap
Participant
0 Kudos
255

Hi!!

So I am trying to build this functionality to allow a user to add different background login pictures to the sap/bc/public folder. It needs to be done in production directly and I already have a proof of concept working in dev. I worked around this by specifying $TMP as the package.

lr_mime_repo = cl_mime_repository_api=>if_mr_api~get_api( ).

    lr_mime_repo->put(
      EXPORTING
        i_url                     = filename
        i_content                 = filecontent
        i_dev_package             = '$TMP'
      EXCEPTIONS
        parameter_missing         = 1
        error_occured             = 2
        cancelled                 = 3
        permission_failure        = 4
        data_inconsistency        = 5
        new_loio_already_exists   = 6
        is_folder                 = 7
        OTHERS                    = 8 ).

This works just fine in DEV, but I cannot test this logic in a production environment. I would like to know if anyone has done something of the sort in a production environment? Does this goes against all rules? I would hate to get this to production only to find out that it doesn't work...

Thanks for your inputs!

1 REPLY 1

0 Kudos
141

Hi,

I'm having the same problem,And I fixed it by fill the parameter i_genflag with abap_ture