cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamicaly Photo Print Problem in Adobe Form

Former Member
0 Kudos

Hello Expert,

I want to display Employee Photo on Performance Apprisal form Dynamicaly on Adobe Form(SFP).

for which, i trieed two method -


1)-

DATA : lv_pernr1 TYPE tdobname.

CONSTANTS: c_graphics TYPE tdobjectgr VALUE 'GRAPHICS',

c_bmap TYPE tdidgr VALUE 'BMAP' ,

c_bcol TYPE tdbtype VALUE 'BCOL'.

DATA : ls_z_if_test_cv TYPE xstring.

lv_pernr1 = '11000003'. " Employee Number

CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp

EXPORTING

p_object = c_graphics

p_name = lv_pernr1

p_id = c_bmap

p_btype = c_bcol

RECEIVING

p_bmp = ls_z_if_test_cv

EXCEPTIONS

not_found = 1

internal_error = 2

OTHERS = 3.

break jp_deepaks.

IF sy-subrc = 0.

lv_filename = ls_z_if_test_cv.

ENDIF.

2)-

Find Photo URL of Employee

DATA : uri TYPE toauri-uri.

DATA: lv_filename1 TYPE toauri-uri.

CALL FUNCTION 'HRWPC_RFC_EP_READ_PHOTO_URI'

EXPORTING

pernr = '11000003'

datum = sy-datum

tclas = 'A'

IMPORTING

uri = uri

EXCEPTIONS

not_supported = 1

nothing_found = 2

no_authorization = 3

internal_error = 4

OTHERS = 5.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

lv_filename1 = uri.

CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'

EXPORTING

codepage_to = '8500'

unicode_string = lv_filename1

IMPORTING

xstring_stream = ls_z_if_test_cv

EXCEPTIONS

invalid_codepage = 1

invalid_string = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

But both methods are not working properly. How can i do this??

Thanks in Advance,

Regards,

Shri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

Please Post the Solution for the photo print to adobe form.

Thanks

SandySingh
Active Contributor
0 Kudos

As per rules of engagement SCN , I suggest raiSe new thread in this forum . The current question is closed

regards

sandy

Former Member
0 Kudos

if the photos are stored online, you can query it inside your form dynamically instead of passing it in from ABAP.

Former Member
0 Kudos

Hi,

I fetch the detail from table toahr with passing parameter

sap_object = 'PREL', reserve = 'JPG' and ar_object = 'HRICOLFOTO'.

i got the ARC_DOC_ID form table toahr. now how can i print this emp photo on Adobe form.

is this hexadecimal value or string ?

please explain the whole process for printing employee photograph on Adobe Form?

Thanks,

Shree

Former Member
0 Kudos

My prob has been resolved.

Thanks.