Is there any function module to download abap data to a word document?

Hi all,
I know that the downloading to word can be done by ole automation...But is there any function module in sap which can do the same....?? please let me know your expert comments.......

Hello Rich,
I have tried the function module word_ole_formletter ..but i am facing a problem...once i execute the program i can see that the data is coming to word document but it is coming in read only mode and again reverting back to a blank document as was befor the data is coming to word document..Can you suggest where i am going wrong...Also I tried to debug the function module but the break point is not coming to the function module ....

Similar Messages

  • Is there any  function module to download pdf file

    is there any  function module to download pdf file
    WITH OUT GUI_DOWNLOAD FUNCTION MODULE.
    THANKS IN ADVANCED.

    Dear Laxman,
    Tryout the following Function Modules:
    (1)  CONVERT_ABAPSPOOLJOB_2_PDF --> convert abap spool output to PDF
    (2)  CONVERT_OTF --> Convert SAP documents (SAPScript) to other types.
    Example:
    CALL FUNCTION "CONVERT_OTF"
           EXPORTING    FORMAT                = "PDF"
           IMPORTING    BIN_FILESIZE          = FILE_LEN
           TABLES       OTF                   = OTFDATA
                        LINES                 = PDFDATA
           EXCEPTIONS   ERR_MAX_LINEWIDTH     = 1                  
                        ERR_FORMAT            = 2
                        ERR_CONV_NOT_POSSIBLE = 3
                        OTHERS                = 4.
    Regards,
    Abir
    Don't forget to award Points *

  • Is there any function module to convert the date format

    Dear ABAPers,
    Is there any function module to convert the date format from dd.mm.yyyy to dd-mmm-yyyy.
           I want to convert the date format from dd.mm.yyy to dd.mmm.yyy Eg.from 10.03.2008 to 10-mar-2009.
    Thanks & Regards,
    Ashok.

    hi,
    create custom function module or copy the below code in the report ..and use it
    the out put for below is :----Convert a DATE field into a full format date eg. March 23, 2000
    FUNCTION Z_CONVERT_DATE_INTO_FULL_DATE.
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(DATE) LIKE  SY-DATUM
    *"       EXPORTING
    *"             VALUE(FORMATTED_DATE)
    *"       EXCEPTIONS
    *"              INVALID_DATE
    TABLES: TTDTG.
    DATA: BEGIN OF T_DATE,
            YYYY(4) TYPE C,
            MM(2) TYPE C,
            DD(2) TYPE C,
          END OF T_DATE.
    DATA: DAY(3) TYPE N.
    DATA: VARNAME LIKE TTDTG-VARNAME.
    IF DATE IS INITIAL.
      CLEAR FORMATTED_DATE.
      EXIT.
    ENDIF.
    check document date format
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        DATE = DATE
      EXCEPTIONS
        PLAUSIBILITY_CHECK_FAILED = 1.
    IF SY-SUBRC NE 0.
      RAISE INVALID_DATE.
    ENDIF.
    MOVE DATE TO T_DATE.
    CONCATENATE '%%SAPSCRIPT_MMM_' T_DATE-MM INTO VARNAME.
    SELECT SINGLE * FROM TTDTG WHERE SPRAS = 'EN' AND VARNAME = VARNAME.
    WRITE T_DATE-DD TO DAY.
    CONCATENATE DAY ',' INTO DAY.
    CONCATENATE TTDTG-VARVALUE DAY T_DATE-YYYY INTO FORMATTED_DATE
      SEPARATED BY SPACE.
    ENDFUNCTION.
    the output is :--Convert a DATE field into a full format date eg. March 23, 2000
    Regards,
    Prabhudas

  • Is there any function module to get the data from st06?

    Hi,
    I'm new to this forum.
    I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
    I would like to call it from external program in order to view part of the data available in st06.
    Thanks,
    Erez Gordon.

    have a look at function group SMON.
    Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
    Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM

  • Is there any Function module available for GR IR for purchase order

    Hi
    Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
    One way to create a custom fuction to fetch the details from MSEG and BKPF.
    Can somebody suggest a better solution.
    Thanks in advance.
    Ruhi Hira

    Which table in BAPI_PO_GETDETAILS exactly has these information ?
    PO_HEADER_TEXTS
    PO_ITEMS
    PO_ITEM_ACCOUNT_ASSIGNMENT
    PO_ITEM_SCHEDULES
    PO_ITEM_CONFIRMATIONS
    PO_ITEM_TEXTS
    PO_ITEM_HISTORY
    PO_ITEM_HISTORY_TOTALS
    PO_ITEM_LIMITS
    PO_ITEM_CONTRACT_LIMITS
    PO_ITEM_SERVICES
    PO_ITEM_SRV_ACCASS_VALUES
    RETURN
    PO_SERVICES_TEXTS
    EXTENSIONOUT
    NFMETALLITMS
    Regards
    Ruhi Hira

  • Is there any function modules or BAPI's

    Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
    bapi_alm_notif_data_modify
    But iam not able to change partner in notification header
    Please give your input for sovling it

    Dear Rama,
                           In the bapi_alm_notif_data_modify, there are 2 structure
    NOTIFPARTNR STRUCTURE  BAPI2080_NOTPARTNRI OPTIONAL
    NOTIFPARTNR_X STRUCTURE  BAPI2080_NOTPARTNRI_X OPTIONAL
    Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X  , then u can change the partner value.
    Give point if helpfull
    Thanks

  • Is there any function module for getting distribution list name

    Hi all,
    Is there any function module for getting distribution list name when there is same description for two distribution list name.
    or
    help me how to fetch the correct distribution name when there is same description.
    In order to send mails.
    Tell me ASAP.
    thanks
    sagar.

    http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
    list of Fms

  • Is there any function module to get the variables used in a query?

    Hi experts
    Please, do you know if is there any function module to get the variables used in a query?
    Thanks and regards
    Luis

    Hi Srini
    Yes, I have checked the tables but I need a function module
    Thanks anyway!
    Luis

  • Is there any function module to give absolute value of a number?

    Hi,
    Is there any function module to give absolute value of a number?
    That has similar functionality to the Built in Function ABS.
    Please let me know.
    Thanks,
    cs

    hi,
    why are you looking for any function module.
    You can easily get it by mathematical function ABS .
    Syntax : <Turget Variable> = ABS <Source Variable>
    \[removed by moderator\]
    Anirban Bhattacharjee
    Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM

  • Is there any function module to convert date format?

    Is there any function module to convert date format from mm/dd/yyyy to dd.mm.yyyy or sy-datum?

    Hi,
    wirte statement converts any date fomat in system date fromat
        WRITE w_DateTO w_date_sys.
    Regards,
    Sriram

  • QM : is there any function module to find inspection lot characterstics

    Hi All,
            is there any function module to find all characterstics for an inspection lot.
    i need exact data which qe51n transaction is fetching .
    thanks in adv ,
    Varma

    Hi uvs,
    1. we can use the fm BAPI_INSPOPER_GETCHAR.
    regards,
    amit m.

  • Is there any function module? Fiscal week no problem

    Hi friends,
    I want how to get physical week for given date.
    Ie for 01-04-2009 week no is 1.
    Is there any function module?
    Pls suggest
    Regards
    Moosa

    Hi,
    Use the below code.
    DATA: v_ersda TYPE sy-datum VALUE '20090618'.
    DATA: v_month(2) TYPE c,
          v_week(2) TYPE c,
          v_full_week LIKE scal-week.
    MOVE v_ersda+4(2) TO v_month.
    CALL FUNCTION 'DATE_GET_WEEK'
      EXPORTING
        date         = v_ersda
      IMPORTING
        week         = v_full_week
      EXCEPTIONS
        date_invalid = 1
        OTHERS       = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    MOVE v_full_week+4(2) TO v_week.
    WRITE:/5 'Month = ', v_month.
    WRITE:/5 'Week = ', v_week.
    Regards,
    Kumar Bandanadham

  • Is there any function module that brings out profile planner

    Hello experts,
    Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
    Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
    Thanks in advance.

    look at these fms..
    CACS_PROFILE_PARTNER_READ
    CACS_PROFILE_SHOW

  • Is there any function module which will upload storage locations for a mat

    Hi gurus,
      Is there any function module or BAPI to extend the storage locations of material which is done through <b>MMSC</b> transaction. I need to write a program to upload new storage locations for some materials.Please advise.
    Thanks ,
    Sam.

    You can do this using the BAPI_MATERIAL_SAVEDATA
    Regards,
    Rich Heilman

  • Is there any function module getting the cpu type?

    Is there any function module getting the cpu type?

    I guess the database server...
    I would like to get the SAP system cpu type as done in transaction st06 under system information.
    Thanks.

Maybe you are looking for

  • Block sale order in credit limit

    Hi Expert,   I have configure the credit limit block.it working perfectly when customer match the credit limit..but if i use following example it didint work.. 1.Customer credit limit  :  100000.00 2.Total Credit Usage is 70000.00 if i am trying to c

  • Lack of help screens in apps

    I have downloaded several apps from the ovi store for my C6-01. Many of the apps have no "help" screens or instructions on how to use them. A case in point - I downloaded the CNN app. It is a great app, but I couldn't figure out how to play videos. V

  • How to go back to photo from video on i phone

    I accidently hit something when I was taking a photo that activated the video. For the life of me, I can't figure out how to go back. I've shut it off, tapped everything I could but there is no obvious solution. I'm not sure which model of iphone I h

  • Camcorder advice

    I am looking to replace my Sony mini-dvd camcorder. Although I love it, I can't easily transfer video (I didn't know this before purchasing). I have done a few clips using Handbrake but it seems to take a VERY long time. Anyway, what's the easiest wa

  • Why do i get NullPointerException errors when i move my screen?

    My GUI program compiles and runs fine without errors. However, when i click the top of the GUI and click/drag it around somewhere, i get all these nullpointerexceptions in my dos screen, where my program was compiled and run. Any ideas?