Session variable being lost between parent and include file

I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!

semi star gazer wrote:
I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!
I suspect it has less to do with page-inclusion, more to do with the code on page 2. Suppose, instead of using cfinclude, you had copied the code from page 2 into page 1, and made 1 page of it. Then the error would still have occurred. That's at least my theory.
Have a look at how the code in page 2 handles the session. There is bound to be something not quite right about it. What kind of error do you get anyway?
Runtime debugging can be as simple as this:
<cftry>
<cfinclude template="page2.cfm">
<cfcatch type="any">
<cfdump var="#cfcatch#"><cfabort>
</cfcatch>
<cftry>

Similar Messages

  • Session is being lost between GET and POST

    My application is being developed in Tomcat 4.1.18.
    I have a servlet that acts as a Controller and JSP's that make up the View. Basically, the session gets lost in the following manner:
    The application's web.xml file is set with Authentication method of Unspecified. Basically, it's not a high security application, we just need to make sure that the user maintains a session throughout the application.
    User is presented with a page (login.jsp). They present their credentials. The controller does an include (RequestDispatcher.include) on a jsp (this jsp simply does a setProperty *) to fill the bean. Then, the controller passes control (through RequestDispatcher.forward) to the Action servlet. The Action does some processing and forwards to the next destination. Next, the user clicks on a link (GET) (this causes the URL to be rewritten with the correct session ID). In this particular instance, the user is presented with a form to fill out. The user fills out the form and it POSTS to the controller. At this point, the controller attempts to access the session and it is lost!
    Frustrating. Please feel free to email at [email protected] Thanks.

    I just tried encoding the FORM ACTION and no dice. I'm pretty new to JSP's so I'm wondering if its something stupid that I'm doing (or not). I've never had this problem using straight servlets before.
    It would be hard for me to justify getting rid of the JSP's and going with a straight servlet solution.
    I'm also wondering if my Authentication:Unspecified in the web.xml file has anything to do with my current troubles.

  • Session variables being lost

    In my onApplicationStart method (which should tell you I'm
    using an Application.cfC, not cfM), I have a cfif loop that passes
    a value to a custom tag and returns a form variable. I'm then
    reassigning that variable to a session variable. In IE, this works
    just fine; in Firefox, though, the session variable is NOT being
    set.
    What might be causing this, and is there a workaround?

    The issue referred to an external CF custom tag, which called
    another demo application to set a testing user. However, after
    further testing, I realize that demo app won't function properly
    with this application, so I've removed it.
    Authentication is being set by an LDAP query; this
    application that I am working on is going to be a sub-application
    of a larger application, and the authenticated user is being set as
    a session variable as well (I think...). However, I'm creating a
    new session variable for this application, and simply passing the
    authenticated user into my app (the outer app uses the variable
    auth_user; I'm using the variable authuser, so there is no name
    conflict).
    Again, it is IE that is not persisting the session. Firefox
    is doing so. I have looked in the advanced settings for IE, and
    there is nothing about persisting session variables to check or
    uncheck. Also, this application will probably be used mostly by
    users using IE 6 with default settings, so I'm going to need to
    find a workaround for IE.
    Your help is most appreciated.

  • Session variables being lost in IE7

    has anyone else experienced, heard of, or solved this issue?
    I have a web app thats been running fine for 5+ years and using session variables (i'm currently using CF8).
    When a user goes from page to page the session is carried with them so i know their login info. However, recently some users (and not all) have complained that after logging in fine (meaning the sessions variables are created) and go to another page off of the main one only to get a timeout issue. I've compared everything from IE settings to server settings, etc. but found no differences. It's like once they navigate to another page in the app the sessions are not carried to the next page.
    My timeout code is written so that if the session variables that are created at login are not present the message will show.
    Some users had to revert back to IE6 and it worked fine. Is there something they did wrong with ther IE update or is there some sort of server hot fix for this?
    Hope someone can help... i'm baffled.

    That forum you posted is definitely my issue! However it still is unresolved and the users have yet to pinpoint the cause (just like me). I too firmly believe its due to an IE7 upgrade b/c that is when this happens.
    I've checked out the user cookies. I used this script and put it on my server and had the user try it:
    http://www.bennadel.com/blog/730-Testing-ColdFusion-Session-Cookie-Acceptance.htm
    The cookies are passing over to the next pages fine (this script showed a success on the user machines). But ye the sessions are lost in my app. the CFID and CFTOKEN are changing when the user clicks to go to another page after login.
    In fact I have the CF8 server monitor up and running and when someone logs in I can see the their session info under the MEMORY USAGE --> Sessions by memory usage.
    I'm finding that users with this issue can log in fine but the session never gets registered with the server?!? Their CFID and CFTOKEN is not showing as an active session and when they click to another page their CFID is always different than their original?
    Any thoughts?

  • Coldfusion session variables being lost

    ok so when my users login I establish session variables. one of these is employee id. in my Application.cfc I have this at the top:
    <cfscript>
    this.name = "My App";
    this.sessiontimeout=CreateTimeSpan("0", "0", "45", "0");
    this.SESSIONMANAGEMENT="YES";
    this.SetClientCookies = "true";
    this.setDomainCookies = "true";
    </cfscript>
    i also set the timeout for sessions at 45 in the CFadmin too.
    after a successfull login i capture their session.employeenumber by authenticating through our corporate LDAP. no problem there. note: this app has run smoothly for 6+ years now but something has recently gone wrong.
    on every page i reference a file in my application directory called "check_session.cfm" like this:
    <cfmodule template="/myApp/Tags/check_session.cfm">
    In that file I have code that checks for the existence of the session.employee_number. if it doesn't exist they either timed out or book-marked a page in the app in which they need to be logged in to view:
    <cflock timeout="30" throwontimeout="Yes" type="READONLY" scope="SESSION">
    <!--- Checks to make sure the user has a session--->
    <CFIF NOT IsDefined("Session.employee_number")>
         <CFLOCATION URL="http://#cgi.HTTP_HOST#/myApp/LoginAgain.cfm">
    </CFIF>
    </cflock>
    every now and then (i'd say on average 5 times per week) i get an error message from a user (i re-direct all errors to my email with diagnostic info). the error reads "Element EMPLOYEE_NUMBER is undefined in SESSION". when i look at the page the error came from i see my call to the check_session.cfm file about 50 lines above where this error happened when i tried to reference session.employee_number. why wouldn't it not find it and re-direct the user to the timeout page? i can never duplicate this error on my machine either... i always get the right result without the error message. its a random, sporadic, intermittent error.

    Here is the diagnostic error information. Where you see [omitted] i've changed the URL for the purposes of displaying this detail in a public forum:
    struct
    Browser
    Mozilla/4.0   (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR   2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;   InfoPath.2; .NET4.0C; .NET4.0E; MS-RTC LM 8)
    DateTime
    {ts   '2011-02-21 20:59:21'}
    Diagnostics
    Element   EMPLOYEENUMBER is undefined in SESSION. <br>The error occurred on line   162.
    GeneratedContent
    <!DOCTYPE   html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   <html xmlns="http://www.w3.org/1999/xhtml">   <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All   rights reserved. --> <title>My Home</title> <meta   http-equiv="Content-Type" content="text/html;   charset=iso-8859-1" /> <link rel="stylesheet"   href="mm_training.css" type="text/css" /> <link   rel="stylesheet" type="text/css" href="../template/organized.css">   </head> <body bgcolor="#ffffff"   onLoad="onInit()">
    HTTPReferer
    http://[omitted]/mypage/myhome.cfm?CFID=101686&CFTOKEN=53097237
    Mailto
    [empty   string]
    Message
    Element   EMPLOYEENUMBER is undefined in SESSION.
    QueryString
    [empty   string]
    RemoteAddress
    10.x.x.x   [remote address omitted for purposes of this forum]
    RootCause
    struct
    Detail
    [empty     string]
    ErrNumber
    0
    Message
    Element     EMPLOYEENUMBER is undefined in SESSION.
    Resolvedname
    SESSION
    StackTrace
    coldfusion.runtime.UndefinedElementException:     Element EMPLOYEENUMBER is undefined in SESSION. at     coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659) at     coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)     at     coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)     at cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)     at cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at     coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370) at     coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at     coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at     coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at     coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at     coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at     coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at     coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at     coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at     coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at     coldfusion.CfmServlet.service(CfmServlet.java:175) at     coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at     jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at     coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at     jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at     jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)     at     jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)     at     jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)     at     jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at         cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at         cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Type
    Expression
    element
    EMPLOYEENUMBER
    objectType
    object of java.lang.Class
    Class       Name
    java.lang.Class
    Methods
    Method
    Return Type
    asSubclass(java.lang.Class)
    java.lang.Class
    cast(java.lang.Object)
    java.lang.Object
    desiredAssertionStatus()
    boolean
    forName(java.lang.String,         boolean, java.lang.ClassLoader)
    java.lang.Class
    forName(java.lang.String)
    java.lang.Class
    getAnnotation(java.lang.Class)
    java.lang.annotation.Annotation
    getAnnotations()
    java.lang.annotation.Annotation[]
    getCanonicalName()
    java.lang.String
    getClassLoader()
    java.lang.ClassLoader
    getClasses()
    java.lang.Class[]
    getComponentType()
    java.lang.Class
    getConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredAnnotations()
    java.lang.annotation.Annotation[]
    getDeclaredClasses()
    java.lang.Class[]
    getDeclaredConstructor(java.lang.Class[])
    java.lang.reflect.Constructor
    getDeclaredConstructors()
    java.lang.reflect.Constructor[]
    getDeclaredField(java.lang.String)
    java.lang.reflect.Field
    getDeclaredFields()
    java.lang.reflect.Field[]
    getDeclaredMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getDeclaredMethods()
    java.lang.reflect.Method[]
    getDeclaringClass()
    java.lang.Class
    getEnclosingClass()
    java.lang.Class
    getEnclosingConstructor()
    java.lang.reflect.Constructor
    getEnclosingMethod()
    java.lang.reflect.Method
    getEnumConstants()
    java.lang.Object[]
    getField(java.lang.String)
    java.lang.reflect.Field
    getFields()
    java.lang.reflect.Field[]
    getGenericInterfaces()
    java.lang.reflect.Type[]
    getGenericSuperclass()
    java.lang.reflect.Type
    getInterfaces()
    java.lang.Class[]
    getMethod(java.lang.String,         java.lang.Class[])
    java.lang.reflect.Method
    getMethods()
    java.lang.reflect.Method[]
    getModifiers()
    int
    getName()
    java.lang.String
    getPackage()
    java.lang.Package
    getProtectionDomain()
    java.security.ProtectionDomain
    getResource(java.lang.String)
    java.net.URL
    getResourceAsStream(java.lang.String)
    java.io.InputStream
    getSigners()
    java.lang.Object[]
    getSimpleName()
    java.lang.String
    getSuperclass()
    java.lang.Class
    getTypeParameters()
    java.lang.reflect.TypeVariable[]
    isAnnotation()
    boolean
    isAnnotationPresent(java.lang.Class)
    boolean
    isAnonymousClass()
    boolean
    isArray()
    boolean
    isAssignableFrom(java.lang.Class)
    boolean
    isEnum()
    boolean
    isInstance(java.lang.Object)
    boolean
    isInterface()
    boolean
    isLocalClass()
    boolean
    isMemberClass()
    boolean
    isPrimitive()
    boolean
    isSynthetic()
    boolean
    newInstance()
    java.lang.Object
    toString()
    java.lang.String
    StackTrace
    coldfusion.runtime.UndefinedElementException:   Element EMPLOYEENUMBER is undefined in SESSION. at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1659)   at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747) at   coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740) at   cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162) at   cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1) at   coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)   at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at   coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:273) at   coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)   at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at   coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at   coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at   coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)   at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at   coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at   coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at   coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at   coldfusion.CfmServlet.service(CfmServlet.java:175) at   coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at   coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )   at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at   jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101)   at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at   jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at   jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at   jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at   jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)   at   jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)   at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)   at   jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)   at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN
    0
    ID
    LINE
    162
    RAW_TRACE
    at       cfmyhome2ecfm1641837815._factor14(D:\[path_omitted]\mypage\myhome.cfm:162)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    2
    struct
    COLUMN
    0
    ID
    CF_MYHOME
    LINE
    1
    RAW_TRACE
    at       cfmyhome2ecfm1641837815.runPage(D:\[path_omitted]\mypage\myhome.cfm:1)
    TEMPLATE
    D:\[path_omitted]\mypage\myhome.cfm
    TYPE
    CFML
    Template
    /[omitted]/mypage/myhome.cfm
    Type
    coldfusion.runtime.CfErrorWrapper

  • Session Variables Randomly  Lost between Pages

    My web page uses a session to keep track of who logged in.
    What I noticed is that the session variables stored appears and
    disappears randomly on different pages. The wierd thing is that my
    code is very simple.
    For the life of me I can not figure this out....

    I go through a hosting company and do not expect them to do
    any load balancing.
    What are sticky sessions?
    The cflocation tag also has the addtoken="yes" to it now and
    symptoms persist.
    I tested the case with
    sessiontimeout=#CreateTimeSpan(0,2,0,0)# instead of the
    sessiontimeout=#CreateTimeSpan(0,0,120,0)# and symptoms still
    persist.
    Any other suggestions? I think I ran into a wall
    here....

  • Problems with effects being lost between motion and final cut?

    Hi I have an older version of motion, I am editing a video for my course and I have made some motion graphics with some blurs and fades etc (just this kids of effect, nothing else), when they are imported into final cut they disapear all i have is static text or graphics that crawl across the screen...
    Is this a bug?
    If I let software update do its job would these problems go away.
    Just so you know Final cut 5.1.4 and Motion 2.0.1
    thanks in advance if anyone can help.
    Matt

    Great fix....I started a compression to NTSC and it should be done in 3 hours, I will then boot up FCP, chose a 1 minute clip...follow your directions to the T. and compare the results....I did have this solved when I used NTSC 4:3 before; however, when I chose the menu with the mpeg2 codec, I thought that it would be faster....

  • Session variable is lost

    I have developed a system and it had been used for 6 month
    already, it started had problem last week, user can log in system ,
    but after they click the each menu tab, the system give message
    "please login system" because the session variable is lost.
    I tried to debug the file and find that the session.userID is
    there in the file where I set it, but it become empty in other
    page.
    The weird thing is that it did not happen to everyone, most
    of user don't have problem, only a few user login and the session
    variable is lost after they move from login page to different page,
    when I did cfdump to output all session varibale, I found that
    seesionid changed from page to page for those user who had problem,
    the user who had problem now did not had problem before and I did
    not change any code, I tried the internet setting which still did
    not fix problem.
    I am wondering whether it is related to cold fusion server
    setting.
    Please give some advice.

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Restricting particular session variables being shared

    i am using weblogic 10.3.
    I have an EAR with has 2 WAR in it , with session sharing enabled in the weblogic-application.xml . I understand that this will make all the variables that are added in the session to be shared by both WAR, but i want a particular variable added in the session not to shared by both WAR, it should be accessible by only WAR1.
    Please help me
    Zeeshan

    "Restricting particular session variables being shared"
    You can use the 'transient' keyword for this purpose, for example,
    public class Example implements Serializable {
        private String replicate;
        private transient String notReplicate;
    }The 'replicate' attribute is replicated when the Example object is put in the session, the 'notReplicate' attribute is not.

  • Difference between page and include in jsp

    difference between <%@ page import="foo.*"%> and <%@include file="foo.*"%> in jsp

    The one imports a class for the code and the other includes a resource for the output. Those are in no way comparable with each other.

  • %variance between parent and child hierarchy

    Experts,
          How to calculate a percentage variance between parent and child hierarchy.
    Ex: parent is 80 and child is 20 so I need a %variance between 80 and 20.
    Thanks in advance.

    Hi Nikki
    Create structure and restrict parent hierarchy with one node and child hierarchy with another node and create formula node to calculate the percentage variance between two nodes.assign points if helpfful.
    Regards
    Murali.

  • Diferrence between import and include

    can any one pls tell me whts d diferrece between import and include.........thanks in advance.......

    myagi wrote:
    anyway include is not a java keyword,but i need to know d diff between include and import........Well, haven't you just described a difference?

  • Diff between logical and physical file path

    Hi ,
    Could you please explain difference between logical and physical file path's and their importance in ABAP.
    Thanks and regards,
    shyla

    Hi
    The function module FILE_GET_NAME convert a logical path into its corresponding physical path.
    The advantage of using logical pathes within your applications is obivous:
    If you need to change the physical path you just adjust it within transaction FILE yet no changes are required to your application.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    The file names that you use in ABAP statements for processing files are physical names. This means that they must be syntactically correct filenames for the operating system under which your R/3 System is running. Once you have created a file from an ABAP program with a particular name and path, you can find the same file using the same name and path at operating system level.
    Since the naming conventions for files and paths differ from operating system to operating system, ABAP programs are only portable from one operating system to another if you use the tools described below.
    To make programs portable, the R/3 System has a concept of logical filenames and paths. These are linked to physical files and paths. The links are created in special tables, which you can maintain according to your own requirements. In an ABAP program, you can then use the function module FILE_GET_NAME to generate a physical filename from a logical one.
    Maintaining platform-independent filenames is part of Customizing. For a full description, choose Tools ® Business Engineer ® Customizing, followed by
    Implement. projects ® SAP Reference IMG. On the next screen, choose Basis Components System Administration ® Platform-independent File Names.
    For a more detailed description of the function module FILE_GET_NAME, enter its name on the initial screen of the Function Builder and choose Goto Documentation. On the next screen, choose Function module doc.
    Another way of maintaining platform-independent filenames is to use the Transaction FILE. The following sections provide an overview of the transaction.
    To create a logical filename, choose Logical filename definition, client-independent from the Navigation group box in Transaction FILE, then choose New entries. You define logical filenames
    You can either define a logical filename and link it to a logical path (as displayed here), or you can enter the full physical filename in the Physical file field. In the latter case, the logical filename is only valid for one operating system. The rules for entering the complete physical filename are the same as for the definition of the physical path for the logical file. To display further information and a list of reserved words, choose Help.
    If you link a logical path to a logical file, the logical file is valid for all syntax groups that have been maintained for that logical path. The filename specified under Physical file replaces the reserved word  in the physical paths that are assigned to the logical path. To make the name independent of the operating system, use names that begin with a letter, contain up to 8 letters, and do not contain special characters.
    Save your changes.

  • Distinguishing between CSV and Excel file formats

    I am trying to distinguish between CSV and Excel files.   Most of the files I need to process are CSV, but some have been opened and re-saved in Excel format.  I know about the Excel toolbox available, but haven't used it yet. 
    I need to be able to open a spreadsheet file regardless of if it is in CSV or Excel format.  Any help would be greatly appreciated.
    Here are two example files, one CSV and one Excel.  Both have .XLS file extensions. 
    Attachments:
    20-4-XLS.xls ‏21 KB
    20-5-CSV.xls ‏8 KB

    Hi Paul,
    I think the matter is not the extention (xls or csv or whatever) but the format of the data written in your file.
    To see what I mean, open the xls file you posted with notepad... What does it look like ?
    You have tobe sure of the format of the file you want to read so that you can develop an appropriate VI... if you want to be able to read different type of data format, do a test before reading the file and then use an appropriate routine for each format.
    Hope this helps you...
    BTW, to read the one named CSV, a simple "read from spreadsheet file" VI will do the job
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Difference between AAC and m4a files, converting from AAC to useable format

    Does anyone know the difference between AAC and m4a files? iTunes has an option to use an AAC encoder to compress CD files, but this creates an m4a file not an AAC file. I just got some actual AAC files and iTunes cannot read these, is there a way to convert from AAC to a format that iTunes recognizes? Thanks

    iTunes uses AAC data wrapped in an MPEG 4 container file. If you got some *.AAC files, and they're just raw AAC files, then you need to wrap them in an MPEG 4 container. The only way I know to do this is using the foobar 2000 program. You can find more information at http://www.hydrogenaudio.org and http://www.foobar2000.org

Maybe you are looking for

  • APP-PAY-07804: Employee will not be terminated

    hi, we are working in oracle applications 11i. On the attempt to end the employment of some employees from People Enter and Maintain form I need to enter some data to the form; while there are no manadatory (yellow) fields". If I entered the *LEaving

  • Mail won't import emails.

    I've just purchased a new macbook air, set up an import, it brought over all the old emails when I set it up, but won't import any new ones. Any advice?

  • ITunes Music Folder will not play from external hardrive after setting the correct path

    I've decided to try and create some more space for my music collection and decided to keep my entire iTunes library on a portable external hardrive. I researched how to do so online and was successful at first. I set the correct path from the advance

  • Photoshop Elements 9.0.3 will not print correctly

    When I first got this version of Elements, it worked fine when I was printing. But for most of this year, every time I try to print a file, it only uses the middle of the page.  It doesn't matter if I am using portait or landscape orientation, scaled

  • MuseJSAssert Bug in Dreamweaver?

    Hey there. My company is getting started with their web site using Dreamweaver CC and hosting on Business Catalyst. We outsourced one page to a marketing firm, and they sent me a set of  files created in Muse. I brought all of the files into Dreamwea