cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch the graphic from SE78 based on the sap login id.

Former Member
0 Kudos

Hi,

I have a requirement where i have to print the digital signature which is uploaded agianst each user logon in the SE78 in the smartform.

As the user logs in top sap i am checking the the user logon exists in the ztable.

now if this condition is satisfied i have to get the logo which is uploaded in the SE78 based on the user logon.

How can i validate the userlogon and fetch the graphic from SE78.

Regards,

Prathima..

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

This is possible by uploading the signature in SE78 using the user login id as name of the image file.

Inside your signature window. Do the following

/: BITMAP &SY-UNAME& OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 600

I guess this mayl help you to close the thread.

Regards,

SaiRam

Former Member
0 Kudos

Thank you...

Its solved...

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prathima,

use the above code given by sandra, inside the if condition given below.


select * from ztab into itab.
loop at itab into wa
if sy-uname eq wa-username.
"rest of the code
endif.
endloop.

кu03B1ятu03B9к.

Edited by: kartik tarla on Dec 28, 2008 9:22 AM

Sandra_Rossi
Active Contributor
0 Kudos

what do you mean by "validating the user logon"?

for reading a graphic from SE78, you may use for a B&W graphic :

DATA l_xstring TYPE xstring.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
      EXPORTING
        p_object       = 'GRAPHICS'
        p_name         = 'GRAPH_NAME'
        p_id           = 'BMAP'
        p_btype        = 'BMON'
      RECEIVING
        p_bmp          = l_xstring
      EXCEPTIONS
        not_found      = 1
        internal_error = 2
        OTHERS         = 3.