Skip to Content
0
Former Member
Nov 30, 2009 at 12:24 PM

Regarding MIME Repository

58 Views

Dear Abaper's,

i have requirement to store image (*.JPG) in SAP database so i m using following function, store a file in MIME public folder, but i have one more requirement to display this image through TCODE.

have u any idea to display image in MIME repository object.

Please help me to solve this problem.

Regards,

Abhilash


 R_MIME_REP = CL_MIME_REPOSITORY_API=>IF_MR_API~GET_API( ).

  LR_MIME_REP->PUT(
    EXPORTING
      I_URL                     =  'SAP/PUBLIC/img/Test.jpg' "p_path
      I_CONTENT                 = LV_CONTENT
    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 ).