Skip to Content
avatar image
Former Member

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

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..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 29, 2008 at 02:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2008 at 02:53 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 28, 2008 at 03:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded