Trouble getting a ps1 file to execute

I am having trouble getting a ps1 file to execute.
All the powershell.exe does is go to the next prompt without executing anything.
powershell.exe -noprofile -command "&{ start-process powershell -ArgumentList '-noprofile -file C:\Users\Administrator\Documents\Powershell\Excel.ps1' -verb RunAs}"
Excel.ps1
$strPath="c:\path.xlfile.xls"
$objExcel=New-Object -ComObject Excel.Application
$objExcel.Visible=$true
$Workbook=$objExcel.Workbooks.Add()
$Workbook=$objExcel.Workbook.Add()
$sheet=$Workbook.worksheet.item(1)
$sheet.Cells.item(1,1)=("Title")
$sheet.Cells.item(3,1)=("col1Title")
$sheet.Cells.item(3,2)=("col2Title")
$sheet.Cells.item(3,3)=("col3Title")
$x=100
$y=200
$z=300
$sheet.Cells.item(3,1)=($x)
$sheet.Cells.item(3,1)=($y")
$sheet.Cells.item(3,1)=($z)6
$range=$sheet.UsedRange
$range.EntireColumn.AutoFit()
IF(Test-Path $strPath)
Remove-Item $strPath
$objExcel.ActiveWorkbook.SaveAs($strPath)
ELSE
$objExcel.ActiveWorkbook.SaveAs($strPath)

Hi Philosophiae,
In addition, please also try to change these script:
$Workbook=$objExcel.Workbooks.Add()
$Workbook=$objExcel.Workbook.Add()
$sheet=$Workbook.worksheet.item(1)
To:
$WorkBook = $objExcel.Workbooks.Add()
$WorkSheet = $WorkBook.Worksheets.Item(1)
To work with Excel in powershell, please also refer to the script below:
$objExcel = new-object -comobject excel.application
$objExcel.Visible = $True
$FinalExcelLocation = "D:\Users\FinalUsersList.xlsx"
# Create final worksheet
if (Test-Path $FinalExcelLocation)
{ # Open the document
$finalWorkBook = $objExcel.WorkBooks.Open($FinalExcelLocation)
$finalWorkSheet = $finalWorkBook.Worksheets.Item(1)
else {
# Create It
$finalWorkBook = $objExcel.Workbooks.Add()
$finalWorkSheet = $finalWorkBook.Worksheets.Item(1)}
# Add Header
$finalWorkSheet.Cells.Item(1,1) = "User Name";
$finalWorkSheet.Cells.Item(1,1).Font.Bold = $True
$finalWorkSheet.Cells.Item(1,2) = "Email"
$finalWorkSheet.Cells.Item(1,2).Font.Bold = $True
# As the first row is already filled with header, the row count will start from 2
$FinalExcelRow = 2
Do {
$finalWorkSheet.Cells.Item($FinalExcelRow,1) = "Sample"
$finalWorkSheet.Cells.Item($FinalExcelRow,2) = [email protected]
$FinalExcelRow++
# To wrap the text
$d = $finalWorkSheet.UsedRange
$null = $d.EntireColumn.AutoFit()
if (Test-Path $FinalExcelLocation)
# If already existing file is opned, save the file
$finalWorkBook.Save()
else
# If a new file is created, save the file with the given name
$finalWorkBook.SaveAs($FinalExcelLocation)
Reference from:
Excel with PowerShell
Best Regards,
Anna

Similar Messages

  • Having troubles getting rid of files in trash.

    i have several files, all from the same program that just wont empty from the trash
    i keep getting "the operation cannot be completed because the item "FMStrs.dls" is locked.
    how can i delete these... they arnt bothering me in the trash but i just cant sleep until they're gone.
    thanks in advance.

    Have you checked this Apple support article on Trash problems?
    -mj
    [email protected]

  • Trouble getting video files into iPod Video

    I am having trouble getting some video files onto my Video iPod.
    Some videos will sync onto my iPod, some won't.
    But, they are formatted the same way. And have the same extension.
    The format for the files are:
    Frame size: 320x240
    Video: H.264
    Audio: AAC
    I see nothing in Quicktime's movie properties that is different between the videos that will, and will not transfer onto my iPod.
    What do I need to change to make these files update onto my iPod?
    thanks a mill!

    Frame rate?

  • I'm using the latest photoshop cc 2014 with most updated camera raw... i am having A LOT/REPEATED trouble getting files to "synch" with corrections, no matter what i options i select (i.e. "everything")... WTH is wrong with me/my computer/adobe?! help. fa

    I'm using the latest photoshop cc 2014 with most updated camera raw... i am having A LOT/REPEATED trouble getting files to "synch" with corrections, no matter what i options i select (i.e. "everything")... WTH is wrong with me/my computer/adobe?! help. fast. please

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How to execute powershell .ps1 file using sharepoint object model

    Hi All,
    Can some one please guide me, how can i execute .ps1 file with arguments using c# under sharepoint object model?
    MercuryMan

    Code example:
    RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
    Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
    runspace.Open();
    RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
    Pipeline pipeline = runspace.CreatePipeline();
    //Here's how you add a new script with arguments
    Command myCommand = new Command(scriptfile);
    CommandParameter testParam = new CommandParameter("key","value");
    myCommand.Parameters.Add(testParam);
    pipeline.Commands.Add(myCommand);
    // Execute PowerShell script
    results = pipeline.Invoke();
    See these links for more information:
    http://stackoverflow.com/questions/527513/execute-powershell-script-from-c-sharp-with-commandline-arguments
    http://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • SFV file association in KDE trouble getting it setup properly

    Im having trouble getting parano the program I use to check sfvs to actually associate with sfv files.
    If right click on a sfv file and go to properties and change it to parano it changes it for all txt files and everything.
    Then when tinkering I deleted all filename patterns associated with plain text documents.
    If someone could tell me what they have for extentions that would be appreciated. Also I found under applications "x-sfv" which is set for *.SFV and .sfv with a description of "SFV Checksum File" and a application preference for parano but whenever I click a sfv file it shows up as plain text document and doesnt handle it properly.
    anyone have any ideas?? hope I was thorough in explaining my problem.

    If I try to just click the "redeploy" button next to the EJB in the console, or
    just click the "deploy" button for the application (without first undeploying),
    the same thing happens-- a new ear is created, but the updates don't take effect.
    From reading the instructions on redeploying an EJB, this should not be the case.

  • I have an older Sony digital camcorder, and I am having trouble importing the movie files. Sometimes I get the audio in iTunes without the picture. I have a Pinnacle Dazzle interface. What am I doing wrong. Is there a way to skip the dazzle device?

    I have an older Sony digital camcorder, and I am having trouble importing the movie files. Sometimes I get the audio in iTunes without the picture. I have a Pinnacle Dazzle interface. What am I doing wrong. Is there a way to skip the dazzle device?

    Chances are the pinnacle is producing .avi files or MPEFG1/2 streams - iTunes may know how to decode the audio but not the video. Download Handbrake and try running the Pinnacle files through it and adding to iTunes - use Universal format unless you have a specific device in mind.
    Keep copies of the originals.
    Another option might be to try to install Perian.  Can't remember if the Apple MPEG2 plugin allows MPEG2 to be played in iTunes.
    AC

  • Trouble getting "refpt"  to call swf files

    I am having trouble getting my buttons to activate a movie
    and/or 'lable' to show when buttons are rollOver.
    I have tried using reference pionts and a swap window to the
    left od my button panel. I just can not get it to work like usual.
    I am tying to have my pop-up appear on a layer above a
    "Zoomify Viewe" layer and do not think this is part of the problem.
    I'm just toast.??
    Here is the code I am using:

    Thanks Urami,
    I'll paste my html file. No clue how to attach files to this
    reply box.?
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>trigger</title>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <a href="info_box001"></a>
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="630" height="473" id="trigger" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="trigger.swf" /><param
    name="quality" value="high" /><param name="bgcolor"
    value="#ffffff" /><embed src="trigger.swf" quality="high"
    bgcolor="#ffffff" width="630" height="473" name="trigger"
    align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    </body>
    </html>
    Grant

  • Trouble Getting Files From mini-DVD (Handycam)

    I don't know the first thing about those little camcorders that record to mini-DVD, but I'm working on a movie for a girl's dance team, and while most of what they gave me to work with was miniDV on an external HD, they did give me a mini-DVD with just under four minutes of footage on it to use also. Fortunately that disc isn't very important to them, and I don't really have to use it.
    Anyway, I can't play the disc in my set-top DVD player; it says there's no disc. My computer's DVD player will play it fine using PowerDVD Player. I tried to rip the disc using DVD-Shrink and it acts like there's no disc in the tray too. Then I managed to rip it to the desktop as an ISO image with DVD-Decrypter with no problems. After that I tried to open the ISO image with DVD Shrink and it says: "Invalid UDF File System".
    So, anyone have any idea how I can get the VOB files from this ISO image?

    Well I think I kind of did that Bill. That is, I managed to rip the DVD to the desktop via DVD Encrypter and then burned the new ISO file to a new DVD. It still wouldn't open with anything I have that converts ISO to VOB files.
    I looked at Sony's website about Handycams and it says this:
    "After finalizing the disc in the camcorder, the disc can play back in most DVD Players".
    The disc they gave me is a DVD-RW. Maybe the disc hasn't been finalized?
    But Sony also says:
    "With DVD+RW media there is no need to finalize the disc (minimum recording required); simply remove the finalized disc and insert the media into a compatible DVD or Blu-ray Disc Player."
    But the disc they gave me is DVD-RW rather than DVD+RW. At any rate I'm wondering now if maybe they should have finalized the disc before giving it to me and forgot to do it. The disc only has about 4-minutes of footage on it, so I'm guessing maybe they didn't finalize it because they thought they would add more later. I'll have to track down the owner and see what they have to say.
    Thanks

  • , Trouble importing from text file into PDF Acrobat 9.0

    Hey all!
    I'm trying to use the JavaScript found on this Adobe page to insert text into my PDF:
    http://help.adobe.com/livedocs/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.502.html
    this.importTextData("/c/data/myData.txt", 0);
    Replacing the path with my own path, of course.  However, I can't get it to work at all, it just crashes my JavaScript.  I was thinking it might have something to do with the privilege stuff which, admittedly, confuses me a bit.  But my understanding is that if you use the function without arguments, that shouldn't matter, and it will prompt the user for a path?
    this.importTextData();
    However, that still crashes the JavaScript.  I'm not sure what exactly I am doing wrong here?
    NOTE: I have tried running the JavaScript both in a checkbox and on page load.

    Well I was having trouble getting it to work without a path, though that kind of mysteriously started working now despite the fact that I didn't really change anything.  I also assumed that part didn't apply to me because we are on 9, not 8, but maybe it means 8 and on?
    I'm having a bit of trouble wrapping my mind around privileged and non-privileged contexts.
    These methods can be executed only in a privileged context, which includes console, batch and application initialization events.
    What would be the simplest way to execute in a privileged context?  "Application initialization" sounds promising, does this mean when the application is first opened?  If so, how would you execute JavaScript this way?!

  • Trouble getting the Java OLAP samples to work

    Hello all,
    Has anyone else had trouble getting the Java OLAP API samples for 9i working? I've recently downloaded the trial version of 9i and was trying to tinker with the OLAP API. I tried to use the olapi.bat script in $ORACLE_HOME\olap\olapi\bin, but I've been getting JNDI problems (javax.naming.NoInitialContextException). The error message is below:
    C:\oracle\ora90\olap\olapi\bin>olapi connection.ConnectionTest
    looking up OLAPSERVER in Oracle namespace...
    cannot find service namingContext SESS_IIOP://THEPRISONER:2481:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
    at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
    at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
    at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
    at oracle.olapi.test.TestDriver.execute(TestDriver.java)
    at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
    Unable to connect toOLAPSERVER
    Exception in thread "main" Stack Trace for Original Throwable:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at oracle.olapi.test.TestDriver.queryAuroraNamespace(TestDriver.java)
    at oracle.olapi.test.TestDriver.findServer(TestDriver.java)
    at oracle.olapi.test.TestDriver.initializeConnection(TestDriver.java)
    at oracle.olapi.test.TestDriver.createTestContext(TestDriver.java)
    at oracle.olapi.test.TestDriver.execute(TestDriver.java)
    at oracle.olapi.test.connection.ConnectionTest.main(ConnectionTest.java)
    I've tried supplying a ContextFactory class name to the environment, using the ContextFactory classes that I found in the aurora.zip or aurora_client.jar files, but that didn't work. If anyone has any suggestions, they would be appreciated. Thanks.
    Jason

    Only use the == operator for checking for the same object. Use the String.equals()method. I.E replace
    if (sex == "Male") {
    } else {
    with
    if (sex.equals( "Male")) {
    } else {
    or if 'sex' could be null then
    if ("Male".equals(sex)) {
    } else {
    }

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • Hi, I am having trouble getting an album to download. I have tried it on both my iPhone and laptop through iTunes but neither works. I am wondering if it could be the size of the album stopping it downloading (212 Tracks) Any Ideas?

    Hi, I am having trouble getting an album to download. I have tried it on both my iPhone and laptop through iTunes but neither works. I am wondering if it could be the size of the album stopping it downloading (212 Tracks) Any Ideas?

    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~)  refers to your Home directory.
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    Also review this support aticle as it might be causing due to internet connection: http://support.apple.com/kb/ts1368
    Hope this helps.

  • I am having trouble getting my My Mac Book Pro 15" Retina to wake up with an Apple Bluetooth Keyboard and Mouse while Docked in a Hengedock vertical docking station.

    I am having trouble getting my My Mac Book Pro 15" Retina to wake up with an Apple Bluetooth Keyboard and Mouse while Docked in a Hengedock vertical docking station. The Keyboard and mouse work great with the laptop lid open but when closed in the docking station the bluetooth signal does not seem to transmit.  Is there a setting that can be changed to allow an Bluetooth keyboard and mouse to wake the computer while docked?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Getting error logical file name not maintained adequtely

    Hi,
    when i execute a z report and press the download botton getting error logical file name not maintained adequtely,see long text.
    Below code i wriien. Please somebody help..
        DATA: lt_rows TYPE lvc_t_row.
        CASE e_ucomm.
          WHEN 'DOWNL'.
    Determine and construct OS specific file name                        *
            PERFORM get_file_name_for_os.
    in the  above perform , i wriien
    FORM build_file_name USING pf_os
                               pf_with_file_extension
                               pf_param_1
                               pf_format
                               pf_fname.
      DATA: lf_para1(20) TYPE c.
    pf_param_1 hold the materialnr with leading zeros not prefered in    *
    download file name                                                   *
      WRITE pf_param_1 TO lf_para1.
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
      CLIENT                        = SY-MANDT
          logical_filename              = 'Z_MATERIAL_BOM_FILE'
          operating_system              = pf_os
          parameter_1                   = lf_para1
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
          with_file_extension           = pf_with_file_extension
      USE_BUFFER                    = ' '
        IMPORTING
      EMERGENCY_FLAG                =
        file_format                   = pf_format
        file_name                     = pf_fname
    EXCEPTIONS
       file_not_found                = 1
       OTHERS                        = 2
    Error handling.
      CASE sy-subrc.
        WHEN '1'.
          MESSAGE e014(ba) WITH 'Z_MATERIAL_BOM_FILE'.                     "error message i am getting      LEAVE.
        WHEN '2'.
          MESSAGE e213(ky) WITH 'Z_MATERIAL_BOM_FILE'.
          LEAVE.
      ENDCASE.

    Hi.
    In file txn,
    click on "Logical File Name Definition, Cross-Client" from the left.
    Then click position and check for your logical file name.
    If you dont get it, it means you need to create it. You can click on New Entries to create.
    Thanks
    Mani

Maybe you are looking for

  • Error while adding new OVM in server pool

    Hi, I have to add a new OVM server to the existing server pool. while doing test connecting at the time of adding server in server pool, it is contacting. however, it is showing error with " check the agent connectivity" while clicking OK. ovs agent

  • Can't print a PS file from FM8 in Windows 7 (64-bit)---Help!

    Hi, can someone help with this? I recently got a new laptop with Windows 7 (64-bit) & I use FrameMaker 8. I cannot install my previous PS driver as it says it's not compatible with this version, so I downloaded both the Xerox Global & HP Universal PS

  • How to get Tiger etc. versions of OS X

    I have purchased an 'n' Airp Exp (to replace the one that died!), so need to upgrade my OS X to 10.4.11 (?) to allow me to install & run the AX admin/setup utilities that came with the AX to get the AX on to my network. The OS X updater tells me I am

  • 891w connecting to wlc 5508

    Hi I am having problems connecting an 891w to a WLC, is it possible to have to separate vlans, one for the Lan ports and another for the AP modue. I do not want the AP part of the 891w in autonomous mode. The WAN port of the router will be connected

  • Overnight maintenance scripts

    I am a big fan of MacJanitor as it is simple, uses what is already built in to Tiger, and does mess with any settings. I do shut down my mac overnight. 1.) If one doesn't use a 3rd party app to run these tasks, wasn't there an OS update that addresse