Problem with Code Abap in Include of EXIT_SAPLRRS0_001

Hello all,  
I need to call to a function of conversion of dates from the include of the function EXIT_SAPLRRS0_001 but I cannot pass the parameters for the exporting, like I can declare these variables so that they pass to the other function mudule?, 
this way this now :
*&  Include           ZXRSRU01
DATA: l_s_range TYPE rsr_s_rangesid.
DATA: loc_var_range LIKE rrrangeexit.
DATA: t_date TYPE rsr_s_rangesid.
DATA:p_date TYPE d.
DATA: v_date1 TYPE d.
DATA: v_date2(6) TYPE c.
CASE i_vnam.
  WHEN 'ZPP_ACU_MES_SEM'.
    IF i_step = 2. "after the popup
      LOOP AT i_t_var_range INTO loc_var_range
      WHERE vnam = 'ZSEM_INDV'.
        CLEAR l_s_range.
obtener el primer dia de la semana de la fecha al 01mmyyyy
        v_date2 = loc_var_range-low(6).
        CALL FUNCTION 'WEEK_GET_FIRST_DAY'
          EXPORTING
            week    = v_date2    
         IMPORTING
            date    = v_date1
          EXCEPTIONS
            semana
            invalida...................

Hi Sonal, 
the error is not indicated explicitly but for the debbuging I could observe that they were not passing the parameters to the function module that calls, as I understand the variable it doesn't pass to another context like parameter and when using PARAMETERS in the INCLUDE of the EXIT_SAPLRRS0_001 it doesn't allow it 
CALL FUNCTION ' WEEK_GET_FIRST_DAY' 
          EXPORTING 
            week = v_date2 
          IMPORTING 
            date = v_date1 
          EXCEPTIONS 
            week 
            it invalidates.

