Download sap script logo

Hi,
We can upload a graphic logo through SE78 but can we directly download any logo on our PC?
Please let me know if any one is having any idea.
thanks,
shilpa k

Hi,
refer this,
REPORT Z_DUMMY_ATG_3.
DATA : L_BYTECOUNT TYPE I,
       L_TDBTYPE   LIKE STXBITMAPS-TDBTYPE,
       L_CONTENT   TYPE STANDARD TABLE OF BAPICONTEN INITIAL SIZE 0.
DATA: GRAPHIC_SIZE TYPE I.
DATA: BEGIN OF GRAPHIC_TABLE OCCURS 0,
LINE(255) TYPE X,
END OF GRAPHIC_TABLE.
CALL FUNCTION 'SAPSCRIPT_GET_GRAPHIC_BDS'
  EXPORTING
    I_OBJECT       = 'GRAPHICS'
    I_NAME         = 'ZPRUEBA'
    I_ID           = 'BMAP'
    I_BTYPE        = 'BCOL'
  IMPORTING
    E_BYTECOUNT    = L_BYTECOUNT
  TABLES
    CONTENT        = L_CONTENT
  EXCEPTIONS
    NOT_FOUND      = 1
    BDS_GET_FAILED = 2
    BDS_NO_CONTENT = 3
    OTHERS         = 4.
CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP'
  EXPORTING
    OLD_FORMAT               = 'BDS'
    NEW_FORMAT               = 'BMP'
    BITMAP_FILE_BYTECOUNT_IN = L_BYTECOUNT
  IMPORTING
    BITMAP_FILE_BYTECOUNT    = GRAPHIC_SIZE
  TABLES
    BDS_BITMAP_FILE          = L_CONTENT
    BITMAP_FILE              = GRAPHIC_TABLE
  EXCEPTIONS
    OTHERS                   = 1.
CALL FUNCTION 'WS_DOWNLOAD'
  EXPORTING
    BIN_FILESIZE            = GRAPHIC_SIZE
    FILENAME                = 'C:\FirmaAsociado.bmp'
    FILETYPE                = 'BIN'
  TABLES
    DATA_TAB                = GRAPHIC_TABLE
  EXCEPTIONS
    INVALID_FILESIZE        = 1
    INVALID_TABLE_WIDTH     = 2
    INVALID_TYPE            = 3
    NO_BATCH                = 4
    UNKNOWN_ERROR           = 5
    GUI_REFUSE_FILETRANSFER = 6.
IF SY-SUBRC  0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Change ZPRUEBA with the image you want to download and C:\FirmaAsociado.bmp with your own path and file
regards,
K.Tharani

