LSMW file read & convert file name

Guys
This is pretty hot - any ideas to automate will be helpful.
Is there a way to programmatically change the default name for the LSMW file read and file convert names?
For example if read & conv file is
Plant_Master_Material.lsmw.read & Plant_Master_Material.lsmw.conv,
I want to programmatically append userid and make the file name look like
Plant_Master_Material_myid.lsmw.read & Plant_Master_Material_myid.lsmw.conv.
It can be done manually via step specify file in LSMW, but I want to automate that step.

Hi Iqbal,
Its not possible to make it automatically,
name for the LSMW file read and file convert will as such like this
PROJECT_SUBPROJECT_OBJECT.lsmw.read & lsmw.conv.
This can not be changed...if u need it u can have u r userid under u r object name...
Reward if useful..

Similar Messages

  • LSMW Read/Converted File Name

    Hi,
    Normally when you specify file, a name will be generated for the read and converted file with different extention. Now, is it possible to have a more dynamic way of naming this file?  My requirement would be to have the read/converted named differently on each load (without changing the name in LSMW config on each run), for eg. lsmw_read_20022009.read and lsmw_read20022009.conv. In this example, the date is the variable and should change base on system date, so the next load on a different will have a different date. I got some ideas from logical/physical file, but I am not sure how and if its applicable. Any ideas?
    Thanks!
    cady

    regarding the LSMW we have lot of tables , if you chnage the file names in table level based on dates it will fick the files form tables
    goto se11 and give the /SAPDMC* then press the F4 you will get 48 tables, if its possible to chnage the file names your probelm is solved....

  • XI 3.0 File Adapter: Converting File Content in Sender Adapter

    Hi,
    This is probably a basic question but does anyone have an example of the parameters used when you are using the 'Converting File Content' option on the File Adapter ?
    Also, where do the record sets have to be defined ? Are these data types in the Integration Builder ?
    The documentation is to say the least a bit flaky.
    Any help would be appreciated.
    Kind regards
    Colin.

    Hello,
    I'm wondering if someone has experience setting up conversion for different record structures. The example shown (in a greate way) only picture one kind of structure.
    How should it be done if the file would contain
    10Mat1
    20100PCS
    The first record structure has columns
    ID(2),Material(10)
    The second redcord structure has columns
    ID(2),Quantity(3), Unit of messure (3)
    Brgds
    Kalle

  • How to modify a datafile using file read and file write

    I have a datalog file containing port and DMM setup information.  I want to read this file into an aray, update or modify it, and write it to a file.  I can read the file in, but I am at a loss on how to modify it since it is stored in an indicator.  Any suggestions?

    The simplest thing is to replace your indicator by a control, and to use a local variable to write your data into the control.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Counting number of files read by File adapter

    I have configured a file adapter in a BPEL prcs to read files from a location. The adapter is polling files with a specific file ext(say txt). Is it possible to know the number of files read by the BPEL prcs at the end of the day??? i,e.
    is it possible that a BPEL instance after reading a file updates the count in a variable and this variable value is seen by other BPEL instances and the other instances can also update the value....
    Any pointers will be helpful...
    Thanks

    You could make use of some logtable and log it inhere.
    In the bpel after a file is pickup up, read this value from the table, add 1 to it, and write it back.
    Or try this approach from Lucas :
    http://technology.amis.nl/blog/?p=2781

  • Upload a txt file,read that file,display po details using BAPI

    hi GURUS,
    CL_GUI_FRONTEND_SERVICES=>gui_upload to retrieve the file (upload the file).
    HOW TO USE THIS??? GV MORE DETAILS PLEASE...I WANT TO read TEST PO DATA.txt file Can you give me example how the test data( Header data and Item level data is used to fill the test PO data.txt file )
    Do i need to Use OPEN DATASET
    CLOSE dATASET command?
    how????
    points will be rewarded
    thanks

    Hi Avik,
    using  CL_GUI_FRONTEND_SERVICES=>gui_upload in a program.
    There are sample programs in the following link
    http://wiki.ittoolbox.com/index.php/Upload_and_download_SAP_transport_request
    Award points if useful
    Thanks,
    Ravee...

  • Read BMP File Requires Absolute Path

    I noticed something today regarding the Graphics Formats, Read JPG File, Read PNG File and Read BMP File vi's. It seems that when reading a JPG or PNG file, a relative path is OK, but when reading a BMP file, an absolute path is required. When the path only contains the filename, it returns:
        Error 1430
        "Open/Create/Replace File in Read BMP File Data.vi->Read BMP File.vi->ReadImageFileTest.vi"
    I tried a simple test that uses either the relative or absolute path, trying to read 3 different files in the same directory as the VI. Only the Read BMP File errors. Of course, the simple work around is to always use the full pathname to a file. Is this only on my system? Is this a known bug or feature or expected behavior?
    I'm using LabVIEW 8.2 on Windows XP.
    Thanks!
    B-)
    Message Edited by LabViewGuruWannabe on 11-05-2007 11:06 PM
    Attachments:
    ReadImageFileTest-FPgood.PNG ‏30 KB
    ReadImageFileTest-FPbad.PNG ‏26 KB
    ReadImageFileTest-BD1.PNG ‏48 KB

    Missed this on the first post:
    Message Edited by LabViewGuruWannabe on 11-05-2007 11:10 PM
    Attachments:
    ReadImageFileTest-BD.PNG ‏48 KB

  • A need a function module to read a file and write back into it

    Hello ,
    My requirement is to provide the path to a file , read the file contents and then write back to it.
    Thanks,
    Mridu.

    Hi ,
    Use combination of these three FM's , A nice documentation is given for them by SAP .
    1.)  F4_FILENAME
    2.) GUI_UPLOAD
    3.) GUI_DOWNLOAD
    revert back if any queries
    reward points if helpful

  • Why no simple method for reading text files

    I'd like to know, after all this time why there is no simple method of reading ext files into a string.
    Yes, yes, I know all about buffered readers, (it took me long enough to figure them out) but they are cumbersome and seem to change every release (how many file methods have been deprecated...)
    Here's what I'm looking for:
    file.open();
    file.read(String);
    file.close();
    No single character at a time, no loop - the whole file into a single string in one shot. If buffers are used, i want it hidden.
    Perl, PHP, VB, C# all have this. Even Java has it when you write to a file.
    So why not on read?
    Yes, buffered streams are very elegant, but for what most programmers want to do, they are overkill and annoying.

    Just Dennis Ritchie's little joke.
    Do you have a better reason for wanting the feature
    other than that some other languages have it?Yes. It would save me time and help dozens of new programmers who continually ask this question in this and other forums. It is in other languages because people use it and want it - clearly Jarkata saw the need. If you don't like the idea, then I won't argue the point. We agree to disagree.
    Also did you have an answer for my question?in java.io.file you can do the following: (i've used it, it works) Granted, you still have to use the buffered output streams, which in my opinion should be abstracted for a simple text read and write.
    BufferedWriter outputStream = new BufferedWriter(new FileWriter(fileNewPath));
    outputStream.write(fileContent);
    outputStream.close();

  • Reading Flat File

    I ma having a falt file like this
    35,45,UUUUUUUUUUUUUUUUUUUUUUUUJHHNNBGHHHHHHHHHHHHHHHHH
    KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK~
    678,323,unnmiMM>>LLLLLHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHKMKKKKKKKM
    JJJJJJJJJJJJJJJJJJJJJJJJJIKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK~
    980,765,HJJMMFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    BBBBBBBBBBBBBBBBBBBHHHHHHHHHHHHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG~
    each record ends with ~ sign.
    Now how do i read a single record using I/O package.
    can someone please post the code snippet or some logic to read such files.

    Read the file using RandomAccessFile
    File fileToRead = new File( fileName );
    RandomAccessFile raf = new RandomAccessFile(
    fileToRead, "r" );
    String str[] = null;
    str = raf.readLine().split("~");
    so the records will be stored in str, array of
    String, first rec is str[0]
    thank u sir,
    i will be doing it very soon.
    Like that.
    Ganesh

  • CVI dll to read XML file causes memory leak

    Hello,
    I am facing a memory leak issue when I execute a dll created using CVI to read a XML file.
    Each iteration of the step is taking around 200k of memory.
    Short description of the code:
    Basically I am using a function created in CVI to read from an XML file by tag which 2 attributes: command and the response;
    int GetCmdAndRsp(char XML_File[MAX_STR_SIZE], char tag[MAX_STR_SIZE], char Command[MAX_STR_SIZE], char Response[MAX_STR_SIZE], char ErrorDescription[MAX_STR_SIZE]) 
    inputs:  
    - XML_File_path;
    - tagToFind;
    ouputs:
    - Command;
    - Response;
    - Error;
    Example:
    XMLFile:
    <WriteParameter Command="0x9 %i %i %i %i %i" Response = "0x8 V %i %i %i %i"/>
    Execution:
    error = GetCmdAndRsp("c:\\temp\\ACS_Messages.xml" ,"WriteParameter", cmd, rsp, errStr) 
    output:
    error = 0
    cmd = "0x9 %i %i %i %i %i"
    rsp = "0x8 V %i %i %i %i"
    errStr = "Unkown Error"
    Everything is working correctly but I have this memory leak issue. Why am I having such memory consumption?? Is it a TestStand or CVI issue??
    Each iteration I am loading the file, reading the file and discarding the file.
    Attached you can find the CVI project, a TestStand sequence to test (ReadXML_test2.seq) and an example of a XML file I am using.
    Please help me here.
    Thaks in advance.
    Regards,
    Pedro Moreira
    Attachments:
    ReadXML_Prj.zip ‏1826 KB

    Pedro,
    When a TestStand step executes, its result will be stored by TestStand which will be later used for generating reports or logging data into database.
    You are looking at the memory (private bytes) when the sequence file has not finished execution. So, the memory you are looking at, includes the memory used by TestStand to store result of the step. The memory used for storing results will be de-allocated after finishing the sequence file execution.
    Hence, we dont know if there is actual memory leak or not. You should look at the memory, before and after executing sequence file instead of looking in between execution.
    Also, here are some pointers that will be helpful for checking memory leak in an application:
    1. TestStand is based on COM and uses BSTR in many function. BSTR caches the memory and because of the behavior, sometime you might get false notion of having memory leak. Hence, you need to use SetOaNoCache function OR set the OANOCACHE=1 environment variable to disable caching.
    2. Execute the sequence file atleast once before doing the actual memory leak test. The dry run will make sure all static variables are initialized before doing memory leak test.
    3. Make sure that the state of system or application is same when considering the Private bytes. Ex: Lets say ReportViewControl is not visible before you start executing sequence file. Then you note down the private bytes and then execute the sequence file. After finishing execution, make sure you close the ReportViewControl and then note down the private bytes once again to check if memory is leaked or not.
    4. If there exists memory leak as you specified, it is possible that the leak is either in TestStand, or in your code. Make sure that your code doesn't leak by creating a small standalone application (probably a console application) which calls your code.
    Detecting memory leaks in CVI is better explained in
    http://www.ni.com/white-paper/10785/en/
    http://www.ni.com/white-paper/7959/en/
    - Shashidhar

  • Sandbox deny file-read-metadata /private/var/tmp

    Hi,
    I have Berkeley DB 5.2.28.
    And I tried to use Berkeley DB on iOS 4.3.
    I wrote;
    printf (stderr, "db open - 1");
    ret = dbenv.open(strDBdir,
    DB_CREATE |
    DB_INIT_LOCK |
    DB_INIT_LOG |
    DB_INIT_MPOOL |
    DB_INIT_TXN |
    DB_THREAD |
    DB_RECOVER,
    S_IRUSR | S_IWUSR);
    printf (stderr, "db open - 2");
    I runned this app on iPod 4 (iOS 4.3), and then in xCode's Organizer found a message: "sandbox[363] <Notice>: myapp(362) deny file-read-metadata /private/var/tmp", between "db open - 1" and "db open - 2".
    How to resolve it?
    Please, help me.
    Thank you.

    Hi,
    I assume you have correctly followed and built BDB 5.2.28 for Apple iOS by following the guide for Building Berkeley DB for UNIX/POSIX and the notes specific to Apple iOS (iPhone OS).
    The error message you reported:
    sandbox[363] <Notice>: myapp(362) deny file-read-metadata /private/var/tmpis not an error from the BDB layer, but rather from the OS layer. It could point to insufficient privileges or rights (to write in that /private/var/tmp directory) or maybe a profile / access control list that is not configured correctly to allow the user you're running under to read metadata and data for a file; for example, make sure you have something like this in your sandbox profile:
    (allow file-write* file-read-data file-read-metadata
      (regex "^/path_to_BDB_environment__strDBdir")
      (regex "^(/private)?/var/tmp/")
      (regex "^(/private)?/tmp/"))If this does not help then I suggest you post on the Apple discussion forums.
    Regards,
    Andrei

  • In LSMW while executing the specify file step logical file name and path.

    Hi ,
    In LSMW , while executing the specify file step, logical file name and path is mandatory field to entry, but in some of other LSMW objects, these fields are not mandatory one, i want to know is it possible for me to do hide the logical file name and path field in specify file step.
    thanks
    Md nisar

    Hi,
    For some Transactions while executing the Specify file step Logical File and Logical Path are mandatory.
    In this case Converted file will be stored in the application server. According to the specified Logical File and Logical path.
    Hope this will help you....
    Regards,
    Tirumala Reddy

  • I create name plaques using TypeStyler, but my laser cutter says they must be converted into two vector files; a cut file to cut the outlines of all the letters and an "etch" to etch the letter intersect lines.  Can AI convert my TypeStyler file into a cu

    I create name plaques using TypeStyler, but my laser cutter says they must be converted into two vector files; a cut file to cut the outlines of all the letters and an "etch" to etch the letter intersect lines.  Can AI convert my TypeStyler file into a cut file and an etch file?

    Thanks. I might use it soon...
    Does it automatically make folders named after the volume labels? And does it handle the conversion of spaces and non-alphanumeric characters to octal codes?
    I could read the script but it would be faster for everyone reading, if you leave the answer as a reply.
    I also think that there should be some major work done on modernizing the fstab, either by replacing it with a better implementation of file system mounting or changing the file structure and adding in better handling of non-alphanumerics. I don't want to have to look up a stupid octal table every time I type in my labels.

  • Can LR Web module converting file name hyphens into underscores be disabled

    Hi,
    I have problems when creating webpages from within LR.
    First I develop the RAW files and converts them to jpegs. Under Lightroom 3 I use the following settings under "Export location":
    Export to: Specific Folder
    Add to This Catalog: ticked
    Existing Files: Choose a new name for the exported file
    This is thus native Lightroom. For existing files the new filenames are generated with a hyphen follwed by a numeric suffix. as follows: for FileName.jpg this would be FileName-2.jpg, FileName-3.jpg.
    Afterwards I use the web module with the TTG Highslide Pro plugin to generate the webpages. For each image on the page there is a link to the original image to download it. It is here where a problem occurs. With the above mentioend naming convention (adding a hypen when files do already exist) there is no problem at all to display the photos nor as a tumbnail, nor in the slideshow.
    When trying to download the high resolution image however a problem occurs. The file can't be found. This is due to the hyperlink pointing to filenames like FileName_2.jpg and FileName_3.jpg. As the image itself is having a hyphen followed by a numeric suffix it can't be found when the link is pointing to that file using an underscore instead.
    So to me that's a little problem as I am not at the steering wheel at any of the two moments where a naming convention is applied; the automatic filename generation at time of export from Lightroom and the change of the hyphen to the underscore when generating the webpage.
    Any Idea how this can be solved? Or having an underscore used by the automatic naming in Lightroom, or using the hyphen (leaving the filename as it is) when generating the webpage with the LR web module.
    I posted that question already at the TTG forum and got the following respnse from Matthew: "Lightroom's Web module converts file name hyphens into underscores. It's not something I have any control over at all."
    Any help would be appreciated.
    Kind regards,
    Patrick

    I have the same problem in that filenames created with (for instance) photographer-place--year_month_day-filename.cr2 are exported by Lightroom 3.4.1 correctly, without change, into jpg versions, but TTG Highslide Gallery Pro (or, rather, Lightroom) forces a conversion eliminating the dashes and replacing them by underscores. TTG states on its website that this is unavoidable in the Lightroom web module, and recommends entering one's wishes in the "File Handling" tab within Lightroom Preferences.
    However, my LR preferences include the standard File Name Generation option "Replace illegal file name characters with: Dashes (-)" so this would indicate that a dash is not regarded by Lightroom as illegal and therefore should be left alone. As is in fact the case on a normal export from a raw cr2 to jpg: no change in Lightroom and therefore no problem. But export via LR via TTG causes an unwanted conversion from dashes to underscores.
    While searching the web I came across this old post http://thephotogeek.com/ttg-web-gallery-client-selections-lightroom/
    which mentions the question as a LR2 bug.
    I then exported a web gallery using LR's standard web template and here too all file names are converted from dashes to underscores, despite what is entered in LR's preferences. So my conclusion is that this remains a LR bug, and no fault of TTG.
    I am delighted with TTG and couldn't do without it, but am still stuck with this issue which shouldn't need to be an issue at all, if only LR would leave things alone.

Maybe you are looking for