Need to change word file name

hi,
I am uploading the word file into application server from a SAP CRM transaction using the method cl_crm_documents=>get_with_file.
My requirement is while uploading the file into app server I need to change the file name to differentiate the files. Is there any way so that I can change the word file name?
Thanks,
Kumar

Hi,
Do this way ..
i.e, use METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
    DATA: W_WFD_FILE01 TYPE STRING,
          W_WFD_RC01   TYPE I.
          W_WFD_FILE01 = P_OUT1.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
         EXPORTING
              FILENAME             = W_WFD_FILE01
         CHANGING
              RC                   = W_WFD_RC01
         EXCEPTIONS
              FILE_DELETE_FAILED   = 1
              CNTL_ERROR           = 2
              ERROR_NO_GUI         = 3
              FILE_NOT_FOUND       = 4
              ACCESS_DENIED        = 5
              UNKNOWN_ERROR        = 6
              NOT_SUPPORTED_BY_GUI = 7
              WRONG_PARAMETER      = 8
              others               = 9  .
         IF SY-SUBRC <> 0.
*             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.

Similar Messages

  • Changing the file name of photo in Finder.

    I need to change the file name of my photos. I have changed the settings so that they show on iPhoto as 001, 002 etc - but I need this information to also be set in Finder. Is this possible?
    NikiKL

    No - iPhoto is a photo database and it controls the files - you can not - in fact must not (if you make any changes in the structure or content of the iPhoto library you will corrupt it and lose data) -- and there is no reason to - you have full access to your files - <a href-"http://web.me.com/larryhn/iPhoto08_(version_7.x.x)_FAQ/Accessing_iPhotoPhotos.html"> click here for a discussion of the many ways to properly and safely access your photos -- and you can always export them using the title for the file name to have them outside iPhoto with any name you desire
    LN

  • I need command to change the file name in vi please.

    quick question
    i need command to change the file name in vi please.
    oldname = initprod12.ora new name = initprod2.ora

    SQL> startup;
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/usr/oracle/oradata/dbs/initprod2.ora'
    SQL> !
    [oracle@oracle2 ~]$ cd /usr/oracle/oradata/dbs
    [oracle@oracle2 dbs]$ ls
    ab_ASM2.dat  hc_prod12.dat  initASM2.ora init.ora orapw+ASM2
    hc_+ASM2.dat  hc_prod2.dat   initdw.ora     initprod12.ora  orapwprod12
    [oracle@oracle2 dbs]$ exit
    exit
    SQL> startup pfile='/usr/oracle/oradata/dbs/initprod2.ora';
    LRM-00109: could not open parameter file '/usr/oracle/oradata/dbs/initprod2.ora'
    ORA-01078: failure in processing system parameters
    if i change the name of initprod12.ora to initpord1.ora , will my problem be solved?

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • Changing the file name dynamicallly in file Adapter

    Hi i want to change the file name directly from Java Mapping in the file adapter
    for this i have written this code
    DynamicConfiguration dynamicConfiguration = (DynamicConfiguration)map.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                   DynamicConfigurationKey keyFile = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
                   DynamicConfigurationKey keyDir = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
                   dynamicConfiguration.put(keyFile,fileName);
                   dynamicConfiguration.put(keyDir,outputpath);
    but it gives a null pointer exception at dynamicConfiguration.put(keyFile,fileName);
    please suggest.
    regards
    Nilesh Taunk.

    Hi Nilesh,
    If your requirement is to create , the file name dynamically for your receiver file adapter, you can do so using your <b>FILE ADAPTER CONFIGURATION</b> itself, and need not go for any JAVA Mappping / Java Code at all.
    The dynamic filename generation concept is as follows.
    In your filename field in the receiver file adapter, just give a variable with <b>%</b> symbols. (eg: %file% ).
    Now, under the option <b>Variable Name Substitution</b>, you can give how the value has to be created.
    <b>It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.</b>
    For the former, your give
    <b>message:interface_name</b> ,etc
    and for the payload part you give,
    <b>Payload: "your element root which u wanna acecss"</b>
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    Also, in your FILE Adapter under the option FILE CREATION MODE, you have options like,
    1.Add Counter,
    2. Append
    3. Create
    4. Add Time Stamp
    If you have any clarifications on this approach, do get back.
    Regards,
    Bhavesh

  • Changing the File Name

    Hi
    i am designing a adobe form which will be send in mail when a button is clicked, i found that the attachment name to be "unknown.pdf". how can i change this ???
    i found out a method called getAcrobatApplicationName() in XML and when i changed application name in that its not getting reflected. So is there any other way to change the file name on "Button Click" event?
    Thanks
    Gopal

    Hi Gopal,
    See if it helps:
    In NW2004s we use the following. getPdf() returns a byte[], the filename is "document-<username>.pdf" and source is the attribute of an IFrame UI element.
    code
    private void initPdf() {
    IWDResource resource =
    WDResourceFactory.createResource(
    getPdf(),
    "document-"
    + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName(),
    WDWebResourceType.PDF);
    String source =
    resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
    wdContext.currentContextElement().setSource(source);
    [/code]
    On NW2004 we use a FileDownload UI element (with target=_self) and we call initFileBinaryType method in the wdDoInit method. Of course you still need to set the binary PdfData context attribute with the actual content of the PDF file.
    code
    private void initFileBinaryType() {
    IWDModifiableBinaryType pdf =
    initFileBinaryType(IPrivateTestAppView.IContextElement.PDF_DATA);
    pdf.setFileName("document-"
    + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName());
    pdf.setMimeType(WDWebResourceType.PDF);
    private IWDModifiableBinaryType initFileBinaryType(String attribute) {
    return (IWDModifiableBinaryType) wdContext
    .getNodeInfo()
    .getAttribute(attribute)
    .getModifiableSimpleType();
    [/code]
    Regards,
    Arafat

  • Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without

    Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without fouling everything up?

    Ok, well you'll need to do something like this. Now this part is a little dependent on your database server:
           try {
                Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                Connection c = DriverManager.getConnection(
                                                           "jdbc:mysql://{database-server}/{database-name}:3306?user={username}&password={password}");
                Statement Stmt = c.createStatement();
                int count = Stmt.executeUpdate(cmd);
                if(count>0) {
                     System.out.println("count: " + count);
            } catch (Exception e) {
                e.printStackTrace();
        }That was some sample code for a MySQL database.
    Note that the applet can only contact the server that is was loaded from, so you might want to do a getCodeBase() or something like that to get the server address.
    Hope this is helpful.

  • Changing the file name of a PDF you send via email

    Hello Support,
    I am trying to find out how to change the file name of the attachment I send via email when I click submit via email. I would like the file to be sent with the file name, not some other file name.
    How can I fix it? This is very urgent! I need HELP!
    Cheers
    Joel
    Message was edited by: J Braden

    Hi,
    you can't.
    Except you save the file under a different name before you send it.

  • HT2506 Change the file name of a picture in preview

    I want to change the file name of a photo. It opens in preview and when I click change name the text box opens, I type in the new name and when I click save it reverts to the original document name. It file is not locked.

    Don't click Save. It isn't needed and causes it to revert.
    Just change the name and hit enter.

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • I have iCloud on MY PC and when I try to download attachments it is changing the file name to messagepart. What can i do to change this?

    I have iCloud on MY PC and when I try to download attachments it is changing the file name to messagepart. What can i do to change this?

    I don't think this is an iCloud issue- it is the latest release of Safari. Firefox attachments are still correctly downloaded.
    This needs some interest from Apple techs.

  • How do I change a file name of a photo

    I am new to the Mac and running Yoesomite. I wanted to know can I change the file name of a photo in iPhoto.  If not, then is the process to export the file to the desktop and then change the file name using cmd i.  I used to be able to do this in Windows easily but now I am not sure how to do this on a Mac.

    You can take the photo you need from iPhoto Library in Pictures. Click it with right mouse button and choose Show Package Contents. In that folder that opens, choose Masters and now you can find the photo that you needed, but it will take some time as there are many folders and some may be empty. Copy that photo to Desktop and do what you want from that point.
    Don't do that.
    It's utterly unnecessary, slow and difficult and worse, risks dataloss.
    Use the simple and supported ways.
    Export using File -> export, or use a Media Browser.
    When uploading to Wordpress there is no need to rename the file. Just upload it from the Media Browser (*see below) and you can title it in the Wordpress dialogue.
    *For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • Change multiple files name at once

    Hi
    I would like to know if someone knows how to change multiple files name in mac. I need to name hundreds of files name, and dont want to do it one by one ... Example: Change from: Doc 1, Doc 2, Doc3 ...to: 2010Summer1; 2010Summer2,etc...
    Thanks in advance for any help,
    Joao

    Make an Automator workflow that changes the name. You would Replace text of "Doc" with "2010Summer". When you open Automator, choose Workflow. Drag in a Get Selected Finder Items and then drag in a Rename Finder Items. Select the "Replace Text" option. Fill in the Details, select the files in the Finder, and then run the workflow.
    There are also some third-party file renamers. Check MacUpdate or VersionTracker. I don't know if there are any free ones.

  • When Saving a file finder changes the file name

    After updating to Mountain Lion, every time I save a file, I put in the correct file name and after beginning to save the file the file name is changed to a file name that was saved weeks ago.  It does not matter where or with what program I save it, it begins to save under the correct name and sometime before the save is complete finder changes the file name to a file a saved weeks ago.
    What library file do I have to delete this time to make this stupid thing stop doing that?!?

    It's the level of compression. Lower number, more aggressive compression, more visual artifacts.
    Aside from that you should never use jpeg as a working format. The compression is destructive and cumulative, and the file deteriorates every time you resave it.
    Use TIFF or PSD, and if you need jpeg save out a copy as a single final step.

  • If I change a file name, how can I get DW to just change the name on server?

    I've got a reasonable grasp of site management but I just changed a bunch of files to replace an uppecase letter with a lower case e.g. MyFile.jpg to myfile.jpg  and DW doesn't manage that on the server.
    I ended up canging my file names, syncing the folder, deleting the duplicates directly on the server and then uploadin the HTML page the images link to.  Seemed like a long way of doing things in relation to the way DW manages everything else?
    Regards
    Maritn

    Hello Beth
    Thanks for that but it was rather what I wondered if I could avoid.
    The problem arises because of trying to manage gallery images.  I needed to change the name of a .jpg file and wondered if I could update the server without updating everything else. All my pages work OK and I needed to change several image names.  I went through the images and changed them locally, and DW updates everything fine.  So I synchronise the pages and would have just liked to have updated the image filenames without having to wait for the upload of just the image files which were the same.
    Even as I'm typing that out I realise it would be a small miracle to expect DW to compensate for my own ceaseless laziness...
    Martin

Maybe you are looking for

  • Select from sys.all_ind_columns works in sql*plus but not in stored proc

    I'm writing a query to find duplicate rows in a temporary table which has no unique index defined before I insert the data into the real table. I'm trying to query the sys.all_ind_columns view for the target table which belongs to a different schema:

  • Problem in displaying Flash works (only in IE)

    Hi, we have problem in displaying the flash animations, as it shows a box like surrounding, after when we double click it, it gets activated. We face this problem only in IE and not in any other browsers. We want to know the technical reason for this

  • Modifying selection screen with help of radio buttons

    Hi,   In my program am using three parameters to download a three different files and I have to use radiobuttons for that. I want to download only one file at a time. I have used MODIF ID but it is not working for 3 Parameters but it is working for o

  • No Content Search WP in the cloud versions (365)?

    Hi, I saw in some comparison tables that there is no content search WP in the 365 versions of SharePoint. We have a customer that currently consider using SharePoint on-Premise vs. Cloud version for Document Management with external users access. Can

  • Advice for asking the very best question. Read here first!

    Hi everyone, and welcome to the HP community forum. This area is all about users of technology helping each other. The people reading and answering your posts need help in getting you the best answer. Please read this message for insight into how to