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.

Similar Messages

  • Please help me to modify the following code !

    SELECT VTEXT FROM TVKGGT
        INTO CORRESPONDING FIELDS OF TABLE t_tvkggt
        WHERE KDKGR =  itab-kdkg1.
    read table t_tvkggt with key kdkgr = t_tvkggt-kdkgr binary search.
        itab-vtext2 =  t_tvkggt-vtext.
    I am getting corresponding values of vtext  where itab has
    values of kdkgr and also doesnt have any values of kakgr.
    how to remove those values of vtext which doesnt have any value for kdkgr.

    Hi,
    select * from mara
             into table i_tab
             where matnr = 'ACC CABLE'.
    loop at i_tab where bstme NE '  '  .
    endloop.
    Check out with this one and inside loop ,
    you can transfer only those records which have bstme value.
    Apply for you case.
    Reward if helpful/.
    Thanks,
    Madhura
    Edited by: Madhura Nadgauda on Jan 17, 2008 7:19 AM

  • 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

  • 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 out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

  • Please help me to explain the following method

    I saw the following code in a source file
    //This method actually does the code generation
    //Returns an instance of the generated class.
    protected Class generateWrapperClass()
    throws JasperGenerationError,ServletException
    verify();
    protected void verify()
    I can't understand how does method generateWrapperClass() works.
    verify() is of type void and the method generateWrapperClass() has no return value.
    Can anyone help to explain it to me?
    Thanks

    I can't understand how does method
    generateWrapperClass() works.
    verify() is of type void and the method
    generateWrapperClass() has no return value.It does have a return type, it returns a Class. Your confusing the keyword "class" with the Object "Class". Java is case sensitive so class and Class are 2 different things.

  • Please help me to find the sample code and schema for GetDBDateTime.zip fil

    Please help me to find the GetDBDateTime.zip and Guest_Book.zip files.
    Tks!

    Does this Help?
    http://www.oracle.com/technology/sample_code/products/ias/files/psp/GetDBDateTime/Readme.html
    Did you install Oracle9iAS ?

  • Help needed in understanding the Java code.

    Hi All,
    I have recently started learning the Java language. I came across this example and had a problem in understanding the output of the program. I could follow that if the continue statement is present in the below program the output is "Found 9 p's in the string" . But if the continue statement is removed I could not understand why the output would be "Found 35 p's in the string" .Is it because of the spaces and characters other than p... (eter ier icked a eck of ickled eers)
    Example-----------------------
    The continue statement skips the current iteration of a for, while , or do-while loop. The unlabeled form skips to the end of the innermost loop's body and evaluates the boolean expression that controls the loop. The following program, ContinueDemo , steps through a String, counting the occurences of the letter "p". If the current character is not a p, the continue statement skips the rest of the loop and proceeds to the next character. If it is a "p", the program increments the letter count.
    class ContinueDemo {
    public static void main(String[] args) {
    String searchMe
    = "peter piper picked a " +
    "peck of pickled peppers";
    int max = searchMe.length();
    int numPs = 0;
    for (int i = 0; i < max; i++) {
    // interested only in p's
    if (searchMe.charAt(i) != 'p')
    continue;
    // process p's
    numPs++;
    System.out.println("Found " +
    numPs + " p's in the string.");
    Here is the output of this program:
    Found 9 p's in the string.
    To see this effect more clearly, try removing the continue statement and recompiling. When you run the program again, the count will be wrong, saying that it found 35 p's instead of 9.

    The answer is already in your example - "The unlabeled form skips to the end of the innermost loop's body and evaluates the boolean expression that controls the loop."
    It unloads the current loop iteration when condition is matching. Loop is again starting from boolean expression inside loop declaration.
    Java Programming - java forum

  • Please help me. i get the following error " error getting license, server communication problem, E_ADEPT_DOCUMENT_TOO_SHORT

    HI,
    I am using this for the first time. I have downloaded a Adobe E-book from my library. I installed Digital Edition 4 and i keep on getting this message when i try to get the book from my pc downloads. Please help me overcome this issue
    regards,
    kapil desai

    Please try de-authorizing and authorizing again.
    Steps to De-authorize
    1) Switch to Library Mode by clicking Library button
    2) Select menu item Help--> Erase Authorization or Press Ctrl+Shift+D
    3) Click Erase button to De-authorize
    Steps to Authorize
    1) Launch ADE
    2) Switch to Library Mode by clicking Library button (if you are in Reading Mode)
    3) Select menu item Help-->Authorize Computer or Press Ctrl+Shift+U
    4) Enter the valid credential to Authorize
    Hope this solves your problem.

  • From Nabil Houlika Germany. Please help me by answering the following questions. The Time Capsule suddenly went dead. What should I do? Is there a way to put it "ON" again??

    Yesterday the time capsule light went off. All efforts to put it on again failed. All electric connections are in good order and working perfectly. Please help me.

    Hi again,
    I called them this morning. Admits my allergies and sneezing I was able to talk to them.
    They will replace it with basically no questions asked.
    I guess also having a MBP under AppleCare also helped too as the case is registered under that.
    They gave me a few options.
    The could take my credit card number as insurance and send me a new one and them I send them my dead one back, or I could take it into an Apple Store for a replacement there. The problem is that I have data on there that I want to maintain, so they said take it to the Apple Store or an Apple Service provider and they would handle the transfer.
    I don't have an Apple Store in my city, but have a Service Provider that I know that could do the transfer for me, but I kinda want to do it at the Apple Store because maybe then they would give me a new one instead of another w year tombstone.
    So I need to weigh my options.
    I'll let you know further what happens.
    P.S. my serial number was not in the range listed, but that didn't seem to make a difference. I think the key is to be courteous, respectful and friendly.

  • Please help me by solving the following query

    hi download the image from the above link and here i want latest dosi line count.....
    Please help me

    I think you don't need a plsql for this purpose ... you can find the sub total & final total in the query itself like
    select
         DOSI,
         ELEMENT_TYPE,
         SUM(USED)  USED
    from
         DOEMS_LICENSE_SUMMARY
    where
         DOSI in (DOSILIST)
    GROUP BY
         rollup(ELEMENT_TYPE, DOSI)      ** duplicate**

  • 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

  • Need explanation of the following code

    HI All,
    I need your help on explanation of the following code :
    what I don't understand is how it route the request (all the benefit of the replace statement )
    If the input is /scarr/LH/SPFLI/402
    how he know to route it and
    what is the benefit for using the wild card and the concatenate CONCATENATE '^' lv_verif_pattern '$'
    Edited by: James Herb on Apr 13, 2010 9:53 AM
    Edited by: James Herb on Apr 13, 2010 9:53 AM

    DATA: lt_routing_tab TYPE z_resource_routing_tab,
      CONSTANTS: param_wildcard TYPE string VALUE '([^/])*'.
      FIELD-SYMBOLS: <ls_routing> LIKE LINE OF lt_routing_tab.
      CALL METHOD get_routing
        RECEIVING
          rt_routing_tab = lt_routing_tab.
      LOOP AT lt_routing_tab ASSIGNING <ls_routing>.
    *   replace all parameters placeholders by regex
        lv_verif_pattern = <ls_routing>-url_info.
        lv_signature = <ls_routing>-url_info.
        REPLACE ALL OCCURRENCES OF REGEX '\{([A-Z]*[_]*[a-z]*[0-9]*)*\}'
        IN lv_verif_pattern WITH param_wildcard.
        CONCATENATE '^' lv_verif_pattern '$'  INTO lv_verif_pattern.
    *   check if pattern matches current entry
        FIND ALL OCCURRENCES OF REGEX lv_verif_pattern
        IN url_info MATCH COUNT lv_count.
    *   pattern matched
        IF lv_count > 0.
    *     get controller class name
          lv_controller_name = <ls_routing>-handler_class.
          ls_class-clsname = lv_controller_name.
    *     check if class exists
    *     class found
          IF sy-subrc = 0.
    *       create controller
            CREATE OBJECT eo_controller TYPE (lv_controller_name).
    *       create parameter table
            SHIFT lv_verif_pattern RIGHT DELETING TRAILING '$'.
            SHIFT lv_verif_pattern LEFT DELETING LEADING ' ^'.
            SPLIT lv_verif_pattern AT param_wildcard INTO TABLE lt_url_parts.
            lv_url_info = url_info.
            LOOP AT lt_url_parts INTO lv_url_part.
              SHIFT lv_signature LEFT DELETING LEADING lv_url_part.
              SHIFT lv_signature LEFT DELETING LEADING '{'.
              SHIFT lv_url_info LEFT DELETING LEADING lv_url_part.
    Edited by: James Herb on Apr 13, 2010 9:56 AM

  • Please help me to build the logic

    Hi All,
    Please help me to implement the following logic.
    The conditional statements should not only be executed in sequence, but also if any of them are true they should not be overridden by any subsequent conditional statements being true.
    When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N as follows for each employee and display at the employee level
    1)If AST eligibility = N AND proposed AST % >0, then “N”
    2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
    3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
    4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
    5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
    6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
    7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
    I tried the following code but I am not getting the expected result .
    Could you Please help me to build the logic.
    Your earliest response is very helpful to me.
    if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
    else if NVL(P_elgi,'N') <> 'Y' AND P_prop > '0' then
    P_flag := 'N';
    else if(NVL(P_elgi,'N') <> 'Y' AND P_prop = '0') then
    P_flag := 'N/A';
    else if ((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop = '0') then
    P_flag := 'Y';
    else if((NVL(P_elgi,'N')='Y') AND P_rank = '3' AND P_prop > '0') then
    P_flag := 'N';
    else if((NVL(P_elgi,'N')='Y') AND P_rank = '2' AND P_prop = '0') then
    P_flag := 'Y';
    Else if (P_prop >=ast_min_guide AND P_prop <= ast_max_guide ) then
    P_flag := 'Y';
    else
    ((P_prop < ast_min_guide) OR (P_prop > ast_max_guide)) then
    P_flag := 'N';
    end if;
    end if;

    Thanks for ur quick responce .
    When actual effort Accepted or Rejected for AST proposals and calculate a flag for “enhance to AST guideline” = Y/N
    Once the above condition is satisfied we have to check for remaing conditions
    if (upper(P_stat)='ACCEPTED' or upper(P_stat) like 'REJECTED%') then
    once it is satisfies then we have to go for remaing conditions.
    how can we do it in CASE statement.
    1)If AST eligibility = N AND proposed AST % >0, then “N”
    2)Else If AST eligibility = N AND proposed AST % = 0 then “n/a”
    3)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST = 0 then “Y”
    4)Else If AST eligibility = Y AND Act Rank = 3 AND proposed AST >0 then “N”
    5)Else If AST eligibility = Y AND Act Rank = 2 AND proposed AST = 0 then “Y”
    6)Else If AST eligibility = Y AND AST % is greater than or equal to the AST guideline minimum AND less than or equal to the AST guideline maximum, then “Y”
    7)Else If AST eligibility = Y AND AST % is less than the minimum guideline OR greater than the maximum guideline, then “N”
    I tried the following code but I am not getting the expected result .

  • Please help me to solve the issue in my query.

    Hi All,
    Please help me to understand the mistake what i did in below query and help to resolve that.
    Actually i am trying to create a query to filter the records from db based on my input parameter.
       If my input parameter is 1(@showallrecords) then i need to show all the records which has the IsLatest as 1
       If my input parameter is 0(@showallrecords) then i need to show all the records which has the IsLatest as 0
    select * from tabel1 INNER JOIN tabel2    
    ON tabel1.KeyId = tabel2.KeyId 
    and (@showallrecords = 1 and tabel1.IsLatest = 1 )
    and (@showallrecords = 0 and tabel1.IsLatest = 0 )
    when i am executing the above query with the parameter @showallrecords = 1 ,db is returning 0 rows.If i am executing the above query after removed the last line and (@showallrecords = 0 and tabel1.IsLatest = 0 ) then records are coming.
    i understand that 1=0(last line) and the condition is not true.So its affecting the result.
    Please help me to solve this.

    select * from tabel1 INNER JOIN tabel2
    ON tabel1.KeyId = tabel2.KeyId
    WHERE (tabel1.IsLatest = @showallrecords Or @showallrecords=0)

