Pass File Path into Message Box

Hello,
I’m building an application that is being used to create a report for whatever date range the user chooses. After the data is exported into Excel I have a message box pop up telling the user where the file has been saved to. However, as it is now, I have
the file path hard coded. What I want to do is have the file path chosen by the user passed into the message box and display a message with the selected path. Any help with this will be greatly appreciated.
Dave
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using ClosedXML.Excel;
using DocumentFormat.OpenXml;
using System.IO;
namespace LoanOrig_FDIC_Codes
public partial class Form1 : Form
SqlCommand sqlCmd;
SqlDataAdapter sqlDA;
DataSet sqlDS;
DataTable sqlDT;
SqlCommand sqlCmdCnt;
public Form1()
InitializeComponent();
//BEGIN BUTTON LOAD CLICK EVENT
private void btnLoad_Click(object sender, EventArgs e)
string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=myID; Password=myPW";
//Set the 2 dateTimePickers to today's date
DateTime @endDate = End_dateTimePicker.Value.Date;
DateTime @startDate = Start_dateTimePicker.Value.Date;
//Validate the values of the 2 dateTimePickers
if (endDate < startDate)
MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
//Reset both dateTimePickers to todays date
Start_dateTimePicker.Value = DateTime.Today;
End_dateTimePicker.Value = DateTime.Today;
return;
//End of date validation
string sqlData = @"SELECT AcctNbr,
CurrAcctStatCD,
Org,
MJAcctTypCD,
MIAcctTypCD,
NoteOriginalBalance,
ContractDate,
FDICCATCD,
FDICCATDESC,
PropType,
PropTypeDesc
FROM I_Loans
WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
SqlConnection connection = new SqlConnection(sqlCon);
SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
sqlCmd.Parameters.AddWithValue("@startDate", startDate);
sqlCmd.Parameters.AddWithValue("@endDate", endDate);
sqlDS = new DataSet();
sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
connection.Open();
sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
sqlDT = sqlDS.Tables["I_Loans"];
//Code section to get record count
sqlCmdCnt = connection.CreateCommand();
sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
int recCnt = (int)sqlCmdCnt.ExecuteScalar();
txtRecCnt.Text = recCnt.ToString();
btnExport.Enabled = true;
//End of code section for record count
connection.Close();
dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
dataGridView1.ReadOnly = true;
//Reset both dateTimePickers to todays date
Start_dateTimePicker.Value = DateTime.Today;
End_dateTimePicker.Value = DateTime.Today;
//END BUTTON LOAD CLICK EVENT
//BEGIN BUTTON EXPORT CLICK EVENT
private void btnExport_Click(object sender, EventArgs e)
{ //ClosedXML code to export datagrid result set to Excel
string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
if (Directory.Exists(dirInfo))
var wb = new XLWorkbook();
var ws = wb.Worksheets.Add(sqlDT);
ws.Tables.First().ShowAutoFilter = false;
SaveFileDialog saveFD = new SaveFileDialog();
saveFD.Title = "Save As";
saveFD.Filter = "Excel File (*.xlsx)| *.xlsx";
saveFD.FileName = "LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd");
if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
Stream stream = saveFD.OpenFile();
wb.SaveAs(stream);
stream.Close();
//End of ClosedXML code
MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
else
MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
return;
//END BUTTON EXPORT CLICK EVENT
private void Form1_Load(object sender, EventArgs e)
//Set dates to be today's date when the form is openend
Start_dateTimePicker.Value = DateTime.Today;
End_dateTimePicker.Value = DateTime.Today;
private void Form1_Load_1(object sender, EventArgs e)
// TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
private void btnExit_Click(object sender, EventArgs e)
this.Close();
//END THE SAVE AS PROCESS
David Young