Similar Messages

  • CND problem with code-completion

    Hi,
    First of all I don't really know where to put this post about C++ Pack in NetBeans. I've read one post in which someone suggests that this section will be pretty close...
    Maybe someone here would be so kind and try to help me...
    I'm using Ubuntu 7.04 and I have a problem with code completion in NetBeans 5.5.1 CND and I'm a little bit frustrated right now....
    I installed Netbeans, then CND, Created new C++ Project. Added new source file, with #include <GL/glut.h> directive.
    Whole code was compiled without errors, and that's fine.
    There were some problems with linking but I've added "glut", "GL", "GLU" string to linker parameters in Project Properties.
    The main problem is the code assistant. When I'm hitting "glut" and press ctrl+space it shows functions from glut library but when I type "gl" (to type "glColor3ub...") and try to show the code completion pop-up it shows "No suggestions". The same thing is with GLU library.
    I've installed GL, GLU, glut libraries (they all sit calmly in /usr/include/GL).
    I've added the /usr/include and /usr/include/GL to C++ section.
    I think that the Netbeans is able to find those *.h files because, as I said before, the glut (and the glX) functions are shown properly but there is no sign of "gl" and "glu" FUNCTIONS in code completion (the #define values specified in gl.h and glu.h are on the list, but the functions aren't)...
    I don't have idea why glut and glX are working fine, and gl and glu aren't... If anyone have similar problem, know where to look for an answer or have some suggestions I would be much obliged...
    I've seen Eclipse CDT, Anjuta, kDevelop, Code::Blocks, VIM + icomplete... after checking them all there is only one decision - I want to use NetBeans CND. It's user-friendly, fast and I just like it. That's why I would really like to know why the code-completion isn't working in 100%...

    Vladimir,
    The glColor3ub function declaration is in gl.h file (which along with glu.h is included in glut.h).
    Thanks Maxim,
    In the matter of fact since yesterday I've been looking for the reason why the GL and GLU aren't indexed properly by the Netbeans CC and I've found something.
    The GLU library was indexed after deleting
    #include <GL/gl.h>directive. So it means that the gl.h library is messing up.
    I've checked whole file (gl.h) and noticed that the only part which is in conflict with NetBeans is this one:
    #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
    #  define GLAPI __attribute__((visibility("default")))
    #  define GLAPIENTRYI'm using GCC 4.1 so the expression value is 401, so the GLAPI define looks like the line above.
    gl.h is indexed properly by NetBeans when it is representing "extern", so it should look like
    #  define GLAPI externIt is working fine if you delete this part of gl.h or for example (which I've done) add predefined macro (or change the existing one)
    __GNUC_MINOR__=-200I know that it isn't very clean solution... I'm not happy with cheating NetBeans about the version of installed GCC but unfortunately I am not a specialist in GNU C so maybe someone would find more elegant solution.
    As far as I know the __attribute__ feature makes the GCC more verbose (warnings, errors) but I don't know how much functionality am I loosing in fact...
    Edit: Why the code tags aren't working? :/
    Message was edited by:
    Makula

  • Strange Problem with Code Groups / Codes

    Hey all, have a strange problem with Code Groups and Codes.
    Our data migration team accidentally loaded an early version of our catalog (code groups and codes) in to our 'Gold' configuration client. They then proceed to delete them all via transaction qs41. However, the code groups have been deleted, but not the codes.
    So, basically, no codes groups exist in table QPGR or QPGT but all the entries remain in QPCD with the assigment to code groups. The usage indicator is not set on the codes so why they did not get deleted with the codes groups is unknown.
    The issue that this is now causing us is that we can't recreate the codes groups with these codes assigned as the system thinks they already exist (via a check on table QPCD i would expect).
    Also, i have been unable to recreate what happened did in other clients... seems very strange.
    Any help appreciated.
    Cheers

    Ben,
    You could try SE11, and see if you can delete the records from there.. but I'm not hopeful...
    Otherwise you may need to write a quick ABAP program to delete the data base entries.
    PeteA

  • HT201272 I spend a considerable amount of time in Asia and am finding the ability to download previous purchases now shown on my iCloud account.  Music appears fine and most movies are OK but I have problems with all music videos included with album purch

    I am finding the ability to download previous purchases now shown on my iCloud account to be difficult.  Music appears fine and most movies are OK but I have problems with all music videos included with album purchases.  Any ideas?

    Phillip_dc wrote:
    Firstly, I purchased my first iPhone a few years ago, since then there have been a lot of apps released, a lot which I downloaded for free, tried and deleted from both my phone and my iTune 'Apps' Panel. What bothers me is when I do get a new iOS device, iPad and/or iPhone 5, and I don't want to just copy the back-up of my current iOS device to the new one, then to get the apps I want I will have to scroll through countless useless 'trash' applications in my purchase history to 'cloud download' the ones I want.
    Just sync the apps you want from your computer. You don't need to redownload them directly on the iPhone Purchased list.
    Will Apple be employing such a feature, a 'permanently delete/un-purchase' feature?
    Dunno.
    Send suggestions here -> http://www.apple.com/feedback/

  • I have a problem with my microphone is included

    I have a problem with your microphone is included within the device or an external! I have all the solutions did not succeed anything! How do I solve this problem.
    hp dv6-6b80se
    sn 2ce1470lhl
    pr no a6p72ea#abv
     Windows 7 64-bit

    any body here!

  • Problem with Consuming ABAP Server Proxy WSDL in InfoPath

    Tried to design a InfoPath (MS Office 2003) form from a WSDL file of a web service generated from an ABAP Server Proxy in a NW2004s SP10 system.  InfoPath rejected this WSDL with error “InfoPath cannot use the selected Web service method for receiving data because the method does not provide valid XML data”.  Tried other WSDL files from other web services from ABAP Proxy with InfoPath, all got rejected.
    Validated the WSDL file with XMLSPY, no error.  Tried to import the WSDL into XI 3.0, no error.  Also tried the WSDL in .NET C#, also worked fine.  It seemed only InfoPath does not like this WSDL from ABAP Proxy. 
    Created a similar web service in XI 3.0 and InfoPath had no problem with its WSDL.  Then I compared the two WSDL files.  There are differences.  After try and error on changing the differences, I have nailed down to the XML tag that caused the problem.  Please see the extracted WSDL line attached at the end.  In the XI 3.0 generated WSDL the wsdl:message and the wsdl:part have the same name.  In the ABAP Proxy generated WSDL the wsdl:part has the name “Parameters” which is different from the wsdl:message.  After I copied the wsdl:message name to the wsdl:part name, InfoPath accepted the WSDL file without any problem.
    I know the fix but I like to find out the root cause.  Is this a known issue?  Did we miss some configuration setting that’s causing this issue?  Any help will be much appreciated.
    WSDL from NW2004s SP10 ABAP Proxy
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="Parameters" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name=" Parameters" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>
    WSDL from XI 3.0 Interface
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="RegionR3GetList_Req_MT" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name="RegionR3GetList_Resp_MT" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>

    Anne Tarnoruder has pointed out to me that her SDN article "Consuming SAP Enterprise Services in a Microsoft Office InfoPath Form" has described the the cause and workaround of this issue on page 9.  I am extracting it below and mark this thread as answered.  Thanks to Anne but not sure how I can award point to her.
    Currently SAP supports only the Document style of WSDL, and not the Microsoft-specific RPC style, which causes a problem when consuming SAP services in the Microsoft environment. In this example, you need to apply a workaround that involves a minor correction of locally-stored WSDL files:
    a. In the Project Explorer toolbar, click the Show all files icon and expand the Web reference folder.
    b. For each Web reference in the project, perform the following steps:
    c. Open the WSDL file, replace all instances of <wsdl:part name="parameters" with <wsdl:part name="parameter" (remove the s in parameters) and save the file.
    d. Right-click the Reference.map file and choose Run Custom Tool to invoke a utility that generates code for XML Web services. This recreates the local proxy.

  • Problem With Code/Design View Buttons

    (My bad...perhaps a more clear title will help...)
    OK, I am working with DW CS4 v.10.0 Build 4117 on a Win XP Pro SP3 platform.
    When working with my site files, they open in Code view.  The Split and Design buttons are grayed out.  When I click on the Layout button, the checkmark is sometimes next to the Code option, but sometimes next to the Design option (even though the page is clearly displayed only in Code view!).
    In order to view the file in Design view or Split view, I have to click the Layout button, Click on Code, click on the Layout button again, click on Design or Split View and then it will show the page file in that manner.
    This is SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about this.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say they have never had this happen.
    What can I do?
    Thanks in advance for any assistance you can provide.
    Susan

    OK, all of my site page files are .php extensions.
    Here is the code from one of my pages.
    <?php require_once('Includes/RandomizerInside.inc'); ?>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>Gerald R. Ford International Airport</title>
    <link href="Includes/style.css" rel="stylesheet" type="text/css">
    <?php require_once('Includes/MetaInformation.inc'); ?>
    <?php require_once('Includes/JavaScriptInside.inc'); ?>
    <?php require_once('Includes/CommonJs.inc'); ?>
    </head>
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <script language="JavaScript1.2">mmLoadMenus();</script>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#00306c">
            <td colspan="2"><img src="NavImages/i-header1.jpg" width="760" height="96"></td>
        </tr>
        <tr>
            <td width="185" valign="top" bgcolor="<?php echo"$bg_color"; ?>">
       <?php require_once('Includes/InsidePageNav.inc'); ?>
      </td>
            <td rowspan="2" valign="top" bgcolor="#FFFFFF">
       <table width="100%"  border="0" cellspacing="0" cellpadding="10">
        <tr>
         <td>
          <!-- PAGE CONTENT GOES HERE -->
          <!-- This is the only section you can make changes to -->
          <p align="right" class="PageTitle">NEWSROOM<br><img src="NavImages/spacer.gif" width="555" height="1"></p>
          <p class="BodyCopy"><a href="Pubs.php">Airport Publications</a> | <a href="PR.php">Press Releases</a></p>
          <p class="BodyCopy">To stay current on the latest GFIA news, bookmark this page and revisit it often.</p>
          <p class="BodyCopy">The GFIA Newsroom contains electronic copies
                 of <a href="Pubs.php#1"><i>Airport Connections</i></a>, the airport's quarterly newsletter, financial reports, and more.</p>
          <p class="BodyCopy">Members of the press should
                  be sure to visit the <a href="Media.php">media information</a> page for contact phone numbers and other valuable resources.</p></td>
        </tr>
       </table>
      </td>
        </tr>
        <tr>
            <td bgcolor="<?php echo"$bg_color"; ?>" style="vertical-align:bottom"><img src="NavImages/i-navimage<?php echo"$random_number"; ?>.jpg" width="185" height="300"></td>
        </tr>
        <tr>
            <td colspan="2">
       <?php require_once('Includes/Footer.inc'); ?>
      </td>
        </tr>
    </table>
    </body>
    </html>
    Any and all assistance will be GREATLY appreciated!
    Susan

  • Problem with code

    hi all ! I hadd some problems with my code. I have some dates that should be ordered by the hour (hora) but its not. Now I know its not the SQL because I execute it with my sql control center and its just fine. SO it must be when I pass the data from one object to another.
    Here what I do:
    OK I think I got it. ITS NOT A SQL ERROR !!! or a table error !!! I executed the code using my sql control center and the result is ordered and correct. So it has to be something related to the code that saves the data. I save the data in a bean like this:
    public HashMap getCitasxfecha2(java.sql.Date fecha,String tipo) throws java.sql.SQLException
            BeanDatosCitas t = new BeanDatosCitas();
            HashMap m = new HashMap();
            ResultSet cdr = bd3.busquedaCitas2(fecha,tipo);
            java.sql.Time vector[]= new java.sql.Time[9999];
            System.out.println("salgo del busquedaCitas2");
            int id = 0;
            while (cdr.next())
            //String hora=convertir(cdr.getTime("Hora"));
             id = cdr.getInt("idCita");
                t = new BeanDatosCitas(
                id,                             // Nos servir� como identificador en la tabla HashMa
                cdr.getDate("Fecha"),
                cdr.getTime("Hora"),
                cdr.getString("Protocolo"),
                cdr.getString("DNI"),
                cdr.getString("Opcion"),
                cdr.getString("Observacion"),
                cdr.getString("Horaentrada"),
                cdr.getString("Nombres"),
                cdr.getString("Apellidos"),
                cdr.getString("Prescriptor"),
                cdr.getString("Mutua"),
                cdr.getInt("Sesigast"),
                cdr.getInt("Sesifaltantes"),
                cdr.getString("Tipo"),
                0
                m.put(new Integer(id), t);
            numFilas = m.size();
            return m;
        }Then I do a:
    respuesta = bBDCit.getCitasxfecha2(datNac,tipo);
            int nFilas2 = bBDCit.getNumFilas();
            Collection tabla2 = respuesta.values();
            request.setAttribute("citas_diarias",tabla2); And in my JSP I do:
    <c:forEach var="fila" items="${requestScope.citas_diarias}">it seems like in any part of this code the error happens. What could it be?
    Thanks again!

        public java.util.List getCitasxfecha2(java.sql.Date fecha,String tipo) throws java.sql.SQLException
            BeanDatosCitas t = new BeanDatosCitas();
            java.util.List list = new java.util.ArrayList();
            ResultSet cdr = bd3.busquedaCitas2(fecha,tipo);
            java.sql.Time vector[]= new java.sql.Time[9999];
            System.out.println("salgo del busquedaCitas2");
            int id = 0;
            while (cdr.next())
                //String hora=convertir(cdr.getTime("Hora"));
                id = cdr.getInt("idCita");
                t = new BeanDatosCitas( id,
                            // Nos servir� como identificador en la tabla HashMa
                    cdr.getDate("Fecha"),
                    cdr.getTime("Hora"),
                    cdr.getString("Protocolo"),
                    cdr.getString("DNI"),
                    cdr.getString("Opcion"),
                    cdr.getString("Observacion"),
                    cdr.getString("Horaentrada"),
                    cdr.getString("Nombres"),
                    cdr.getString("Apellidos"),
                    cdr.getString("Prescriptor"),
                    cdr.getString("Mutua"),
                    cdr.getInt("Sesigast"),
                    cdr.getInt("Sesifaltantes"),
                    cdr.getString("Tipo"),
                    0
                list.add(t);
            numFilas = list.size();
            return list;
            int nFilas2 = bBDCit.getNumFilas();
            Collection tabla2 = bBDCit.getCitasxfecha2(datNac,tipo);
            request.setAttribute("citas_diarias",tabla2);That should just about cover it. The JSP can stay the same.

  • AP 2602 Problem with Code 7.4.100.60

    Hi at all,
    I have problems with the code 7.4.100.60 and 2602 AP´s.
    The AP´s stops delivering services and no client can connected to them. After a reboot
    all problems are solved, but this problem comes back every ten days.
    In the logs are only shown a disconnect from these AP´s on the controller.
    On the AP´s is nothing to find.
    Is this a known problem? Is there a workaround available?
    Thanks in advance,
    Mario

    Hello Mario,
    As per your query i can suggest you the following solution-
    Please check the powering options-
    • 802.3af Ethernet Switch
    • Cisco AP2600 Power Injectors (AIR-PWRINJ4=)
    • Cisco AP2600 Local Power Supply (AIR-PWR-B=)
    and Power Draw
    AP2600: 12.95W
    Note: When deployed using Power over Ethernet (PoE), the power drawn from the power sourcing equipment will be higher by some amount depending on the length of the interconnecting cable. This additional power may be as high as 2.45W, bringing the total system power draw (access point + cabling) to 15.4W.
    Hope this will help you.

  • Problems with managed beans on included JSPs

    I've got a problem with managed beans within an included JSP
    The included page looks as follows:
    <f:subview id="includedPage" binding="#{testBean.component}">
         <h:outputText value="Hallo from the included page"/>
         <h:outputText value="#{testBean.msg}" />
    </f:subview>The including page is also very simple
    <f:view>
         <html>
              <head>
                   <title>Test include</title>
              </head>
              <body>
                   <h:outputText value="Hello from the including page"/>               
                   <jsp:include page="included.jsp"/>
              </body>
         </html>
    </f:view>The testBean is a managed bean with page scope and looks as follows:
    public class TestBean {
        public UIComponent fComponent;
        public TestBean() {
            System.out.println("TestBean Constructor called " + toString() );
        public String getMsg() {
            return "Component = " + fComponent ;
        public void setComponent(UIComponent component) {
            System.out.println("setComponent called " + component);       
            fComponent = component;
        public UIComponent getComponent() {
            System.out.println("getComponent called " + fComponent);
            return fComponent;
    }The output to the console is:
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@1bc16f0
    getComponent called null
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@18622f3
    setComponent called javax.faces.component.UINamingContainer@160877b
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@5eb489
    and the page displays
    Hello from the include page
    Hello from the included page Component = null
    Can anyone explain this behavior ? What's the reason that the page displays
    Component = null
    and is it possible to display the parent naming container (subview) this way ?
    how ?
    Thanks

    By "page scope" I assume you mean "none"? If so JSF creates a new bean for each place it's referenced. The closest to the behavior you want, once per "page", is really request scope.
    (I'm not sure why the constructor is being called thrice, though. I should look into this.)
    I assume you want a bean-per-subview scenario. This should be doable, and one way that allows a dynamic number of subviews would be as follows:
    --create a "manager" bean in request scope
    --give it get/set methods that retrieves a Map of "TestBean" instances; the idea is that each subview use a different key "s1", "s2", etc
    back the manager method with Map implementation that checks if there's already a TestBean associated with the key returns it if yes, else null.
    If that seems messy, the component solution is hairy :-) See http://forum.java.sun.com/thread.jspa?threadID=568937&messageID=2812561
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with code-Please Help!!!

    Hey guys i have some problems with the following code:
    1. I have to do a stutter and reverse of an array [ 2 4 ] and it should return [ 4 4 2 2 ]. I wrote the code and i get [ 2 2 4 4]. How can this be fixed?
    public class Part1
         public static void main(String[] args)
              int[] values = {2, 4};     
              stutterAndReverse(values);
         public static int[] stutterAndReverse(int[] values)
              //Stutter
              System.out.print("[ ");
              for (int i = 0; i < values.length; i++)
                   for(int j = values.length-1; j >=0; j--)
                        System.out.print(values[i] + " ");
              System.out.print("] ");
              return values;
    2. This one takes the array and returns the even numbers to the left and odds to the right. It works with the code i have so far but the odds on the right should be in order. For example an array of 6 gives the output [2, 4, 6, 5, 3, 1]. Mine gives [2, 4, 6, 1, 5, 3]. How can i fix this???
    public class Part2
         public static void main(String[] args)
              int[] arr = new int[6];
              for(int i = 0; i < arr.length; i++)
              arr[i] = i + 1 ;
              printArray(arr);
              arr = evensToLeft(arr);
              //arr = oddsToRight(arr);
              System.out.println("Evens to the Left");
              printArray(arr);               
         public static void printArray(int[] arr)
              System.out.print("[");
              for(int i = 0; i < arr.length; i++)
                   System.out.print(arr);
                   if(i < arr.length-1)
                   System.out.print(", ");
                   System.out.println("]");
         public static int[] makeArray(int n)
              int[] arr = new int[6];
              return arr;          
         public static int[] evensToLeft(int[] arr)
              int split = 0;
              for(int i = 0; i < arr.length; i++)
                   if(arr[i]%2==0) //even
                        swap(arr,i,split);
                        split++;
                   return arr;
         public static void swap(int[] arr, int n1, int n2)
              int temp = arr[n1];
              arr[n1] = arr[n2];
              arr[n2] = temp;
    Thank you for your time i really appreciate it.

    now i'm more confused than ever...:(This'll probably make it worse :)
    class Testing
      public Testing()
        String[] values1 = {"2","4"};
        System.out.println(java.util.Arrays.asList(values1));
        System.out.println(java.util.Arrays.asList(stutterAndReverse(values1)));
        String[] values2 = {"1","2","3","4","5","6","7","9","11"};
        System.out.println(java.util.Arrays.asList(values2));
        System.out.println(java.util.Arrays.asList(evensOdds(values2)));
      public String[] stutterAndReverse(String[] arr)
        String[] temp = new String[arr.length * 2];
        for(int x = 0; x < temp.length; x++)
          temp[temp.length - 1 -x] = arr[x/2];
        return temp;
      public String[] evensOdds(String[] arr)
        StringBuffer evens = new StringBuffer();
        StringBuffer odds = new StringBuffer();
        for(int x = 0; x < arr.length; x++)
          if(Integer.parseInt(arr[x]) % 2 == 0) evens.append(","+arr[x]);
          else odds.insert(0,","+arr[x]);
        return (evens.toString().substring(1)+odds.toString()).split(",");
      public static void main(String[] args){new Testing();}
    }

  • Serious problem with mail. Screenshots included

    I'm not sure what happened here, but I erased one email account and then all of the sudden everything got messed up.
    If you look at the screenshots, I think you can get a pretty good idea how its not adding up. Account names aren't even matching from one screen to the next.
    What's the problem? Do I need to reinstall my OS?
    http://home.comcast.net/~rydiu/Picture-1.gif
    http://home.comcast.net/~rydiu/Picture-2.gif
    ]http://home.comcast.net/~rydiu/Picture-3.gif

    I'm currently struggling with exactly the same problem. I solved it for a short while but it returned after a restart.
    Make all the accounts inactive. In the one that you're having the problems with, insert a typo into the account name. Now create a new account and enter the correct details. You'll be able to send mail again. Now simply enable the other accounts (repair the typo) and delete the new one. You can still send mail. After a restart however, the error returns.
    Matt

  • Problem with ssi and php includes

    Hello Everyone,
    I’m a little confused and I hope someone here can shed some light on my problem. I teach web design (Macromedia Studio 8) at the high school level and I’m having trouble using .php includes and server side includes on our Mac OSX 10.4 server with WebObjects 5.2.
    The Problem – Dreamweaver correctly inserts the code….
    <?php
    include ('assets/includes/header.html');
    ?>
    but when the same index.php file is uploaded to the server and then downloaded to another workstation the code is changed. The php include is removed and replaced with the actual html from the header.html file.
    Does anyone know what causes this?
    Thank you for your help.
    Todd
    www.mrbenrud.com
      Mac OS X (10.4.4)  

    If I understand your post correctly, what you are experiencing is exactly what PHP is supposed to do.
    I am guessing that you are expecting a user to be able to see the programmer's php code just as is the case with html, where one can simply see the code by control clicking the page in Safari and selecting "View Source", for example.
    However, for security reasons PHP will never allow this behavior via http 'get' functions. Imagine, a php page which includes php code that accessess a highly sensitive database and thus were to allow any client to see the exact architecture of the database. For these reasons the server is the only one able to parse through the PHP code and generates html code from it, which is sent to the client.
    Remember, PHP stands for hypertext preprocessor, that is the server processes php code before hypertext is generated and sent to the client.
    The include function is a php function and thus will not be displayed as part of the generated html.
    The only way to allow your students for example, to see the PHP code is to serve the folder containing the web site being served via another protocol such as AFP, SMB, and FTP.
    I hope this addresses your concerns.
    Best,
    Max

  • Problem with code: reading a string

    Hi,
    I am very new to java so excuse my naivety. i need to write some code which will decode an encrypted message. the message is stored as a string which is a series of integers which. Eg. Nick in this code is 1409030110 where a = 1, b = 2,... and there is a 0 (zero) after every word. at the moment the code only goes as far as seperating the individual characters in the message up and printing them out onscreen.
    Heres the code:
    int index = 0;
    while(index < line.length() - 1) {
    char first = line.charAt(index);
    char second = line.charAt(index + 1);
    if(second == 0) {
    char third = line.charAt(index + 2);
    if(third == 0) {
    System.out.print(first + "" + second);
    index = index + 3;
    else {
    System.out.print(first);
    index = index + 2;
    else {
    System.out.print(first + "" + second);
    index = index + 3;
    Basically its meant to undo the code by reading the first two characters in the string then determining whether the second is equal to 0 (zero). if the second is 0 then it needs to decide whether the third character is 0 (zero) because the code could be displaying 10 or 20. if so the first two characters are recorded to another string and if not only the first is recorded. obviously if the second character is not a zero then the code will automatically record the first 2 characters.
    my problem is that the code doesnt seem to recognise the 0 (zero) values. when i run it thru with the string being the coded version of Nick above (1409030110) the outputted answer is 1490010 when it should be 149311. as far as i can see the code is right but its not working! basically the zeros are begin removed but i need each group of non-zero digits to be removed seperately so i can decode them.
    if anyone has understood any of this could you give me some advice, im at my wits end!
    Thanks, Nick

    Try something like this:
    import java.io.FileInputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class SimpleDecoder
        /** Default mapping file */
        public static final String DEFAULT_MAPPING_FILE = "SimpleDecoder.properties";
        /** Regular expression pattern to match one or more zeroes */
        public static final String SEPARATOR = "0+";
        private Properties decodeMapping = new Properties();
        public static void main(String [] args)
            try
                SimpleDecoder decoder = new SimpleDecoder();
                decoder.setDecodeMapping(new FileInputStream(DEFAULT_MAPPING_FILE));
                for (int i = 0; i < args.length; ++i)
                    System.out.println("Original encoded string: " + args);
    System.out.println("Decoded string : " + decoder.decode(args[i]));
    catch (Exception e)
    e.printStackTrace();
    public void setDecodeMapping(InputStream stream) throws IOException
    this.decodeMapping.load(stream);
    public String decode(final String encodedString)
    StringBuffer value = new StringBuffer();
    String [] tokens = encodedString.split(SEPARATOR);
    for (int i = 0; i < tokens.length; ++i)
    value.append(this.decodeMapping.getProperty(tokens[i]));
    return value.toString();
    I gave your "1409030110" string on the command line and got back "nick". The SimpleDecoder.properties file had 26 lines in it:
    1 = a
    2 = b
    3 = c
    // etc;Not a very tricky encryption scheme, but it's what you asked for. - MOD

  • Problem with Flash-Parameter which include the letter 'E'

    Hi,
    we have embedded our Xcelsius-Dashboards in another 3rd-party-webportal.
    The user opens a dashboard via button in this webportal.
    The OpenDocument-URL contains one Falsh-Variable to control the display
    content according the appropriate user who has calling the dashboard.
    In some cases, the content of this Flash-Variable contains the letter "E".
    In such cases the problem is, that the Letter E will not appear in Xcelsius.
    That means, if we call the dashboard for example with the Flash-Parameter-Value "22E"
    via OpenDocument, in Xcelsius comes the Value without the letter "E" (in the case above "22").
    I also tried to use the hex-code of the letter "e" (%65) but this doesn't work.
    Has anybody a hint for us, how this letter can be sent to Xcelsius via OpenDocument?
    Sincerely
    Edited by: Sebastian Eckes on Apr 26, 2011 12:00 PM

    Check for malware infection. The names of these files really indicate the system is infected.
    Which version of Java client is installed? Especially older versions are very vulnerable against website or email based attacks.
    Since malware infections are very different, detailed support can hardly be given via forums.
    Best greetings from Germany
    Olaf

Maybe you are looking for

  • Airport card is no longer reconised

    hi the guys and girls, basically i have have my laptop for more than 3 years now and it has worked seamlessly up until the last 6 months and just recently it has decided to not reconise the inbuilt Airport extreme card that was inbuilt at purchase (s

  • No bootable device

    Hello, I have a 15 month old hp pavilion7-4165dx entertainment notebook. For the last 6 months or do I would occasionally get a no bootable device message but after shutting down and restarting it was fine. It happened again but now it keeps saying t

  • Basic settings for the main window

    How do I set a frame fullscreen or minimize it? How can I replace the coffee cup logo in the upper left corner to something other? I have tried to search the API but have not found anything.

  • How to get application username

    Hi All, I would like to get the application username, but I don't know how to get it. Can anyone tell me, thanks.

  • Cisco IOS supporting both voice and vpn

    Hi Friends i have one 2821 router.Can any one suggesting which ios will support both voice and vpn?