Any body help me regarding MS_WORD_OLE_FORMLETTER?

hi friends,
i  have to display some fields of itab in word document.
for this i searched this FM MS_WORD_OLE_FORMLETTER.
But i am not getting how to use this FM. Even i searched in this forum. But in that i didn't find correct information.
plz can any body explain it with simple example code.
Regards,
Shankar.

hi ranga,
thanks for ur replies. I tried already like this example. the problem is it's creating word file and it's showing only column names. but it's not shoing any itab information records.
he re i am giving code. plz check it once...
*& Report  ZHR_WORD_LETTER
REPORT  ZHR_WORD_LETTER.
TABLES: PA0002.
DATA: BEGIN OF emp,
        ename LIKE PA0002-CNAME,
        place LIKE PA0002-GBORT,
      END OF emp.
DATA: BEGIN OF columns OCCURS 10,
          colu(20),
      END OF columns.
DATA: itab_emp LIKE TABLE OF emp WITH HEADER LINE.
DATA: path_desc LIKE RLGRAP-FILENAME.
SELECT cname gbort FROM PA0002 INTO TABLE itab_emp UP TO 10 ROWS.
MOVE 'ENAME' TO columns.
APPEND columns.
MOVE 'PLACE' TO columns.
APPEND columns.
path_desc = 'c:\temp\'.
CONDENSE path_desc.
CALL FUNCTION 'MS_WORD_OLE_FORMLETTER'
  EXPORTING
   WORD_DOCUMENT             = 'emp'
*   HIDDEN                    = 0
*   WORD_PASSWORD             =
*   PASSWORD_OPTION           = 1
   FILE_NAME                 = 'emp'
*   NEW_DOCUMENT              =
    DOWNLOAD_PATH             = path_desc
*   PRINT                     = ' '
  TABLES
    DATA_TAB                  = itab_emp
    FIELDNAMES                = columns
EXCEPTIONS
   INVALID_FIELDNAMES        = 1
   USER_CANCELLED            = 2
   DOWNLOAD_PROBLEM          = 3
   COMMUNICATION_ERROR       = 4
   OTHERS                    = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CASE SY-SUBRC.
     WHEN 1. MESSAGE 'Invalid Columns' TYPE 'I'.
     WHEN 2. MESSAGE 'User Cancelled' TYPE 'I'.
     WHEN 3. MESSAGE 'Download Problem' TYPE 'I'.
     WHEN 4. MESSAGE 'Communication Error' TYPE 'I'.
ENDCASE.
ENDIF.
WRITE: 'ok'.
But finally i am getting Communication Error message.
Regards,
Shankar.

