Skip to Content
0
Former Member
Jan 06, 2011 at 12:49 PM

PHOTO IS NOT GETTING REFLECTED IN ADOBE FORM

41 Views

Hi experts

We have tried the below code to dispaly photo in webdynpro integrated with adobe forms

CALL FUNCTION 'HR_IMAGE_EXISTS'
    EXPORTING
      p_pernr                     = v_obj_id
*     P_TCLAS                     = 'A'
*     P_BEGDA                     = '18000101'
*     P_ENDDA                     = '99991231'
    IMPORTING
*     P_EXISTS                    =
      p_connect_info              = l_connect_info
    EXCEPTIONS
      error_connectiontable       = 1
      OTHERS                      = 2.
 
  CHECK sy-subrc = 0.
 
  CALL FUNCTION 'SCMS_DOC_READ'
    EXPORTING
*     MANDT                       = SY-MANDT
      stor_cat                    = space
      crep_id                     = l_connect_info-archiv_id
      doc_id                      = l_connect_info-arc_doc_id
*     PHIO_ID                     =
*     SIGNATURE                   = 'X'
*     SECURITY                    = ' '
*     NO_CACHE                    = ' '
*     RAW_MODE                    = ' '
*   IMPORTING
*     FROM_CACHE                  =
*     CREA_TIME                   =
*     CREA_DATE                   =
*     CHNG_TIME                   =
*     CHNG_DATE                   =
*     STATUS                      =
*     DOC_PROT                    =
    TABLES
      access_info                 = lt_infos
*     CONTENT_TXT                 =
      content_bin                 = lt_image_bin
    EXCEPTIONS
      bad_storage_type            = 1
      bad_request                 = 2
      unauthorized                = 3
      comp_not_found              = 4
      not_found                   = 5
      forbidden                   = 6
      conflict                    = 7
      internal_server_error       = 8
      error_http                  = 9
      error_signature             = 10
      error_config                = 11
      error_format                = 12
      error_parameter             = 13
      error                       = 14
      OTHERS                      = 15.
 
  CHECK sy-subrc = 0.
 
  READ TABLE lt_infos INDEX 1 ASSIGNING <fs_info>.
  CHECK sy-subrc = 0.
 
  CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
    EXPORTING
      input_length = <fs_info>-comp_size
      first_line   = <fs_info>-first_line
      last_line    = <fs_info>-last_line
    IMPORTING
      buffer       = l_employee_photo_content
    TABLES
      binary_tab   = lt_image_bin
    EXCEPTIONS
      failed       = 1
      OTHERS       = 2.

but the photo is not getting reflected in the adobe forms .

and also i have tried the url method but it doesnt work .

please help me out .