Creating a Travel Diary Logger

Well this is not exactly the title of the program but basically, what I'm trying to do is to create a journal of a person that informs the frequency of his movements from one place to another. The frequency is decided randomly or user-defined. His movements are based on his profession and familial status(for the moment being). I'm kinda stuck on his movements algorithms and the big doubt is whether I started this programing correctly or not.
Here are the classes.
List of profession:
public class Profession
     public final static int cadre = 1;
    public final static int �tudiant = 2;
    private int profession;
    public int getprofession(){
         return profession;
    public static String professionToString(int profession){
         switch (profession) {
         case cadre: return "Cadre";
         case �tudiant: return "Etudiant";
          return null;
}List of Family Status
public class SituationFamiliale
     public final static int c�libataire = 1;
    public final static int mari� = 2;
    private int sit_fam;
    public int getsituationfamiliale(){
         return sit_fam;
    public static String locationToString(int location){
         switch (location) {
         case c�libataire: return "C�libataire";
         case mari�: return "Mari�";
          return null;
}Locations
public class Locations {
     /*Affectation des endroits par num�ro
      * D'autre m�thode � r�flechir ???
     public final static int house   = 1;
    public final static int company = 2;
    public final static int sportscentre = 3;
    public final static int restaurant  = 4;
    public final static int restouniv  = 5;
    public final static int ASSEDIC   = 6;
    public final static int school = 7;
    private int location;
    public int getlocation(){
         return location;
    public static String locationToString(int location){
         switch (location) {
         case house: return "House";
         case company: return "Company";
         case sportscentre: return "Sports Centre";
         case restaurant: return "Restaurant";
         case restouniv: return "Resto-U";
         case ASSEDIC: return "ASSEDIC";
         case school: return "School";
          return null;
     public static void main(String[] args) {
          // TODO Raccord de m�thode auto-g�n�r�
}His movements"deplacements"; this is where I ran out of idea, and this is where I should create the algorithm of a person's travel diary according to his profession and family status.
public class Deplacements
    public static int numProfession = 2;
    public static int numSituationFamiliale = 2;
    public static int numLocations = 13;
    public int profession;
    public int sit_fam;
    private Statut[][] status;
    public Algo() {
        status = new Statut[numProfession][numSituationFamiliale];
        if (profession == Profession.cadre)
        if (sit_fam == SituationFamiliale.c�libataire)
        {What should I do so that, when I quote a new status for example a deplacement for a "cadre" and "c�libataire" would print out a certain numbers of locations and the frequencies he visits them? I hope you great guys out there could help... thanks. I could need all ideas here.

We currently do not support tables in the form.
Randy

Similar Messages

  • Error while creating a Travel Request

    Hi All,
    EP 7,ESS/MSS 1.0
    We have a issue in Creating Travel Request in Portal.
    Once we fill all the required entries to create a travel request and click the review button it pops a message saying " Errors have been discovered when checking the Expense Report. Please correct them in order to proceed." .
    When i check the same in backend using the tcode- TRIP, we are able to create the travel request.
    Can some one tell me where we are going wrong and is there any configuration at backend to be done still.
    Thanks,
    NR

    Hi NR
    Ensure that all the variant are properly integrated between Travel & Expenses.
    Also, for testing, removing the integration and test if the pop-up comes back.
    If this helps, pl do reward.
    Thanks
    Narsimha

  • Error in creating a travel request

    Hi Experts,
    In portal i am trying to create a travel request but it is showing some 'Error during call of fuction module TRIP_WRITE_PERIO'.
    Checked this function module in ECC it is not an RFC function could it be the reason?
    I am new to EP could help me?
    Thanks in advance.

    Hi devika,
    Yes. The function module should be RFC enabled. Otherwise it will throw this error.
    Regards,
    Shyam.

  • How to put a break point while creating a travel request in ess

    Hi to all experts,
    My requirement is to put a break point in the badi while creating a travel request in Ess.
    The badi name is TRIP_WEB_CHECK
    i tried both external and session bps
    i also tried this.
    break uname
    break-point
    and it is i check whether is triggering by throwing dump like ( divide by zero) it is triggering
    how to stop it while triggering

    Hi Bhanu,
    Please go through these links:
    How to debug abap code in update rules...routine?
    debug abap routine in infopackage
    Debugging of global transfer and update routine
    Debugging Start/Transfer routine
    And have a look at this demo video to know how to set up break points and how to debug an ABAP program in NW2004s:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0?prtmode=navigate
    Hope it helps..
    Cheers,
    Habeeb

  • How to add Trip reason while creating a Travel request

    Hi,
    I want to add Trip reason while creating a Travel request . I have not been able to maintain FTPT_REQ_HEAD through sm30. Urgent help required

    Hi,
    There is no customizable table for travel reason
    FTPT_REQ_HEAD is not maintanable
    This is standard SAP, and in field REQUEST_REASON you can enter the description that you want and system will allow you do that. The same thing with field " 1st destination"
    You add any description and it will be recorded and available for next entries in TP04
    Hope this answer to your question
    Best regards
    Tarek

  • Error when creating a travel request with Advance amount

    Hi Gurus,
    When I create a travel request with an Advance amount and try to save the same, the system throws up an error msg : "Trip country does not exist in the system (T005).
    However, it allows me to create the travel request without this error if i dont enter any advance amount in the travel request.
    I checked the tables V_T706L and V_T706O and found my trip county to be existing.
    Regards
    Prakash

    Hello Prakash,
    The following are the prerequisites for transferring trip costs to accounting.  In other words when you try to create and save a travel request with advance you are involving accounting entries and therefore the following needed to be checked:
    1.Travel Management and Accounting are both at Release 4.5A. If at least one of the systems
    has a release level lower than 4.5A, follow the instructions in Customizing for ALE.
    2. For payment to be effected, vendor accounts must exist in Accounting for the respective
    personnel numbers.
    3. The following Accounting tables must be replicated in the Travel Management System using
    Customizing transports:
      Company Codes (T001)
      Countries (T005)
      Input Tax Codes (T007A, T007S)
      Document Types (T003)
    4. The transfer of settlement results
    More relevant in your case would be the point 3. Countries(T005) not defined in TM.
    Hope the above provided you more information.
    Rgds
    CONMJI

  • When creating a travel expense, an incorrect input tax code is defaulted

    Dear experts,
    I'm new with SAP customizing in Travel Management. I have an issue that I cannot solve and I've tried almost all possibilities.When an employee tries to create a travel expense in PR05, him being from Belgium, the default input tax code for any expense type is, for example V3. This code exists in FI and will be transferred correct into accounting. But, if the employee wants to change the the country key in the field Country of Receipt (found in additional info section), anything other than the domestic country (BE) will automatically change the input tax from V3 to V0, which we don't even have in FI.
    I tried the following:
    - checked under global settings and for Belgian trip provision variant there was always Input Tax per Travel Expense Type flagged and V3 with cocd BE;
    - checked each and every expense type for the default input tax and all have V3.
    I had to create a country grouping EU for all European Countries. All maximum rates for different expense types have been defined using this EU code. Might it be this grouping?
    Any new expense type, similar to any of the ones I have problems with, will keep the default V3 tax code no matter if I change the country of receipt.
    Thank you in advance guys,

    No need anymore for an answer, I found out what I was looking for under Define Country-Dependent Default Values for Expense Types

  • Hiding link to Create New Travel Plan in My Trips and Expenses

    Hi,
    We'd like to hide the link to Create New Travel Plan in My Trps and Expenses on the tab My Travel Requests, but don't know how. Other interesting option is to hide the column with the link...
    We are on ERP 2004/ BP for ESS for ERP2004.
    Regards,
    Beata

    Hello Karthik,
    We are also about to implement Travel and Expense and want to know how to set it up on the portal...what is the R/3 configuration required....and what R/3 transaction/BAPI does these Travel and Expense ESS services call...?
    Any help would be highly appreciated.

  • Create new Travel Plan ESS Service

    Hello ,
    We have just deployed standard ESS content on EP7.0 and when I goto Travel and Expense i don't see the link for Create new Travel Plan in the Subarea 'Create New' although the service key for Travel Plan exists in the HomePage Framework and is assigned to that Subarea ...
    Any help would be highly appreciated.

    Check if the 'Create plan' service is grouped for any specific country? Else, check the country groupings and then login into Portal to find the specific link.
    If this helps, pl do reward.
    Thanks
    Narasimha

  • Can't open 1 document created using travel journal template

    Since installing Snow Leopard yesterday I found out I can't open this one file I created using the travel journal template. All other Pages '09 files are fine. I just get this error message telling me Pages had to close my document "unexpectedly".
    *"Pages quit unexpectedly while using the SFWordProcessing plug-in"*
    Don't see why it would need to use this plug-in. And I don't recall choosing this plug-in. There must be a way around this. To open this file by turning off that plug-in perhaps. Unless it's absolutely necessary when using the templates. Or the "travel journal" template.

    http://discussions.apple.com/thread.jspa?threadID=2141021&tstart=15

  • How to create a "traveling route" line on a map from point A to point B!

    Can someone explained or show me how I to create a clip (it will have a background map of Europe) depicting a “traveling route” line from point A to point B. The “traveling route” line I would like to display follows a Bezier curve path; it would start from point A (as a “dash”) and progressively the dash line lengthens until it reaches point B.
    To expand my request further - can one add a plane or ship icon (image) as the start “header” (starting from point A), move along the Bezier curve path and spits out the trailing “dashes” to form the “traveling route” line?
    I have seen this done on occasions, but I’m unable to create such clip. You help is appreciated.
    I’m using Premiere 6.5 and After Effect 5.5
    You can email me at [email protected]

    I don't remember which site, but I think I have a link to a tutorial site that includes that
    Go to my Adobe notes http://www.pacifier.com/~jtsmith/ADOBE.HTM
    Click on the Tutorial section and check the various sites
    Added
    You should never post a clear email address... spammers use software to harvest such
    Put something like
    myname at partone dot com

  • Attach receipt soft copy against each receipt created in Travel Expense Report

    Hi,
    I want to attach each receipt to each expense line in Travel Expense Report.
    I created one OSS message, for which SAP replied, that
    GUID is the key for the receipts and the attachment will be linked to it. It is possible to attach because the pers.No., TripNo. and the GUID are available.
    I didnot understand what is GUID and how do we activate it?
    Kindly help me to understand.

    Hi Vijay,
    I think there's been some confusion here because it is possible to add attachments to individual receipts in SAP standard (you don't need OpenText).
    It is relatively new functionality because you'll need to be on EHP6 or higher and have activated business function FIN_TRAVEL_4, see details at this link:
    Travel Management 4 - Financial Accounting (FI) - SAP Library
    If you have activated FIN_TRAVEL_4 then check the link below for specific information on how to activate the option to add attachments to individual receipts:
    Transfer of Attachments to Receipts - Travel Expenses - SAP Library
    Hope this helps,
    Jack

  • Trip schema when creating a travel request

    Hello,
    Is it possible to choose a trip schema(table V_T706S) when creating a new travel request in transaction TRIP?
    Regards,
    K.

    Hi Karim,
    While creating travel request, you wont get an option of selecting trip schema. Because you are mapping the trip schema to the trip activity type, so that it automatically picks the respective trip schema mapped to the activity type.
    Only when you are creating an expense report, the system will ask to choose trip schema and not while creating travel request.
    Hope this helps.
    Regards,
    S.Srikanth

  • Creating a booking diary

    I am currently building a website for a client, who has asked me about integrating a booking diary.
    I will give a brief description: The client has a 'feel good salon', they have two complimentary therapy rooms which they rent out to approximately 6 different complimentary therapists. They want a booking solution for these rooms. So say the Colour therapist receives a call at her private residence, she can then log on to the salon website, and check availability and book where appropriate. Does Business Catalyst have a solution for this?
    Also please bear in mind, I am building the website in Adobe Muse, my coding skills are . . . .well . . . what coding skills, I'm a graphic designer.
    and . . . how can I test drive some of the extra facilities BC offers? I am a Creative Cloud member which seems to give me limited use and access to all that BC offers.
    Thanks

    Hi Penny,
    I would recommend checking this thread below for possible suggestions/solutions.
    - http://forums.adobe.com/message/5790535
    Kind regards,
    -Sidney

  • If I uninstall do I lose my created templates? Live logger is frozen and will not open

    when I try to open live logger on ipad it tries to load but before it gets into the program properly it just closes again.  I can see it on the open apps on the ipad but when I click on it it is just a frozen live logger screen. Any help much appreciated, this has just happened out of the blue. It was working fine yesterday.

    If you have restored the device as new, not from a backup and it is still malfunctioning, then you have a hardware problem. The warranty on the device is one year, but if you take it to the Genius Bar of the nearest Apple Store or Authorized Apple Service provider and it is determined there is a hardware fault, then you may qualify for an out of warranty replacement, which is at a reduced price, depending on your location. http://www.apple.com/support/ipad/repair/other/

Maybe you are looking for

  • Reversi GUI question, A LOT of code in here!

    okay, so I've been working on his code for a long time. A REAL long time, working on it bit by bit, and all I got left is the Reversi's GUI. Basically I want to use the Jbutton and have x represent black and o represent white. I'm getting stuck on ho

  • Use Windows Performance Monitor on WLS 6.1 SP4?

    Hi, I wonder whether it's possible to use the Windows Performance Monitor to monitor WLS 6.1 SP4 performance counters. I would like this obviously to be able to save counters from WLS and Windows in one file for later analysis. If it's possible. What

  • PNG8 and 32 in older browsers

    Im making a site that has a semi transparent image as a background image for a div with text. Im looking at using a PNG8 or 32, but how and will these degradee in older browsers? If they become opaque thats fine, but if they dissapear then the text w

  • CMP findByPrimaryKey( Integer primaryKey ) Error

    I am using WebLogic 7.0 and my test program is throwing following error. I struggled to solve the problem for the last 2 days. Please Help run:      [java]      [java] Beginning com.tt.schms.school.ejb.cmp.Client...      [java]      [java] Trying to

  • I am trying to write an NTService that will run weblogic...