*.doc* files in tcode cg3z

hi to all,
           I used to cg3z tcode for data transfering from presentation server to application server. my problem is it working correctly  with .txt files. not other files like .doc files . is there any solution for this . thank you.

Hi,
Never tried. But are you facing any issues?
OLE and GOS (Generic object services) are two options i can think off...
Thanks,
Vinod.

Similar Messages

  • Upload Attachements(Doc File) into SAPand Read The same in BADI

    Hi All,
    I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
    Class name              :            PICTURES
    Class type               :            OT
    Object key               :            CAPA.
    I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
    And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
    Regards,
    Nagesh Kumar.
    Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
    Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AM

    Hi All,
    I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
    Class name              :            PICTURES
    Class type               :            OT
    Object key               :            CAPA.
    I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
    And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
    Regards,
    Nagesh Kumar.
    Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
    Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AM

  • Problem in sending .doc file as an attachment.!

    Hi SDN,
    I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send a .doc file as an attachment i am filling the the table contents_hex with my internal table containing the data in hex format but the attachment coming to the SAP office inbox is not showing the actual data it's showing the file with all hex values.
    can any one tell the reason?
    Please give sample code if possible for sending a word file as an attachment..
    Regards,
    Rahul

    Hi Rahul,
    I am sending you the sample code I have written for TXT.
    you can use the same code for .doc with small modification.
    You use this code and check once and let me know.
    Sample code:
    Declaration:
    DATA : w_name TYPE sos04-l_adr_name.
    DATA: sent_to_all  LIKE  sonv-flag.
    DATA:
      l_datum(10),
      ls_docdata TYPE sodocchgi1,
      lt_objpack TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
      lt_objhead TYPE TABLE OF solisti1 WITH HEADER LINE,
      lt_objtxt TYPE TABLE OF solisti1 WITH HEADER LINE,
      lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE,
      lt_reclist TYPE TABLE OF somlreci1 WITH HEADER LINE,
      lt_listobject TYPE TABLE OF abaplist WITH HEADER LINE,
      l_tab_lines TYPE i,
      l_tab_lines1 TYPE i,
      l_tab_lines2 TYPE i,
      l_att_type LIKE soodk-objtp.
    CONSTANTS : c_tab TYPE x VALUE '09'.     "tab delimiter between records.
    CONSTANTS : c_line(2) TYPE x VALUE '0D'.
    CONSTANTS : l_newline(2) TYPE x VALUE '0D0A'.        "To insert Newline.
    DATA: v_str LIKE lt_objbin.
    *Program logic
    Main Text
      lt_objtxt = 'Dummy heading. ' .
        APPEND lt_objtxt.
        lt_objtxt = '' .
        APPEND lt_objtxt.
    lt_objtxt = 'Dummy second line.'.
        APPEND lt_objtxt.
        lt_objtxt = '' .
        APPEND lt_objtxt.
        lt_objtxt = 'Regards,'.
         APPEND lt_objtxt.
        lt_objtxt = 'Field Service Team' .
        APPEND lt_objtxt.
        lt_objtxt = '----
        APPEND lt_objtxt.
    lt_objtxt = 'This is system-generated email;please do not reply to this
    message.'  .
        APPEND lt_objtxt.
    lt_objtxt = 'If there are any questions regarding this error message'.
        APPEND lt_objtxt.
    lt_objtxt = '----
        APPEND lt_objtxt.
    Write Packing List (Main)
        DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
        READ TABLE lt_objtxt INDEX l_tab_lines.
      ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
        CLEAR lt_objpack-transf_bin.
        lt_objpack-head_start = 1.
        lt_objpack-head_num = 0.
        lt_objpack-body_start = 1.
        lt_objpack-body_num = l_tab_lines.
        lt_objpack-doc_type = 'RAW'.
        APPEND lt_objpack.
    Create Message Attachment   "Attachmant of  file
        LOOP AT itab1.
          CONCATENATE itab1-bldat itab1-blart itab1-bukrs itab1-budat
                      itab1-monat itab1-waers itab1-xblnr itab1-bktxt
                       INTO lt_objbin SEPARATED BY c_tab .
          CONCATENATE  l_newline lt_objbin INTO lt_objbin.
          APPEND lt_objbin.
          CLEAR lt_objbin.
        ENDLOOP.
    Write Packing List (Attachment)
        l_att_type = 'txt'.
        DESCRIBE TABLE lt_objbin LINES l_tab_lines.
        READ TABLE lt_objbin INDEX l_tab_lines.
        lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255
                                        + STRLEN( lt_objbin ).
        lt_objpack-transf_bin = 'X'.
        lt_objpack-head_start = 1.
        lt_objpack-head_num = 0.
        lt_objpack-body_start = 1.
        lt_objpack-body_num = l_tab_lines.
        lt_objpack-doc_type = l_att_type.
        lt_objpack-obj_name = 'Header file name'.
        lt_objpack-obj_descr = 'Header file name'.
        APPEND lt_objpack.
    *refresh bdclm.     "Attachemnt of second file
       CLEAR lt_objbin.
        LOOP AT bdclm.
          CONCATENATE itab2-indate itab2-intime itab2-tcode
                      itab2-longtext
                      INTO lt_objbin SEPARATED BY c_tab.
          CONCATENATE  l_newline lt_objbin INTO lt_objbin.
          APPEND lt_objbin.
          CLEAR lt_objbin.
        ENDLOOP.
        CLEAR lt_objbin.
    Write Packing List (Attachment)
        l_att_type = 'txt'.
        DESCRIBE TABLE lt_objbin LINES l_tab_lines1.
        l_tab_lines2 = l_tab_lines1 - l_tab_lines.
        READ TABLE lt_objbin INDEX l_tab_lines2.
    lt_objpack-doc_size = ( l_tab_lines2 - 1 ) * 255 + STRLEN( lt_objbin ).
        lt_objpack-transf_bin = 'X'.
        lt_objpack-head_start = l_tab_lines2.
        lt_objpack-head_num = 0.
        lt_objpack-body_start = l_tab_lines + 1.
        lt_objpack-body_num = l_tab_lines2.
        lt_objpack-doc_type = l_att_type.
        lt_objpack-obj_name = 'file name '.
        lt_objpack-obj_descr = 'file name '.
        APPEND lt_objpack.
    Create receiver list
        lt_reclist-receiver = '[email protected]'.
        lt_reclist-rec_type = 'U'.
        APPEND lt_reclist.
    Send Message
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                document_data = ls_docdata
                put_in_outbox = 'X'
                 commit_work = 'X '
    *put_in_outbox = ''
            IMPORTING
                sent_to_all = sent_to_all
    VALUE(NEW_OBJECT_ID) LIKE  SOFOLENTI1-OBJECT_ID
             TABLES
                 packing_list = lt_objpack
                 object_header = lt_objhead
                 contents_bin = lt_objbin
                 contents_txt = lt_objtxt
                 receivers = lt_reclist
    *COMMIT_WORK = X
             EXCEPTIONS
                 too_many_receivers = 1
                 document_not_sent = 2
                 document_type_not_exist = 3
                 operation_no_authorization = 4
                 parameter_error = 5
                 x_error = 6
                 enqueue_error = 7
                OTHERS = 8.
    Thanks,
    Yuvaraj

  • Link to trigger a .pdf or .doc file to show in presentation

    I would like to add a link that would trigger the showing of a .pdf file or a .doc file within the presentation itself. I can do this in powerpoint. There must be some way to do this in Keynote, but I can't figire out how to do this. Thanks for any ideas.

    Keynote does not allow links to anything but other Keynote presentations, websites, or email. However, you can use Expose or Command-Tab to quickly switch to a PDF or Word file.

  • I can not open adobe files. mainly ones that end in doc. I purchased the 19.99 to convert .doc files

    I can not open adobe files that end in .doc. I purchased the 19.99 to convert doc to pdf and I still cant open. I get an error reading.

    Hi,
    Which Adobe Service did you purchased?
    If you have purchased CreatePDF please visit: https://createpdf.acrobat.com/SignIn.html
    Sign in with your Adobe ID and password, and then convert your word doc into PDF.
    Please let me know if that works.
    If you have Adobe Reader, you cannot convert .doc file to .PDF by drag and drop.
    ~ Aditya

  • Can not open .pdf or .doc files in mail

    Every time I receive an email with a pdf or .doc file attached I can never open it as I get a message telling me that the file was not recognised or that the file is invalid. Even if I select to open using Adobe for the pdf I get the same.
    Any help gratefully received. I've always had this problem and get round it by viewing these emails online instead. But it's not as convenient of course.

    G'day jbglass,
    I had the same problem, getting the same error message etc. I solved the problem by going to Google Chrome and using that to download the file ( a pdf brochure in my case).  That worked OK.  Hope this helps.
    fitzlefrog

  • I converted by PDF files to Doc files.  How can I download them to my desktop?

    I need to update the .doc files.  How can I download them to my desktop?  It should be simple  but I can't figure it out.

    HI DaiseyBabii,
    Sign in to cloud.acrobat.com with your Adobe ID and password.
    Click the Files tab, and you'll see a list of all the files you've converted.
    Click the file that you want to download, and then click Download in the upper-right corner.
    Let us know if that doesn't do the trick.
    Best,
    Sara

  • ADF 10g: open doc file in msWord but not in browser

    Hello,
    I'm working with JDeveloper 10.1.3/JHeadstart 10.1.3. deployed on Oracle application server 10.1.2.3
    Does anybody know how to open a .doc file in msWord application on client side?
    I have added a mime-type in my web.xml:
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    but the file is opened in a new internet explorer window.
    Currently I succeeded to open it in msWord by changing settings on the client computer in explorer>Tools>Folder Options>File Types and then change for doc file type the advanced property "Browse in same window". When not checked, the .doc file is opened in msWord but when checked the file opens in the browser.
    It could be easy to ask the users to make this modification on their station, but it is not possible.
    Thanks in advance.
    Pierrick

    Hi,
    if the requirement is similar and not the same its always worth spelling it out. You can reference document resources like Word from ADF by referencing the document URL from a goLink (which then allows you to set the target property to open the doc in a separate browser window or tab). If the browser opens Word, downloads the file or opens in the browser depends on the MIME type setting of the browser (e.g. can it display Word documents natively). If the document e.g is accessed from ADF through a servlet then you probably can set the Mime type explicitly to a specific one. However, it the client in the end that interprets how to process the document.
    Frank

  • Open doc file in msWord but not in browser

    JDev 11.1.1.6.0
    My requirement is similar to that in https://forums.oracle.com/thread/2327005 but in 11g.
    The user has almost done it in making changes in web.xml but I am a beginner and I don't know how to make this happen on click of a command button or a command image link.
    Also, it would be nice if the doc file (new blank doc) opens in MS Word application and not in browser without making changes in browser level.

    Hi,
    if the requirement is similar and not the same its always worth spelling it out. You can reference document resources like Word from ADF by referencing the document URL from a goLink (which then allows you to set the target property to open the doc in a separate browser window or tab). If the browser opens Word, downloads the file or opens in the browser depends on the MIME type setting of the browser (e.g. can it display Word documents natively). If the document e.g is accessed from ADF through a servlet then you probably can set the Mime type explicitly to a specific one. However, it the client in the end that interprets how to process the document.
    Frank

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • "uses a file type that is blocked from opening in this version" error message when opening a *.doc file with Word already running

    Several customers running different versions of Office 2011 (14.4.1-14.4.5) on OSX varying from 10.7.5 to 10.9.5, running on various kinds of hardware (iMac/MacBook Pro/MacBook Air) of various ages are having issues opening *.doc files if the Word is already open. The error message that gets displayed is, "XXXX.doc uses a file type that is blocked from opening in this version"
    When the customer tries to open the same file via File-Open, she gets "The file is locked for editing. you can open the file as read-only".
    When trying to do so, she gets "Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters".
    If Word gets Force-quit, the same document opens without any problems.
    1. Repairing Disk permissions was ran several times. and the volume was found to be OK.
    2. I have noticed that in this scenario either deleting the normal.dotm or com.microsoft.word.plist (~/Library/Preferences) sometimes resolves the issue, sometimes it doesn’t. There is no pattern to follow. All versions of Office are affected, the fully updated and the non-updated ones.
    3. I have tried completely removing the suite using Office 2011 Uninstall.app and/or Remove Office 2011 Uninstaller.pkg, then going through customer's library and manually removing all the Office references.
    4. None of these systems had Office 2008 in the past.
    Any help will be greatly appreciated.

    Reboot both the Mac and the server. Word opens .DOC files and Excel opens .XLS files. As you have found out by copying the files to the computer. It is the connection between the 2 computer that is causing the error.

  • How to open and read pdf and micrsoft word (.doc) files or documents

    My problem is how to use my BB 9800 software version 6.0.0.546 to read/view pdf files and microsoft office documents. I have also bought documents to go from online and have installed it on my phone, but whenever i try to open it I receive a message that it is incompactible. Any help will be greatly appreciated.

    Hi, Sammy.
    Why not install a 3rd party PDF reader and Word Doc reader to help open and read pdf and micrsoft word (.doc) files or documents? You can google it and select one whose way of processing is simple and fast to help you with the related converting work.  It will be better if it is totally manual and can be customized by users according to our own favors. Remember to check its free trial package first if possible. I hope you success. Good luck.
    Best regards,
    Arron

  • Pages '09 won't open my AWK or DOC files

    I've bought iWork '09 to future proof myself against the day I finally have to abandon a computer running Snow Leopard + Rosetta (I can still run AppleWorks and Word 2001 on my present machine but that won't always be the case).
    However, now I'm beginning to regret it. Every document from AppleWorks 6 or Word 2001 (or Word 97 onwards ".doc" saved by TextEdit) will not open in Pages. I get a message, "The document __________ cannot be opened". I've tried both dragging the files onto the Pages icon in the dock, and by using Open in Pages.
    Yet Pages will open a Simple Text document (albeit with a lot of "garbage" where the formatting was), and it opens TextEdit RTF documents, and I can grab and insert any jpeg into it.
    But I bought the suite on the grounds that it will open AW6 and Word .doc files ... yet it won't! What has gone wrong?

    Consider continuing to run Appleworks in Lion or Mt. Lion with Snow Leopard (and Rosetta) installed into Parallels:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches:
    1. I'm able to use Open Office Writer to convert it to a normal PDF format. I then tried to take that PDF file and convert it to a PDF X file using Acrobat Pro with Preflight, but a bunch of errors appeared.
    2. If I start in Acrobat Pro, select Create PDF from file, select my documents, none of the .doc files produced in Open Office show up on the list--as if Acrobat Pro won't read any .doc files produced by Open Office.
    Hope someone can help. I'm new to Acrobat Pro.
    Thanks in advance.

    Use Ctrl-P or Use FILE>Print when you have OO Writer open with your document. You should get something like below.
    Just select the Adobe PDF printer, check properties if you like, then print. In this case, OO shows a preview of the pages in the document as they should look. I created a simple one as an example. I did a preflight after using the PDF-X1A settings and did get errors noted. One of them had to do with tagging that does not happen when you use the print. You might try to print normally and then use preflight to convert. I tried also and still got errors. At least I may have given you some things to try.

  • Opening '.doc' files created by Appleworks

    Hi,I couldn't find any discussion of this so am posting a question.
    Pages 2.0 opens all our normal Appleworks word processor (cwk?) files OK, and also opens "real" ".doc" files created by Word (from others, we don't have Word).
    Pages won't open Word type ".doc" files saved from Appleworks, and gives a message that it is an incorrect file type. If I use "get info" to remove the .doc extension from the name, Pages will open the renamed file. So pages appears to be okay opening Appleworks saved .doc files only if I remove the .doc from the name.
    Kind of hard to do with several hundred files. Any suggestions?
    G42x800, G4Cube, Etc. Mac OS X (10.4.5)

    I don't know what the problem is exactly. When I save a document as Word (6 or 98) in AW, no .doc extension is added to the file name. But here is a solution to remove the extension, if that helps:
    Create a workflow in Automator. I use Automator on a german OS, I have tried to translate the commands, but you might have to search for the corresponding actions with a similar name.
    - Add the "Get Folder Content" action
    - Add the "Rename" Finder action
    - Select "Replace text" and replace ".doc" with nothing or with "AW doc"
    Then save the action as a folder plugin and attach it to a "Convert AW docs" folder.
    Any file dropped into the folder will be renamed according to your rules.

Maybe you are looking for

  • Dv gray squares blank screen Kona LH final cut pro iTunes

    KONA/AJA conflict with FCP If anyone outputs their system's sound through a KONA LH card and AJA KL breakout box, it causes gray squares and then the video output goes fully blank when outputing via FireWire / DV to a deck. I noticed that this proble

  • REBATE  SETTLEMENT ERROR.

    Hi all, well have created material rebate in vbo1 & the rebate is for 50 .In vf02 in accounting doc  the amounts are displayed  as :    ERU   rebate accurals : 50, & reverse for other  :50 . can u pl let me know wts  the amount 50 ,which says reverse

  • How to add multiple entries at once

    Hi, I need to define Tax Jurisdiction codes under tax on sales/purchases node and i have almost thousands of entries. Is there a way to add all at once ???? Please let me know.. Thanks, adv

  • HT204088 how to register a problem while purchasing?

    While I was purchasing an item, an error occurred. Then, I restarted that purchase and my credit card was charged 2 times... How could I revert it? Regards

  • Failed to start  java application server  8

    hi every body, hi every body, i am getting the famous error: " failed to start sun java application server 8 possible causes: -port conflict -incorrect server configuration(domain.xml need to be corrected manually) -corrupted deployed application pre