Assuming I have located the part of your code you are talking about, I think you just need to replace the hard code path in the message with the path from the SaveFileDialog. You should only display the message if the use clicked OK.
if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
Stream stream = saveFD.OpenFile();
wb.SaveAs(stream);
stream.Close();
MessageBox.Show("File has been exported to " + saveFD.FileName, "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);

Similar Messages

  • How can i call this file path into my bsp-html  to display the images?

    Hi
    I have a file path for an image like c:/test_logo.bmp.
    How can i call this file path into my bsp-html  to display the images?
    moosa

    Try this...
    Can i have  sample code in BSP-HTML to display images?

  • Copy and paste file path into bridge

    I use bridge a lot! One of the most annoying things about bridge is that I can't paste a file path into bridge to browse to that file, on a network server, for example. I work at a graphics company, all our files are stored on servers with hundreds of folder levels, which makes it a huge pain to browse to manually.
    I'll usually get a file path link that i can quickly paste into windows explorer to either open the file or browse to the folder it's in. With bridge i have to manually click through to the network folder.
    This change would make a huge difference in usability for me.

    Paste your path into explorer then you can Right Click on the folder and select "Browse in Adobe Bridge CS5"
    Edit:-  you can paste the path directly into the top bar just click to the right of the path and it will allow you to paste your path in.

  • Teststand 1.03 - How can I get the sequence file path into an expression?

    The sequence file will be located at different locations on different computers. I need the base address of the sequence file to get to the correct limits file. How can I get the sequence file path into a string-local expression.
    Thanks

    As Ray described, the FindFile expression function and TS API method will seach all TS search directories and return to you the path of your file, assuming the file is located in the search directories.
    If you just want the path of a TS file that you have a reference to then there is a faster, easier method. You can use the Path property of the PropertyObjectFile class. In the attached example I use an AcitiveX Automation adapter step to call Path on the property RunState.SequenceFile. This returns the path to the current executing sequence file. Note that if you have not yet saved the sequence file then the path will be empty. In a subsequence step I strip off the file name leaving the root path of the file.
    Attachments:
    GetSeqFilePath.seq ‏22 KB

  • Passing file path in function module XXL_FULL_API

    Hi All,
    I am using function module XXL_FULL_API instead of GUI_DOWNLOAD becuse  I need to download data with field names as heading. my question is how to pass complete file path (presentation server  path)in the function module XXL_FULL_API .
    Thanks in advance.
    vijaya.

    Hi Vijaya lakshmi,
    Please check this link
    excel download: XXL_FULL_API
    REPORT ZXXL_FULL_API  .
    TABLES:
    sflight.
    *header data................................
    DATA :
    header1 LIKE gxxlt_p-text VALUE 'Suresh',
    header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    *Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
    INCLUDE STRUCTURE sflight.
    DATA END OF t_sflight.
    *Internal table for holding the horizontal key.
    DATA BEGIN OF t_hkey OCCURS 0.
    INCLUDE STRUCTURE gxxlt_h.
    DATA END OF t_hkey .
    *Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
    INCLUDE STRUCTURE gxxlt_v.
    DATA END OF t_vkey .
    *Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
    INCLUDE STRUCTURE gxxlt_o.
    DATA END OF t_online.
    *Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
    INCLUDE STRUCTURE gxxlt_p.
    DATA END OF t_print.
    *Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
    INCLUDE STRUCTURE gxxlt_s.
    DATA END OF t_sema.
    *Retreiving data from sflight.
    SELECT * FROM sflight
    INTO TABLE t_sflight.
    *Text which will be displayed online is declared here....
    t_online-line_no = '1'.
    t_online-info_name = 'Created by'.
    t_online-info_value = 'RAAM'.
    APPEND t_online.
    *Text which will be printed out..........................
    t_print-hf = 'H'.
    t_print-lcr = 'L'.
    t_print-line_no = '1'.
    t_print-text = 'This is the header'.
    APPEND t_print.
    t_print-hf = 'F'.
    t_print-lcr = 'C'.
    t_print-line_no = '1'.
    t_print-text = 'This is the footer'.
    APPEND t_print.
    *Defining the vertical key columns.......
    t_vkey-col_no = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    *Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    *populating the SEMA data..........................
    t_sema-col_no = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
    EXPORTING
    *DATA_ENDING_AT = 54
    *DATA_STARTING_AT = 5
    filename ='TEST'
    header_1 = header1
    header_2 = header2
    no_dialog = ''
    *no_start = ' '
    n_att_cols = 6
    n_hrz_keys = 1
    n_vrt_keys = 4
    sema_type = 'X'
    SO_TITLE = 'TEST'
    TABLES
    data = t_sflight
    hkey = t_hkey
    online_text = t_online
    print_text = t_print
    sema = t_sema
    vkey = t_vkey
    EXCEPTIONS
    cancelled_by_user = 1
    data_too_big = 2
    dim_mismatch_data = 3
    dim_mismatch_sema = 4
    dim_mismatch_vkey = 5
    error_in_hkey = 6
    error_in_sema = 7
    file_open_error = 8
    file_write_error = 9
    inv_data_range = 10
    inv_winsys = 11
    inv_xxl = 12
    OTHERS = 13
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Best regards,
    raam

  • Downloading file passing File Path in the FM as well as Retain Values in XL

    Hi Experts,
    I am writing a report where it is required that I have an option for the user, in selection  srceen, to have an F4 help to choose the file path they want. The same should be further used to automatically download the internal table into an excel file.
    I was initially using GUI_DOWNLOAD which seemed to work fine except that certain values were not being retained in the download file,  For example , the leading zero in "02" and the value "2-6-21" gets updated in date format automatically as 02-06-2011.
    To avoid the above I tried using the FM  XXL_FULL_API which retains this value but it does not seem to have an option where I can pass the file path to download on the presentation . Instead we need to manually save the excel file when it is generated.
    Could you help me with how to proceed with this, in a way where I can pass the file path as well as retain the values in excel?
    <removed by moderator>. Any help is welcome
    Thanks in advance.
    Regards,
    Trishna
    Edited by: Thomas Zloch on Nov 22, 2011 5:24 PM

    Hi,
    The easiest way to make excel retain the values and not apply any formatting on cells is to add a quote in front of those fields...
    e.g. '02 and '2-6-21. Then you can use the gui_download method...
    Those values will then be considered as text by excel and you won't be bother with auto-formatting issue...
    There are of course other ways of doing it...(via OLE e.g)
    Kr,
    Manu.

  • Passing File Path of an XFDF to a PDF

    I am attempting to pass the path to a file, an xfdf, to a PDF form and have the form fields filled in.
    I have this working with a page level script on page open -
    this.importAnXFDF("myFile.xfdf");
    How can I pass the "myfile.xfdf" to the PDF as a parameter? And then read that parameter with Acrobat javascript? Making my script look like -
    this.importAnXFDF(myFileVariable);
    I am guessing the link to the PDF would look like -
    myPDF.pdf#xfdf=myFile.xfdf
    So the whole package would be something like -
    myPDF.pdf#xfdfFile=myFile.xfdf
    Then -
    this.importAnXFDF(xfdfFile);
    Right?????
    Any help is appreciated.
    Thanks in advance.

    To pdobratz -
    The error is in the sequence editor when trying to initiate the drag of the object. I am not sure why it occurs, but the Sequence Editor is just reporting an exception that occurred when calling an API method in the TestStand engine. TestStand should still run fine.
    I tried the senario with TestStand 3.1 and the error did not occur. Starting with TestStand 3.0, most of the watch pane code was rewritten.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Insert File Path into Text Field

    I am trying to create a text filed at the bottom of a form document that will automatically input the file path (e.g.. C\:Folder\File) of the document itself after the document is saved.  I've looked at a few Scripts but nothing seems to be working.  I'm assuming it will look something like this on the "postSave" option:
    this.rawValue = event.target.path.replace(event.target.documentFileName, "");
    I am a very novice programmer so I have no idea if this is even close to right.

    Apparently some of my search parameters were off.  This question has already been answered before.  If anyone comes looking here, this is a link to the page with the answer.
    http://forums.adobe.com/message/4007317#4007317
    Enjoy.
    FYI: here is the code I used for the text field.
    Inspection.TextPage.Bottom.End.Directions.File::preSave - (JavaScript, client)
    this.rawValue = event.target.path

  • Loading JSON files from URLS/File Paths into a After Effects

    Basically, I want to make a script in which the user enters a file path or URL of a JSON file, the file is loaded and the user can manipulate the data in various ways within After Effects.
    I got as far as writing a script that requests the data and logs it into the console but it will only work in Extendscript. I'm using Extendables which was built for indesign so that may be the problem.
        #include Extendables/extendables.jsx
        var url = "http://echo.jsontest.com/key/value/otherkey/othervalue";
        //Retrieve the data
        function retrieveData(_url){
            var http = require("http");
            var response = http.get(_url);
            var responseStr = JSON.stringify(response);
            var responseBod = JSON.parse(responseStr);
            var data = JSON.parse(responseBod.body);     
            $.writeln(data.key);
        retrieveData(url);
    When I run it in After Effects I get an error "Undefined is not an object" pointing to line 162 in errors.jsx which says:
    if (app.name.to('lower').contains("indesign")) {
    What exactly is happening here? Is there a better way to go about doing requesting JSON files?
    Thanks!
    EDIT: I should add that I tried removing the "$.writeln(data.key);" but am still getting the same error.

    The line that generates the error tries to test whether the targetted application is InDesign, and the test is not so good because in other apps the test may generate an error.
    (For AfterEffects, the object 'app' exists [object Application] but it doesnt have a 'name' property, so app.name.xxx is wrong).
    I don't know of a test that would work for any app. For After Effects, "if (app.effects instanceof Array)" might work, not sure.
    If the script is meant to target AfterEffects only you can simply omit the condition.
    Xavier

  • Entering a file path into Finder or elsewhere?

    can anyone help me if there are one or more ways to find a path like this in finder or other software? i have recently realized that i don't know how to take a file path such as this and then get my mac to show me where this is without "manually" finding it myself. also, i would love any other info on this type of topic or closely related topics if there are any that a new user should be aware of...
    /Users/mini_me/Library/Application Support/Postbox/Profiles/jaw8jgkk.default/Mail/Local Folders
    TIA

    That particular keyboard shortcut is coded into the Finder, which is an application even though we don't usually think of it that way. In other apps, it might do something else, or nothing at all. For instance, in Safari, "⇧⌘G" is the shortcut for finding the previous instance in a search (it's on the "Find" menu item of the "Edit" menu).
    You are right about the Keyboard Shortcuts section of the Keyboard system preference. Note that you can also create shortcuts as well as change ones that appear there, & they can be either "global," applying to all apps or specific to a selected app. However, the shortcuts you create will not override ones coded into an app.
    If you click the purple question mark icon in the preference, the help topic that appears will give you a little more info about this.

  • FOTY0001error when trying pass file path variable to ora:readBinaryFromFile

    I want to read a file from a location,I take that file location as input and assign it to variable filePath and use
    ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value')),I get FOTY0001 type error.
    Any light on the issue would be appreciated.
    StackTrace:
    <2008-06-03 14:47:31,875> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    TIA,
    -Tripti

    You need to use a colon-delimited path. If the JavaScript returns a slash-delimited one, run:
    set myTemplate to POSIX file "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    or:
    set the_string to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    set new_string to ""
    repeat with this_char from 2 to (count the_string)
    if item this_char of the_string is "/" then
    set new_string to new_string & ":"
    else
    set new_string to new_string & item this_char of the_string
    end if
    end repeat
    (53281)

  • Pass file path through a variable

    I have a script that works when I place path directly instead of variable, but I will need that path to come from java script, so I need to replace it with a variable, but when I do that, it doesn't work any more and it the same path, but running the script tells me that it can't find the file (and file is there ).
    _*Working script:*_
    set ScriptPath to (path to applications folder as text) & "Adobe Illustrator CS4:Presets.localized:enUS:Scripts:_NDF_ILLbasicWebTemplates.jsx" as alias
    tell application "Adobe Illustrator"
    activate
    open file "SPACE:Marketing:webTemplatesCreation:working:template.pdf"
    set Doc_Ref to the current document
    tell Doc_Ref
    do javascript ScriptPath
    end tell
    end tell
    _*Not working:*_
    set myTemplate to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf" as alias
    set ScriptPath to (path to applications folder as text) & "Adobe Illustrator CS4:Presets.localized:enUS:Scripts:_NDF_ILLbasicWebTemplates.jsx" as alias
    tell application "Adobe Illustrator"
    activate
    open myTemplate
    set Doc_Ref to the current document
    tell Doc_Ref
    do javascript ScriptPath
    end tell
    end tell
    I tried different versions: like with '/Volumes' in the beginning and with out 'as alias' for the variable. And none of it helps. The file is on the server and not on my system.
    Thank you very much for your help.
    Yulia.

    You need to use a colon-delimited path. If the JavaScript returns a slash-delimited one, run:
    set myTemplate to POSIX file "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    or:
    set the_string to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    set new_string to ""
    repeat with this_char from 2 to (count the_string)
    if item this_char of the_string is "/" then
    set new_string to new_string & ":"
    else
    set new_string to new_string & item this_char of the_string
    end if
    end repeat
    (53281)

  • Trying to open a downloaded acsm file and getting message box "error! check activation".

    Checked authorization and computer is authorized. Unable to deauthorize.

    I had this exact same error, and deactivation was not working. I ended up closing the software, going into the registry, and removing the Adobe key HKEY_CURRENT_USER\Software\Adobe\Adept (follow the instructions below the disclaimer on this page: Error "E_AUTH_NOT_READY" | Digital Editions ) After that, going back in to the software and reactivating worked.

  • File path in footer

    Does Pages give me a way to autofill my file path into the footer like Word does?

    Hello
    Here is a revised version.
    Copy the script in the clipboard
    Paste in a blank window of Script Editor
    Save it as an Application or an Application Bundle
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Now, enter your Pages document.
    Click where you want.
    Go to
    menu Scripts > pastethepath
    The path to the document's package will be pasted at the insertion point.
    If the document was never saved you will get an error message.
    Yvan KOENIG
    1 janvier 2008
    revised 24 février 2008
    --(SCRIPT pastethepath.app]
    set theApp to "Pages"
    tell application theApp to set u to path of document 1 (*
    returns nothing if the document was never saved *)
    try
    set u to u (* send an error if the doc was never saved *)
    on error
    tell application theApp to set u to name of window 1
    end try
    set ky to "/Volumes/"
    if u starts with ky then
    set u to text 2 thru -1 of POSIX path of (text (1 + (count of ky)) thru -1 of u)
    else if u starts with "/Users/" then
    tell application "System Events" to set u to (path of disk item u)
    set u to text 1 thru -2 of (u as Unicode text)
    else
    set z to do shell script "defaults read 'Apple Global Domain' AppleLocale"
    if z starts with "fr_" then
    error "Le document " & "«" & u & "» n’a pas été enregistré." number 701
    else
    error "The document " & "“" & u & "” was never saved." number 701
    end if
    end if
    set the clipboard to u
    tell application theApp to activate
    tell application "System Events" to tell process theApp
    keystroke "v" using {command down}
    end tell
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE dimanche 24 février 2008 17:20:54)

  • Logical file path problem in lsmw

    Hi folks,
    I created logical file  path in FILE tcode. its created and assigned physical file path to logical file path.
    then i am assigning that logical file path into lsmw step (specify file step).
    under specify file i am assigning into import data and convert data.
    once read data step completed read data must be save under this physical file but data is not saving under this path.
    can any one help me out this..
    1.can any one help how to create physical file in file tcode
    2.how to assigne that physical file to lsmw step specify file

    Hi Srikanth,
    There is no need to create the logical file path using the FILE transaction.
    Under Specify file step, you need to give your local file path in LEGACY DATA Section.
    Please check the below link in using the LSMW step by step.
    http://wiki.sdn.sap.com/wiki/display/ABAP/LSMWStepsin+Detail
    Hope this helps.
    Regards,
    Satish Kanteti

Maybe you are looking for