Ways of building sort itabs

eg. is this way of doing correct for building sorted table?
will this lose the binary properties for quick access?
sort standard_itab by a b c.
sorteditab[] = standard_itab[]
or should it be this way? using insert?
loop at standard_itab into wa.
  insert wa into sorteditab.
endloop.

Hi Charles,
This link: http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb34d0358411d1829f0000e829fbfe/content.htm
soesn't specify anything about the type of tables when assigning.
So, your first code looks ok.
This code works fine for me:
REPORT ZTEST.
DATA: ftab TYPE SORTED TABLE OF f
           WITH NON-UNIQUE KEY table_line,
      itab TYPE standard TABLE OF i ,
      fl   TYPE f.
  DO 3 TIMES.
  INSERT sy-index INTO TABLE itab.
  ENDDO.
sort itab.
LOOP AT itab INTO fl.
  WRITE: / fl.
ENDLOOP.
ftab[] = itab[].
LOOP AT ftab INTO fl.
  WRITE: / fl.
ENDLOOP.
Regards,
Ravi
Message was edited by:
        Ravi Kanth Talagana

Similar Messages

  • What is the best way to build an app?

    what is the best way to build an app?

    I've never done it, but sure, all sorts of companies will contract to code up an application for you - big companies like Honeywell and General Dynamics to Joe Programmer free-lancing out of his house will contract for computer coding projects.  Without knowing details of the app to be developed I have no idea what it would cost or how long it would take.  Some of the free-lance programmers I personally know bill out at over (some, well over) $100/hour.
    If you really think your idea is great, then be sure to approach discussing it with a developer as a business transaction.  Almost every company will have an unsolicted ideas policy in place (Apple explicitly does under their legal information page) and any unsolicited ideas sent in become the intellectual property of the company (by sending the idea unsolicited, you have legally "given" it to them).
    P.S. as to how long to learn how to program well?  Some people spend an entire college degree's worth of time and effort to master that.

  • What is the best way to build a career path where I can evolve into an SAP role instead of one that is Customer Service based?

    In October 2011, my previous employer converted to SAP, as the rest of the worldwide entities were already using SAP. At that time, I was an Order Coordinator, where my job role was to process all of the Inside/Outside Sales Representatives orders for the US. Because of my keen attention to detail, the speed in which I learn new roles and general IT knowledge, I was asked to be the SAP SuperUser for our Financial Operations team. I quickly began to learn the roles of Order-to-Cash, Customer Master Data, Pricing Conditions, Contracts, some Material Master Data, and even Customer/Material Pricing Audits. I also performed manual customer billing in SAP until the automatic modules were implemented. Knowledge of these roles created a need for me to become a trainer to my team, where the SAP Consultants left off. After only working in SAP for the few months after the conversion started, I evolved out of an Order Coordinator rights of access and was given a not-so-typical role as an "analyst". I had more than a firefighter role in SAP, as my normal log in credentials gave me full rights to all of these modules and even special reporting. Our parent global company realized necessity for my role and followed proper protocol to authorize the access changes to still meet the SOx regulations. Prior to using SAP, I never thought I'd fall in love with it and enjoy my job so much, but it happened! Despite my previous employer's less than perfect data that was copied into SAP, we managed to have an efficient ongoing process to clean it all up.  I became more of a liaison between Financial Operations and our IT Dept/SAP Consultants. I "translated" the technical steps that IT/SAP Consultants were trying to teach everyone and trained my Financial Operations team in a way they would understand. I truly enjoyed my job, even at our most difficult moments.
    However, after all of the fun I was having while working in SAP and truly gaining a ton of useful experience and knowledge, "life" happened and I had an opportunity to move from Atlanta, GA to southern California. I've searched for months to find a new career here in California with a company that I could continue my learning experiences and become more proficient in SAP, but I'm a little lost. My search to find jobs have only given me possibilities in Customer Service positions or ones that are SAP sales/programming based. I'm floating in limbo and looking for help from the SAP community on where I can go from here to get back into a career path with SAP.
    I'm 28 years old and I'm currently finishing my Associate degree in Business Administration. I'm a Microsoft Certified Professional (MCP), certified with the Help-Desk Institute as a Support Center Analyst, and also completed my previous employer's Quality Advocate Certification which focused on Six Sigma and Lean concepts. Prior to leaving the company, I was being considered for a company sponsored training in the Six Sigma Green or Black Belt program. I've recently started working a contract position as a Customer Service Rep, processing orders, but the company will be completing an SAP conversion in May 2013; so only a few months away. The problem I have in this position is that I feel frustrated in learning their current software when their entire team seems to have their own personal ways of doing their job. I prefer to have structure and perform job duties the right way, then building on that to make the job more streamlined. I spoke with my recruiter but he feels I may be a bit premature on feelings about working in this contract position. I may be just feeling a little impatient in having to wait another 3 months to see if the company may even hire me on permanently and what role I would have with SAP, beyond Customer Service Rep. I'm hoping to get some direction from the SAP community on where I might focus my attention in learning SAP. My hope is to find a position working with SAP like the one I enjoyed so much back in GA. I'm even considering options to learn the programming side. I think SAP is a great software package once people understand how it's designed, or can be designed, to work.
    Please help!!
    I'd be happy to provide my resume to anyone willing to review it and give me some pointers. Any advice would be greatly appreciated!

    I appreciate the length and detail of your post. I struggle answering questions from folks who give too little info. It's refreshing to have too much info for a change.
    I'll summarize your post and give suggestions:
    You have very strong end user experience, almost bordering on support level SD knowledge. You have experience with the way that at least one company implemented SAP SD but don't have many years of experience with different approaches, so you can't pitch yourself as someone who's "been-there, done-that" outside of the SD world and you can't bill yourself as having SD functional knowledge to the extend that you could be a consultant for SAP SD.  (See FAQ: Different Career Paths in SAP for descriptions of different traditional SAP career paths.)
    You've moved to Southern California, which is chock full of companies using SAP, by the way, and you're having a hard time finding the right job. Your education is probably going to be problematic at this point. Most SAP related jobs require a Bachelor's Degree at a minimum. Definitely keep on going with your degree. I don't know where you're doing your associate's degree, but you might want to look in to Cal State Fullerton, which has an *excellent* SAP focused business degree program. (http://business.fullerton.edu/).
    You've found work at a company but had to start over at a lower level of responsibility. Since the job you just landed will be transitioning to SAP in 3 months, you have an opportunity to repeat your previous rise by volunteering to be a super-user again. Alternatively, you could talk to the group within your company and express your desire to help out supporting the system from the back end. Traditionally, companies lose a few folks immediately following an implementation, so there's a good chance that if you make your desires and skills known, that you'll be able to move onto the support team once a position opens up.
    All of the above assumes that you want to continue on the functional side of SD. You didn't mention any aptitude or preference for programming. It is certainly easier to get programming jobs than functional jobs (see How did you get your start in SAP?), but it seems like you really enjoyed the functional side of SAP. I do *not* recommend learning an SAP skill for which you have no desire simply to get a job, hoping that you can switch later. Use the skills you have to get the job you really want, doing something that really excites you. It's far to easy to fall into a job simply because it's there and get trapped and burned out.
    Hope this helps!
    Best regards,
      --Tom

  • Is there a way to build an App with CS5.5 that can run in older iPods

    Hello
    Does anybody know if there is a way to build an app with flash CS5.5 that can run in older iPods?, just like with CS5?
    Each IPA I build with CS5.5 cannot be installed in my iPod 8GB with iOS 4.2 and before with CS5 I could install all the IPAs there and test.
    The lack of support to iPod 8GB would be limitating for the market and sales...
    Is there some setting to build IPA to older iPods?
    Thanks

    AIR 2.7 release notes:
    AIR runs on "iPodTouch 4th generation iPhone 3GS and iPhone 4iPad".
    But:
    AIR 2.7 runs on iPod Touch 3rd Generation, too - but only on the 32GB and 64GB models. The 8GB model is in fact only an older 2nd gen iPod Touch.
    We tested this and we even have some apps in the app store running on the iPod Touch 3rd gen.
    I posted about this, look here:
    http://forums.adobe.com/thread/892541?tstart=0

  • Easy way to build a resume with word?

    I am trying to create a resume, and I have trouble with AutoFormat, Columns, Bullets, etc.
    Is there an easy way to build a professional-looking resume? Even for someone like me, who doesn't do well with formatting?
    I tried to find a wizard or a good template, but my Microsoft Office Word version from 2004 doesn't have either. And the Word templates for Mac that I downloaded from online were not good either.
    What can I do? Thank you for your help!
    Kat

    k.
    The Microsoft site has word templates available. Check out:
    http://office.microsoft.com/en-us/templates/CT101448941033.aspx
    Bob
    Message was edited by: Bob Gold
    Oops...just saw that you didn't like the ones available from MS...sorry. There are soooo many resume styles out there that you may or may not desire. Lots come up with a Google search for resume templage for word.
    http://www.southworth.com/page.php?id=187
    Message was edited by: Bob Gold

  • How to create a Pooled VDI infrastructure using Win server 2012 as VM image?I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM

    I have followed the "usual" way to build a pooled VDI desktop using Win7 or Win8 with success, but it fails when I use an image of Win Server 2012 as VM instead.
    Am I overlooking something?  Should I need to prepare the image in a different way? (Sysprep differently?)
    Thanks

    Hi,
    Thank you for your posting in Windows Server Forum.
    Can you specify the error which you are facing during VDI setup for server 2012?
    I might think that you need to check the memory setting for server 2012, as might happens that due to less memory you can’t setup the VDI setup properly. 
    Memory: If the Master VM is configured with static memory, it must have at least 1024 MB as startup RAM. If the Master VM is configured with dynamic memory, the maximum RAM must be at least 1024 MB.
    Please check beneath article for information.
    Windows
    Server 2012 2,500-user pooled VDI deployment guide (Doc)
    Single Image Management for Virtual Desktop Collections in Windows Server 2012
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Best way to build a website with hundreds of pages

    What is the best way to build a website with hundreds of pages that include businesses in every city of the U.S. I will be building it in Dreamweaver CS4 and pulling the data from an MS Excel spreadsheet.
    I started building it by building the first page and then saving a new page with new data and so on.
    There must be a way to pull from the Excel doc without copying and pasting each page of data, and there must be a way to build this site smaller and easier to make changes when needed.
    Thanks

    You already have other people addressing the DB issues - so I will bring up the other... You are just saving a copy as a new page and then copy and pasting the changed content into  it?
    What you want to do is take the first page, once you have your design done - and save it as a template (file - save as - Dreamweaver Template).
    Then you want to select the areas (most likely the divs you have content in) that will have content changed, and select the div or p or whatever element... and go to Insert - Template Objects - Editible Region.
    Make sure you don't made editable the areas that are the primary design - such as a logo element, a header image, the navigation etc.  If you want to change those - you would do so by making the change on the template, and then it will automatically update all pages made based on that template.
    Once you are done setting up the templates - go to your new page and choose Modify - Templates - Apply Template To Page
    Select the template you just created (note it will be placed inside of a new folder titled "templates" automatically by Dreamweaver).
    Now, any of the areas you selected to add different content into will be selectable, and you can copy/paste or however you are doing so.
    Good luck

  • Best way for building an application main frame

    I'm about to program a desktop application.
    The main frame will have menus, toolbar, status bar etc.
    There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
    My question is which is the best way for building it.
    Cramming all the code in one class file is out of the question.
    I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
    Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
    Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
    P.S.
    The application makes extensive use of RMI.
    What considerations should I take into account (except using SwingUtilities.invokeLater()) ?

    Hi,
    I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
    On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
    I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
    I hope you understand what I mean the the thing is to split up the code into several sources.
    It may not suit everyone but I found this approach to be the best for me.
    Klint

  • SORT ITAB BY VARIABLE_NAME

    hi,
    i want to sort the int table with variable parameters, like VKBUR, BUDAT, VKORG, MATNR, etc.
    for that ive created a char variable of 5 length (say CRIT) and assigned value based on selection criteria by the user.
    Then, im using SORT ITAB BY CRIT. Its not getting sorted properly.
    Any suggestions,
    Regards,
    Naveen

    You can easily achieve it by using filed symbols.
    Assign the field (upon which you require sorting) to field symbol<Fs> and then sort the table with (<Fs>)reference.
    Sample code is given below for your help.
    DATA: BEGIN OF x1 OCCURS 0,
            t1 TYPE string,
            t2 TYPE string,
            t3 TYPE string,
           END OF x1.
    FIELD-SYMBOLS: <fs> TYPE ANY.
    x1-t1 = 'B'.
    x1-t2 = 'D'.
    x1-t3 = '9'.
    APPEND x1.
    x1-t1 = 'C'.
    x1-t2 = 'X'.
    x1-t3 = '4'.
    APPEND x1.
    x1-t1 = 'F'.
    x1-t2 = 'Y'.
    x1-t3 = '6'.
    APPEND x1.
    LOOP AT x1.
      WRITE: / x1-t1, '    ', x1-t2, '    ', x1-t3.
    ENDLOOP.
    SKIP 2.
    * Sort by field T1
    ASSIGN 't1' TO <fs>.
    SORT x1 BY (<fs>).
    LOOP AT x1.
      WRITE: / x1-t1, '    ', x1-t2, '    ', x1-t3.
    ENDLOOP.
    skip 2.
    * Sort by field T3
    ASSIGN 't3' TO <fs>.
    SORT x1 BY (<fs>).
    LOOP AT x1.
      WRITE: / x1-t1, '    ', x1-t2, '    ', x1-t3.
    ENDLOOP.

  • Looking for a way to change sort order for albums

    I know how to set the sort order for each individual song (Sort tab on song info), but is there a way to set sort order for multiple tracks?

    Please help!

  • Sort  itab by using field symbol

    All,
    I have a field symbol  that pointing to a field value in work area of an internal table i_sort ( For example work area that contains the field name having a value MATNR' ( this decides only at runtime) )
    My requirement is i need to sort another table for example i_tab (structure same as records in i_sort) using this field symbol.
    Any Info?

    Hi,
    Check the below report sorting table VBAP based on field VBELN dynamically.
    Let me know if u need any clarification.
    REPORT  ZTEST1.
    tables: dd03l.
    field-symbols: <fs1> type any,
                   <fs2> type any.
    data:
       wa_1 type vbak,
       w_index type sy-index.
    data:
      itab like standard table of vbap,
      ftab like standard table of dd03l.
      select * from vbap into table itab
               up to 10 rows.
    select single * from vbak into wa_1 where vbeln ne space.
    assign wa_1-vbeln to : <fs1>,
                           <fs2>.
    do.
      assign component sy-index of structure wa_1 to <fs1>.
      if <fs1> = <fs2>.
        w_index = sy-index.
        exit.
      endif.
    enddo.
    select *
      from DD03L
      into table ftab
    where TABNAME eq 'VBAK'.
    sort ftab by position.
    read table ftab with key position = w_index into dd03l.
    sort itab by (dd03l-FIELDNAME).
    Thanks,
    - Ram

  • Sort itab by select-options

    Hi,
    i have this code:
    SELECT-OPTIONS:   S_MATNR   FOR MARA-MATNR.
      SELECT  * FROM MARA WHERE MATNR IN S_MATNR.
        CLEAR: WA_ITAB.
        WA_ITAB-MATNR = MARA-MATNR.
        WA_ITAB-MTART = MARA-MTART.
        WA_ITAB-MATKL = MARA-MATKL.
        APPEND WA_ITAB TO IT_ITAB.
      ENDSELECT.
    now i want to sort the it_itab by the given select-options. Is this possible?
    ( select-options can have single valuse, ranges, meta characters)
    Or is it possible to use select from table mara in order by select-options?
    Regards, Dieter

    Hi,
    First of all please avoid such a select statement. It causes a lot of performance problem.
    Code like this
    SELECT  *  FROM MARA
    INTO CORRESPONDING FIELDS OF TABLE IT_ITAB
    WHERE MATNR IN S_MATNR.
    Secondly what do you mean by SORT ITAB by SELECT_OPTIONS S_MATNR.
    You yourself have said that the select-option can contain single values or multiple values or ranges.
    So how should the SORT be?
    Kinldy check with the requirment. It seems a little weird.
    Regards,
    Ankur Parab

  • Way to build generic template

    Hi,
    We're in the process of evaluating XML Publisher to see if it will suit our needs for pulling all our legacy reports together. We have a lot of reports that have extremely simple formatting requirements. Most of them are just in the form of:
    select foo as "Foo", bar as "Bar", baz as "Baz"
    from a, b, c
    where ....;
    The only thing that really changes, output-wise, is the number of columns and the name of the columns. Is there a way to build a template that would be able to handle ALL of these queries with a standard look, so we don't have to build one for every single one?
    Thanks,
    Stephen

    Hi Stephen
    Certainly can, two approaches one more restrictive than the other.
    1. You can build a template that will render any XML data into a tabular or form layout ie it does not matter what the XML tags are. In the template you ignore them and just layout whatever you have in the XML. Its going to be fixed output and users are not going to be able to change the layout v easily.
    2. If all your extractions generate XML with exactly the same tags then you can build one template for all of them. Advantage over 1 is that its going to be easier to change the layouts if needed.
    Regards, Tim

  • Best Way To Build A Song

    I was thinkin of ways to build songs and thought it might be interesting to hear what everyones opinion is on this? I know inspiration can come in many diff ways but... when actually in the recording process where is a good place to start assuming you are not recording live instruments?? Anyone? Thanks

    NOw you got me started
    Once you have your song................You listen back to it..........Let's say it sounds muddy......BEFORE you start EQing..........make sure it isn't muddy because of the orchestration !
    9 times out of 10 it is the composition that is muddy NOT the mix......
    Check your inversions of the chords .....make sure that your hook lines aren't duplicating notes that are in the block chords of the progression......Instead have them an Octave higher or lower............
    So every note has it's own space....That way everything is heard clearly...
    LEAN AND MEAN........music should breathe so don't be afraid of little pockets of nothingness.....
    Kick drum and bassline form a union and should sound Together (That gets rid of ALOT of low-end mud)
    That doesn't mean whenever the BASS hits, the Kick should hit.........just don't have them fight each other....
    SvK
    Oh yeah almost forgot......don't get caught listening and working on an 8bar verse loop for hours on end........Because it will become virtually impossible for you to think up anything to follow it!
    That is why I said get the entire chord Progression first.......
    SvK

  • Best way to build an web-based voice record player

    Could anyone please guide me on what technology to use to
    build a online voice recorded that would record a users voice using
    a flash player from a website and then the voice is saved on the
    server side. What would be the best way to build something like
    that.
    Thanks,
    Ket

    Use Flash or Flex for the client side, and Flash Media
    Interactive Server on the server side.

Maybe you are looking for

  • How to make an animated gif on a imac

    Hi guys I am running an Imac OS X 10.9.4. I would really like to make some animated gif's if possible. Can anyone help me please? I tried some instructions using Preview, but my preview does not allow saving a file as a .gif, nor does half the things

  • Preserve data from one instance of a workflow to another

    Hi all, I have a quite general question which has been bothering me for a while. It has to do with preserving data between instances of a workflow. What I need is to preserve some data from one instance of a workflow (as a task in the WF) and then st

  • JSF 1.2  - Weblogic 10.3.6 compatibility issue

    Hi, Our application have been developed in JSF 1.2 and spring DAO. We have deployed it on Weblogic 10.3.6 X86 server. We are facing an issue like on page load data are populated in the page. Say for example on page load company list getting populated

  • Alternative for VRF Source Select

    We have "VRF Source Select" configuration alternative to Policy based Route-map in the Router Interfaces .Can anyone tell me if we have any alternative for "VRF Soure Select" . Unfortunately Cisco 7200 VXR NPE-G1 Routers doesn't this feature at all.

  • Global alloc init declaration

    Is there anyway to do a global alloc init so all functions in a class can see it? any help is appreciated pheonixfire