About schemas, rules and queues

Hi experts,
I'm a SAP HCM newbie and would like to know about the following:
1. What do we exactly do with payroll schema? I understand that we customize the country specific schemas (US in my case) but can someone provide examples of real life customization that we will have to encounter?
2. Similarly, example of PCRs?
3. What are queues and where do we use them?
Points shall be awarded! Thanks!

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_REGEL.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_SCHEMA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYUS/PYUS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf

Similar Messages

  • Information about the rules and regulations to take to create reports in BI

    Hi Gurus,
    i got the next project in a client where is working with SAP BI since a few years, they have the next problem:
    - no set rules and standards that kind of reporting should be migrated and used by BI
    (Examples of the problem in BI:
    Reports with hundreds of records in detail. 
    Many files export to unix trough the list cube to get a large file with detail.
    reports that serve as daily operations and not analysis, etc)
    Now you can imagine the many problems that arise when a report is not ready in the morning because a infopackage failed or there were delays, or the Unix disk capacity is full, delay in run of the reports, etc.
    My mission is first create a series of rules and regulations to serve both functional and technical area of the BI team to know so when I  request is reviewed first by the functional and evaluate first is this request is  a candidate to be created in BI, although BI team arrives, also be aware of these rules and approve if it will be developed in BI.
    through this form either creates a culture and norms of the role of BI for new projects or requirements, i m a SAP BI consultan certified, i know tha basic rules, but i am looking for some file or some informatión that support my rules tu be presented to the managers and the team, i will really appreciat your help, thanks !

    Dear Richard,
    For sending the data into external system or in app server, we have differnt types of approches.
    1) via APD.
    2) Via Open Hub destination.
    3) Via transaction: RSCRM_Report.
    In the above process we pros and cons:
    >>but best one is using open hub destination which will extract the data into flat file fast.
    >> We can do calculation in a easy way at open hub level.
    I beleive OH is fexible and am interseted to know why we are going with LISTCUBE and wat is added advantage by comparing with process above.
    Best Regards,
    Maruthi

  • Info about business rules and views

    I need to enforce some business rules on a view.
    Are triggers my only option ?

    From Oracle documentation:
    [http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_8004.htm]
    WITH CHECK OPTION Specify WITH CHECK OPTION to indicate that Oracle Database prohibits any changes to the table or view that would produce rows that are not included in the subquery. When used in the subquery of a DML statement, you can specify this clause in a subquery in the FROM clause but not in subquery in the WHERE clause.
    [...]

  • Books about Business Rules and Decision Management?

    Hi,
    I read the book Decision Management Systems by James Taylor that was very inspirational for me. Can anyone recommend other books about that topic?
    Best Regards,
    Tobias

    From Oracle documentation:
    [http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_8004.htm]
    WITH CHECK OPTION Specify WITH CHECK OPTION to indicate that Oracle Database prohibits any changes to the table or view that would produce rows that are not included in the subquery. When used in the subquery of a DML statement, you can specify this clause in a subquery in the FROM clause but not in subquery in the WHERE clause.
    [...]

  • Schema rules and_condition

    Has anyone gotten the get_compatible function within the and_condition to allow only those LCR's compatible with a release of the database?
    I'm on 10.2.0.2 and I've created and dropped this rule numerous times with and without the and_condition. When I have the and_condition specified the capture process does not capture the dml changes to a table in the schema, when I don't have and_condition defined it works fine.
    dbms_streams_adm.add_schema_rules(
    schema_name => 'WIP',
    streams_type => 'CAPTURE',
    streams_name => 'XWII_ERP_CAPTURE_STREAM',
    queue_name => 'XWII_ERP_CAPTURE_QUEUE',
    include_dml => true,
    include_ddl => true,
    source_database => 'TWOR9I',
    and_condition => ':dml.get_compatible() >= dbms_streams.compatible_10_1()'
    Any thoughts would be greatly appreciated.
    - Brian

    Found the problem....
    inclusion_rule => false
    Added that to the schema rule and it created it as a negative rule set and appears to be working now.

  • HR rules and schemas

    Hi,
    Anyone of you have a manual or instructions of HR rules and schemas?
    Thanks

    Hi,
    if you hven't done yet please visit
    rules
    http://help.sap.com/erp2005_ehp_02/helpdata/en/4f/d51fb2575e11d189270000e8322f96/frameset.htm
    schemas: 
    http://help.sap.com/erp2005_ehp_02/helpdata/en/4f/d51ca1575e11d189270000e8322f96/frameset.htm
    Regards
    Bernd

  • Leap Year and Schema & Rules on Time Management

    Hello,
    On Time management, do you know how to configure on Schema & Rules if the year is a leap year?
    Thanks, julien
    Edited by: Julien on May 6, 2009 6:33 PM

    Thanks for all,
    My solution below :
    ZFA/ 008 ACTIO ZFAF                    Leap Year
    ZFAF*****         PPCYGZFA1  NEXTR A
    ZFAF*****        APPCYGZFA2  NEXTR B
    ZFAF*****        BPPCYGZFA3  NEXTR C
    ZFAF*****        CZPAYTP 1
    ZFAF1****         DHRS=DINR2 HRS-DINR4 HRS+DINR6 ADDDBINR7ZHRS?1
    ZFAF1*****         HRS=365   ADDDBINJAZ
    ZFAF1****=         HRS=366   ADDDBINJAZ
    ZFA1*****         ZHRS=BCURYRHRS/400   ADDDBINR1ZROUNDH>60 PAYTP 1
    ZFA11****         DHRS?DINR1
    ZFA11*****         HRS=0     ADDDBINR2Z
    ZFA11****=         HRS=1     ADDDBINR2Z
    ZFA2*****         ZHRS=BCURYRHRS/100   ADDDBINR3ZROUNDH>60 PAYTP 1
    ZFA21****         DHRS?DINR3
    ZFA21*****         HRS=0     ADDDBINR4Z
    ZFA21****=         HRS=1     ADDDBINR4Z
    ZFA3*****         ZHRS=BCURYRHRS/4     ADDDBINR5ZROUNDH>60 PAYTP 1
    ZFA31****         DHRS?DINR5
    ZFA31*****         HRS=0     ADDDBINR6Z
    ZFA31****=         HRS=1     ADDDBINR6Z

  • Another question about throughtput and Queue Length

    I do not exactly confirm the meanning of throughput and Queue Length in
    the console of performance of weblogic server.
    AnyOne can give me a explanation? Thanks a lot!

    If you look at the ExecuteQueueRuntime MBean
    (you can use these 2 jsp's:
    http://dima.dhs.org/misc/listMBeans.jsp
    http://dima.dhs.org/misc/showMBean.jsp
    or Sun's HTMLAdaptor: http://dima.dhs.org/misc/StartHtmlAdaptor.jsp
    to browse WLS MBeans.
    PendingRequestCurrentCount
         Returns the number of waiting requests in the queue.
    ServicedRequestTotalCount
         Returns the number of requests which have been processed by this queue.
    ExecuteThreadCurrentIdleCount
         Returns the number of idle threads assigned to the queue
    PendingRequestOldestTime
         Returns the time that the longest waiting request was placed in the queue.
    Eric Nie <[email protected]> wrote:
    I do not exactly confirm the meanning of throughput and Queue Length in
    the console of performance of weblogic server.
    AnyOne can give me a explanation? Thanks a lot!--
    Dimitri

  • Message Tracking and Queue Viewer access is denied - Exchange 2010

    Hello,
    I am experiencing Message Tracking and Queue viewer problems on my exchange server.
    Message Tracking problem
    When i run message tracking via EMC or powershell, i receive the following error;
    Failed to connect to the Microsoft Exchange Transport Log Search server on computer "myserver.mydomain.com.br". Verify that a valid computer name was used and the Microsoft Exchange Transport Log Search service is started on the target computer. The
    error message is: "Access is denied".
    Exchange Transport Log Search service is confirmed running and have tried by restarting the service
    Logon user is a member of Domain Admins, Enterprise Admins and Exchange Organization Administrators
    Message Tracking Logs are generated properly
    Queue Viewer problem
    When i run Queue viewer, i receive the following error;
    The Queue Viewer operation on computer "myserver.mydomain.com.br" has failed with exception. The error message is: Access is denied. It was running command.............................................................
    My server information are as follow;
    4 Exchange Server 2010 sp3
    2 Mailbox Server and 2 Hub/CAS
    Mail-flow is working fine
    What should I grant permission for a group of users can have access to the Message Tracking ?
    Regards,

    Hi!
    The group rule was created as described below. The error persists!
     [PS] C:\Windows\system32>Get-RoleGroup "Exchange Access Message Tracking" | fl
    RunspaceId                  : 4229f35d-90f1-4c4e-822d-387979921052
    ManagedBy                   : {bancobmg.com.br/Users/Raphael Henrique Duarte Campos}
    RoleAssignments             : {Message Tracking-Exchange Access Message Tracking}
    Roles                       : {Message Tracking}
    DisplayName                 :
    ExternalDirectoryObjectId   :
    Members                     : {bancobmg.com.br/Users/Raphael Henrique Duarte Campos}
    SamAccountName              : Exchange Access Message Tracking
    Description                 :
    RoleGroupType               : Standard
    LinkedGroup                 :
    Capabilities                : {}
    LinkedPartnerGroupId        :
    LinkedPartnerOrganizationId :
    IsValid                     : True
    ExchangeVersion             : 0.10 (14.0.100.0)
    Name                        : Exchange Access Message Tracking
    DistinguishedName           : CN=Exchange Access Message Tracking,OU=Microsoft Exchange Security Groups,OU=Global,DC=ba
                                  ncobmg,DC=com,DC=br
    Identity                    : bancobmg.com.br/Global/Microsoft Exchange Security Groups/Exchange Access Message Trackin
                                  g
    Guid                        : 0957152d-2073-4f75-b40e-63f45eb20f67
    ObjectCategory              : bancobmg.com.br/Configuration/Schema/Group
    ObjectClass                 : {top, group}
    WhenChanged                 : 06/02/2014 16:25:26
    WhenCreated                 : 06/02/2014 16:25:26
    WhenChangedUTC              : 06/02/2014 18:25:26
    WhenCreatedUTC              : 06/02/2014 18:25:26
    OrganizationId              :
    OriginatingServer           : bmg190.bancobmg.com.br
    [PS] C:\Windows\system32>Get-ManagementRoleAssignment "Message Tracking-Exchange Access Message Tracking" | fl
    RunspaceId                   : 4229f35d-90f1-4c4e-822d-387979921052
    User                         : bancobmg.com.br/Global/Microsoft Exchange Security Groups/Exchange Access Message Tracki
                                   ng
    AssignmentMethod             : Direct
    Identity                     : Message Tracking-Exchange Access Message Tracking
    EffectiveUserName            : All Group Members
    AssignmentChain              :
    RoleAssigneeType             : RoleGroup
    RoleAssignee                 : bancobmg.com.br/Global/Microsoft Exchange Security Groups/Exchange Access Message Tracki
                                   ng
    Role                         : Message Tracking
    RoleAssignmentDelegationType : Regular
    CustomRecipientWriteScope    :
    CustomConfigWriteScope       :
    RecipientReadScope           : Organization
    ConfigReadScope              : OrganizationConfig
    RecipientWriteScope          : Organization
    ConfigWriteScope             : OrganizationConfig
    Enabled                      : True
    RoleAssigneeName             : Exchange Access Message Tracking
    IsValid                      : True
    ExchangeVersion              : 0.11 (14.0.550.0)
    Name                         : Message Tracking-Exchange Access Message Tracking
    DistinguishedName            : CN=Message Tracking-Exchange Access Message Tracking,CN=Role Assignments,CN=RBAC,CN=BANC
                                   O BMG SA,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=bancobmg,DC=com,DC=br
    Guid                         : c3768a00-3f36-4532-b586-a06842a85e24
    ObjectCategory               : bancobmg.com.br/Configuration/Schema/ms-Exch-Role-Assignment
    ObjectClass                  : {top, msExchRoleAssignment}
    WhenChanged                  : 06/02/2014 16:25:26
    WhenCreated                  : 06/02/2014 16:25:26
    WhenChangedUTC               : 06/02/2014 18:25:26
    WhenCreatedUTC               : 06/02/2014 18:25:26
    OrganizationId               :
    OriginatingServer            : bmg190.bancobmg.com.br
    How can I identify if there is any setting to be done?
    Thank you!

  • Issue in Absence Evaluation Scheme Rules

    Hi All,
    I have set up Absence evaluation scheme rule. When I try to maintain absence for one employee(hiring01.12.2013) from 02.01.2014 to 01.08.2014. when i try to save record i am getting message"Entitlement Used (issued on 29.05.2014): NO entitlement days left of 'Nil Pay (Default)' for 'Only OSP' absence
    Message no. HRPSGB_ABS082".
    Here Band need to change after 5 months but it is not happening. After 5 months it is showing all nil pay, instand of 100% sick ness.
    Scheme
    Rule
    Text
    Start Seniority
    End Seniority
    Unit
    abc
    1
    0 to 5 Months Service
    0
    5
    Months
    abc
    2
    6 to 11 months
    6
    11
    Months
    I have selected first rule double click on entitlement band. In side i have maintained
    Entitlements - 5 months
    PS Grouping - 8
    absence grouping - .S
    Order of prority - 1
    Payment Band - Nil Pay
    From Where - Absence start date linking
    How Far Bck/Fwd - Calander year (No link)
    Non-Qualifying Days - Non-working(sick)
    warning period - For change of band
    I have check GLOSS and COVER feature and everything fine.
    Could you please advice.

    Hi Harish,
    I have done but no luck.
    I am getting same error.
    Regards
    BT

  • Can someone pleas tell me about abap, java and xslt mappings

    Hi,
    can someone please tell me about abap, java and xslt mappings.
    Thanks,
    Bernard.

    HI,
    JAVA mapping
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping sample code for java mapping blog=/pub/wlg/4143 tutorial sax and dom
    ABAP mapping
    ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
    You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
    refer step by step guides for ABAP Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    ABAP Mapping
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Re: Performance of mappings (JAVA, XSLT, ABAP)
    XSLT Mapping
    XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Steps required for developing XSLT Mapping
    u2022 Create a source data type and a target data type
    u2022 Create Message types for the source and target data types.
    u2022 Create Message Interfaces includes Inbound Message interface and Outbound Message interface.
    u2022 XSLT Mapping does not require creation of Message mapping, so donu2019t create any Message mapping.
    u2022 Create an .XSL file which converts source data type into target data type.
    u2022 Zip that .xsl file and import it into Integration Repository under Imported Archives.
    u2022 In Interface Mapping choose mapping program as XSL and specify this zip program. (Through search help you will get XSL Mapping programs that you imported under Imported Archives, select your corresponding XSL Program)
    u2022 Test this mapping program by navigating to Test tab.
    By having look at above steps you can easily find out that this mapping is no where different from other mapping programs, here the challenging lies in creating an XSLT file. If you spend couple of minutes in studying XPATH tutorial you would be in ideal position to create an XSL Transformation (.xsl extension).
    If you still find difficulties in generating XSL Transformation, then you can make use of a tool u201CAltova MapForceu201D which will create XSL file for you.
    Steps for creating XSL file using this tool:
    1. Open the Alto MapForce, import the source .xml and .xsd file in it
    2. Similarly import the target .xml and .xsd in MapForce.
    3. These two data files should match with source and target data types in Integration Repository.
    4. Complete the graphical mapping using extensive list of XSLT functions available there.
    5. Save the mapping file.
    6. Click the XSLT tab. You will have the entire xslt logic there.
    7. Copy that content and save it as .xsl file.
    8. Zip above .xsl file and import the same into IR under Imported Archives.
    Hope this clears your doubts
    Thanks
    Saiyog

  • Schema ID and Category ID is not picked in case routing

    Dear Experts,
    Currently I am working on SAP CRM 7.0 SP06. Now I am trying to do the settings for case routing based on rule policy.
    I have done the following settings for the above requirement.
    I have defined application area (as Case Management) in multilevel categorization.
    I have created category schema in web ui with application id as case management.
    I have created rule modular as if case category is xxx then route to xxx Org unit.
    I have maintained this rule policy under service manager profile.
    Now the problem is when I hit escalate button schema id and category id is not picking so my rule is getting failed.
    Could you please advice if I missed any settings and also please share if you have some document which will explain steps to get the above functionality.
    And also please let me know where we assign Reference category ID to a case.
    Kindly share your views over the same.
    Thank you.
    Regards,
    Babu.

    ok

  • Is it possible to sort Mac Mail Rules into alphabetical order?  I have in excess of 50 rules and everytime I want to add to a rule, such as "delete incoming" I have to go through the entire list to find it.

    Is it possible to sort Mac Mail Rules into alphabetical order?  I have in excess of 50 rules and everytime I want to add or amend a rule, such as "delete incoming" I have to go through the entire list to find it.  I have tried clicking on the heading "Description" but it does not sort.  Any assistance would be greatly appreciated

    Hi,
    According to your description, my understanding is that use CMAK to configure split tunneling on VPN clients, traffic to specified devices can be routed via their own default gateway.
    If the manually added route entries all have default metric and interface, clients will select one by the default routing rule, can’t select one of them according to clients’ own conditions. So, I am afraid that CMAK can’t implement the function which you need.
    A blog described about How to configure split tunneling on VPN clients using CMAK, for your reference:
    http://blogs.technet.com/b/rrasblog/archive/2007/06/11/split-tunnelling-using-cmak.aspx
    Best Regards,
    Eve Wang 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Differences between Roles, Schemas, Users and Logins.

    I need differences between Roles, Schemas, Users and Logins. Can anyone help me. Thanks in advance

    Roles:
    I think of creating roles in the database to group users of like
    function.  Roles are granted certain permissions in the database.  You
    should become familiar with the fixed database roles since these will be
    utilized once you start creating users within the database.  Also, once
    you see the type of permissions that are granted to each role, is makes
    more sense.
    Schema: there can be several schemas in a database,
    which will house different types of objects such as tables, indexes,
    stored procedures, functions,  etc.  Users own schemas.  Looking into
    the AdventureWorks database illustrates this concept, with several
    schemas like HR, Production, etc.
    Login: Think about login as
    gaining access to the SQL Server instance.  If a user account is not
    granted any permissions within the instance, you basically just were
    able to unlock the door and enter the room, by creating a user you then
    grant access to the database objects or principals, and can begin to
    work with them. 
    Users:  Users own schemas, and as such will be
    able to manipulate the objects they own.  Some of the manunipulations
    are very permissive, such as creating tables, indexes, stored
    procedures, functions, etc.  These are developers and administrators.
    Users
    are created and granted permissions for application use, which will
    have select, update, insert, and delete and execute permissions  to a
    finite set of objects in the schema, for which the application will need
    to function properly.
    In a client server database, as an
    example, of the structure.  Roles were defined which provides the
    permissions to the database objects in the database, which only has one
    schema 'dbo'. One SQL server login was created with the same username,
    and dbo is the assigned default schema, and the roles assigned to that
    username. 
    In the application, each specific user is given there own
    "application" login which is mapped to the one defined sql server
    login.
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • Help regarding Stacks and Queues.!!!!!!Please....

    I have a working program right now..But it lacks some things to be done..It already does the stacks and queues..But still it doesnt print the info on the desired output file outTwo.dat..Both the stacks and queues should be printed on it..Also it has to compute the total commission on categories 1 and 2...and put it again on the outTwo.dat..Any kind hearted people would want to help me here?Here's the assignment detail...Thank YOU!!!!
    Q2. Linked List
    a.     create a compile AStack class, and a AQueue class similar to the text
    b.     provide an application that will:
    �     instantiate an AStack object and an AQueue object
    �     create a property object for each data line read from the input file assign4.dat
    �     push it ti the stack if its is category 1 property; queue if its is category 2; ignore all others
    �     print a title called category 1 to an output file called outTwo.dat
    �     after printing a few blank lines to outTwo.dat, print a title called category 2 to outTwo.dat
    �     traverse the queue and print it to the same output file outTwo.dat
    �     print the total commission earned on this category of property to outTwo.dat
    Note that for this question you should also print out and submit outTwo.dat. Have Fun!
    //This is the program I have done so far....
    import java.io.*;
    import java.util.StringTokenizer;
    public class TestSQ {
         public static void readFileSQ(AStack s, AQueue q)
              try {
    FileReader inStream=new FileReader("assign4.dat");
    BufferedReader ins= new BufferedReader(inStream);
    FileWriter outStream=new FileWriter("outTwo.dat");
    PrintWriter outs= new PrintWriter(outStream);
    String line;
    int category;
    double price;
    String categoryString;
    String priceString;
    StringTokenizer st;
    while((line=ins.readLine())!=null) {
    st=new StringTokenizer(line," ");
    if(st.countTokens()==2){
    categoryString = st.nextToken();
    priceString = st.nextToken();
    try{
    category = Integer.parseInt(categoryString);
    price = Double.parseDouble(priceString);
    Property myProperty = new Property(category, price);
    myProperty.setCommissionRate();
    myProperty.getCommission();
         if(category==1)
    s.push(myProperty);
    outs.println(s.toString());
    if(category==2)
                             q.insert(myProperty);
                             outs.println(q.toString());
    }catch(NumberFormatException nfe){
    System.out.println("error while parsing Integer: "+categoryString+"/"+priceString);
    else
    System.out.println("invalid number of elements in line: " +st.countTokens());
    catch (IOException e) {
    System.out.println("i/o error:"+e.getMessage());
    e.printStackTrace();
         public static void showStack(AStack s){
              while(!s.isEmpty()){
                   Object line=s.pop();
                   System.out.println(line);
    public static void main(String args[])
         AStack stackOfProperty=new AStack();
         AQueue queueOfProperty=new AQueue();
         readFileSQ(stackOfProperty,queueOfProperty);
         showStack(stackOfProperty);
         System.out.println();
         System.out.println(queueOfProperty.toString());
    }

    import java.io.*;
    import java.util.StringTokenizer;
    public class TestSQ {
         public static void readFileSQ(AStack s, AQueue q)
              try {
                FileReader inStream=new FileReader("assign4.dat");
                BufferedReader ins= new BufferedReader(inStream);
                FileWriter outStream=new FileWriter("outTwo.dat");
                PrintWriter outs= new PrintWriter(outStream);
                String line;
                int category;
                double price;
                String categoryString;
                String priceString;
                StringTokenizer st;
                 while((line=ins.readLine())!=null) {
                    st=new StringTokenizer(line," ");
                    if(st.countTokens()==2){
                        categoryString = st.nextToken();
                        priceString = st.nextToken();
                        try{
                            category = Integer.parseInt(categoryString);
                            price = Double.parseDouble(priceString);
                            Property myProperty = new Property(category, price);
                            myProperty.setCommissionRate();
                            myProperty.getCommission();
                                if(category==1)
                            s.push(myProperty);
                          //  outs.println(s.toString());
                            else if(category==2)
                                 q.insert(myProperty);
                                 outs.println(q.toString());
                        }catch(NumberFormatException nfe){
                            System.out.println("error while parsing Integer: "+categoryString+"/"+priceString);
                    else
                        System.out.println("invalid number of elements in line: " +st.countTokens());
                outs.close();
                ins.close();
            catch (IOException e) {
                System.out.println("i/o error:"+e.getMessage());
                e.printStackTrace();
         public static void showStack(AStack s){
              while(!s.isEmpty()){
                   Object line=s.pop();
                   System.out.println(line);
        public static void main(String args[])
             AStack stackOfProperty=new AStack();
             AQueue queueOfProperty=new AQueue();
             readFileSQ(stackOfProperty,queueOfProperty);
             showStack(stackOfProperty);
             System.out.println();
             System.out.println(queueOfProperty.toString());
       }//This is the updated version of my program..Now the ouput file works now, but then it shows different ouput..Thats only for the queue.I dont know about the stack..Tnx for looking...

Maybe you are looking for

  • JTable Problems - JDK 1.2.2_05a & JDK 1.3.0

    Hi, I have a JTable program that works in JDK 1.2.2_05a but it no longer works when I run the 1.2.2 compiled version in a 1.3.0 environment or compiled and run in a 1.3.0 environment. The problem is that the JTable doesn't accept any keyboard inputs.

  • Upgrade now missing old photo library

    My Mom just upgraded her iLife suite and when she did I think sh emiss selected the upgrade any old librarys and now has no access to the old photos. Is there an easy way to transfer these photos to the new iPhoto program library? Thanks! Doug

  • EDM interval meter with CT/PT ratio

    Hi, I have an interval meter register, which i have mapped in EDM as a profile. But the consumption getting recorded in the profile is not getting adjusted based on the CT/PT attached to that device. How can the CT/PT ratio along with the meter ratio

  • Going From PC to 27 in iMac

    I just ordered my new iMac today as my Dell is dying. I have PS5.6 on my Dell and it works just great but because of pc problems, I cannot use it. Up to this time it worked perfect. LightRoom 3.6 still works great... so far. I was going to upgrade to

  • Creating folder by save event on xml form

    Hi. I created a form with the xml-forms builder. So every new Item is stored in the "Path to initially Folder" with its guid. But I need the following by clicking on the "create" button: 1. create a new Folder under "Path to initially displayed folde