What is code doing?

what does cc mean? , is it getting segment_code from a table  where the stuff above  has to equal that and it order it by it

Hi,
natpidgeon wrote:
is this part
WHERE cc.SEGMENT_CODE = SegOrder.SEGMENT_CODE 
                        AND   cc.USAGE_DATE = x.door_count_date 
                        AND   cc.PM_UNIT_TYPE_ID = x.pm_unit_type_id 
                        AND   cc.SEGMENT_CODE = s.SEGMENT_CODE 
                        AND   s.SEGMENT_CODE = ps.SEGMENT_CODE 
                        AND   s.SEGMENT_ACTIVE = 'Y' 
                        AND   ps.PROPERTY_ID = pvPropertyID 
                        AND   cc.ALLOCATION - cc.UNITS_RESERVED > 0 
is it only getting for example where segmet_active =y not 'N' 
Yes; that's saying (among other things), that only rows where s.segment_active = 'Y' will be selected.  Rows with s.segment_active = 'N' will not be selected.

Similar Messages

  • Can you tell me what this code does?

    Can you tell me what this code does?
    import java.io.*;
    class Assignment1
    public static String[][] tdi = {     {"Paris", "418", "Rome", "55"},
                             {"Liverpool", "121", "Copenhagen", "35"},
                             {"Liverpool", "418", "Paris", "50"},
                             {"Liverpool", "553", "Frankfurt", "55"},
                             {"Frankfurt", "553", "Budapest", "50"},
                             {"Amsterdam", "121", "Madrid", "65"},
                             {"Amsterdam", "418", "Paris", "35"},
                             {"Madrid", "121", "Stockholm", "90"},
                             {"Budapest", "553", "Warsaw", "30"},
                             {"Copenhagen", "121", "Amsterdam", "35"},
                             {"Rome", "418", "Amsterdam", "60"},
    //--Start Method--
    public static void main( String args[] ) throws IOException
    System.out.println("Welcome to NoWings Airline.");
    InputStreamReader input = new InputStreamReader(System.in);
    BufferedReader keyboardInput = new BufferedReader(input);
    System.out.println("Please enter the airport you wish to depart from:");
    String[] info = TDIDLL.searchDest( keyboardInput.readLine() );
    if (info == null)
    System.out.println("Sorry, no plane to this destination");
    else
    System.out.println(info[0]+" departing at platform "+info[1]); }}
    public static String[] searchDest( String dest )
    String[] result = null;
    for(int i = 0; i < tdi.length; i++)
         if (tdi[1].equals(dest)) {
         result = new String[2];
         result[0] = tdi[i][0];
         result[1] = tdi[i][2];
         return result;
    return result; }
    // Info Method //
    // Fly Method //
    // Exit Method //
    Thanks. Also, can you tell me where I have gone wrong in the code.
    Much appreciated.

    Can you tell me what this code does?Why don't you run it and find out for yourself?

  • What this code does ?

    what this code does ?
    System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");

    i am studying this code....
    //Verify the hostname, check all trusted cetifcates and install them in the machine
                             com.sun.net.ssl.HostnameVerifier ver = new com.sun.net.ssl.HostnameVerifier(){
                                  public boolean verify(String urlHostname,String certHostname)
                                       try
                                                                {  return true;
                                       } catch(Exception x){ return true; }
                             javax.net.ssl.TrustManager[] trustAllCerts = new javax.net.ssl.TrustManager[]{
                                  new javax.net.ssl.X509TrustManager() {
                                       public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                                            return null;
                                       public void checkClientTrusted(
                                            java.security.cert.X509Certificate[] certs, String authType) {
                                       public void checkServerTrusted(
                                            java.security.cert.X509Certificate[] certs, String authType) {
                             // Install the all-trusting trust manager
                             try {
                                  javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance("SSL");
                                  sc.init(null, trustAllCerts, new java.security.SecureRandom());
                                  HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
                                  sc=null;
                             } catch (Exception e) {
                                  e.printStackTrace();
                             //Setting the defaultHost name verfier set by the user for communication
                             HttpsURLConnection.setDefaultHostnameVerifier(ver);/**/please note the bold colored code from the above i.e
    HttpsURLConnection.setDefaultHostnameVerifier(ver);
    so, ver instance has been presented to the setDefaultHostnameVerifier . fine....but who is calling the methods verify() which is described in the implemented Annoynymous interface HostnameVerifier .
    who is calling that overridden method verify() ?
    similarly, who is calling getAcceptedIssuers() method?
    I DONT see any invocation of these overridden methods .
    are these methods are FRAUD and BUGGY...and are not needed in this code....are they redundant ?
    OR are these methods are invoked by the HttpsURLConnection internally somehow....
    confused about the functionng of this code.
    thanks for the time

  • What stub code does APEX uses when making a web service call ?

    What stub code does APEX uses when making a web service call (manual web service reference)
    I am using APEX (which was part of the 11g installation).

    Hi Steve,
    Some options for the same issue:
    web service time out
    How to check for Web Srvice Timeout in ABAP Proxy call
    Regards
    Vijaya

  • Can anyone explain what this code does.

    <b>Below is the FM for a  SAP Exit Variable ( 0FPER - Fiscal Period Variable ) , I would really appreciate if someone can give some explanation what does the code do.</b>
    FUNCTION RSVAREXIT_0F_FPER.
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(I_VNAM) LIKE  RSZGLOBV-VNAM
    *"             VALUE(I_VARTYP) LIKE  RSZGLOBV-VARTYP
    *"             VALUE(I_IOBJNM) LIKE  RSZGLOBV-IOBJNM
    *"             VALUE(I_S_COB_PRO) TYPE  RSD_S_COB_PRO
    *"             VALUE(I_S_RKB1D) TYPE  RSR_S_RKB1D
    *"             VALUE(I_S_RKB1F) TYPE  RRO01_S_RKB1F
    *"             VALUE(I_THX_VAR) TYPE  RRO01_THX_VAR
    *"       EXPORTING
    *"             VALUE(E_T_RANGE) TYPE  RSR_T_RANGESID
    *"       EXCEPTIONS
    *"              UNKNOWN_VARIABLE
    *"              UNEXPECTED_VARTYPE
    *"              INVALID_PERIV
    *"              VARIABLE_INITIAL
    *"              NO_REPLACEMENT
      data:
      l_s_range   type rs_s_range,
      ld_periv    type rro01_s_rkb1f-periv,
      ld_curdate  like sy-datum,
      ld_poper    like t009b-poper,
      ld_fiscyear like t009b-bdatj.
      refresh e_t_range.
      clear l_s_range.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'BT'.
      case i_vartyp.
        when rro04_c_vartyp-formula.
    *--- Determine fiscal year variant
          call function 'BWCO_FISCVARNT_GET'
               exporting
                    i_s_rkb1d        = i_s_rkb1d
                    i_s_rkb1f        = i_s_rkb1f
                    i_thx_var        = i_thx_var
               importing
                    e_periv          = ld_periv
               exceptions
                    no_replacement   = 1
                    unknown_variable = 2
                    others           = 3.
          case sy-subrc.
            when 0.
            when 2.
              raise unknown_variable.
            when others.
              raise no_replacement.
          endcase.
          if ld_periv is initial.
            raise invalid_periv.
          endif.
    *--- Determine current fiscal year
          ld_curdate = sy-datum.
          call function 'DATE_TO_PERIOD_CONVERT'
               exporting
                    i_date         = ld_curdate
                    i_periv        = ld_periv
               importing
                    e_buper        = ld_poper
                    e_gjahr        = ld_fiscyear
               exceptions
                    input_false    = 1
                    t009_notfound  = 2
                    t009b_notfound = 3
                    others         = 4.
          if not sy-subrc is initial.
            raise invalid_periv.
          endif.
    *--- Determine the highest fiscal period in the current fiscal year
          CALL FUNCTION 'GET_ACCOUNT_OF_PERIODS'
               EXPORTING
                    I_GJAHR         = ld_fiscyear
                    I_PERIV         = ld_periv
               IMPORTING
                    E_ANZBUPER      = ld_poper
               EXCEPTIONS
                    INPUT_FALSE     = 1
                    T009B_NOTFOUND  = 2
                    T009_NOTFOUND   = 3
                    OTHERS          = 4
          IF SY-SUBRC <> 0.
                raise invalid_periv.
          ENDIF.
    *--- fill value ranges
          l_s_range-low = ld_poper.
          append l_s_range to e_t_range.
        when others.
          raise unexpected_vartype.
      endcase.
    endfunction.

    1) Fiscal year variant is determined using Function Module - 'BWCO_FISCVARNT_GET'
    2) With Fiscal variant & Current Date as input to Function Module - 'DATE_TO_PERIOD_CONVERT' gets Fiscal Year.
    3) With Fiscal year & variant as input to 'GET_ACCOUNT_OF_PERIODS' gets 
    the highest fiscal period in the current fiscal year

  • Please explain what does this code does exactly

    Can any one explain me what does the below code does.
    This is the code written in one of the BADI (ME_PO_PRICING_CUST) .This badi will be triggered when a sales order delivery address is changed and while saving it this will be triggered. Over all what i come to know is they re trigerring a new version in this code. Can anyone explain me what exactly they are doing in this.Thanks...
    METHOD IF_EX_ME_PO_PRICING_CUST~PROCESS_KOMK.
      FIELD-SYMBOLS: <EKKO> TYPE ANY,
                     <PROCSTAT> TYPE MEPROCSTATE,
                     <FRGKE> TYPE FRGKE,
                     <YNAST> TYPE TABLE,
                     <WA_YNAST> TYPE NAST.
      IM_EKKO-PROCSTAT = 02.
    *break-point.
      ASSIGN ('(SAPLMEPO)EKKO') TO <EKKO>.
      ASSIGN ('(SAPLMEPO)YNAST[]') TO <YNAST>.
      IF <EKKO> IS ASSIGNED.
        ASSIGN COMPONENT 'PROCSTAT' OF STRUCTURE <EKKO> TO <PROCSTAT>.
        ASSIGN COMPONENT 'FRGKE' OF STRUCTURE <EKKO> TO <FRGKE>.
        IF <FRGKE> = 'R'.
          <PROCSTAT> = '02'.
        ENDIF.
      ENDIF.
      IF <YNAST> IS ASSIGNED.
        IF <FRGKE> = 'R'.
          LOOP AT <YNAST> ASSIGNING <WA_YNAST>.
            <WA_YNAST>-AKTIV = 'X'.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDMETHOD.

    r_htkl must be a range table. check the declaration part of it.
    p_htkl is a parameter on selection screen i hope.
    so, there are four fields on a range table.(range table are similar to your select options)
    1. SIGN ( I or E  - Inclusive or Exculsive)
    2. OPTION(options like EQ = euqal, BT = Between, CP = contains pattern etc)
    3. LOW (value)
    4. HIGH (value)
    so..
    IF NOT p_htkl IS INITIAL. " checks if some thing is being passed to the parameter
    r_htkl-sign='I'. " give the sign a value I i.e it make inclusive sign
    r_htkl-option='EQ'. " EQ to option means you value will be checked for a equal to condition
    r_htkl-low=p_htkl. " the low field in now assigned the same value of the parameter p_hktl
    APPEND r_htkl. " the range table is appended.
    endif.
    so this range table can be used in select statements as :
    select * from abcd into gt where xyz in r_hktl. ==> this will check for a EQ condition with value in r_hktl-low in database or
    in if statements like : if abc in r_hktl. ==> this will check the EQ condition of abc with the r_hktl-low.
    Had it been
    r_htkl-sign='E'.
    then the condition is same but with a NOT.. that means NOT EQ or NOT BT etc.
    as exclusive of the option.
    etc.
    hope this is clear.
    AND PLEASE CLOSE THE OTHER THREAD (duplicate)

  • Does anyone know what error code -8065 means?

    Does anyone know what error code -8065 means?

    It usually means the iPhone was hacked, with "jailbroken" being the cutsie term for that.
    http://support.apple.com/kb/TS3694#error1015
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • What is the flollowing code doing?

    What is the flollowing code doing? What do the %2 %3 %4 %5 %6 %7 stand for?
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3
    %4 %5 %6 %7

    %2 would need to be the path to the "cache-config.dtd" compliant configuration file.
    %3 the interval in second to check the service status.
    The rest would be ignored.
    For Example:
    java -server -Xms512m -Xmx512m com.tangosol.net.DefaultCacheServer coherence-cache-config.xml 5
    Re: What is the flollowing code doing?
    Thanks,
    Everett Williams
    Coherence Team
    Edited by: ewilliams on Aug 26, 2009 2:36 PM

  • Anyone know what this code is doing?

    Howdy,
    Don't suppose ya know what this code could be doing:
    TABLES:  nast,
            *nast.
      SELECT * FROM  *nast
             WHERE  kappl       = nast-kappl
             AND    objky       = nast-objky
             AND    kschl       = nast-kschl
             AND    spras       = nast-spras
             AND    parnr       = nast-parnr
             AND    parvw       = nast-parvw.
        IF *nast-vstat = 1.
          processed = 'X'.
        ENDIF.
      ENDSELECT.
      CHECK processed NE 'X'.
    Its got me stumped! what on earth is *NAST?
    Are we simply looping through all the entries in NAST???
    Basically I came across this code because I am trying to write a program that gets triggered when the user saves a Debit note.
    My program should then take the billing document number that was saved and use it to create a credit memo request, but finding the billing document number was a pain and someone told me that I had to use NAST or something...
    ANyhow, I came a cross the following code but it doesn't make sense...
    I think it should be
    TABLES:  nast.
    data: wa_nast type NAST.
      SELECT single * FROM  nast into wa_nast
             WHERE  kappl       = nast-kappl
             AND    objky       = nast-objky
             AND    kschl       = nast-kschl
             AND    spras       = nast-spras
             AND    parnr       = nast-parnr
             AND    parvw       = nast-parvw.
        IF nast-vstat = 1.
          processed = 'X'.
        ENDIF.
    What do you all think?????

    Thanks Rich,
    May be you are right or may be I didn't amke myself clear.
    I think my program will be connected to the output type via transaction NACE. Then whenever the user saves a debit memo it will trigger the output type and this should then trigger my program to produce the BDC based on the billing document number in the debit memo.
    I thought this would be passed into nast-objkey and I thought I would write an entry routine that could be placed in NACE that access my program.
    AM I correct in thinking that this would work????

  • I received an itunes store gift certificate. When I try to redeem it, the screen says Session Timeout.  I have entered and reentered the certificate code, but Session Timeout comes up each time.  What am I doing wrong?

    I received an iTunes gift certificate for Christmas.  When I try to redeem it, a window comes up saying "Session Timeout."  I have signed out, signed back in, tried again, and when I enter the code and press Redeem, the "Session Timeout--Your session has timed out.  Try again." message pops up.  What am I doing wrong?

    Clic here:  iTunes: Advanced iTunes Store troubleshooting
    Then click:  Expand All Sections
    Then scroll down to error 5002.

  • My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    iTunes is not the Mac App Store.
    In your dock it would be this icon:
    The forum for it specifically is here:Using Mac App Store

  • TS3694 Does anyone know what error code 1015 means?

    Does anyone know what error code 1015 means?

    It usually means the iPhone was hacked, with "jailbroken" being the cutsie term for that.
    http://support.apple.com/kb/TS3694#error1015
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.

  • HT204003 I can't get passbook to accept my loyalty cards. It keeps saying no pass available for this code. What am I doing wrong?

    I can't get passbook to accept my loyalty cards. It keeps saying no pass available for this code. What am I doing wrong?

    You may have installed your TextWrangler application without administrator privileges. In this you'll have to look for the twdiff file in the Local Applications Support Folder (refer to TextWrangler User Manual).
    To fix your problem with Dreamweaver, while selecting your File Compare tool, try looking for the twdiff file in the following location :
    Macintosh HD:usr:local:bin:twdiff
    That should definitely work. It did for me
    Cheers!

  • Help Dont know what this code is doing ?????

    i dont know what this code is doing from the for part can some one explain it for me
    i am confused starting at the for statement thanks for the help
    public class LeastToGreatestPlaceHolder {
      public static void main(String []args) {
         int [] myArray;
         myArray = new int[3];
         myArray[0] = 6;
         myArray[1] = 7;
         myArray[2] = 9;
        for (int i = 0; i < 2 ; i++){     // confused here
         for(int j = 1; j < 3; j++) {
           int placeholder = myArray[j];
           if (myArray[i] > myArray[j]) {
             myArray[j] = myArray;
    myArray[i] = placeholder;
    System.out.print(myArray[0]);
    System.out.print(myArray[1]);
    System.out.print(myArray[2]);

    Have you tried running the program and seeing what it outputs?
    Have you considered writing out the state of the array and running through the code by hand?
    I'll give you a [head start|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html].

  • My iCloud security code never works to verify my keychain,what am I doing wrong

    ICloud is very confusing. I had a security code to unlock my keychain, sent to my cell phone. I then entered the 5 digit  code, that was sent to my cell, into my mac. It says I entered it wrong. I tried two more times, and now it says I entered it incorrectly too many times, so I must verify my identity wt apple support, before continuing. I follow the link to this website. Unfortunately, I do not see any way to contact apple support, using this site http://www.apple.com/support/icloud/keychain/ What am I doing wrong? I have had Maverick installed for over 6 months, and my keychain is still not functioning even nearly well as it did in Snow Leopard.

    Hey greenmind,
    Thanks for the question. It sounds like you wish to contact Apple Support to verify your identity. The following resource should assist you in doing so:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thanks,
    Matt M.

Maybe you are looking for

  • Selection screen / how to clear values in screen parameters parameters

    Hello , I am developing report . It is simple one with standard screen 1000  ( Not Dynpro ). On the screen I have several parameters and select options . When I run program , display list and press the "Back" Button from tool bar  ,entered values sti

  • Incorrect faultstring for checked exception from JAX-RPC Sun App server 8.1

    I am trying to throw a checked exception in a web service. The checked exception object has a constructor that takes a single custom bean java class argument. It also has a get/setter for that argument . Here's the exception class: package com.innova

  • PrivilegedActionException using On Demand Dataloader

    Hello. While updating Account data in CRM On Demand, I am getting the below error. While inserting, I got no error. And while updating Custom Object, I got no error. It seems while updating Account. Does anyone know how to solve this error? *Import R

  • Broken airport antenna

    The internal antenna on my airport extreme card broke. would an apple store be able to fix it?

  • Installing iDVD on a new MacBook Pro

    I was very disappointed to learn that my new MacBook Pro did not come with iDVD.  So, if I insert my iLife '11 disk, will I have the opportunity to only install iDVD?  I certianly don't want to do anything that would mess up the existing iLife applic