Setting up and coding

hi, i would like to develop card applications.but every time i install Java Card 2.2.1 i can't code.Are there IDEs i could use.secondly what good book is available for a starter like me.thanks
Dennis,
Nairobi
[email protected]
Message was edited by:
mann_1600

First, the Sun JC kit includes samples to guide you. Second, download the guides and specifications they help as well.
Finally, IBM JCOP kit is the popular tool of choice amongst the engineers in this forum.

Similar Messages

  • How to know the image size and coding of our j2me project

    Hi,
    I have developed a game and i did the obfuscation. My jar size is now 170KB. How can differentiate the coding size and the image size from the total jar size.
    If i asked any thing wrongly, please forgive me and clarify my doubt.
    I am looking forward to meet ur queries if any.
    Thanks and Regards,
    Hithayath.

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
    <project xmlns:projdeps2="http://www.netbeans.org/ns/ant-project-references/2" basedir=".." default="jar" name="-impl">
    <target name="pre-init"/>
    <target depends="pre-init" name="pre-load-properties">
    <property file="nbproject/private/private.properties"/>
    <property value="0.0.1" name="deployment.number"/>
    <property value="000002" name="deployment.counter"/>
    <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    <available file="${user.properties.file}" property="user.properties.file.exists"/>
    </target>
    <target unless="config.active" depends="pre-load-properties" name="exists.config.active">
    <echo message="Active configuration (config.active property) is not set - using default." level="warning"/>
    <property name="config.active" value=""/>
    </target>
    <target unless="netbeans.user" depends="pre-load-properties" name="exists.netbeans.user">
    <echo message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically." level="warning"/>
    </target>
    <target unless="user.properties.file.exists" depends="pre-load-properties" name="exists.user.properties.file">
    <echo message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)." level="warning"/>
    </target>
    <target depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file" name="load-properties">
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    <containsregex pattern="^platform.active=|^deployment.method="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="${user.properties.file}">
    <filterchain>
    <replaceregex replace="platform." pattern="^platforms\.${platform.active}\."/>
    <replaceregex replace="deployment.scriptfile=" pattern="^deployment\.${deployment.method}\.scriptfile="/>
    </filterchain>
    </loadproperties>
    <loadproperties srcfile="nbproject/project.properties">
    <filterchain>
    <containsregex replace="\1" pattern="^configs\.${config.active}\.(.*)"/>
    <concatfilter prepend="nbproject/project.properties"/>
    </filterchain>
    </loadproperties>
    </target>
    <target unless="platform.active" depends="load-properties" name="exists.platform.active">
    <echo message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)." level="warning"/>
    </target>
    <target depends="load-properties" unless="platform.configuration" name="exists.platform.configuration">
    <echo message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration." level="warning"/>
    <property value="CLDC-1.0" name="platform.configuration"/>
    </target>
    <target depends="load-properties" unless="platform.profile" name="exists.platform.profile">
    <echo message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile." level="warning"/>
    <property value="MIDP-1.0" name="platform.profile"/>
    </target>
    <target depends="pre-init,load-properties,exists.platform.active,exists.platform.configuration,exists.platform.profile" name="init">
    <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-modules-kjava-antext.jar file in the IDE installation directory.</fail>
    <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
    <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
    <fail unless="src.dir">Must set src.dir</fail>
    <fail unless="build.dir">Must set build.dir</fail>
    <fail unless="build.classes.dir">Must set build.classes.dir</fail>
    <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
    <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
    <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
    <fail unless="dist.dir">Must set dist.dir</fail>
    <fail unless="dist.jar">Must set dist.jar</fail>
    <fail unless="dist.jad">Must set dist.jad</fail>
    <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
    <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
    <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
    <property value="" name="abilities"/>
    <property value="" name="obfuscator.classpath"/>
    <property value="" name="kjava.configuration"/>
    <property value="UEI-1.0" name="platform.type"/>
    <property value="" name="platform.device"/>
    <property value="0" name="obfuscation.level"/>
    <property value="false" name="sign.enabled"/>
    <property value="file://" name="dist.jad.url"/>
    <property value="1.3" name="javac.source"/>
    <property value="1.1" name="javac.target"/>
    <property value="${file.encoding}" name="javac.encoding"/>
    <condition property="no.deps">
    <istrue value="${no.dependencies}"/>
    </condition>
    <condition property="no.javadoc.preview">
    <isfalse value="${javadoc.preview}"/>
    </condition>
    <condition value="${filter.excludes},**/*Test.java,**/test,**/test/**" property="filter.excludes.evaluated">
    <istrue value="${filter.exclude.tests}"/>
    </condition>
    <property value="${filter.excludes}" name="filter.excludes.evaluated"/>
    <condition value="" property="evaluated.run.security.domain">
    <isfalse value="${run.use.security.domain}"/>
    </condition>
    <condition value="" property="deployment.do.override.jarurl">
    <istrue value="${deployment.override.jarurl}"/>
    </condition>
    <property value="${run.security.domain}" name="evaluated.run.security.domain"/>
    <taskdef resource="org/netbeans/modules/kjava/antext/defs.properties">
    <classpath>
    <pathelement path="${libs.j2me_ant_ext.classpath}"/>
    </classpath>
    </taskdef>
    <uptodate targetfile="${preprocessed.dir}/.timestamp" property="no.clean.before.build">
    <srcfiles dir="nbproject">
    <include name="project.properties"/>
    <include name="build-impl.xml"/>
    </srcfiles>
    </uptodate>
    <condition property="skip.deployment">
    <equals trim="true" casesensitive="false" arg2="NONE" arg1="${deployment.method}"/>
    </condition>
    <condition property="skip-sign-keystore-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.keystore.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <condition property="skip-sign-alias-password-input">
    <or>
    <isfalse value="${sign.enabled}"/>
    <and>
    <isset property="sign.keystore"/>
    <isset property="sign.alias"/>
    <isset property="sign.alias.password"/>
    <not>
    <equals trim="true" arg2="" arg1="${sign.keystore}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias}"/>
    </not>
    <not>
    <equals trim="true" arg2="" arg1="${sign.alias.password}"/>
    </not>
    </and>
    </or>
    </condition>
    <antcall inheritrefs="true" inheritall="true" target="post-init"/>
    </target>
    <target name="post-init"/>
    <target name="deps-jar" depends="init" unless="no.deps"/>
    <target description="Clean project in case its meta information has changed." unless="no.clean.before.build" depends="init" name="conditional-clean">
    <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
    </target>
    <target name="pre-preprocess"/>
    <target description="Preprocess project sources." depends="init,pre-preprocess,deps-jar,conditional-clean" name="preprocess">
    <mkdir dir="${preprocessed.dir}"/>
    <echo file="${preprocessed.dir}/.timestamp" message="ignore me"/>
    <nb-prep encoding="${javac.encoding}" preprocessfor="${config.active},${abilities}" destdir="${preprocessed.dir}">
    <fileset excludes="${filter.excludes.evaluated}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </nb-prep>
    <antcall inheritrefs="true" inheritall="true" target="post-preprocess"/>
    </target>
    <target name="post-preprocess"/>
    <target description="Extracts all bundled libraries." depends="init,deps-jar,conditional-clean" name="extract-libs">
    <mkdir dir="${build.classes.dir}"/>
    <nb-extract excludeManifest="true" dir="${build.classes.dir}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </nb-extract>
    </target>
    <target name="pre-compile"/>
    <target description="Compile project classes." depends="init,preprocess,extract-libs,pre-compile" name="compile">
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" bootclasspath="${platform.bootclasspath}" srcdir="${preprocessed.dir}" destdir="${build.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <copy todir="${build.classes.dir}">
    <fileset excludes="${filter.excludes.evaluated},${build.classes.excludes}" defaultexcludes="${filter.use.standard}" dir="${src.dir}"/>
    </copy>
    <antcall inheritrefs="true" inheritall="true" target="post-compile"/>
    </target>
    <target name="post-compile"/>
    <target name="pre-compile-single"/>
    <target description="Compile selected project classes." depends="init,preprocess,extract-libs,pre-compile-single" name="compile-single">
    <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
    <mkdir dir="${build.classes.dir}"/>
    <javac encoding="${javac.encoding}" includes="${javac.includes}" bootclasspath="${platform.bootclasspath}" destdir="${build.classes.dir}" srcdir="${preprocessed.dir}" debug="${javac.debug}" optimize="${javac.optimize}" deprecation="${javac.deprecation}" target="${javac.target}" source="${javac.source}" includeantruntime="false">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    </javac>
    <antcall inheritrefs="true" inheritall="true" target="post-compile-single"/>
    </target>
    <target name="post-compile-single"/>
    <target depends="init" name="create-jad">
    <mkdir dir="${build.dir}"/>
    <dirname property="dist.jad.dir" file="${dist.dir}/${dist.jad}"/>
    <mkdir dir="${dist.jad.dir}"/>
    <condition value="${manifest.apipermissions}" property="evaluated.manifest.apipermissions">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition value="${manifest.pushregistry}" property="evaluated.manifest.pushregistry">
    <not>
    <equals arg2="MIDP-1.0" arg1="${platform.profile}"/>
    </not>
    </condition>
    <condition property="contains.manifest.configuration">
    <contains string="${manifest.others}" substring="MicroEdition-Configuration: "/>
    </condition>
    <condition property="contains.manifest.profile">
    <contains string="${manifest.others}" substring="MicroEdition-Profile: "/>
    </condition>
    <property name="evaluated.manifest.apipermissions" value=""/>
    <property name="evaluated.manifest.pushregistry" value=""/>
    <property value="" name="manifest.jad"/>
    <property value="" name="manifest.manifest"/>
    <echo file="${dist.dir}/${dist.jad}">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</echo>
    <echo file="${build.dir}/manifest.mf">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</echo>
    <antcall inheritrefs="true" inheritall="true" target="add-configuration"/>
    <antcall inheritrefs="true" inheritall="true" target="add-profile"/>
    </target>
    <target unless="contains.manifest.configuration" name="add-configuration">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Configuration: ${platform.configuration}
    </echo>
    </target>
    <target unless="contains.manifest.profile" name="add-profile">
    <echo append="true" file="${dist.dir}/${dist.jad}">MicroEdition-Profile: ${platform.profile}
    </echo>
    <echo append="true" file="${build.dir}/manifest.mf">MicroEdition-Profile: ${platform.profile}
    </echo>
    </target>
    <target name="pre-obfuscate"/>
    <target description="Up-to-date check before obfuscation." depends="init,compile" name="obfuscate-check">
    <uptodate targetfile="${obfuscator.destjar}" property="no.obfusc">
    <srcfiles dir="${build.classes.dir}"/>
    </uptodate>
    </target>
    <target unless="no.obfusc" description="Obfuscate project classes." depends="init,compile,obfuscate-check,pre-obfuscate" name="obfuscate">
    <dirname property="obfuscator.srcjar.dir" file="${obfuscator.srcjar}"/>
    <dirname property="obfuscator.destjar.dir" file="${obfuscator.destjar}"/>
    <mkdir dir="${obfuscator.srcjar.dir}"/>
    <mkdir dir="${obfuscator.destjar.dir}"/>
    <jar basedir="${build.classes.dir}" jarfile="${obfuscator.srcjar}"/>
    <property value="" name="obfuscation.custom"/>
    <nb-obfuscate extraScript="${obfuscation.custom}" obfuscationLevel="${obfuscation.level}" classpath="${platform.bootclasspath}" obfuscatorclasspath="${obfuscator.classpath}" destjar="${obfuscator.destjar}" srcjar="${obfuscator.srcjar}"/>
    <mkdir dir="${obfuscated.classes.dir}"/>
    <unjar dest="${obfuscated.classes.dir}" src="${obfuscator.destjar}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-obfuscate"/>
    </target>
    <target name="post-obfuscate"/>
    <target name="pre-preverify"/>
    <target description="Preverify project classes." depends="init,compile,obfuscate,pre-preverify" name="preverify">
    <mkdir dir="${preverify.classes.dir}"/>
    <nb-preverify commandline="${platform.preverifycommandline}" platformtype="${platform.type}" platformhome="${platform.home}" configuration="${platform.configuration}" classpath="${platform.bootclasspath}" destdir="${preverify.classes.dir}" srcdir="${obfuscated.classes.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-preverify"/>
    </target>
    <target name="post-preverify"/>
    <target unless="skip-sign-keystore-password-input" if="netbeans.home" depends="init" name="set-keystore-password">
    <nb-enter-password passwordproperty="sign.keystore.password" keystore="${sign.keystore}"/>
    </target>
    <target unless="skip-sign-alias-password-input" if="netbeans.home" depends="init" name="set-alias-password">
    <nb-enter-password passwordproperty="sign.alias.password" keyalias="${sign.alias}" keystore="${sign.keystore}"/>
    </target>
    <target name="pre-jar"/>
    <target description="Build jar and application descriptor." depends="init,preverify,create-jad,set-keystore-password,set-alias-password,pre-jar" name="jar">
    <dirname property="dist.jar.dir" file="${dist.dir}/${dist.jar}"/>
    <mkdir dir="${dist.jar.dir}"/>
    <jar manifest="${build.dir}/manifest.mf" jarfile="${dist.dir}/${dist.jar}" compress="${jar.compress}">
    <fileset dir="${preverify.classes.dir}"/>
    <fileset dir="${obfuscated.classes.dir}">
    <exclude name="**/*.class"/>
    </fileset>
    </jar>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${dist.jar}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-jar"/>
    </target>
    <target name="post-jar"/>
    <target description="Rebuild the application." depends="init,clean,jar" name="rebuild"/>
    <target description="Run MIDlet suite." depends="init,jar" name="run">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target description="Quick Run already built MIDlet suite." depends="init" name="run-no-build">
    <nb-run commandline="${platform.runcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" platformtype="${platform.type}" platformhome="${platform.home}" device="${platform.device}" jadurl="${dist.jad.url}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target depends="init,clean,jar" description="Debug project." name="debug">
    <delete file="${preprocessed.dir}/.timestamp"/>
    <parallel>
    <nb-run commandline="${platform.debugcommandline}" securitydomain="${evaluated.run.security.domain}" execmethod="${run.method}" jadfile="${dist.dir}/${dist.jad}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" debuggeraddressproperty="jpda.port" debugserver="true" debugsuspend="true" debug="true"/>
    <sequential>
    <sleep seconds="5"/>
    <antcall target="nbdebug"/>
    </sequential>
    </parallel>
    </target>
    <target if="netbeans.home" description="Start NetBeans debugger" name="nbdebug">
    <nb-kjava-debug period="2000" timeout="30000" name="${app.codename}" address="${jpda.port}">
    <bootclasspath>
    <path path="${platform.bootclasspath}"/>
    </bootclasspath>
    <classpath>
    <path path="${dist.dir}/${dist.jar}"/>
    </classpath>
    <sourcepath>
    <path path="${src.dir}"/>
    <path path="${libs.src.path}"/>
    </sourcepath>
    </nb-kjava-debug>
    </target>
    <target depends="init,preprocess" name="javadoc">
    <mkdir dir="${dist.javadoc.dir}"/>
    <javadoc private="${javadoc.private}" windowtitle="${javadoc.windowtitle}" version="${javadoc.version}" author="${javadoc.author}" splitindex="${javadoc.splitindex}" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" use="${javadoc.use}" notree="${javadoc.notree}" bootclasspath="${platform.bootclasspath}" destdir="${dist.javadoc.dir}" source="${javac.source}">
    <classpath>
    <path path="${libs.classpath}"/>
    </classpath>
    <sourcepath>
    <pathelement location="${preprocessed.dir}"/>
    </sourcepath>
    <fileset dir="${preprocessed.dir}"/>
    </javadoc>
    <antcall target="browse-javadoc"/>
    </target>
    <target unless="no.javadoc.preview" if="netbeans.home" name="browse-javadoc">
    <nbbrowse file="${dist.javadoc.dir}/index.html"/>
    </target>
    <target name="pre-clean"/>
    <target description="Clean build products." if="no.clean.before.build" depends="init,conditional-clean" name="clean">
    <antcall inheritrefs="true" inheritall="true" target="do-clean"/>
    </target>
    <target depends="pre-clean" name="do-clean">
    <delete dir="${preprocessed.dir}"/>
    <delete dir="${build.classes.dir}"/>
    <delete file="${obfuscator.srcjar}"/>
    <delete file="${obfuscator.destjar}"/>
    <delete dir="${obfuscated.classes.dir}"/>
    <delete dir="${preverify.classes.dir}"/>
    <delete file="${build.dir}/manifest.mf"/>
    <delete file="${dist.dir}/${dist.jar}"/>
    <delete file="${dist.dir}/${dist.jad}"/>
    <delete dir="${dist.javadoc.dir}"/>
    <antcall inheritrefs="true" inheritall="true" target="post-clean"/>
    </target>
    <target name="post-clean"/>
    <target name="pre-deploy"/>
    <target if="deployment.do.override.jarurl" depends="init,jar,pre-deploy" name="override-jad">
    <property value="${dist.jar}" name="deployment.jarurl"/>
    <nb-jad aliaspassword="${sign.alias.password}" alias="${sign.alias}" keystorepassword="${sign.keystore.password}" keystore="${sign.keystore}" sign="${sign.enabled}" url="${deployment.jarurl}" jarfile="${dist.dir}/${dist.jar}" jadfile="${dist.dir}/${dist.jad}"/>
    </target>
    <target unless="skip.deployment" if="deployment.method" depends="init,jar,override-jad,pre-deploy" name="deploy">
    <fail unless="deployment.scriptfile">Property deployment.${deployment.method}.scriptfile not set. The property should point to an Ant script providing ${deployment.method} deployment.</fail>
    <ant inheritrefs="true" inheritall="true" antfile="${deployment.scriptfile}">
    <property location="${dist.dir}/${dist.jad}" name="deployment.jad"/>
    <property location="${dist.dir}/${dist.jar}" name="deployment.jar"/>
    </ant>
    <propertyfile file="nbproject/private/private.properties">
    <entry pattern="000000" default="2" operation="+" type="int" key="deployment.counter"/>
    <entry value="${deployment.counter}" key="deployment.number"/>
    </propertyfile>
    <replaceregexp replace="deployment.number=\2\3.\5\6.\8\9" match="^deployment.number=[0-9]*(0|([1-9]))([0-9])(0|([1-9]))([0-9])(0|([1-9]))([0-9])$" file="nbproject/private/private.properties" byline="true"/>
    <antcall inheritrefs="true" inheritall="true" target="post-deploy"/>
    </target>
    <target name="post-deploy"/>
    <target name="for-all-configs">
    <antcall inheritrefs="false" inheritall="false" target="${target.to.call}">
    <param value="" name="config.active"/>
    </antcall>
    </target>
    <target name="jar-all">
    <antcall target="for-all-configs">
    <param value="jar" name="target.to.call"/>
    </antcall>
    </target>
    <target name="javadoc-all">
    <antcall target="for-all-configs">
    <param value="javadoc" name="target.to.call"/>
    </antcall>
    </target>
    <target name="deploy-all">
    <antcall target="for-all-configs">
    <param value="deploy" name="target.to.call"/>
    </antcall>
    </target>
    <target name="rebuild-all">
    <antcall target="for-all-configs">
    <param value="rebuild" name="target.to.call"/>
    </antcall>
    </target>
    <target depends="load-properties" name="clean-all">
    <fail unless="build.root.dir">Property build.root.dir is not set. By default its value should be \"build\".</fail>
    <fail unless="dist.root.dir">Property dist.root.dir is not set. By default its value should be \"dist\".</fail>
    <delete dir="${build.root.dir}"/>
    <delete dir="${dist.root.dir}"/>
    <antcall target="for-all-configs">
    <param value="clean" name="target.to.call"/>
    </antcall>
    </target>
    </project>
    I have pasted the content of that file, please do the needs....

  • Pls help..Constructor,setter, getter and Exception Handling Problem

    halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
    1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
    The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
    my constructor file...i dont know whether is correct, pls tell me if i miss something...
    public class Employee{
         private int empNum;
         private String empName;
         private double empSalary;
         Employee(){
              empNum=0;
              empName="";
              empSalary=0;
         public int getEmpNum(){
              return empNum;
         public String getName(){
              return empName;
         public double getSalary(){
              return empSalary;
         public void setEmpNum(int e){
              empNum = e;
         public void setName(String n){
              empName = n;
         public void setSalary(double sal){
              empSalary = sal;
    my test file....
    public class TestEmployeeClass{
         public static void main(String args[]){
              Employee e = new Employee();
                   e.setEmpNum(100);
                   e.setName("abc");
                   e.setSalary(1000.00);
                   System.out.println(e.getEmpNum());
                   System.out.println(e.getName());
                   System.out.println(e.getSalary());
    }**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
    2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
    import java.awt.*;
    import java.awt.event.*;
    public class SnailTravel extends Frame implements ActionListener, WindowListener{
       private Frame frame;
       private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
       private TextField tfDistance;
       private Button btnCalculate, btnClear;
       public void viewInterface(){
          frame = new Frame("Snail Travel");
          lblDistance = new Label("Distance");
          lblSpeed = new Label("Speed");
          lblSpeed2 = new Label("0.0099km/h");
          lblTime = new Label("Time");
          lblTime2 = new Label("");
          lblComment = new Label("Comment");
          lblComment2 = new Label("");
          tfDistance = new TextField(20);
          btnCalculate = new Button("Calculate");
          btnClear = new Button("Clear");
          frame.setLayout(new GridLayout(5,2));
          frame.add(lblDistance);
          frame.add(tfDistance);
          frame.add(lblSpeed);
          frame.add(lblSpeed2);
          frame.add(lblTime);
          frame.add(lblTime2);
          frame.add(lblComment);
          frame.add(lblComment2);
          frame.add(btnCalculate);
          frame.add(btnClear);
          btnCalculate.addActionListener(this);
          btnClear.addActionListener(this);
          frame.addWindowListener(this);
          frame.setSize(100,100);
          frame.setVisible(true);
          frame.pack();     
        public static void main(String [] args) {
            SnailTravel st = new SnailTravel();
            st.viewInterface();
        public void actionPerformed(ActionEvent e) {
           if (e.getSource() == btnCalculate){
              SnailData sd = new SnailData();
           double distance = Double.parseDouble(tfDistance.getText());
           sd.setDistance(distance);
                  sd.setSpeed(0.0099);
              sd.setTime(distance/sd.getSpeed());
              String answer = Double.toString(sd.getTime());
              lblTime2.setText(answer);
              lblComment2.setText("But No Exception!!!");
           else
           if(e.getSource() == btnClear){
              tfDistance.setText("");
              lblTime2.setText("");
       public void windowClosing(WindowEvent e){
                   System.exit(1);
        public void windowClosed (WindowEvent e) { };
        public void windowDeiconified (WindowEvent e) { };
        public void windowIconified (WindowEvent e) { };
        public void windowActivated (WindowEvent e) { };
        public void windowDeactivated (WindowEvent e) { };
        public void windowOpened(WindowEvent e) { };
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;
    }Pls and thanks again for helps....

    What i actually want to do is SnailTravel, but i facing some problems, which is the
    - Constructor,setter, getter, and
    - Exception Handling.
    So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
    What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
    I need help to separate them. (I think i miss some syntax but i dont know what)
    And can somebody help me about Exception handling too pls.
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;

  • I am very annoyed at the Creative Cloud set up and the non-stop issues and problems

    I am very annoyed at the Creative Cloud set up and the non-stop issues and problems!  I am paying monthly for this service and it is constantly failing in some way!  So far in three months I have had to uninstall and re-install Photoshop THREE times because it stopped working properly and Illustrator I have had to do that same to TWICE!  That isn't including the other apps that have had issues!  I don't have the time to constantly be un-installing and re-installing all or some of the Creative Cloud because your developers are not making a product that works consistently for the money you are charging!  It is costing me more than just this monthly fee!  And I am even less impressed with the fact that I cannot email someone for assistance in resolving these issues.  Really Adobe?

    Adobe contact information - http://helpx.adobe.com/contact.html may help

  • How To set Header and Footer in MIDlet screen

    Hi Friends,
    How can i set header and footer in my screens .
    My need is that in header part ,my company's name shuld be display and in footer section "any thing".
    How can i achieve this things plz advice me.
    karan

    Hi Supareno,
    Can u tell me in details with small code, If it's
    possible for you .
    regards
    karandefine an header (coordinate 0,0)
    optional {
    a CustomItem? (coordinate 0, 0+header.getHeight() )
    another CustomItem ? (coordinate 0, CustomItem.getY() + CustomItem.getHeight() )
    etc...
    define footer (coordinate 0, getHeight() - footer.getHeight() )
    Message was edited by:
    supareno

  • How to set-up and use FAMILY Sharing

    Can someone please explain to me in detail how to set-up and use FAMILY Sharing, none of the information I have so far found in the documentation helps at all, in fact it puts you in a constant loop giving the same information over and over again
    We have quite a few devices from ipads, iphones and ipods and I need to set-up Family Sharing.
    We have our main Apple ID which is linked to our Payment method, I have now got my son a new iPad, I have created his Apple ID and set-up a link via FAMILY Sharing to our main Apple ID.
    From what I read we should be able to share our purchased Apps between family members.
    So I figured I would be able to get the Apps now via iTunes that are part of the FAMILY Sharing, however when I go into ITunes (latest version downloaded yesterday) I can only see the Home sharing menu item not FAMILY Sharing, so I cannot work out in Itunes how to get Apps that are FAMILY shared.  So ok I will try and get Apps directly via the Ipad using the App Store.  To test it is working I look for a known paid for App, I then go to download it and it is now asking me to pay for it again. 
    Can someone please explain to me in detail how FAMILY Sharing is supposed to work and how I get it to work please.
    Thanks for your help
    Greg

    Hey GregWr,
    Thanks for the question. The following resources provides some of the best information regarding Family Sharing. Included, you’ll find information on making sure the accounts are set to "Share my purchases”, as well as information on downloading Family Member purchases from the iTunes Purchased section. Please note that some applications are not shareable.
    Sharing purchased content with Family Sharing - Apple Support
    http://support.apple.com/en-us/HT201085
    Which purchased content can I share using Family Sharing - Apple Support
    http://support.apple.com/en-us/HT203046
    If you don't see your family's shared content - Apple Support
    http://support.apple.com/en-us/HT201454
    Thanks,
    Matt M.

  • HT1386 I have a new iPhone and want to purchase a ringtone on iTunes.  It keeps asking for answers to a question that I did not set up and don't have the answer for.  How do I get pass this dilemma?

    I have a new iphone and want to purchase ringtones from itunes.  Itunes is asking answers for security questions I did not set up and I can't answer them.  How do I get past this to be able to purchase.  I can purchase songs on my MAC and sync but itunes doesn't give the option to purchase ringtones on the MAC, just the iphone.

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106007)

  • HT204407 my 2 daughters and I are sharing one icloud.  I am trying to set up and use find my friends with them, but it won't let me.  It says I can't send a request to myself when I send one to her email address, which is different than mine.  What am I d

    my two daughters and I have iphones.  I am trying to set up and use find my friends with them. We have 1 icloud, but different emails.  When I send a request it states that I can't send a request to myself.  What am I doing wrong

    Sharing an Apple ID is never recommended for these reasons.
    They can create their own: http://appleid.apple.com and you can add them at the addresses they use for their ID.
    Sharing an Apple ID is not recommended because all of your data gets merged and when it gets deleted from one device, it deletes from them all, such as Contacts.
    iCloud Guide

  • SET PARAMETER AND GET PARAMETER

    What is the difference between Set parameter and Get parameter?

    Hi,
    Set parameter is used to put some value into ABAP memory area, get paramter is used to retrive values form ABAP memory.
    refer the below sample code.
    here i am taking one material number and i am passing that mateial number by using 'set parameter id', the material number will be stored in ABAP-memory area 'MAT', and then i am calling the Tcode 'MM03', after executing the Tcode  (from program) automatically 'MM03' will reads that material number from that ABAP-memory area and it will displays the 'MM03' tcode along with material number.
    you can find the parameter-id's from data element of that field.
    parameters: p_matnr like mara-matnr.
    set parameter id 'MAT' field p_matnr.
    call transaction 'MM03'.
    Reward if useful.
    Thanks,
    Sreeram.

  • HT201304 It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.

    Please help!
    It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
    I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
    I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
    If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
    C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
    Thanks for any support or information that I may be missing in order to fulfill my request.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • How can i get the homepage i want to remain the perminate homepage? I have done everything it tells you to set homepage and it only saves it while the current browser is open. When I close out browser and reopen it is gone.

    When i set the homepage of my choice it will only remain until i close out the browser. once i reopen the browser it is no longer there. The past version of firefox would keep the homepage of choice. I have done everything that is necessary to set homepage and it will not save it. What needs to be done?

    Which web page is getting reset as the homepage?
    You probably picked up some malware, maybe as a result of installing that My Web Search Plugin Stub for 32-bit Windows.
    Install, update, and run these programs in this order. They are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have. <br />'''''(Not all programs detect the same Malware.)'''''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Setting currency and measurement unit for a field in an ALV report

    Plz give sample code to set currency and measurement unit for a field in an ALV report

    dear friend
    i am seanding you
    the display form
    if you need select form
    and process form also pls keep in touch.
    if help full rewards are expecting.
    yours
    vivek
    FORM build_field_catalog .
      DATA: w_dthigh(10).
      CLEAR fcat.
      fcat-fieldname = 'VBELN'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'COMMERCIAL INVOICE'.
      fcat-seltext_m = 'Commercial Invoice'.
      fcat-seltext_l = 'COMMERCIAL INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXNUM'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE INVOICE'.
      fcat-seltext_m = 'Excise Invoice'.
      fcat-seltext_l = 'EXCISE INVOICE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-hotspot = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'EXDAT'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'EXCISE DATE'.
      fcat-seltext_m = 'Excise Date'.
      fcat-seltext_l = 'EXCISE DATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'D'.
      fcat-datatype = 'DATS'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NAME1'.
      fcat-outputlen = 30.
      fcat-seltext_s = 'CUSTOMER'.
      fcat-seltext_m = 'Customer'.
      fcat-seltext_l = 'CUSTOMER'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ZZPD'.
      fcat-outputlen = 15.
      fcat-seltext_s = 'COUNTRY'.
      fcat-seltext_m = 'COUNTRY'.
      fcat-seltext_l = 'COUNTRY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WERKS'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'PLANT'.
      fcat-seltext_m = 'Plant'.
      fcat-seltext_l = 'PLANT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'ARKTX'.
      fcat-outputlen = 40.
      fcat-seltext_s = 'MATERIAL DESCRIPTION'.
      fcat-seltext_m = 'Material Description'.
      fcat-seltext_l = 'MATERIAL DESCRIPTION'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-lowercase = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKART'.
      fcat-outputlen = 4.
      fcat-seltext_s = 'Billing type'.
      fcat-seltext_m = 'Billing type'.
      fcat-seltext_l = 'Billing type'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      fcat-key = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO1'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'INCO TERMS'.
      fcat-seltext_m = 'INCO TERMS'.
      fcat-seltext_l = 'INCO TERMS'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'INCO2'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'INCO TERMS DES'.
      fcat-seltext_m = 'INCO TERMS DES'.
      fcat-seltext_l = 'INCO TERMS DES'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
    CLEAR fcat.
    fcat-fieldname = 'FKIMG'.
    fcat-outputlen = 14.
    fcat-seltext_s = 'QUANTITY'.
    fcat-seltext_m = 'Quantity'.
    fcat-seltext_l = 'QUANTITY'.
    fcat-ddictxt = 'M'.
    fcat-inttype = 'P'.
    fcat-datatype = 'QUAN'.
    APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'FKLMG'.
      fcat-outputlen = 10.
      fcat-seltext_s = 'QUANTITY'.
      fcat-seltext_m = 'QUANTITY'.
      fcat-seltext_l = 'QUANTITY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'QUAN'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'MEINS'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'UNIT'.
      fcat-seltext_m = 'UNIT'.
      fcat-seltext_l = 'UNIT'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CHAR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KBETR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'RATE'.
      fcat-seltext_m = 'Rate'.
      fcat-seltext_l = 'RATE'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'NSR'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'Exmill'.
      fcat-seltext_m = 'Exmill'.
      fcat-seltext_l = 'Exmill'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'KURSK'.
      fcat-outputlen = 8.
      fcat-seltext_s = 'EXCHANGE RATE'.
      fcat-seltext_m = 'Exchange Rate'.
      fcat-seltext_l = 'Exchange Rate'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'WAERK'.
      fcat-outputlen = 5.
      fcat-seltext_s = 'CURRENCY'.
      fcat-seltext_m = 'Currency'.
      fcat-seltext_l = 'CURRENCY'.
      fcat-ddictxt = 'M'.
      fcat-inttype = 'C'.
      fcat-datatype = 'CUKY'.
      APPEND fcat.
      CLEAR fcat.
      fcat-fieldname = 'LCURR1'.
      fcat-outputlen = 14.
      fcat-seltext_s = 'GROSS AMT'.
      fcat-seltext_m = 'Gross Amt'.
      fcat-seltext_l = 'GROSS AMT'.
      fcat-ddictxt = 'L'.
      fcat-inttype = 'P'.
      fcat-datatype = 'CURR'.
    fcat-do_sum = 'X'.
      APPEND fcat.
    ================================= *****************
      fheader-typ = 'H'.
      SELECT SINGLE butxt
        FROM t001
        INTO fheader-info
       WHERE bukrs EQ '1000'.
      APPEND fheader.
      CLEAR fheader.
      fheader-typ = 'H'.
      fheader-info = 'Daily Shipments For Exp'.
      APPEND fheader.
      CLEAR fheader.
    Plant
      SORT s_werks BY low.
      READ TABLE s_werks INDEX 1.
      fheader-typ = 'S'.
      WRITE s_werks-low TO fheader-key.
      SORT s_werks BY high DESCENDING.
      READ TABLE s_werks INDEX 1.
      IF s_werks-high NE space.
        CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
                                SEPARATED BY space.
      ELSE.
        WRITE fheader-key TO fheader-info.
      ENDIF.
      CLEAR fheader-key.
      fheader-key = 'PLANT : '.
      APPEND fheader.
      CLEAR fheader.
    Billing Typ
    SORT S_FKART BY LOW.
    READ TABLE S_FKART INDEX 1.
    FHEADER-TYP = 'S'.
    WRITE S_FKART-LOW TO FHEADER-KEY.
    SORT S_FKART BY HIGH DESCENDING.
    READ TABLE S_FKART INDEX 1.
    IF S_FKART-HIGH NE SPACE.
    CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
                             SEPARATED BY SPACE.
    ELSE.
       WRITE FHEADER-KEY TO FHEADER-INFO.
    ENDIF.
    CLEAR FHEADER-KEY.
    FHEADER-KEY = 'DOCUMENT TYPE : '.
    APPEND FHEADER.
    CLEAR FHEADER.
    Date...
      fheader-typ = 'S'.
    FHEADER-KEY = S_FKDAT-LOW.
      WRITE s_fkdat-low  TO fheader-key.
      WRITE s_fkdat-high TO w_dthigh.
      CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
                              SEPARATED BY space.
      CLEAR fheader-key.
      fheader-key = 'PERIOD : '.
      APPEND fheader.
      CLEAR fheader.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = fevents[]
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc = 0.
        fevents-form = 'TOPOFPAGE'.
        MODIFY fevents INDEX sy-tabix.
        CLEAR fevents.
      ENDIF.
      rptname = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                        EXPORTING
                          i_callback_program                = rptname
                          it_fieldcat                       = fcat[]
                          i_default                         = 'S'
                          it_events                         = fevents[]
                          i_save                            = 'X'
                         TABLES
                           t_outtab                          = it_output[]
                      EXCEPTIONS
                        PROGRAM_ERROR                     = 1
                        OTHERS                            = 2
    ENDFORM.                    " BUILD_FIELD_CATALOG

  • How to set up and test the Basic Authentication for HTTP protocol

    Hi,
    I tried configuring the password based Basic Authentication for sending xml document using ebMS - HTTP protocol. I set username and password while configuring the transport server for both trading partners. I want to know, is that sufficient for basic authenticaton. When I open the URI http://localhost:7778/b2b/transportServlet, it is not asking any authentication (username/password). Please note that I have not used SSL certificate. Anyone please help me out to configure Basic authentication.

    Hi Ramesh,
    Thanks for ur response. Could you please tell me where to set the Additional Transport header : authtype-basic#realm=myRealm(in which property file). In enqueue code, I could see the following attributes
    queue
    msgID
    replyToMsgID
    from
    to
    eventName
    doctypeName
    doctypeRevision
    msgType
    payload
    attachment
    subscriber
    Is it possible to set username/password in the enqueue attributes?
    Do i need to add username/password and Transport header in the input XML and defined that elements in xsd?

  • APPLE TV 2 HD model and updated to latest version 6.1.1 since doing that it won't set date and time and tells me my Apple ID and password are incorrect and I know there not. What do I do?

    It connects to internet fine. I have tried restoring back to factory condition and hard wire update by connecting it to my Mac mini .
    The date and time won't set. And won't acknowledge my Apple ID and password......... I am usually tech savy but this has caused me grief .
    Do I need to downgrade my update....
    But can't get any menus until I log in my apple account...
    It can't log into my iTunes account until time and date have been set.
    When I did the hard wire restore connected to Mac mini it wouldn't go past the date and time screen as it wouldn't when I did the wifi update too.
    it just would get past that screen.
    Anyone help!!

    This is the result of a network issue.  Ensure port 123 on the router is open.

Maybe you are looking for

  • IWork 09 Dinner Party Template

    Bought iWork 09 yesterday and was building a Dinner party list with the understanding that after filling in my recipes, the template would total all my ingridients in the shopping list. But it doesn't do that. Is that how it is designed or am I missi

  • ERROR 604 KEEPS POPPING UP

    Hi, I keep getting a message window pop up in OSX Mavericks, telling me that there is an error 604 on my add ons. This is annoying to say the least. Does anyone know what may be causing this, how to fix it or is anyone else having similar problems wi

  • Unable to install Flash Player on OSX 10.8

    I'm running OS X 10.8.5 and am trying to update the Flash Player (16.0 I think) in Safari 6.2.  Every installer I've tried fails at the end with a "General Error" and no further information. Per the troubleshooting page, I uninstalled flash and tried

  • User-defined tagged structures in Documents

    Hi, here's my situation. I'm trying to build an interface for users to create, edit, and view information that is marked up with two types of tags. The first type is structural and function pretty much identically to XML tags. Not a problem, really,

  • How to share a full movie in iMovie?

    Hello, I have created a screen/audio recording for a project using Quicktime. Once I imported the file into iMovie 10.0.6, I cut out all the bits and pieces I didn't need. When I go to share the movie to Youtube, as a file, or into the theatre, it on