How to get Code Combination Range (Account Range From - Account Range To)

Hi,
I have a requirement that I need to get the range of code of combinations based on the parameter (Account Range From & Account Range To) in the query. Please could anyone help how to fetch this value based on the parameter.
Account Range From (7 Segments)
XXX
AAAA
BBBB
CCC
000
YYY
ZZZZ
Account Range To (7 Segments)
XXX
AAAA
BBBB
CCC
000
YYY
ZZZZ
These is the example of value which I will be getting on the Accounting Range From and Accounting Range. Based on this account range, I need to pull records from the GL_CODE_COMBINATIONS table. Any help on this plz?
Thanks,
Geno

I would not use the code_combination_id. That code_combinaition_id is incremented by one for each new account, so unless you happened to create all your accounts in the right sequential order (not likely), then you cannot do a range of FROM code id a TO code id b. Do an SQL against the code combinations table and sort on the segments columns and take a look at the code combination id on each row, and I think you will see that they jump around quite a bit. I think you can only rely on using the segment columns values for doing an account range.
John Dickey

Similar Messages

  • How to get code from standard built-in

    How to get code from standard built-in

    I would recomend to copy all includes you need into your program.
    But if it is not possible for some reason,
    PERFORM <formname> IN PROGRAM <progname>
    can help you.
    I hope it helps
    Vlado

  • TS1292 cant read code. How to get code from ser. #

    Cant read code. How to get code from ser # bottom of card

    Click here and request assistance. Provide as much of the code as you can.
    (74753)

  • How to Get details of list of SC from list of PO & vice versa ?

    Hello All,
    Can Please anyone tell me how to get the list of Shopping Carts from the list of PO. I have list of Purchase orders numbers. Can you please suggest any standard table or combination of standard tables from which I can get this report ?
    We have Stand alone system and do not have access to back end system.
    Thank you in advance.
    Digant

    you can use below code
    TYPES: BEGIN OF ty_po_guid_sc_guid,
                po_guid TYPE swo_typeid,
                sc_guid TYPE swo_typeid,
              END OF ty_po_guid_sc_guid.
    TYPES: BEGIN OF ty_sc_guid_sc_num,
                sc_guid TYPE guid,
                sc_num  TYPE crmt_object_id_db,
              END OF ty_sc_guid_sc_num.
    DATA: lt_po_guid_sc_guid TYPE STANDARD TABLE OF ty_po_guid_sc_guid,
             ls_po_guid_sc_guid TYPE ty_po_guid_sc_guid,
             lt_sc_guid_sc_num  TYPE STANDARD TABLE OF ty_sc_guid_sc_num,
             ls_sc_guid_sc_num  TYPE ty_sc_guid_sc_num.
    *Get the SC guid related to PO guid
    SELECT a~objkey AS po_guid c~objkey AS sc_guid INTO TABLE lt_po_guid_sc_guid
                  FROM srrelroles   AS a
                  JOIN bbp_pdbinrel AS b ON a~roleid EQ b~role_b
                  JOIN srrelroles   AS c ON b~role_a EQ c~roleid
                  FOR ALL ENTRIES IN lt_po_guid_sc_guid
                  WHERE a~objkey EQ lt_po_guid_sc_guid-po_guid.
           LOOP AT lt_po_guid_sc_guid INTO ls_po_guid_sc_guid.
             MOVE ls_po_guid_sc_guid-sc_guid TO ls_sc_guid_sc_num-sc_guid.
             APPEND ls_sc_guid_sc_num TO lt_sc_guid_sc_num.
           ENDLOOP.
           IF lt_sc_guid_sc_num[] IS NOT INITIAL.
    * Get the shopping cart number
             SELECT a~guid AS sc_guid b~object_id AS sc_num INTO TABLE lt_sc_guid_sc_num
             FROM crmd_orderadm_i AS a
              JOIN crmd_orderadm_h AS b ON a~header EQ b~guid
                  FOR ALL ENTRIES IN lt_sc_guid_sc_num
                  WHERE a~guid = lt_sc_guid_sc_num-sc_guid
                      AND b~object_type = 'BUS2121'.
           ENDIF.
    <removed>
    Please do not ask for points. Message was edited by: Zoltan Keller

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How to get an ArrayList Object in servlet from JSP?

    How to get an ArrayList Object in servlet from JSP?
    hi all
    please give the solution for this without using session and application...
    In test1.jsp file
    i am setting values for my setter methods using <jsp:usebean> <jsp:setproperty> tags as shown below.
    After that i am adding the usebean object to array list, then using request.setAttribute("arraylist object")
    ---------Code----------
    <jsp:useBean id="payment" class="com.common.PaymentHandler" scope="request" />
    <jsp:setProperty name="payment" property="strCreditCardNo" param="creditCardNumber" />
    <%-- <jsp:setProperty name="payment" property="iCsc" param="securityCode" /> --%>
    <jsp:setProperty name="payment" property="strDate" param="expirationDate" />
    <jsp:setProperty name="payment" property="strCardType" param="creditCardType" />
    <%--<jsp:setProperty name="payment" property="cDeactivate" param="deactivateBox" />
    <jsp:setProperty name="payment" property="fAmount" param="depositAmt" />
    <jsp:setProperty name="payment" property="fAmount" param="totalAmtDue" /> --%>
    <jsp:useBean id="lis" class="java.util.ArrayList" scope="request">
    <%
    lis.add(payment);
    %>
    </jsp:useBean>
    <%
    request.setAttribute("lis1",lis);
    %>
    -----------Code in JSP-----------------
    In testServlet.java
    i tried to get the arraylist object in servlet using request.getAttribute
    But I unable to get that arrayObject in servlet.....
    So if any one help me out in this, it will be very helpfull to me..
    Thanks in Advance
    Edward

    Hi,
    Im also facing the similar problen
    pls anybody help..
    thax in advance....
    Litty

  • HT3702 i want to change my region and i don't know how to get rid of the remaing amout from my gift card ($0.48)

    i want to change my region and i don't know how to get rid of the remaing amout from my gift card ($0.48)

    Request that iTunes Support zreo balance your account.
    iTunes Support -
    http://www.apple.com/support/itunes/

  • How to get POF object's field value from query result

    hi,all:
    I want to get field value from the query result, my code is below
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
    Contact c=(Contact)iter.next();
    System.out.println ("firstame####=" + c.getFirstName());
    * but I get error*
    Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
    tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
    at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
    at com.oracle.handson.QueryExample.query(QueryExample.java:86)
    at com.oracle.handson.QueryExample.main(QueryExample.java:43)
    who can tell me how to get POF object's field value from query result

    Hi,
    If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
    Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
    for (Iterator iter = setResults.iterator(); iter.hasNext(); )
        Map.Entry entry = iter.next();
        Contact c=(Contact)entry.getValue();
        System.out.println ("firstame####=" + c.getFirstName());
    }JK

  • How can I code to play audio continuously from page to page in iBooks for reflow ePub

    Hi,
    I have tried and successfully completed the iBooks ambient soundtrack option in Fixed Layout ePub. It works fine.
    But while trying the same in Reflow ePub, it is not working in iPad iBooks. I have latest iBooks version and latest iOS version in my iPad.
    Please let me know how can I code to play audio continuously from page to page in iBooks for reflow ePub?
    Thanks,
    Sundaram

    As soon as the user turns to the next page, the audio stops.
    That's how it works in all cases.
    the book is a read aloud book.
    See the 'How-To Read Aloud' section in iBA Tips and Tricks 01

  • I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    The iphone is not  storage/backup device.
    The sync is one way - computer to iphone.
    The only exception is itunes purchases.  File>Devices>Transfer Purchases
    You should copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • How to get  data with the raw pattern from resultset ?

    would you tell me how to get data with the raw pattern from resultset ?
    thank you in advance!
    longgger2000

    I tried getBytes() and getObject()
    , but I can not get the right result , for example the
    data in oracle database is 01000000DFFF, when In used
    the method of getBytes() and getObject(), I get the
    result of [B@1c2e8a4, very different , please tell me
    why !
    thank you
    longgger2000
    [B is byte arrayseem that it return an bytes array for you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to get standard program ,script,smartforms all from sap

    hi friends
    how to get standard program ,script,smartforms all from sap.
    thanks&regards
    Babasish

    Hi,
    reports:
    goto se38
    all programs not starting with y or z will be sap std programs only
    same for se71 scripts
    samse for smartforms
    but the use of those will be known when you see the documentation
    for each programme
    for std programs there will be documentation available so that you can understand
    why they have developed that object
    thanks & regards,
    Venkatesh

  • Code Combination ranges

    I have a code combination id and i would like to find the range of each of the segments. I have don't it before but i can't remember how.
    I'm pretty sure i did it under system administrator.... but i can't remember where. Could someone please help

    you can search by sql
    select segment1,segment2,.........,segmentn (n=number of segments your key have) from glcode_combinations zhere code_combination_id = the combination id
    In Oracle apps you can find the combination id if you have the combination in General Ledger/ setup/ accout/combinations
    but you cannot find the combination when you have only code_combination_id
    Regars

  • How to get a date range in JDBC sql

    I am using the following in my sql to get a date range... but what if the field is a timestamp will that still work or not...
    AND a.date>=? AND a.date<=?

    Suzie,
    No offence, but is there something stopping you from testing it yourself?
    Good Luck,
    Avi.

Maybe you are looking for

  • Where can I learn about Laptop hardware/ram/etc information?

    First off: I had no idea how to phrase the above question.  Sorry if I categorized it wrong... Here's my predicament:  I was thinking of downloading/purchasing Adobe Creative Suite 6 Production Premium... However, I read the tech specs for it and was

  • How to buy after effects CS6 individually as a student

    Dear forum members, I'm a student advertisement design and I often need to make videos I find easiest to do with After Effects. At first, when I had to make a video, I used the trial version. But now I have to make a new video for my portfolio and I

  • WRT54GS2 - Random Disconnect help.

    I am baffled as to why my wireless internet disconnects. It seems that after visiting certain flash sites, I will lose internet connectivity. I have no idea why. If anyone has any ideas as to why, I would greatly appreciate the help. I will provide a

  • How to hide a rectangle graphic in a canvas ?

    Hi all, As we know we can draw rectangles from the tool pallette on a canvas. And I want to hide this rectangle under condition in my forms application. How can I achieve this ? Thank you very much indeed.

  • Flash CS5: Is there a keyboard shortcut to move to the next keyframe?

    I know there are keyboard shortcuts to move to the next and previous frames -- "." and "," but they're not really what I'm referring to. Also, these keys don't necessarily move to the next and previous frames, rather it just seems to move the red pla