Please help me in understanding hashcode()

I have some doubt with hashcode(), please help me in understanding.
As it is always advised that whenever you override equals() method, override even hashcode(). As equals() returns the equality of two objects i.e it returns whether two objects are equal or not. The hashcode(), returns int value, i.e if two objects are equal than both hashcode will be same.
Now my question is:
1. When equals() method is comparing 2 objects and returning whethere both are equal or not. Then why we need this hashcode().
2. When this hashcode(), is going to be call?
Please tell me Whatever I understood is right or not....

rajalakshmi wrote:
2. When this hashcode(), is going to be call?
equals() method will implicitly call hashCode() method to compare objects.No it won't. Where did you get that?
Here is the actual code to Strings equals method
    public boolean equals(Object anObject) {
     if (this == anObject) {
         return true;
     if (anObject instanceof String) {
         String anotherString = (String)anObject;
         int n = count;
         if (n == anotherString.count) {
          char v1[] = value;
          char v2[] = anotherString.value;
          int i = offset;
          int j = anotherString.offset;
          while (n-- != 0) {
              if (v1[i++] != v2[j++])
               return false;
          return true;
     return false;
    }Now, where is hashCode called there?

Similar Messages

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • Please help me to understand what is the meaning of Acess point Channel utilization?

           please help me to understand what is the meaning of Acess point Channel utilization? If i want to mange the capacity of my Office Wi-Fi network what are the factor i need to monitor.

    Hi Ankit,
    Channel Utilization
    The 802.11, 802.11b, and 802.11g standards use the same 2.4 GHz band. All must interoperate with each other, which introduces additional overhead reducing channel throughput. Many sites already have products using the Wi-Fi 2.4 GHz band. Additionally, there are many other products that use the same 2.4 GHz frequencies as used by Wi-Fi. Other products include Bluetooth, cordless phones, video game controllers, surveillance cameras, and microwave ovens.
    Before the installation of the Cisco Unified Wireless Network, a site can be tested for channel interference and utilization with tools from AirMagnet, Wild Packets, Cognio, and others. The Wireless Control System (WCS) AP On-Demand Statistics Display report provides a spectrum review of the following:
    •Noise by channel
    •Interference by channel
    •Client count versus RSSI
    •Client count versus SNR
    •Channel radar detection versus time
    You can further refer the following links,  
    https://supportforums.cisco.com/thread/2212228
    https://supportforums.cisco.com/thread/334981
    For design guide following link might help,  
    http://www.cisco.com/en/US/docs/solutions/Enterprise/Education/SchoolsSRA_DG/SchoolsSRA_chap5.html

  • Please help me to understand Transaction option in SSIS container

    Hi experts,
     I am confused about Transaction option in SSIS container,
    1. Required - Start the transaction. What is mean that start transaction?
    2.Supported- join the transaction ..
    can you please help me to understand.
    Thanks

    I think Vaibhav already answered your question but here's more from my end.
    1. 
        Package - Transaction Option - Supported
        SEQC - Transaction Option - Supported
        3 Execute SQL Tasks - Transaction Option - Supported
    So, package / SEQC / SQL 1 / SQL 2 / SQL 3 doesn't involve in a transaction i.e. think of those tasks are not included in
    BEGIN TRANSACTION / COMMIT TRANSACTION
    Sequence Container
    --Execute SQL Task 1
    INSERT INTO dbo.t1 (a)   
    SELECT 10
    --Execute SQL Task 2
    INSERT INTO dbo.t1 (a) 
    SELECT 11
    --Execute SQL Task 3
    INSERT INTO dbo.t1 (a) 
    SELECT 'aa'
    When we execute package, it will insert 10, 11 values into table dbo.t1 and since there's an error in the 3rd statement, it'll fail
    2.  
        Package - Transaction Option - Required
        SEQC - Transaction Option - Supported
        3 Execute SQL Tasks - Transaction Option - Supported
    Now, package will Start a transaction since it's Transaction Option is "Required" , so now the SEQC (3 Execute SQL tasks) will
    be inside transaction / join the transaction because their transaction option is "Supported".
    Package - Information: Starting distributed transaction for this container. --BEGIN TRANSACTION 
    (You'll see this statement in Processing / Execution Results tab)
    SEQC
    --Execute SQL Task 1
    INSERT INTO dbo.t1 (a)   
    SELECT 21
    --Execute SQL Task 2
    INSERT INTO dbo.t1 (a) 
    SELECT 22
    --Execute SQL Task 3
    INSERT INTO dbo.t1 (a) 
    SELECT 23
    Package - Information: Committing distributed transaction started by this container. -- COMMIT TRANSACTION 
    (You'll see this statement in Processing / Execution Results tab)
    When we execute package, it will insert 21, 22, 23 values into table dbo.t1 and also you can see the START TRANSACTION /
    COMMIT TRANSACTION in the Exection Results tab are at the Package Level and not at the Sequence Container level.
    Without any change, if you change the value from 23 to 'aa' in the 3rd Execute SQL task then you'll see 
    Information: Aborting the current distributed transaction. statement in the 3rd Executed SQL Task in Execute Results tab
    which is at the Sequence container / Execute SQL task 3 level and it's because their Transaction option is Supported and so they
    joined the transaction 
    Please see the screenshot below that under Package, the START TRANSACTION but ABORT TRANSACTION is at Execute SQL task
    level
    3. 
        Package - Transaction Option - Supported
        SEQC - Transaction Option - Required
        3 Execute SQL Tasks - Transaction Option - Supported
    Please see the screenshot below that under Sequence Container, the TRANSACTION has started. Since the the Sequence container's
    parent (which is package) has not started any transaction and so the it started it's own transaction. 
    4. 
        Package - Transaction Option - Required
        SEQC - Transaction Option - Required
        3 Execute SQL Tasks - Transaction Option - Supported
    See the screenshot below which is same as first screenshot.
    Since Package's transaction property is set to "Required" and it's Parent to Sequence Container 
    and so package started the started the transaction, and  though Sequence container's transaction option is "Required", 
    it will not start a new transaction rather it "joins" the transaction that was already opened by it's Parent (Package). 
    Now, if we see the definitions what Supported and Required means - 
    Supported - Specifies that this container will not start a transaction. 
    However, it will participate in a transaction if the parent container started one. This is the default. (4th Example)
    Required - Specifies that this container will cause a new transaction to be started unless the parent container already has a transaction, 
     in which case, the parent’s transaction will be joined. (2nd and 3rd Examples)
    Narsimha

  • SQL*PLUS using START command - please help me to understand

    Hello dear friends,
    I met one issue that i can't understand. Could you please explain me what is wrong in my logic.
    I have created sql file called DUMMY.sql
    the file context is:
    SELECT dummy
    FROM dummy_tbl
    WHERE dummy_col=&dummy_var;
    I go to SQL*Plus DB version (10.2.0.4.0).
    I promt command: START DUMMY 1
    and expecting *&dummy_var* to be replaced with *1* and query be executed as it is described in Oracle SQL*PLUS reference ([http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch6.htm#sthref1058|http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch6.htm#sthref1058] ).
    But instead i'm getting Enter value for dummy_var:
    please help me to understand
    thanks in advance.

    You need to use &1 instead of &dummy_var.
    The number references the position of the parameter to use;&1 is the first parameter, &2 would be a second parameter and so on.
    SELECT dummy
    FROM dummy_tbl
    WHERE dummy_col=&1;

  • Please Help me to understand something : |

    Subject:please Help me to understand something : |
    hi there ,
    so i know to create apps in flash cs5 , i downloaded the  adobe air 2.6 and installed . i downloaded Flash Professional CS5 Update 11.0.2 and Flash Professional CS5 Update for iOS
    10/11/2010.
    i read in adobe air 2.6 that it possible to make multitasking .
    2 questions :
    1.
    it possible to make multitasking in flash cs5 ( open apps on iphone , click on home button and when you come back ,  apps not restat ) ?
    i mean  play sound in my apps , and when you click on the home button the sound stay played.
    2.
    adobe air , when i installed it , it work on flash cs5 auto? i need to change somthing?
    in bigger , how i make multitasking in flash cs5?
    please help me
    thank you

    Not sure what you mean by the second question, but the answer your first; yes, air 2.6 allows for multitasking. You don't have to do anything to get this to work, it is setup by default.

  • Left outer join VS Is NULL .. Please help me to understand this.

    Hi Experts,
    I have a requirement to use Leftouter join on a column. But unfortunately i couldnt implement this in OBIEE. so instead iam using = and is NULL condition. kindly help me to understand this or give me a solution.
    Advance Thanks
    I am pasting the query here. look at the last line of the query there i want to modify.
    select Targ.organization_id,Targ.cycle_count_header_name,Targ.cycle_count_header_id,Targ.cc_class_name
    ,Targ.total_cycle_count_per_month,NVL(Act.Actual_count,0)actual_count,targ.month_year,Act.count_stat,targ.year count_date_current,length(act.count_status) count_status,nvl(length(act.count_status),0)
    from
    (select
      Dim_date.Year,
    Dim_date.month_year,
    target.organization_id,
                             target.cycle_count_header_name,
                             target.cycle_count_header_id,
                             target.abc_class_id,
                             target.CC_class_name,
                            target.inventory_item_id_count,
                          target.cycle_count_per_year,
                            target.total_cycle_count_per_year,
                  target.total_cycle_count_per_month                       
    from
    (SELECT DISTINCT
                   TO_NUMBER (TO_CHAR (count_date_current, 'yyyy'), '9999') Year,
                    TO_CHAR (count_date_current, 'MON-YYYY') month_year
              FROM mtl_cycle_count_entries_v)Dim_date,
    (SELECT mth.organization_id,
                             mth.cycle_count_header_name,
                             mth.cycle_count_header_id,
                             mtc.abc_class_id,
                             mtc.CC_class_name,
                             COUNT (mti.inventory_item_id) inventory_item_id_count,
                             MIN (mtc.num_counts_per_year) cycle_count_per_year,
                             COUNT (mti.inventory_item_id)
                             * MIN (mtc.num_counts_per_year)
                                total_cycle_count_per_year,
                             ROUND (
                                (COUNT (mti.inventory_item_id)
                                 * MIN (mtc.num_counts_per_year))
                                / 12)
                                total_cycle_count_per_month,
                                TO_NUMBER (TO_CHAR (mth.creation_date, 'yyyy'), '9999') Year
                        FROM mtl_cycle_count_headers_v mth,
                             mtl_cycle_count_items_v mti,
                             mtl_cycle_count_classes_v mtc
                       WHERE mth.cycle_count_header_id = mti.cycle_count_header_id
                             AND mth.cycle_count_header_id = mtc.cycle_count_header_id
                             AND mth.organization_id = mtc.organization_id
                             AND mtc.abc_class_id = mti.abc_class_id
                              GROUP BY mth.organization_id,
                             mth.cycle_count_header_id,
                             mth.cycle_count_header_name,
                             mtc.abc_class_id,
                             mtc.CC_class_name,
                             TO_NUMBER (TO_CHAR (mth.creation_date, 'yyyy'), '9999')
                             ) Target
                                    where dim_date.Year=Target.Year) Targ,
                                  (SELECT --TRUNC (count_date_current) count_date_current,
                             TO_CHAR (count_date_current, 'MON-YYYY') Month_year,
                             abc_class_name,
                             count_status count_stat,
                             organization_id,
                             cycle_count_header_id,
                             count_status,
                             SUM (NUMBER_OF_COUNTS) Actual_count
                        FROM MTL_CYCLE_COUNT_ENTRIES_V
                    GROUP BY organization_id,
                             --TRUNC (count_date_current),
                             cycle_count_header_id,
                             TO_CHAR (count_date_current, 'MON-YYYY'),
                             abc_class_name,
                             count_status)Act
                           WHERE act.cycle_count_header_id(+) = targ.cycle_count_header_id
                   AND act.organization_id(+) = targ.organization_id
                   AND act.abc_class_name(+) = targ.cc_class_name
                    AND act.Month_year(+)=targ.month_year
                    AND targ.organization_id=254
                            AND targ.Cycle_count_header_id=3026
                             AND targ.CC_CLASS_NAME= 'A PARTS'
                             and act.count_status (+)='Rejected'I need to replace the final line act.count_status(+)='Rejected' with
    (act.count_status='Rejected' and act.count_status is NULL)But i am getting difference in data. what might be the reason?.. I am a naive user to oracle. Kindly help me and any help will be appreciated.
    Thanks alot.

    Data set for both i am enclosing here. Kindly have a look in to that.
    254     OPSCAST0909     3026     A PARTS     7     1     Dec-09     Rejected     2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Feb-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Sep-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jul-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     May-09          2009          Data Set for outer join          
    254     OPSCAST0909     3026     A PARTS     7     0     Oct-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jun-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jan-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Nov-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Apr-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Aug-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Mar-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     1     Dec-09     Rejected     2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Feb-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jul-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     May-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Jun-09          2009          Data set of IS NULL          
    254     OPSCAST0909     3026     A PARTS     7     0     Jan-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Apr-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Aug-09          2009                    
    254     OPSCAST0909     3026     A PARTS     7     0     Mar-09          2009                    

  • Please help me in understanding the EDIFACT D96A format for INVOICE

    Hi,
    Im doing an INVOICE02 IDOC to EDIFACT D96A INVOIC scenario. Im new to EDI.
    Pls Pls Pls Pls kindly help me in understanding the following EDIFACT D96A file. 
    UNBUNOA:35410033000055:145400110000009:14070612:085511137INV96A+EANCOM1'                                        
    UNH1INVOIC:D:96A:UN:EAN008'                                        
    BGM3805010237529+9'                                        
    DTM+137:200706120000:203'                                        
    DTM+35:20070612:102'                                        
    DTM+454:20070612:102'                                        
    RFF+ON:32210'                                        
    DTM+171:20070612:102'                                        
    RFF+DQ:000030585715'                                        
    DTM+171:20070612:102'                                        
    NADSU5410148000001::9+BVBA Unilever Belgium SPRLBl.De L?'Humanité 292 292Bruxelles1190BE'                                        
    RFF+VA:BE438390312'                                        
    RFF+ARA:0438390312'                                        
    NADBY5400110000009::9+D.L.L.RUE OSSEGHEM 53-MOLENBEEKMOLENBEEK-SAINT-JEAN1080BE'                                        
    NADDP5400110000009::9+D.L.L.RUE OSSEGHEM 53-MOLENBEEKMOLENBEEK-SAINT-JEAN1080BE'                                        
    NADIV5400110000009::9+DELHAIZE FRS. CENTRALESRUE OSSEGHEM , 53BRUSSEL-MOLENBEEK1080BE'                                        
    RFF+VA:BE402206045'                                        
    RFF+ARA:0402206045'                                        
    CUX+2:EUR:4'                                        
    LIN10+8000920900987:EN'                                        
    PIA1000000000019009801:SA'                                        
    IMDF+IN:::IGLO POELEE LEGUMES CHAMPIGNONS 6X8'                                        
    QTY+47:81'                                        
    QTY+46:81'                                        
    MOA+203:1584.4'                                        
    PRI+AAA:19.56'                                        
    PRI+AAB:21.24'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1584.4'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN20+5410148126459:EN'                                        
    PIA1000000000011264501:SA'                                        
    IMDF+IN:::Epinards hachis en portions '                                        
    QTY+47:112'                                        
    QTY+46:112'                                        
    MOA+203:1061.01'                                        
    PRI+AAA:9.47'                                        
    PRI+AAB:10.96'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1061.01'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN40+5410148013452:EN'                                        
    PIA1000000000010134500:SA'                                        
    IMDF+IN:::15 Fish Sticks Colin d?'Alaska '                                        
    QTY+47:256'                                        
    QTY+46:256'                                        
    MOA+203:4937.63'                                        
    PRI+AAA:19.29'                                        
    PRI+AAB:20.16'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:4937.63'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    LIN50+5414807999958:EN'                                        
    PIA1000000000019999501:SA'                                        
    IMDF+IN:::Iglo Poisson Pané Epinards 7X400g'                                        
    QTY+47:180'                                        
    QTY+46:180'                                        
    MOA+203:4160.31'                                        
    PRI+AAA:23.11'                                        
    PRI+AAB:24.08'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:4160.31'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    LIN60+5410148120952:EN'                                        
    PIA1000000000011209501:SA'                                        
    IMDF+IN:::Epinards Crhme en Portions '                                        
    QTY+47:112'                                        
    QTY+46:112'                                        
    MOA+203:1594.69'                                        
    PRI+AAA:14.24'                                        
    PRI+AAB:15.92'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1594.69'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN70+5410148124158:EN'                                        
    PIA1000000000011241503:SA'                                        
    IMDF+IN:::EPINARDS HACHES EN PORTIONS 450G'                                        
    QTY+47:144'                                        
    QTY+46:144'                                        
    MOA+203:938.01'                                        
    PRI+AAA:6.51'                                        
    PRI+AAB:7.44'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:938.01'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN120+5410148016729:EN'                                        
    PIA1000000000010167201:SA'                                        
    IMDF+IN:::Macaroni Fromage/Jambon '                                        
    QTY+47:260'                                        
    QTY+46:260'                                        
    MOA+203:4337.55'                                        
    PRI+AAA:16.68'                                        
    PRI+AAB:17.58'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:4337.55'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    LIN130+5410148441255:EN'                                        
    PIA1000000000014412503:SA'                                        
    IMDF+IN:::CHOUX ROUGES AUX POMMES 450G'                                        
    QTY+47:144'                                        
    QTY+46:144'                                        
    MOA+203:1756.99'                                        
    PRI+AAA:12.2'                                        
    PRI+AAB:13.36'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1756.99'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN140+5410148017702:EN'                                        
    PIA1000000000010177001:SA'                                        
    IMDF+IN:::Frit?'Kot 1'                                        
    QTY+47:60'                                        
    QTY+46:60'                                        
    MOA+203:1102.6'                                        
    PRI+AAA:18.38'                                        
    PRI+AAB:22'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1102.6'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:4.9:1'                                        
    LIN180+8000920801796:EN'                                        
    PIA1000000000018017901:SA'                                        
    IMDF+IN:::EPINARDS EN BRANCHES 10 X 450'                                        
    QTY+47:190'                                        
    QTY+46:190'                                        
    MOA+203:2204.2'                                        
    PRI+AAA:11.6'                                        
    PRI+AAB:12.9'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:2204.2'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN200+5410148014268:EN'                                        
    PIA1000000000010142602:SA'                                        
    IMDF+IN:::PETITS POIS EXTRA FINS 450G'                                        
    QTY+47:238'                                        
    QTY+46:238'                                        
    MOA+203:1999.6'                                        
    PRI+AAA:8.4'                                        
    PRI+AAB:9.24'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1999.6'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    ALCA++1'                                        
    PCD+1:1.96:1'                                        
    LIN230+8000920807248:EN'                                        
    PIA1000000000018072403:SA'                                        
    IMDF+IN:::IGLO POUL ET PENNE AUX LEG.SOLEI. 6'                                        
    QTY+47:99'                                        
    QTY+46:99'                                        
    MOA+203:1727.54'                                        
    PRI+AAA:17.45'                                        
    PRI+AAB:18.3'                                        
    TAX7VAT+++:::6.000'                                        
    MOA+125:1727.54'                                        
    ALCA++1'                                        
    PCD+1:0:1'                                        
    ALCA++1'                                        
    PCD+1:1.97:1'                                        
    UNS+S'                                        
    CNT+2:12'                                        
    MOA+124:1644.27'                                        
    MOA+86:29048.8'                                        
    MOA+79:27404.53'                                        
    MOA+125:27404.53'                                        
    TAX7VAT++:::6.000S'                                        
    MOA+125:27404.50'                                        
    MOA+124:1644.27'                                        
    UNT2121'                                        
    UNZ111137'
    Advance appreciations,
    Ram.

    Its very simple:
    UNB-segment : Interchange Header
    S001     SYNTAX IDENTIFIER
    0001     Syntax Identifier                    “UNOA”
    0002     Syntax version number               “2”
    S002     INTERCHANGE RECIPIENT
    0004     Sender Identification                    “8711382000091”  (= GLN Code Tilburg)     
    0007     Identification Code Qualifier               “14”
    S003     INTERCHANGE SENDER
    0004     Recipient Identification               “8711700400008”(= GLN Code Unilever)
    0007     Identification Code Qualifier               “14”
    S004     DATE/TIME OF PREPARATION
    0017     Date                            YYMMDD
    0019     Time                            HHMM
    0020     INTERCHANGE CTRL REF.     Unique message reference number
    0026     APPLICATION REFERENCE          “WMS0330”
    UNH-segment: Message header
    0062     MESSAGE REFERENCE NUMBER      Unique sequence numbe within UNB
    S009     MESSAGE IDENTIFIER
    0065     Message type     identifier               “INVRPT”
    0052     Message type version number               “D”
    0054     Message type release number               “96A”
    0051     Controlling agency                    “EN”
    0057     Association assigned code               “EAN004”
    BGM-segment: Beginning of message
    C002     DOCUMENT/MESSAGE NAME
    1001     Document/message name, coded  35”     (= Inventory report)
    3055     Code list responsible agency, coded     “9”     (= EAN)
    1004     DOCUMENT/MESSAGE NUMBER     Unique Number assigned by CS (= Date/Time CCYYMMDDHHMMSS)
    1225     MESSAGE FUNCTION, CODED          “9”     (= Original)
    DTM-segment: Date/time/period
    C507     DATE/TIME/PERIOD
    2005     Date/time/period qualifier 137”     (=Document/message date/time)
    2380     Date/time/period     Document date
    2379     Date/time/period format qualifier     “102”     (= CCYYMMDD)
    RFF-segment: Reference
    C506     REFERENCE
    1153     Reference code qualifier “ON”     (= Order number)
    1154     Reference identifier     Agreement number
    NAD-segment: Name and address
    3035     PARTY QUALIFIER     “GY”     (= Inventory reporting party = CS)
                   “GM”     (= Inventory controller = XYZ)
    C082     PARTY IDENTIFICATION DETAILS
    3039     Party id. identification          GLN code
    3055     Code list responsible agency, coded     “9”     (= EAN)
    LIN-segment: Line item
    1082     LINE ITEM NUMBER               Unique Line Number
    C212     ITEM NUMBER IDENTIFICATION
    7140     Item number               EAN Material code
    7143     Item number type, coded          “EN”     (= EAN)
    PIA-segment: Additional Product Information
    4347     PRODUCT ID FUNCTION IDENTIFIER     "1"(= Additional Information)
    C212     ITEM NUMBER IDENTIFICATION
    7140     Item number          Promotional Variant
    7143     Item number type, coded     "PV”     (= Promotional variant)
    QTY-segment: Quantity
    C186     QUANTITY DETAILS
    6063     Quantity qualifier     “12”      (= Despatch quantity)
    6060     Quantity           Number of stock units
    PRI: Represent price
    TAX: represent tax.
    Try to go to the below website where you will able to get the information regarding all the sgements and elements of Invocie.
    http://www.edifactory.de/messages.php?s=D96A
    Also refer the below link for EDI understanding:
    http://www.gxs.com/pdfs/Tutorial/Tutor_EDIFACT_GXS.pdf
    Thnx
    Chirag Gohil

  • Please help me in understanding ALE

    1. _Please can anybody send me the ALE Real time scenario, please dont say that it is to send the data from one client to another i.e master data ?

    HI Friend,
       I dont know what you are expecting but here i have a complete scenerio step by step to send material from one client to another .
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode  BD64 ? Create Model View
    Tcode  BD82 ? Generate partner Profiles & Create Ports
    Tcode  BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for
    transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name
    and case sensitive to create the ports automatically while generating the
    partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change
    Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
            save and goback.
    2) Tcode BD50--->  check the MATMAS check box save and comeback.
    3) Tcode BD51--->  goto IDOC_INPUT_MATMAS01 select the checkbox save
    and comeback.
    4) Tcode BD52--->  give message type : matmas press ok button.
       select all  what ever you want and delete remaining fields.
       save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the
    description and save it
       it will effects the target systems material desciption will also
    changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
       give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your
    getting 51 Error
    Hope this Helps.
    Thanks
    Mahesh

  • Please help me to understand my code

    i have a few questions about this code here they are:-
    import java.io.*;
    public class FileTest {
    public static void main(String args[])
    throws java.io.IOException {
    BufferedReader in;// <---------- what do these mean
    BufferedWriter out;// <-----------
    String line;//<----------- i am guessing that In and Out are being inisialised is thst right ? Q1
    int num;
              System.out.println("Enter a number");
              num = Course_io.readlnt();//<---------- i understand this bit
    try {
    in = new BufferedReader(new FileReader("test.txt"));
    for(;;) {
    line = in.readLine();// <--------------- this is reading in something right but what is it reading ? Q2
    if (line == null) {
    break;// <------ what are the 6 lines above this saying please go in to as much detail as possable? Q3
    System.out.println(line);
    in.close();
    } catch(Exception e) {e.printStackTrace();}// <-------------- what is stackTrace ? Q4
    try {
    out = new BufferedWriter(new FileWriter("test.txt", true));
    out.write("hello "+num, 0, 7);
    out.newLine();
    out.close();// <------------ i under stand these lines
    } catch(Exception e) {e.printStackTrace();}
    }thanks alot
    Ant

    i made a few changes to my code
    import java.io.*;
    public class FileTest {
    public static void main(String args[])
    throws java.io.IOException {
    BufferedReader in;// <---------- what do these mean
    BufferedWriter out;// <-----------
    String line;//<----------- i am guessing that In and Out are being inisialised is thst right ? Q1
    int num;
              System.out.println("Enter a name");
              System.out.println("Enter a number");
              num = Course_io.readlnt();//<---------- i understand this bit
    try {
    in = new BufferedReader(new FileReader("test.txt"));
    for(;;) {
    line = in.readLine();// <--------------- this is reading in something right but what is it reading ? Q2
    if (line == null) {
    break;// <------ what are the 6 lines above this saying please go in to as much detail as possable? Q3
    System.out.println("new entry");//<-------- i changed this
    in.close();
    } catch(Exception e) {e.printStackTrace();}// <-------------- what is stackTrace ? Q4
    try {
    out = new BufferedWriter(new FileWriter("TelDirect.txt", true));
    out.write("Phone No "+num );//<---------- and i changed this
    out.newLine();
    out.close();// <------------ i under stand these lines
    } catch(Exception e) {e.printStackTrace();}
    }// but the maximum number of numbers i can enter is 10, i need to enter 11 how do i do that? thanks alot
    anthony

  • Please help me in understanding the following code.

    public static void main(String args[]){
    int x=0,c=0;
    for(int i=0;i<3;i++)
    x = x + x++;
    System.out.println(x);
    why this program always prints zero(0) as output. I am not able to understand the execution sequence of it.

    bkyadav wrote:
    at certain point of time in porgram
    (x++) should be treated as x = x+1; but that is not happening.Here's the rule : you have to proceed the expression from left to right.
    For example :
    int x = 8;
    x = x + ++x; // x = 8 + 9 = 17
    int x = 8;
    x = x + x++; // x = 8 + 8 = 16
    int x = 8;
    x = x + --x; // x = 8 + 7 = 15Also, in the for statement of your example :
    for(int i=0;i<3;i++)the value of i+ is first tested before being incremented for the next iteration otherwise the test on value of i+ = 0 would have been skipped.

  • Please help me in understanding relationships in SQL

    This is according to
    *"One-to-one relationships occur when there is exactly one record in the first table that corresponds to exactly one record in the related table."*
    One-to-one relationships are single-valued in both directions.
    My understanding with the above is that
    Consider a Zip Table
    ZipNo Studentname
    12 Harry
    13 Kiran
    A Student Table
    ID Name ZipNo
    101 Harry 12
    and there should not be any more student with zipno 12 . Then this will be a One to One
    Am i right ?
    Edited by: Jai7881 on Apr 20, 2009 5:12 AM

    Hi,
    what you have given is table design. as per your design is one to one table design. where is SQL is there.
    thanks
    Settu Gopal

  • Hi Friends, Please help me to understand Why we are using CHARM instead of

    Hi friends,
    I am working as SAP security consultant.
    I am fresher and worked in implemetaion project.
    My question is when i was in implementation project i used CHARM in sol man to create transport request.
    Now i am working in support and here we are not using CHARM simply creating transport in PFCG.
    So is there any specific difference between both.
    Please tell me

    Hi
    CHARM is a specific functionality in Solution Manager
    so it doesn't mean in all your project or customer are using solution manager charms functionality
    therefore you will creating TR from Se09 etc not from UC/NC scenario
    Hope clarified your doubt
    regards
    Prakhar

  • Worldwide LTE. - please help me to understand whether I've made a costly error

    I really fought hard to get an XperiaZ LTE in the UK. Curry's/PC Wotld, the nation's leading tablet outlet, were very slow to stock It. Though you could get the Wi-Fi only version, I knew I'd be travelling a lot and wouldn't always be abke to count on Wi-Fi so I waited, ignoring pleas from friends to go for an iPad. When I was finally able to buy one on September 20 it had to be dispatched from Curry's warehouses since no stores in the south held it. Maybe that's why I was wrongly informed that it would work anywhere, as long as I purchased a local SIM card. Well, I was sent to the US for 10 days and guess what? Three hours at an AT&amp;T store got me nowhere. At first the AT&amp;T card would not load. Then the switched-on assistant tried it with an already registered SIM and it worked. We couldnt beloieve it. Wi-Fi was switched off but I was online. So she got a new SIM and registered using an iPad in my name. Unfortunately this time, we found ourselves back to square one. The tablet read the SIM card, but would not hook on to the internet. Of course, because I'd come to the US armed with my new Xperia, I'd decided to leave my Vaio at home. So I was stuck, essentially left with a Wi-Fi only device after fighting so hard to get LTE. Can someone please explain this to me? Why wouldn't the AT&amp;T SIM load when, clearly, it is technically compatible as demonstrated to me by AT&amp;T? Does this mean I will never be able to use the LTE function other than in the UK? Why don't iPads have this issue? Essentially, I am left feeling my loyalty to brand Sony may have left me making the wrong choice...<br><br><br><br><br><br><br>

    http://dl-developer.sonymobile.com/documentation/whitepapers/Xperia_Tablet_Z_LTE_WP_4.pdf
    SGP321
    GSM GPRS/EDGE 850, 900, 1800, 1900 MHz
    UMTS HSPA+ 850 (Band V), 900 (Band VIII), 2100 (Band I) MHz
    LTE Band I, Band III, Band V, Band VII, Band VIII and Band XX
    AT&T's frequencies
    USA Carrier Voice Frequencies 3G 4G 3G Technology 4G Technology
    AT&T
    850 MHz, 1900 MHz
    850 MHz, 1900 MHz
    700 MHz, 1700/2100 MHz
    GSM/HSPA+
    LTE
    MetroPCS
    1700/2100 MHz, 1900 MHz
    1700/2100 MHz, 1900 MHz
    1700/2100 MHz
    CDMA/EVDO
    LTE
    Sprint
    800 MHz, 1900 MHz
    1900 MHz
    800 MHz, 1900 MHz, 2500 MHz
    CDMA/EVDO
    WiMAX (2010–present)
    LTE (2012–present)
    T-Mobile USA
    1700/2100 MHz, 1900 MHz
    1700/2100 MHz, 1900 MHz
    1700/2100 MHz
    GSM/HSPA+
    LTE (2013)
    Verizon
    850 MHz, 1900 MHz
    850 MHz, 1900 MHz
    700 MHz, 1700/2100 MHz (Planned)
    CDMA/EVDO
    LTE [3][4]
    U.S. Cellular
    800 MHz, 1900 MHz
    Also AT&T has another issue, for LTE to work they have to register an AT&T branded 4G product for LTE to be available / enabled. 
    AT&T's APN settings (this work on phones but I don't know about a tablet)
    settings > more > mobile networks > apn > menu > add New > enter this
    Name: T-Mobile
    APN: epc.tmobile.com or fast.tmobile.com (for LTE devices)
    Proxy:
    Port:
    Username:
    Password:
    Server:
    MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc
    MMS proxy:
    MMS port:
    MMS protocol: WAP 2.0
    MCC: 310
    MNC: 260
    Authentication type:
    menu > save
    restart your phone
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • In SE30 hit list, please help me to understand the GROSS and the NET column

    Here a line from the Hit List :
    Call       = Perform TRANSFER_TO_UNIX  
    Number = 6
    Gross    = 5662 microsecond
    Net       =  810  microseconds
    The whole program execution takes 1.705.253 microseconds.
    Can somebody explain me the meaning of the GROSS and the NET time using this example ?
    The routine TRANSFER_TO_UNIX   has been executed 6 times. That is clear.
    Is the gross time the total time required for a call or for 6 calls ?
    => following documentation , "the gross time is the total time required for A call. This includes the runtime of all modularization units and abap statement called by the subject."
    => but following a blog read on this forum, the gross time is “the total times, not the times per execution”.
    That confused me very much ….
    Can somebody clarify that for me ?
    Also, what I don't understand at all is the NET time
    => following documentation, the net time “is the gross time less the time required for modularization units (MODULE, PERFORM, CALL FUNCTION, CALL SCREEN, CALL TRANSACTION, CALL METHOD, CALL DIALOG, SUBMIT), and for the ABAP statements listed separately. For statements such as APPEND, the gross time is the same as the net time.
    If the gross and net runtimes of a call are different, the call must either contain further calls or modularization units”
    Here is the code of the routine :
      add 1 to w_nb_ok.
      clear l_record.
      l_record-gpart = <f_vkont>-gpart.
      l_record-vkont = <f_vkont>-vkont.
      l_record-mahnv = <f_vkont>-mahnv.
      l_record-zzfbdate = <f_vkont>-zzfbdate.
      l_record-zzcastatus = <f_vkont>-zzcastatus.
      l_record-ktokl =  <f_vkont>-ktokl.
      l_record-regiogr_ca_b =  <f_vkont>-regiogr_ca_b.
      l_record-mahnv_new = <f_vkont>-mahnv_new.
      l_record-zzfbdate_new = <f_vkont>-zzfbdate_new.
      l_record-zzfbdate_upd = <f_vkont>-zzfbdate_upd.
      l_record-zzcastatus_new = <f_vkont>-zzcastatus_new.
      l_record-zzcastatus_upd = <f_vkont>-zzcastatus_upd.
      transfer l_record to w_output_file.
    I
    Thanks in advance
    Marie

    > the call must either contain further calls or modularization units,
    yes
    Check in your measurment setting what is traced separately, for an exercise you can switch off everything besides the call function, methods and forms,
    then you will see  gross = net if there no other call inside.
    But the recommended setting is described in the blog.
    Note, the sum of all net times is the total runtime, and the maximum of the gross times should be the same. Unfortunately there are slight deviations in the gross
    times and the displayed total time in the SE30 is taken from the gross times.
    Siegfried

Maybe you are looking for