Maybe you are looking for

  • ATV 3 doesn't play non iTunes 1080p video via Airport Router

    Please advise what could be the problem. I was using a Zyxel nbg460 router and it was paying nice probably converted from MKV movies in 1080p, loading hem almost instantly and playing without a problem. But when I hooked up Airport Extreme 5-th gen,

  • Limiting records in a named query

    Hello, I can retrieve all the records using the following named query: <named-query name="emploee.findemployees"> <query>select e from employee e </query> </named-query> Can somebody help me how i can retrieve only the first 5 records using the named

  • Web services and Application Integration in Netweaver

    I want to create Web services in Netweaver. Just something simple to begin with. But I need to be able to: Create the service Call the service Register the service [UDDI], and Expose the service the service using WSDL. And explain the whole thing in

  • Issue adding new transaction to CHM-PM CHM-PARTNERMANAGER Role

    7.0 SP05.  We want our channel partner CHM-PM to be able to create a return complaint CRMR (we copied to ZRMR) I can not figure out how to assign the document type to allow the role to create it despite adding the Complaints and Returns tab on the le

  • Boot Camp + Vista x64 on MBP = No Sound  --  Help please

    I installed Vista x64 on my macbook pro just fine. everything works, except my sound. both the red and white speaker icons are there, and both have the audio waves coming out and are turned up, but i dont hear anything. help please.