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

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

  • I can not download SAP Business Intelligence Java Software Development Kit

    Does anybody know why I can´t download
    SAP Business Intelligence Java Software Development Kit
    I get a Error i don´t know if I do something wrong i have an account and i am able to download all the other thing but not this.
    403
    Sorry, you do not have the correct
    permissions to access this page.
    You may have received this link from another user with permissions different from your own, or you may be trying to access a page restricted to your user-type.
    However, if you believe this error is the result of a technical problem unrelated to your permissions, please take a screenshot of this page (usually Function + Print Screen), or copy the URL from the browser address bar along with the text of the error message and email it to [email protected] Please include your SDN User-ID in all correspondence.

    OK i mailed it and became that notice
    This is caused by a bad URL. I am forwarding to our Content Team for correction. Please try pasting the URL below into the address bar of an SDN session. This is the direct url to the download.
    ftp://ftp.sap.com/pub/sdn/devkits/BI-SDK/bi_sdk.zip

  • From where can i download SAP NetWeaverVisualComposer?

    Hi All,
    I am new to VisualComposer Area.
    From where can i download SAP NetWeaverVisualComposer?
    Please help me out with proper links.
    Thanks & Regards
    Subash

    Hi Subash,
    check out https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6 where two versions of NW04s are offered including the VC (see matrix).
    On the other hand, the "normal" software distribution works as always via the SAP MarketPlace.
    Hope it helps
    Detlev

  • I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them.

    I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them. I use a PC and Word 2010

    sigh...this is quite idiotic, but I have found a solution. It was quite simple, really, and yet quite idiotic. I share it for all those reading so that, if you know of anyone else that did what i did, you can easily be the "hero" in their lives.
    After a continued search via youtube or what have you for any possible solutions, I kept coming back to the fact that I was told by my computer that I didn't have "permission" to do the file deletion. I stumbled upon a youtube video that talked about "unlocking", "locking", certain files and what not.
    Long story short, the reason why I couldn't do anything to the files that were on my desktop was due to my "locking" the desktop folder. I must have done this a while back not knowing what I was doing nor the ramifications of clicking a simple box.
    I undid this by:
    Opening Up Finder
    then, going to MacHD --> Users --> My Account Folder
    clicking on Desktop Folder, I "cmd+I"
    I then, unclicked the "locked" option
    I went down to the cog/settings and selected "Apply to enclosed items"
    resulting then in having all my files on my desktop free accessiblity and delete-ability....
    oi...at least I now  know what "locking" a folder (even the desktop folder) can do to other files held within it

  • I can't convert a PDF to a word document...

    I can't convert a PDF to a word document... I don't have a "Content Editing" option and I am unable to click on the "Convert to", as well as not having an option to get into our settings. Please help.

    Hi Lauren,
    Can you please provide a screenshot of the interface so that i can help you with this issue.
    And i would also like to confirm if you are using Reader/Acrobat or Acrobat.com Online service?
    Regards,
    Rahul

  • I need to create a resume on my mac which I can send as an attachment as a word document.  How do I do this?

    I need to create a resume on my mac which I can send as an attachment as a word document.  How do I do this?

    You either buy Microsoft Office, or Apple Pages (which can save a document in Word format), or use one of the free office suites like LibreOffice, OpenOffice, or NeoOffice.

  • How do I download and work on a Word document?

    How do I download and work on a Word document?

    Download from where? The internet or ?
    Second, in order to work on a Windows file, you need software that will be able to do it - I'm sure there are more - this is one: Pages (iWork) or install a Windows version.

  • Sap Script - numbers to words without function module

    Moderator message - please use a meaningful subject in future.  I've changed it for you this time.  Also, moved to the correct forum
    Hi Friends,
                       In SAP Script how to convert numbers into  words with out using the function module in the driver program.
    examplae 21 kg  as twenty one kg.
    Please help me to solve this problem.
    Thanks in advance.
    Gayathri S
    Edited by: Matt on Nov 5, 2008 9:15 AM

    Hi,
      In the SAP Script, you can call the perform like below:
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    You can create a separate include or use an existing include related to your script and create the above <form> in that <prog>.
    The syntax for creating the form in the include is as below:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    Example:
    In your script,
    /: PERFORM GET_BARCODE IN PROGRAM ABCDE
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    And in the report ABCDE, create the form like this:
    REPORT ABCDE.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY 'PAGE'.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'NEXTPAGE'.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY 'BARCODE'.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = '|'. "First page
    ELSE.
    OUT_PAR-VALUE = '||'. "Next page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Hope this helps.
    Regards,
    Suganya

  • How can i download sap Business objects client tools 4.1 ?

    Hiii,
             I want to download sap business objects client tools 4.1 .I did not find it .so can you please help me to download this files
    thanks,
    venu.

    Hi Venu
    Have you check the installation guide? could you refer the SAP Note for SAP BO
    2013261 - SAP BusinessObjects BI Platform 4.1 SP04 Install Guide
    BR
    SS

  • Where can I download the scripts from cisco web site

    hello :
    I need some IVR scripts for my AS5350 but I cannot find them on cisco web site.
    anybody can tell me where and what files, thank you

    Hi,
    unfortunately the TCLWare pack is not available in public. It can be downloaded only through the CCO. So, you need a CCO account in order to login inside and download it.

  • It can not displayed sap script

    i have to post invoice in vendor a/c,then run to APP successfully,then execute  spool,actually hear it can displayed ABAP list file, SAP script(otf) file,and SAP script file(otf) but hear only displayed ABAP list file, SAP script(otf) file it can not displayed vendor payment advice list why. pls give me answer

    Hi Shirley,
    I assume the hardware is less on the target than on the source or they are different at least in terms of hardware specs
    If the system is not starting, check the dev_disp.log, the stderr* files, and the dev_w0 log from the work directory to find the exact error. Does the system start if you increase or decrease this value?
    Regards,
    Paul

  • 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

  • Can't download SAP Business One, please help me.

    I can't download it, it show: the sever don't permise you to download.
    Please send file to me, or help me to download it.
    Thanks.

    Thank for reply. i logined as administrator before.
    there is not three built-in navigator but two built-in navigator.
    i was able to find help and preferences that you said.
    but that is not useful.
    reference's range is very large
    i can't excess information that i am finding effectively.

Maybe you are looking for

  • Using Comments

    Greetings... is it possible to place comments( production notes etc) in LE8 ? I would like to place text regarding, production notes, external midi synth information , such as patch names, programs and " to do's" within LE sequences.

  • Old posts not linked to this account.

    I'd like to report that my old posts are not associated with this account (even 'though I've got the same e-mail address than on the old forums.sun.com account). Is the migration complete or should we wait a bit more before complaining?

  • Help The Rookie..!

    Hi guys..! I was very satisfied with my MacBook Pro, so I bought a new one to my wife and I also use a desktop PC. My wireless inet is a router AirTies (Air 5450). The problem is: I want to make a network, so I can share files, photos, music etc, bet

  • Extracting pics from an iPhoto folder (w/o using iPhoto)

    I've got an orphaned iPhoto Library directory left over from a friends' old account on my Mac. I'd like to burn all the pics to a DVD and mail it to her, but I've run into a little snag. It looks like I can't simply add the photos to iPhoto 6 by drag

  • Character position in non-editable JTextPane

    OK, I was hoping someone could point me in the right direction. I have a non-editable JTextPane ( actually a separate class that extends JTextPane ) with a mouse listener on it. I wish to be able to click on it and get a character position. Setting/g