Skip to Content
avatar image
Former Member

adding digital signature or graphics in sap script

Dear all,

I am stuck in a problem. I know how to add a graphic or digital signature in a smartform but not in SAP Script.

Pls help me n tell if and how it is possible.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 03, 2008 at 10:12 AM


    In se78 in graphics select the picture what ever you want and then press the transport button that is available on the top. then that will come into sap list that one we can use in the sap scripts.

    Upload the logo in BMP or TIFF format in SE78.

    To print a Logo, follow the steps below :

    Built a Logo. This file can be a bit map or windows meta file.

    Convert the Logo to a TIFF ( extension TIF ) file.

    Use program RSTXLDMC to convert the TIF file to a standard text.

    Print this standard text via SAPscript INCLUDE command.


    Reward Points if found helpfull..


    Chandra Sekhar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2008 at 10:13 AM


    These are the steps to be followed for uploading graphics in R/3 system

    1. First save the file as BMP

    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and

    make it Zoom as 100% and save as *.TIFF

    3. Open SE38 and execute program RSTXLDMC

    4. Give your TIFF file path name

    5. Select Bcol (for Color)

    6. TEXT ID will be ZHEX-MACRO-*.

    7. Inplace of * write your own logo name (ZCOMPANYLOGO)

    8. Execute the program

    9. Now Goto SE71 create your ZFORM

    10. Create logo window

    11. Goto text element of logo window

    Digital signature

    1. In the step Adjust Form (Layout Set) for Purchasing Documents, check to see at which points you can store your own texts in the standard form MEDRUCK.

    2. Enter the texts in accordance with your requirements using the SAPScript editor. To do so, choose SAPscript Standard Texts.

    Assign unique names to your texts (e.g. names containing the key for the purchasing organization).

    3. Choose the desired text type (e.g. texts for document item) under Document Printout: Purchase Order.

    4. Create a new entry and enter the following data for it:

    Print operation (e.g. new printout or printout of changes (change notice))

    Purchasing document type and item category

    Text object, text ID and the text name

    Print sequence in which the text is to be outputted

    In the standard system, the purchasing form is called "MEDRUCK". MEDRUCK is a multi-purpose form controlling the output of RFQs, POs, outline agreements, delivery schedules, reminders/urging letters, rejection letters, change notices, and order acknowledgment expediters.

    Changing the Purchasing Form


    Before you make any changes to the standard form, you should consider the following.

    Change Existing Form or Create New One?

    You can either change the standard form or create a new form by copying the standard one.

    When you change the standard purchasing form, you must first create a correction number, because changing the standard form represents a customer modification. Thereafter, the system maintains both your changed version and the SAP version of the form.

    If you create a new form, you must assign it to the appropriate message type (PO, rejection letter, etc.) before the system can use it for printing.

    Its recommend that you always create your own form. This makes it easier to distinguish between your customized form and the standard form provided by SAP.

    DO reward if helpful

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2008 at 10:15 AM


    To create a logo in SAP printouts just do the following

    1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.

    2. Run program RSTXLDMC and enter the following parameters

    Enter file name C:\COMPLOGO.TIF

    UOM CM

    Line width for text 132


    Text ID ST

    Text language = E

    Number of Tiff gray levels (2,4,9) 2

    3. Then Create a new window 'COMP' with attributes;

    Window COMP description Company Logo

    Left margin 7.00 CH window width 10.00 CH

    Upper margin LN window height 8.00 LN

    Finally in the text element, mention


    Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!

    You will not be able to see the logo in a test print. The same will be printed in actual printout.


    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)

    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description

    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures

    4) Select any picture and set its Resolution in DPI

    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo

    6) Set any other parameters if required, save and activate.

    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.

    8) Use TCode SE78 to upload new pictures and logos.

    before changing standard script you must migrate into user defined script. for that one follow these steps...

    1)goto SE71. 2)provide name for SCRIPT( begin with Z)

    3)select CREATE option.

    4)press ENTER.

    5)select FORM option(u find this option on top of the screen).

    6)from that choose MIGRATE option.

    7)then it will displays dialog screen with required field like FORM( provide standard form name) and LANGUAGE( here provide in which language form exisisting).

    8)press ENTER. 9)select SAVE and ACTIVATE.


    1) goto SE71


    procedure to add fields.

    1)goto SE71.

    2)provide FORM( which you migrated).

    3)slect PAGE WINDOWS.

    4)select EDIT option.

    5)select WINDOW required for adding a field.

    6)select EDIT option.

    7)from that choose ELEMENT( also called TEXT ELEMENTS)


    Here you enter field as per your needs.

    i give sample code

    AS modifying layout

    /: if &ekko-lifnr& > 50000

    / plant id is 300

    /: endif.

    9)after completion of entering element goto BACK.

    10)choose SAVE.

    11)ACTIVATE. regards

    procedure to uploading LOGO

    follow these steps for uploading logo which is exisisting in bitmap format.

    In the form painter, you can either include directly to the form using menu

    Edit->Graphic->Create or using the INCLUDEstatement in a window.

    To use an INCLUDE statement, goto into the window scripteditor and use menu Include->Graphic. The include can looklike this for a bitmap:


    in this statement MYLOGO is name of the logo.

    BMON mean's logo exisiting in black&white format, we can also pass

    BCOL means logo exisiting in color format.

    Go to transaction OMFE. Tell me what you see there for the output type you are interested in. Let me take the standard output type NEU. The entry looks something like this.

    NEU Purchase order 1 SAPFM06P ENTRY_NEU MEDRUCK.

    The first one is your output type, next is its description, next is the medium, then the program, routine, and the form name.

    You already copied the layout MEDRUCK to ZMEDRUCK. Now copy SAPFM06P to ZZSAPFM06P. Now ENTRY_NEU routine is in the include FM06PE02. You need to make your changes here to accommodate for the new field. So copy this include to ZZFM06PE02 and make your changes. Also, in ZZSAPFM06P, change the line where it says INCLUDE FM06PE02 to INCLUDE ZZFM06PE02.

    Now in this routine ENTRY_NEU, there is a function module call ME_READ_PO_FOR_PRINTING which reads in the PO data from the tables. We need to copy this function module as well as this is where you will do your extra selections for the new fields. You will do the same with the other function call ME_PRINT_PO, if you need to change anything on the print.

    after this to define output type...


    You can track the form and the print program used for that form

    NACE is used to create output type while creating the output type you will mention forms, and driver program.

    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.

    so check in NAST, TNAPR table

    reward if helpful,


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2008 at 10:39 AM


    1.Scan the Signature

    2.Upload this signature as we upload a logo in SE78 with the Username.

    3.Now in the driver program




    here it_head is the structure that we define(SE11) for moving the data from the driver program to the smartform.

    4.Now in the smartform create a window(graphic) to get the logo.Here in this window in the general attributes tab give as

    NAME- it_head-tdname

    (it_head is the internal table and tdname is the field that stores the logo)

    With you can get the signature in the smartform depending on the sy-uname ie user.The logo name should be as same as the if there is username Amit then the logo should be uploaded as 'Amit" so that this can be validated with sy-uname in the driver program

    Logos will be stored in STXBITMAPS table.If any need any info revert it.


    Add comment
    10|10000 characters needed characters exceeded