Similar Messages

  • Download SAP Script as MS word format

    Can we download SAP Script in MS word format? If so Please suggest me the way.

    I'm not very sure on how it can be achieved, but this can help you.
    Spool to word -> http://sap4.com/codigofuente/102/396.html

  • Download Sap script output in XL.

    hi all,
    can anybody plz tell me that is there any possibility to download SAP script output in editable XL format? actually i got a new requirement in my company so plz can anybody help me for this?
    regards saurabh.

    Hi, Below code used for convert output into PDF format. May be you can convert into XL.
    In close form, collect output data into OTF format.
        call function 'CLOSE_FORM'
          TABLES
            otfdata                  = it_otfdata
          EXCEPTIONS
            unopened                 = 1
            bad_pageformat_for_print = 2
            send_error               = 3
            others                   = 4.
        if sy-subrc <> 0.
          PERFORM protocol_update.
          retcode = 1.
        endif.
      call function 'CONVERT_OTF'
        EXPORTING
          format                = c_pdf
        IMPORTING
          bin_filesize          = h_size
        TABLES
          otf                   = it_otfdata
          lines                 = it_pdf
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          others                = 4.
      if sy-subrc <> 0.
       MOVE sy-subrc                 TO   h_retcode.
      endif.
      perform table_shift.
    form table_shift.
      describe table it_pdf    lines  hltlines.
      DESCRIBE FIELD IT_PDF    LENGTH FLE1 in character mode.
      DESCRIBE FIELD X_OBJCONT LENGTH FLE2 in character mode.
      clear   x_objcont.
      refresh x_objcont.
      clear off1.
      clear hfeld.
      loop at it_pdf.
        htabix = sy-tabix.
        move it_pdf to hfeld+off1.
        if htabix = hltlines.
          fle1 = strlen( it_pdf ).
        endif.
        off1 = off1 + fle1.
        if off1 ge fle2.
          clear x_objcont.
          x_objcont = hfeld(fle2).
          append x_objcont.
          shift hfeld by fle2 places.
          off1 = off1 - fle2.
        endif.
        if htabix = hltlines.
          if off1 gt 0.
            clear x_objcont.
            x_objcont = hfeld(off1).
            append x_objcont.
          endif.
        endif.
      endloop.
    endform.                    " TABLE_SHIFT

  • Can we download SAP Script to a word document  ?

    Is it possible to download the SAP Script to a local Word documnet . and then is it possible to upload the Wrd Doc back to SAP SCript with a new Script name ..?

    Hi
    Hope it will help you.
    <REMOVED BY MODERATOR>
    want to Insert SAP ICONS into from SAP into Word document (OLE) .
    (1) Copy program DD_ADD_PICTURE into your own version called ZDD_ADD_PICTURE. Make sure
    you select all the checkboxes (including GUI Status and screens).
    (2) Paste the modified code at the end of this reply into your ZZ_ADD_PICTURE program.
    (3) Run ZZ_ADD_PICTURE for a range of Icons (e.g. enter Icon name ICON_IN* on the selection screen)
    (4) When you get the result list, type in ok-code EXPO directly in the ok-code
    field (you could also add a button for this function in the GUI status).
    (5) Download all the displayed icons as .gif files into a Windows folder
    that you have created to hold the icon .gif files (e.g. C:SAPICONS)
    (6) Now you can work with the icon files as you would any .gif file. (e.g. In a Word doc, use menu path
    Insert -> Picture -> From file.)
    Here is the code:
    REPORT dd_add_picture.
    TYPE-POOLS: sdydo.
    DATA: do TYPE REF TO cl_dd_document.
    DATA: is_displayed.
    TABLES: icont.
    DATA: BEGIN OF icontab OCCURS 0.
            INCLUDE STRUCTURE icon.
    DATA: END OF icontab.
    select-options: s_icon for icontab-name obligatory.
    SELECT * FROM icon INTO TABLE icontab WHERE locked NE 'X'
                        AND name in s_icon.
    Event Handler Definition, handling changes of GUI fonts, colors,...
    CLASS cl_my_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          use_new_resources FOR EVENT resources_changed OF cl_gui_resources.
    ENDCLASS.
    DATA: my_handler TYPE REF TO cl_my_event_handler.
    CREATE OBJECT my_handler.
    Call Screen
    CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      IF is_displayed IS INITIAL.
        SET PF-STATUS 'BRP'.
        SET HANDLER my_handler->use_new_resources.
    create document
        CREATE OBJECT do.
    fill document
        PERFORM dd_add_icon USING do.
    merge document
        CALL METHOD do->merge_document.
    display document .
        CALL METHOD do->display_document
                           EXPORTING  container          = 'HTML'
                           EXCEPTIONS html_display_error = 1.
                                           " do some exception handling ...
        is_displayed = 'X'.
      ENDIF.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.                       "Beenden
          LEAVE PROGRAM.
        WHEN 'PRN'.
          CALL METHOD do->print_document
                  EXPORTING reuse_control = 'X'.
        WHEN 'PRN_NEW'.
          DATA text TYPE sdydo_text_element.
          CALL METHOD do->initialize_document.
          text = 'Dies Dokument wurde speziell fürs Drucken erstellt!' &
                            ' Druckdatum: '(500).
          CALL METHOD do->add_text EXPORTING
                               text         = text
                               sap_fontsize = cl_dd_area=>large.
          WRITE sy-datum TO text DD/MM/YYYY.
          CALL METHOD do->add_text EXPORTING text = text .
          CALL METHOD do->new_line EXPORTING repeat = 2.
          PERFORM dd_add_icon USING do.
          CALL METHOD do->merge_document.
          CALL METHOD do->print_document.
        WHEN 'EXPO'.
          CALL METHOD do->export_document EXPORTING to_filesystem = 'X'.
      ENDCASE.
      CLEAR sy-ucomm.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  DD_ADD_ICON
          text
    FORM dd_add_icon USING p_do TYPE REF TO cl_dd_document.
      DATA ta TYPE REF TO cl_dd_table_element.
      DATA col1 TYPE REF TO cl_dd_area.
      DATA col2 TYPE REF TO cl_dd_area.
      DATA col3 TYPE REF TO cl_dd_area.
      DATA text TYPE sdydo_text_element.
    set Heading
      text = ' Bilder in Dynamischen Dokumenten'(001).
      CALL METHOD p_do->add_text EXPORTING text = text
                                      sap_style = 'heading'.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->new_line.
      CALL METHOD p_do->add_table EXPORTING with_heading    = 'X'
                                          no_of_columns     = 3
                                          width             = '100%'
                                          IMPORTING table   = ta.
    set columns
      text = 'Ikone'(011).
      CALL METHOD ta->add_column EXPORTING heading  = text
                                 IMPORTING column   = col1.
    fill table
      LOOP AT icontab.
        SELECT SINGLE * FROM icont WHERE langu = sy-langu
                                   AND   id    = icontab-id.
        CALL METHOD col1->add_icon EXPORTING sap_icon = icontab-name
                                             sap_color = 'LIST_GROUP'.
      ENDLOOP.
    ENDFORM.                               " DD_ADD_ICON
    CLASS cl_my_event_handler IMPLEMENTATION.
    CLASS cl_my_event_handler IMPLEMENTATION.
      METHOD use_new_resources.
        IF is_displayed EQ 'X'.
    initialize document
          CALL METHOD do->initialize_document.
    fill document
          PERFORM dd_add_icon USING do.
    merge document
          CALL METHOD do->merge_document.
    display document
          CALL METHOD do->display_document
                              EXPORTING reuse_control        = 'X'
                                        reuse_registration   = 'X'.
        ENDIF.
      ENDMETHOD.
    ENDCLASS.
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 6:22 PM

  • SAP Script Logo

    Hi all,
    I am trying to insert my company logo to the certification letter generated in SAP Script .
    By running the program RXTLXDMC i have uploaded my logo and inserted that in my standard text say "zabc"
    and i have called that std text in my se38 report .
    and it's working fine .
    But i want to move my logo to right .
    How to do that?
    I hav tried to do that in SE71 . but no result .
    Do u hav any good tutorial ?
    Advance thanks,
    J

    Hi J,
    What version of SAP are you on? If you are on 4.6C or higher, you shouldload your graphic in via SE78 and store it on the Document Server.
    Then in your SAPscript (SE71), in the relevant winder put in "/:" in the Tag Column, and in the Text Line enter "include 'ZABC' object 'GRAPHICS' id 'BMAP'".
    The /: identified the line as a "Command Line" (ie regular ABAP). Then you use the INCLUDE command to identify your graphic.
    Hope this points you in the right direction.
    Cheers,
    Pat.

  • Download sap script

    Hi exeprt,
    I've a form (sapscript) in a SAP system. I need of this form in an other sap system. Is possible download
    it form first system and upload it in the second system ???  I know that in smartform is possible, so is it possible also in sap-script ???
    tks a lot,
    bye.

    Hi,
    use RSTXSCRP for download the script.
    Regards,
    Madhu

  • Inverted Sap Script LOGO

    Hi Gems,
    I have an SAP Script layout where in the LOGO in the output appears to be inverted.
    But for some of us we are seeing the LOGO properly.
    Can any one suggest me where it is going wrong?
    Thanks
    Dan

    Hi,
         Two things:
    1) Upload the logo again using SE78
    2) If you are seeing the Print preview and not Print out take a print out and see the same..
    Raghav

  • Sap script logo is inverse

    hi ,
    i do sap script and i include logo and i see it inverse
    what can be the problem
    regards

    Check your printer & its make and load additional drivers for image printing & SAP. Like HP has specified the suppoorted printers for SAP .
    we have faced the same issue and it got resolved only by loading the drivers. No program.scripts modification is required .
    hope it helps.
    anya

  • Sap scripts : logo not display

    Hi,
    i have imported a logo with se78.
    i'm using BITMAP 'XXX' OBJECT GRAPHICS ID BMAP TYPE BMON.
    When i'm printing the logo is here but in preview mode, this bitmap is not display.
    somebody have an idea?
    Thanks

    Hi,
    1st check your window size, just try to enlage your window and check it once.
    Why dont you go for GRAPHIC window, just try with that also.This Graphic window will take care of size and every thing.
    Thanks.
    If this helps you reward with points.

  • How to insert a logo in sap script?

    How to insert a logo in sap script?

    Steps to insert a logo,
    I
    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
    II
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    III
    1 ) create a bmp file in local system
    2 )RSTXLDMC FM to upload image in tiff format.
    Also check these links...
    Logo in SAP SCRIPT
    Re: Uploading a (Image) Logo in your Sap Script
    Need Urgent Help for Logo Uploading the Sap Script
    sap script  logo
    http://www.sap-img.com/ts001.htm
    Regards,
    Sakthi Sri.

  • Sap script prgm

    . what takes most time in SapScript programming?
    . How do u use tab sets in layout sets?
    . How do u backup SapScript layout sets? Can u upload and download? HOW?

    Hi,
    1>Designing of the layout set takes a lot of time.
    2>In paragraph formats we can use the tab sets .
    3>We can do it with the help of program ->RSTXSCRP,by using this program we can upload and download SAP script.
    Award if u find useful.
    regards,
    Nagaraj

  • Material for sap scripts and smartforms

    hi SDNs,
              can anyone send links to download SAP SCRIPTS and SMARTFORMS? thanks in advance.
                                regards,
                                 aravind.

    hi Aravind,
    check the below linkss for scripts
    SAP Scripts
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    http://www.allsaplinks.com/dialog_programming.html
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://www.geocities.com/ZSAPcHAT
    and for smartforms
    most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    Check these links.In this,I am explaining everything step-by-step.Kindly reward points by clikcing the star on the left of reply,if it is useful.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    Check these links also.
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://sap.niraj.tripod.com/id67.html
    http://myweb.dal.ca/hchinni/sap/smartforms_home.htm
    Step by StepGood one):
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    if u need more info on either of these topics shoot me a test mail to [email protected]
    If u find it useful plz mark the points
    Regards,
    Naveen

  • SAP Script forms and logos

    Hi Experts
    My logo is too big for my Form Window in SAP script.
    How do I restrict the logo size to fit the size of the window.
    Regards,

    Hi
    IF you have imported it as graphic:
    BITMAP 'LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI <XXX>
    Where XXX is the resolution:
    Resolution with which a graphic is printed, specified in dots per inch, (dpi).
    The graphic resolution controls the size of a graphic when it is printed. High resolutions produce small graphics while low resolutions produce large graphics.
    If you choose default value 0, the original resolution of the imported graphic file is used.
    Most printer drivers and printers support the following resolutions:
    75 dpi
    100 dpi
    200 dpi
    150 dpi
    300 dpi
    600 dpi
    If you have imported it as std text I believe you've to re-imported it whit new resolution you need
    Vasanth

  • Sap Script - How to show two logos consecutive in a row.

    Hi All,
    If in a window I insert two lines:
    /: INCLUDE ZHEX-MACRO-ZLOGO001 OBJECT TEXT ID ST
    /: INCLUDE ZHEX-MACRO-ZLOGO002 OBJECT TEXT ID ST
    the Sap Script shows two logos not consecutive in a row.
    I'd like to show the two logos in the same row and if it is possible, separated by blanks.
    Any idea?
    Thanks in advance for your kind support.
    Regards,
       Giovanni

    This is because of your page size limitation. IF you will create two windows then it will work.Aline these windows properly in layout of page.

  • Uploading logo to SAP Script

    Hi,
    Can you please let me know the steps to upload the logo and to call it from SAP Script. I have the logo in the Word Document.
    Thanks in advance,
    Ishaq.

    Hi,
    Use TCode SE78 and import logo to R/3.
    Select GRAPHICS> BMP, select ur logo on Legacy sys.> Transport.
    Now ur logo has been transfrred to R/3 which is on desktop/legacy.
    NOw in logo window, in script editor, under menu options, INSERT--> LOGO.
    Activate and execute.
    Revert back if any issues.
    Reward with points if helpful
    Regards
    Naveen

Maybe you are looking for