Path to SapWorkDir

Hi,
Is there in abap, parameters which sored path to SapWorkDir and which could be given in FM 'WS_DOWNLOAD' as filename parameter?
regards,
Joanna
Edited by: Joanna Lazarz on Apr 14, 2008 12:07 PM

Dear Joanna,
please note that the function is obsolete. You should use CL_GUI_FRONTEND_SERVICES instead.
'WS_DOWNLOAD' is for a download to a front-end. As I understand your question correctly you would like to download data to the application server, right? In this case you should user open dataset and the transfer statement.
You should also check transaction FILE. This will show you defined logical file and path names in your system.
Regards
Matthias Nutt

Similar Messages

  • Find SapWorkDir path

    I am using the following fn module:
        CALL FUNCTION 'DOWNLOAD'
          EXPORTING
            filename                = 'C:\LOG.TXT'
            filetype                = 'ASC'
          TABLES
            data_tab                = it_log
    In the paramater <b>filename</b> I want to give default as the path to the SapWorkDir of the user logged in currently. (Usually it is c:\Documents and Settings\<username>\SapWorkDir\).
    But do we have a neat way.

    hi flora,
    1. The neat way is to DETECT
       which is the SAP Directory.
    2.
    report abc.
    data : ret(100) type c.
    <b>CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
      EXPORTING
        type          = 11 " <----
    Important
      changing
        return        = RET
              .</b>
    BREAK-POINT.
    RET will contain the FULL PATH.
    1:  Host name (host name of current system)                                                                               
    2:  Windows directory                                                                               
    3:  System directory                                                                               
    4:  Temp. directory                                                                               
    5:  Domain user name                                                                               
    6:  Platform                                                                               
    7:  Windows build number                                                                               
    8:  Windows version                                                                               
    9:  Program name                                                                               
    10: Program path                                                                               
    11: Current directory (Directory for current process)                                                                               
    regards,
    amit m.

  • DMS:Original file path overriding configuration ?

    Hi,
    Running 4.6c. We use vault method for originals. We have configured data carrier type "Server,frontend" -> PC and are maintaining a path as c:\ for the temporary files. We also have configured 'frontend computers' by putting in the entry as 'Default' data carrier.
    Example: Using CV01N, one person Bob, creates a DIR - 100, checks in the original into the vault and saves the DIR. When another person Frank, using CV02N opens DIR - 100, tries to change the original, there is a pop-up with two fields: 1. Data Carrier (blank with a drop down option) and 2. Original: displays the full path of the first person's PC as C:\Document and Settings\Bob\SapWorkDir\<temp. file name>.
    Issue-we get a 'ftp:subcommand local error' for Frank when trying to access the original. We also observed that sometime, it would actually create the path C:\Document and Settings\Bob\SapWorkDir\<temp. file name> for Frank on Frank's PC!!
    Is the original overriding the configuration? Should it not create the temporary file in C:\ as we have configured in DC20?
    Any help would be appreciated.
    Thanks

    Hi Athol,
    Appreciate your helpful input for my query. I tried setting up the profile and have a couple of questions:
    1. Define profiles -> Determine definitions for applications. Is the 'Work Directory' the field to configure the path e.g C:\?
    2. Since we have the vault configured, I assume that I use the vault value in the Define profiles -> Determine definitions for applications -> Storage Category
    3. Define profile -> Determine definitions for applications -> Default values, does anything need to be checked. There are three attributes Display, Print and Display in WWW.
    Would appreciate if you can clarify the above.
    Thanks!

  • Redlining LAYER file .cgm Path Setting

    Dear All,
    Whenever i create & save redlining on AutoCAD Drawing in ECC 6.0(ERP 2005), it make a file with .cgm extension on my local system at following default path "C:\DOCUMENT AND SETTINGS", Is there a way that i can change that storage location to other path(e.g. C:\SapWorkDir\Acad)....If there is any configuration please reply me......
    Waiting for your reply
    Thanking You,
    TUSHAR DAVE

    Hi Dave,
    you can change the path by maintaining another path for the used frontend type in
    transaction DC20. Here you can maintain a specific path for each frontend type which is used to create a temporary copy or a cgm layer file, when you display an original.
    Best regards,
    Christoph

  • Change SapWorkDir on Installation Server

    Hello,
    I'd like to change the value of the SetSapWorkDir for a package I am building in the Installation Server and I cannot figure out how to do it.
    The variable is currently set to %%USERPROFILE%%\SapWorkDir and I'd like to change it to point to a users H drive, ie, h:\SapWorkdir
    Any idea how I can do this?
    Thanks,
    Philip.

    Hello Philip
    you know the differnecies between PRODUCTS and PACKAGES?
    For Products you can not set a special path in the SAPADMIN tool.
    Please create your own package and then you can see in the TAB "Configure Packages" the
    "blue line"    configure paramteres .... Click on it and you can change the SETSAPWORKDIR
    to your own path....
    After this step you must click on the SAVE button....
    Best regards, Sven

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

  • Logical filename and logical path in lsmw

    Hi all,
           I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
    can anybody provide a solution for that .
    Thanks & regards
      Magesh anandan

    hi ,
      goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
    hope it will helps u..
    regards,
    venkat.

  • Relative path for images in RTF templates

    Hi everybody!
    When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
    How can I make this path relative, in order to see the images even if the server name changes?
    Thanks so!
    Francesco

    Hi Tim,
    I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
    Steps:
    <?param@begin:CURRENT_SERVER_URL?>
    <xsl:value-of select="$ CURRENT_SERVER_URL"/>
    CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
    Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
    We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
    As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
    Thanks,
    Amit D

  • Emails from camera roll saved to wrong folder -- IMAP Path Prefix Problem

    I think there's a problem with the behaviour of the way picture emails are saved when you have an IMAP Path Prefix.
    I have an IMAP Path Prefix of "INBOX"... i.e. my sent folder is Inbox/Sent. Any plaintext emails I send from the email application from the iPhone are correctly saved to that folder and I can see them in that folder immediately via the iPhone's interface.
    When I navigate to the camera roll or photo album and send a picture email to somebody, and use the iPhone to go view the sent folder, they never appear in the sent folder. For a while I thought they weren't being saved at all, but I just discovered from my home PC that the camera roll app is indeed saving them somewhere: in Inbox/Inbox/Sent.
    That's right--I now have a new Inbox folder inside my Inbox folder, with just a Drafts and Sent folder. Drafts is Empty, Sent has all the picture emails I've ever sent with the iPhone.
    Bug? I think so... Emails emanating from the camera app are taking the IMAP Path Prefix twice instead of once, and then creating that Path Prefix folder if it doesn't already exist.
    Anybody else with an IMAP Path Prefix experiencing this with picture emails from the camera roll?
    Thanks,
    Andi
      Windows XP Pro  

    Ahhh interesting to find someone else with the same problem! It definitely happens when you send a photo message. My mac mail it shows my Inbox with a new nested sent items folder. I am using fusemail and the iPhone seriously messes with the folder structure. All sent items folders vanished for some reason on the mail server (but not in mac mail oddly) and I had to call technical support to make them reappear. I think this happened when I altered the Settings, Mail, Advanced settings, Mail box behaviour folders after having this problem with sent photo messages.
    Now fusemail's webserver shows TWO Inboxes, one nested inside the other, and a "Sent Items" folder within the "new" inboxes.
    Totally strange. I think there is a bug or two in the iPhone's IMAP software. Hoping for a bug fix soon, but until then perhaps a good work around might be to set the iPhone to store sent messages locally?

  • Blends: Difference between open and closed paths modifying spine

    Okay, just had a discovery today about the blend tool.
    The difference between closed paths and open paths is critical when you want to modify a blend spine, such as make it curve. Between open paths, there is no spine shown when a blend is created. Ever notice this? Between closed paths, there is a spine, which can be modified, such as making it curved. Now, the trick is how to modify a spine with open paths when there is no spine shown. Found out today that starting with a closed path, segments can be deleted to make the path open, then the spine can be modified and the open path state maintained!
    This is a huge bug in Illustrator and makes no sense to me. Wanting Adobe to fix this in the next major release. Hope this helps anyone struggling with this issue.

    One thing you should be aware of concerning open ended splines:
    It makes an enormous difference as to how the blend behaves whether the endpoints have handles or not.
    Give them handles and you will find that you can alter the distribution of the blend objects just by adjusting the handles or by dragging on the spline itself.
    Give it a try.

  • Joining open and closed paths

    Hi
    Is it possible to join an open path (created with the Pen Tool) to a close path (also created with the Pen Tool)?
    Grechy01

    I want to create a complex piece of artwork by using line art created with the Pen Tool and color it by filling in the paths with the Live Paint Bucket. Anyway, I should be able achieve this with not much extra work by using overlapping closed paths, Average function (under Object --> Path) to align the point where the two closed paths cross, Pathfinder Merge function and multiple layers to remove the segments of the path that I don’t want and the Live Paint Bucket to color the artwork. If you can think of an easer way to do this please let me know.

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Bursting Problem - A file or directory in the path name does not exist

    I'm trying to burst some data via email using the standard DocumentProcessor java code but receiving an error relating, I assume, to an invalid temporary directory. I've checked that the directory exists, as do the data file and control file. By the way I am not running in Apps, just stand alone mode. Any ideas would be much appreciated.
    [042308_104249440][oracle.apps.xdo.batch.bursting.FileHandler][EXCEPTION] java.io.FileNotFoundException: /u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp (A file or directory in the path name does not exist.)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:205)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:96)
    at oracle.apps.xdo.template.RTFProcessor.setOutput(Unknown Source)
    at oracle.apps.xdo.batch.bursting.FileHandler.rtf2xsl(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessDocument.getXSLFile(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessDocument.processTemplate(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessCoreDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.batch.DocumentProcessor.process(Unknown Source)
    at PIreportburst.bEngine(PIreportburst.java:24)
    at PIreportburst.main(PIreportburst.java:51)
    -Below is the java code I'm using
    public void bEngine(String ctrlFile, String dataFile, String tmpDir) {
    try {
    DocumentProcessor dp = new DocumentProcessor(ctrlFile,dataFile,tmpDir);
    dp.process();
    catch (Exception e) {
    System.out.println(e);
    }

    Thanks Ike
    Where do you suggest setting the temp directory:
    DocumentProcessor("control.xml","data.xml","/u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp")
    or in the xdo.cfg:
    <property name="system-temp-dir">/u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp</property>
    ..and thanks for the link to the BIPublisherIDE
    Cheers, Mike

  • Process.start("winword", filename) can not open file with space in the path and name

    Hi,
    I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
    the problem: if the path or file name has space in it, even it exist, winword still can not open it.
    could someone kindly show me what I did wrong and how to do it properly.
    Thanks in advance.
    Belinda
    public static class FileOpen
    public static void info()
    string path = @"c:\a temp folder\aaa 1.txt";
    if (File.Exists(path))
        // the file I am using in the sample does exist
         MsgBox.info("yes");
    else
         MsgBox.info("no");
    // working
    //Process.Start("winword", "c:\\aaa.txt");
    // not working
    //Process.Start("winword", "c:\aaa.txt");
    // not working
    Process.Start("winword", "c:\\a temp folder\\aaa 1.txt");
    // not working
    Process.Start("winword", path);

    string AppPath;
    AppPath = ReadRegistry(Registry.CurrentUser, "Software\\FabricStudio", "TARGETDIR", value).ToString() + @"help";
    string FileName = "'"+ AppPath + "\\ImageSamples.doc" + "'";
    try
    System.Diagnostics.Process.Start("Winword.exe", FileName);
    can any body please help for this.
    where i am making mistake?

Maybe you are looking for

  • Tolerance Limits: Multiple Invoices for single POs, Single Invoices for Multiple POs

    Hi, I'm currently looking at tolerance limit configurations, primarily the DQ (Quantity) and PP (Price) tolerance keys and had a couple of questions where you have the scenario of multiple invoices or multiple POs. 1. If I had multiple invoices for a

  • I restored my Iphone 5 and now it won't activate

    I restored my factory unlocked Iphone 5 to see if I could lower the size of OTHER and now I tried to activate it but it keeps saying that the Iphone could not be activate it because the activation server cannot be reached. I have tried to activate it

  • Slow loading specific web pages

    I noticed that my safari loads only specific websites only example apple related websits and gmail but not the rest like hotmail..etc. So i am wondering is the problem lies in the safari or might be someother problem?

  • SAP Lumira Query with SQL

    Hi we are doing a POC on SAP Lumira using Freehand SQL for our business users. We are trying to connect SQL Server 2012 / Oracle 12. Taking both the routes I am hitting the same roadblock. Java Class not found in classpath .com.microsoft.sqlserver.jd

  • 10.8.2 EndNote X4.0.2 no longer works in Word 2011

    EndNote X4.0.2 no longer works in Word 2011.  I can't insert a citation without seeing the attached message and Word freezing.  This is the latest in a long line of Mountain Lion frustrations.  I wish I have never upgraded from Snow Leopard.  Message