Similar Messages

  • My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

  • Regarding drop down list,  any body help me plz.. very very urgent

    i have to create a drop down list and in that if i select a value it should go to select query and display hte result in the output
    for example if i select open in the inout list. that should go to a partiucular query which i write and after that when i process the report that option open should be displayed in the output
    any body help me plz.. very very urgent

    Check  code below..
    TYPE-POOLS:  vrm.
    CONSTANTS: c_pgp_cmd(20) TYPE c VALUE '/opt/pgp/bin/pgp'.
    DATA : droplist TYPE vrm_values,
           dropval LIKE LINE OF droplist,
           w_command(2000) TYPE c VALUE '/usr/local/bin/ssh'.
    DATA:  BEGIN OF t_cmdres OCCURS 0,
             line(500),
           END OF t_cmdres.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS:  tar_sys(10) TYPE c AS LISTBOX VISIBLE LENGTH 20 LOWER CASE,
                 filepath TYPE esefilepath,
                 pgpkey(1000) TYPE c LOWER CASE,
                 option(25) TYPE c AS LISTBOX VISIBLE LENGTH 15 LOWER CASE,
                 pass(100) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    INITIALIZATION.
      PERFORM set_screen.
    AT SELECTION-SCREEN OUTPUT.
      IF option EQ 'encrypt'(000).
        LOOP AT SCREEN.
          IF screen-name = 'PASS'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ELSEIF option EQ 'set-preferred-ciphers'(001).
        LOOP AT SCREEN.
          IF screen-name = 'FILEPATH'.
            screen-input = 0.
            MODIFY SCREEN.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
    START-OF-SELECTION.
    write:/ 'Done'
    *&      Form  set_screen
    FORM set_screen .
      dropval-key = 'oapg18dv'(002).
      dropval-text = 'oapg18dv : DEV'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18te'(003).
      dropval-text = 'oapg18te : TEST'.
      APPEND dropval TO droplist.
      dropval-key = 'oapg18pr'(004).
      dropval-text = 'oapg18pr : PRD'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'TAR_SYS'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
      dropval-key = 'encrypt'(000).
      dropval-text = 'Encrypt'.
      APPEND dropval TO droplist.
      dropval-key = 'set-preferred-ciphers'(001).
      dropval-text = 'Set cipher'.
      APPEND dropval TO droplist.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'OPTION'
          values          = droplist
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      CLEAR:  dropval,
              droplist[].
    ENDFORM.                    " set_screen
    Reward if useful
    Function Module <b>VRM_SET_VALUES</b> is used to set values for droplsit..
    and be careful about Text Elements in this report.
    Regards
    Prax

  • Please can any body help me out where can I find link to download  ALDSP2.5

    Hi All,
    Please can any body help me out where can I find link to download ALDSP2.5.
    I am trying since last couple of days as I am not able to find it. please some body help me out in this regard. I appriciate even if I get a link to download ALDSP3.0.
    thanks in advance.
    Please mail me the links at [email protected]
    rajen.
    Edited by: user13358281 on Jul 2, 2010 2:57 PM

    Hello Werner,
    Thanks for response, but I couldn't find the same.
    Still my search is going on. I dont know why oracle people made this that dificult, If I am not wrong I think earlier i could easily locate the previous version artifacts(softwares) easily. but now why they made that complicated.. no clues.
    any ways thanks once again.

  • Can any body help me in navigation of sxda(data transfer work bench)

    hi
    i need the navigation(steps to define) of the data transfer work bench any body help me in solving this problem

    Hi,
    i think that you have already raised a question regarding the same . Please close the first question . I have replied to that.

  • Can any body help me to prepare f.s for!

    can any body help me to prepare f.s for!
    all material movements and asociated accoutning document?
    all open purchase orders for a given plant and delivery period?

    Hi
    what do you mean by f.s, is it functional specification?
    Material document associated accounting document you can find MSEG and BSEG tables
    Open Purchase Orders for a given plant and delivery period
    Purchase orders infirmation is available in EKKO (Header) and EKPO (Item)
    Take the information from EKKO by company code, pass it on to EKPO by plant (WERKS)which is not equal to (EKPO -ELIKZ) for open PO and for delivery date (EKET-EINDT).
    please check and let me know if you need anything.
    regards
    Srinivas

  • Could any body help me , I lost my iphone so how can i get it back , I didn't download find my i phone , but i have the box with the serial number

    MY iPhone is lost & i dont have find my phone app also i dont have Icloud
    I know the simcard number & the serial Number which incloud the box for the iphone
    Could any body help me to locate my iphone ?!!

    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem. I am using snow leopard.

    My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem. I am using snow leopard.

    Try resetting the SMC Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    and PRAM How to Reset NVRAM on your Mac - Apple Support
    If those don't help you can try a cleaning disc or a quick shot of compressed air. Chances are that your drive has failed, join the club it's not all that uncommon. You can either have it replaced or purchase an inexpensive external drive. Don't buy the cute little Apple USB Superdrive, it won't work on macs with internal drives working or not.

  • My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem.

    My Imac is ejecting every disk inserted in it, I cannot access the disks, can any body help me troubleshoot the problem

    The frist thing to try is a drive-n disk. They are cheap (US$5-15) and easy to use. Many unresponsive drives, even ones declared "dead" by an Apple tech, have returned to service after a cleaning.
    Check with home entertainment specialty shops, electronic superstores and office supply outlets that sell computer accessories.

  • Hi any body have information regarding up gradation of BW-BPS to BI-IP

    Hi any body have information regarding up gradation of BW-BPS to BI-IP, i need the procedure how to upgrade if any body explain thank full.......
    Vinay
    Edited by: vinay kumar on Aug 13, 2008 8:26 AM

    Hi,
    You can use BPS and Implement IP parallely so you can use both the tools simultaniously.
    Even all the BPS variables can be used in IP.
    Need to build all the data flow from the scratch.
    Need to understand what stands for what comparing BPS and IP.
    Instead of Function Module based on ABAP in BPS we have Function Types based on ABAP OO concept.
    Regards,
    Raj

  • CAn any body help

    http://www.2shared.com/file/2262396/ee11120b/Java.html
    in this link jsp page and java class i conect between them by javabeans
    there is somthing wrong when i ran userinfoinput.jsp not all
    but in firstname theres the problem

    CAn any body help[?]Unlikely.
    You haven't given us anything to work with.
    No error message, no code, no real details about what your code does; or what you expect it to do.

  • My macbook (born 2006, mac os x snowleopard) broke down. I started again with DVD, but can not find hard disc, to repair it - can any body help me, pleeeeease?

    first time, using that way looking for help (in former times I get it directly from apple...). My problem: my macbook was getting more and more slowly, I turned it off an after turning on again, there was only a question mark. after starting with system-DVD, I could not find the hard disc to repaire it with first aid or do any thng else. I´m writing with macbook pro of my daughter now and ugentnly need to start my macbook as soon as possible. could any body help me??? (sorry, my english is a not so well) andrea from berlin

    Since you have the system disks, you can try running the Apple Hardware Test, that should confirm if the drive is dead or not. You'll use the disk that says 'AHT Version x.x' in small print on the label.

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    if you can't compile the webutil.pll in your forms developer you need to set the forms_builder_classpath in you windows registry. You have to add the frmwebutil.jar,jacob.jar to the registry key. The configuration files you mention are for running the forms.

  • I cant synchronized my Itunes and iPad..any body help me??

    i cant synchronized my Itunes and iPad..any body help me??

    Thanks I do relise this but I was asking becouse it is an access to the account and I wasn't sure if I had to remove a restriction or something along those lines, or if I had inenvetently fumbled a setting on the phone or something do I thought I'd ask if any one had encountered this issue before ..... But thank u for taking the time to respond ..... 

Maybe you are looking for

  • Hp slate 7 voice tab android version update

    I just want to know if i update my tab's android version from jelly bean to kitkat then it will safe.<br>I mean can i update my tab to kitkat without any problem.<br>

  • Log file in WD

    Hi experts, how can I create simple text file as a log file and then show save dialog as a popup window to the user? I think about presentation server. Any ideas how do it? Thank you in advance. BR Paul

  • Cannot open drawer on left to view folders

    I have tried to open it by clicking on the button in the centre of the left side. This shows the two opposing arrows which usually allow one to widen a column.I read that by quitting iPhoto and then opening the User folder you can access the Preferen

  • I got an exception from UPS.

    Hello, Anyone from you has passed an exception? I passed an exception and my order isn't moving. What I have to do?

  • JQuery won't load

    I can't seem to get jQuery to work in an HTML page. I tried loading  it from my harddrive and calling it from the web but it doesn't seem to work.Any tips?