AT NEW usage.

Hi Gurus,
I have an internal table i_final2 with values Country, brand, pack and curr pri. I need to extract only the first value for any country and put iti n another internal table i_final2. I used AT NEW statment and wrote the following code.
loop AT i_temp INTO w_temp.
              MOVE w_temp-country TO w_final1-country.
              MOVE w_temp-brand TO w_final1-brand.
              MOVE w_temp-pack TO w_final1-pack.
              MOVE w_temp-curr_pri  TO w_final1-curr_pri.
             APPEND w_final1 TO i_final1.
         endloop.
        IF i_final1 IS NOT INITIAL.
          Loop AT i_final1 INTO w_final1.
            AT NEW country.
              APPEND w_final1 TO i_final2.
              CLEAR w_final1.
            ENDAT.
          endloop.
        ENDIF.
But in the output i get the country code properly , where as the other values appear as astericks like *****, *******, etc. Can anyone help me in the regard?
Thanks & Regards.

hi,
jus read the internal table after AT NEW.
SORT I_FINAL1 BY COUNTRY.
Loop AT i_final1 INTO w_final1.
            AT NEW country.
             READ TABLE I_FINAL1...
now u'll get the values right!  Sort the internal table before using control break statements.
regards,
madhu

Similar Messages

  • Advantages-New usage Options of ECC 6.0 with regard to PM module -reg

    Dear Friends,
    Can any one let me know  the advantages and new usage options available with ECC 6.0 Version  with regard to SAP-PM module .
    How  can it be more explored to address business process over 4.7 ee
    earliest reply is highly appreciated
    regards,
    MADHU KIRAN

    hi
    kindly refer the following link
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/43/4d212fde9657bfe10000000a155369/Chap%2016%20PM%20Plant%20Maintenance.pdf
    regards
    thyagarajan

  • Is this a new usage in PL/SQL?

    Hi friends,
    Today I've tested new features in 11G, and read the Document "Oracle Database 11g: The Top New Features for DBAs and Developers" and when I come to page 226 chapter PL/SQL Performance, I see this code as follows:
    alter session set plsql_warnings = ‘enable:all, disable:06002, disable:06005, disable:06006,
    disable:06010’
    alter session set plsql_ccflags = ‘simple:false’
    create package gcd_test is
    procedure time_it;
    end gcd_test;
    create package body gcd_test is
    $if $$simple $then
    subtype my_integer is simple_integer;
    simple constant times.simple%type := ‘y’;
    $else
    subtype my_integer is pls_integer not null;
    simple constant times.simple%type := ‘n’;
    $end
    Frankly I have never seen that package body can be defined like this...
    the dollar sign with the logic operators, never seen in PL/SQL reference book and then I tested in 11G, it won't cause any error.
    I can't remember this usage in any document...
    so if anybody knows about that, I need your help~
    Edited by: user12977032 on Jul 2, 2010 12:09 AM

    user12977032 wrote:
    I mean the code is like some way to define variables dynamically, or following some rules.Not really. This new feature is a standard feature in most compilers. It allows you to define and set compiler flags and variables and perform conditional compilation.
    For example, you may have a PL/SQL package that is used on Standard Edition (SE) and Enterprise Edition (EE). However, you would like to use a EE feature that is not available on SE (SE for example requires a slower method to be used).
    With conditional compiling you can define a code block that needs to be compiled for EE versions and a different code block that needs to be compiled for SE. Thus you have source code that can be compiled optimally for that server version it is being compiled on.
    This feature has existed for many years in compilers ranging from C to Delphi. And has been sorely missing from the PL/SQL parser and compiler.

  • Enhancing standard component with new component usage

    Hi!
    I try to enhance standard component /SAPSRM/WDC_AOFC_BEV with new component usage (say, SALV_WD_TABLE). It allows me to add new usage, but the usage does not appear in the "Component Usages" tree node.
    Is it a bug? Is it possible to enhance a standard component with new component usage?

    Hi Thomas!
    We've been communicating with SAP on this issue for a while and last response we obtained is next:
    Dear customer,
    the possibility to create external controller usages (as required for
    the ALV-usage) is not supported by the Web Dynpro ABAP development
    tools. However, you could try a programmatic apporach by adding the
    ALV-usage dynamically (e.g. in methods or method exits created within
    your enhancement implementation).
    See test component WDR_TEST_DYN_ALV_USAGE for details.
    What's your opinion on this? Is it really not a bug?

  • Selection of usage decision based on % of rejection done thorugh Insp Lot

    My business scenario is as follows:-
    I have created new usage decision codes as mentioned below through QS41and assigned the same to code group RI-UD and catalog 03. 
    I3     INITIAL REJECTION >75% to <=100 % (1) 
    I4     INITIAL REJECTION >50% to <=75% (40)
    I5     INITIAL REJECTION >25% to <=50% (60)
    I6     INITIAL REJECTION <=25% (80)
    and quality score maintained the same through QS51
    Code Group     Code     Shot Text for a code                                               Code Valuation         Quality Score
    RI-UD     I3     INITIAL REJECTION >75% to <=100 % (1)     R Rejected (not OK)     1
    RI-UD     I4     INITIAL REJECTION >50% to <=75% (40)     R Rejected (not OK)     40
    RI-UD     I5     INITIAL REJECTION >25% to <=50% (60)     R Rejected (not OK)     60
    RI-UD     I6     INITIAL REJECTION <=25% (80)                          R Rejected (not OK)     80
    I need to automate the selection of usage decision code to be done by system based on the accepted/rejected quantity entered.
    How to go about it.  Can anybody on this please?
    Thanks in advance.
    Ravi

    Anything can be done SAP!   But what you want would be all custom.  There is no SAP functionality that would do that for you.  I'd start with the auto UD program first.  Have the programmers modify the selection parameters to select the list of lots.  Than process those lots with the logic you want o use and change the UD accordingly.  I'd make sure I could run the program manually as well.  Similar to some of the other UD workload programs.
    FF

  • Item category usage - how to configure

    My client requirements are
    Need a new Usage code (item category usage)
    description =  "Included with System "
    The users will use this to add items to the sales order as Free Goods but the revenue for the items is already embedded in the main item 
    How to configure this?
    Also are there any additional updates required to allow the usage code to be used ?
    Thank you!

    Hi
    Usage indicator is something else. Just go through F1 help and see for what purpose we can use this field. What you are looking for is free goods configuration. This has been discussed so many times. Search with thext free goods and see if you find something. If you have some other requirement then come again with more explanation.
    Thank$

  • Want to change BOM usage from production 1 to design 2

    Dear Experts ,
                               Is it possible to change BOM usage from production 1 to design 2 ? Any mass change T code ?
    Neal

    If I make BOM universal , I need to ,make alternative BOM as Engineering BOM will have several levels and production BOM has all the components and assy on single level .
    MRP might pick up wrong BOM .
    Is there any T.code by which we can make mass copy or change BOMs . AS in system there are many BOMs which needs to be copied as is with new usage .
    Neal

  • Recommended installation option PO vs. AEX / adding usage type in future

    Dear guys,
    at the moment some clients I am working with a thinking of migrate their existing PI dual stack landscape and setupt a new single stack landscape.
    Doing so there is the question either to go for PO or AEX.
    Often there is no need for BPM/BRM component yet, but maybe this will change in future.
    Therefore there is the question if it is pssible to add BPM/BRM functionality to an existing AEX installation (SID) or not.
    So far I found inconsistent information regarding this question.
    In this blog it is mentioned that adding of BPM/BRM is not possible.
    http://scn.sap.com/community/process-orchestration/blog/2012/12/07/upgrade-options-to-the-latest-process-integration-or-process-orchestration
    Instead this presenation indicates that it should be possible to add new usage type to an existing AEX (slide 5 which is also included in Teched presenations)
    http://www.sapevent.ch/landingpagesfr/Manager/uploads/303/TU%20S2%20Technical%20PI_to_PO_Migration.pdf
    Can anyone clear up this topic?
    Appreciate your help.
    Best regards
    Jochen

    Hi Hareesh
    thanks for your reply and pointing me to this thread.
    Obviously the deployment possibility changed overtime and was initially not possible but now it seems to be possible.
    Process Orchestration - SAP Library
    You can obtain Process Orchestration by installation or by adding the corresponding usage types to an existing SAP NetWeaver system. For latter, both are supported, deployment of BPM on an existing AEX system and deployment of an AEX on an existing BPM system.
    Also the lately published PO Roadmap indicates that it should be possible to add usage type. (page 25)
    https://websmp103.sap-ag.de/~sapidb/011000358700000273752014E.pdf
    best regards
    Jochen

  • New Usuage format vs getting a new phone

    I am so upset over this new usage they will start on Monday. I have held out getting a new Iphone until the 4 arrives. I hate having to try and keep track of my usage so l am now considering heading down and getting the 3GS while the unltd usage is available or just keeping my old Razr and living w/o it. I want unltd so I can just forget about it.

    Yea you can get the iphone 4gs or whatever it'll be called and keep your unlimited plan, just make sure not to downgrade your data plan because you can't go back which has been stuck on a decision to downgrade or not

  • How to install Additional Software Units or Usage Types in an Existing SAP

    Hi.
    We have a Netweaver 7.0 EPH1 with JAVA, EP and EPC intallation,but i need install additional usage type BI JAVA and NWDI.
    Copy the downloaded SCAs in /usr/sap/trans/EPS/in and when execute JSPM - option Additional usage type installation,  this not show usages type .
    according to the installation guide, this is the procedure.
    please help me.
    Thanks very much.
    Regards,
    Jhon Jairo

    Hi,
    Once you have correctly extracted and put the files in /usr/sap/trans/EPS/in, you need to run JSPM and select the option of additional usage types.
    Next, select the desired stack from the inbox. Click Next.
    JSPM shows the currently installed usage types and those of the new usage types in the stack, which are part of the active product on the system and all of their dependencies are fulfilled. They can have different status:
    Available u2013 the usage type is already active in the system. These usage types are automatically skipped.
    OK u2013 the usage type can be installed on the system. Specify whether to install or skip the usage type in the Action column.
    Revise u2013 the usage type cannot  be installed on this system. Click the Show Details button for more information. These usage types are automatically skipped.
    Not Supported - the usage type is not supported by JSPM.
    Can you tell us what is the status of the usage types visible to you? Are the new usage types having a different status or are they not completely visible at all? If that is the case, you may want to check whether the files that you have downloaded are correct or not and also check whether these are correctly extracted and placed in the right folder.
    Regards,
    Shitij

  • Using new too much, need alternative.

    I have a simple class vertex:
    class vertex {
    double x,y,x;
    vertex() {x=0;y=0;z=0};
    vertex add(vertex b) {
      return new vertex(a.x+b.x,a.y+b.y,c.x+c.y);
    }Note that the class has add,sub,mult,dotProd,crossProd,Perp2d,copy.. etc
    Every single one returns "new vertex(asdfasd)"
    This is becoming a huge headache memory wise, since these calculations are called about 100,000 times a second.
    In other languages you just return one from the stack, but I can't do that here can I?
    A look at memory consumption show's I'm at 36 megs in the GC pile, from a program where the class files only consume 40K on the drive.
    Is there a better soloution to returning new for homemade operator overloading?

    Well thank you all for the responses. It was an interesting read.
    The class is not immutable, FYI. I have a version of every function that returns a new object, and one that modifies the original (and returns void). IE:
    vertex sub(vertex) {return the_vertex_after_math;}
    and
    void sub_eq(vertext) {}
    When I moved the temp variables out of the functions, and used the _eq method, it really made a HUGE difference in speed, and took a large chunk out of the GC memory pool usage. 
    In reference to VOODOO programming, yeah - I understand that. Every language is different in it's own way. I learned Atari basic first, and from there Quickbasic, C, x86 asm, C++, pascal.. etc... They are all different and have different design patterns. And, oh, I don't consider your VOODOO comment a flame at all. That's just the nature of Java, and I'm slowly getting used to it.
    This type of rambling conversation (you guys(maybe gals)) actually helps, since I can see many different people have basically the same non-answer to the problem. I mean no harm, but basically you all said no alternative, fair answer.
    I just made a reasonable attempt to reduce the new usage per frame, and I got good results. But I now realize there isn't any way around it unless you want your code to have a bunch of temp vars declared before each function within the class. I will take this ugly side of things for the basic classes (vertex), since I won't ever see that source again now that's it's faster and unit tested.
    Anyways, I'm off to another side of things on this project, the multplayer aspect of it. So I'm SURE I'll be asking another question that has some totally other language bias to it soon enough.
    Thanks for all you help folks, I really appreciate it.
    PS: Thank your God (or Gods) for forums.

  • Clear up Usage tracking in Version 8

    <p>Is there a way to clear up the usage tracking records inV8_USAGE_ATTRIBUTES table to clear up the table.  The has 2.6million rows and slowing up the the migration to sytem 9.  Anythoughts on this?</p>

    Hi Mathias
    Yes I did. It appears, that with the new version, we are also getting some new Usage Tracking data. These were created when you updated your schemas. So you need to reimport the usage tracking metadata for your usage tracking. OBIEE gives the errors because it can't write the new data fields. Once I did that, most of my reporting started to work again. The reason for the added data, is for Exalytics usage. You might not need them, but you can't come around them - so reimport the metadata, and you should be fine.
    It's just not very clear, that you need to do this, from the documentation Oracle provides, atleast it wasn't for you and me any ways. Hope this helps! :-)
    Regards, Jacob

  • Low usage allowance

    im on option 1 and for the past two months i have gone over my 10gb limit by 7gb.
    is there any upgrades for just broadband usage instead of getting option 2 or 3?
    also, if i go with another option, how long does it take to upgrade and will it stop internet access for a short period of time?
    cheers
    jj

    BROOMY wrote:
    im on option 1 and for the past two months i have gone over my 10gb limit by 7gb.
    is there any upgrades for just broadband usage instead of getting option 2 or 3?
    also, if i go with another option, how long does it take to upgrade and will it stop internet access for a short period of time?
    cheers
    jj
    Hi, If you want more download usage, then you will have to upgrade your package to option 2 or option 3. If you do upgrade, you won't loose your internet connection, and your new usage will begin once you upgrade.

  • Usage Widget Notification

    I keep getting a notification that a new usage widget is available.  Over and over and over.  How do I get this to stop?  I don't want the widget so stop notifying me of it!!!!!!

    schristi69 wrote:
    I keep getting a notification that a new usage widget is available.  Over and over and over.  How do I get this to stop?  I don't want the widget so stop notifying me of it!!!!!!
    Hi there!
    I'm sure I can help out here. What kind of phone do you have? I'm not aware of any proactive widget alerts by design in any of our devices. Does the alert show you what the widget is for? Possibly a new widget for a recently updated app from the Market?
    Please advise so I and the community can be of assistance!
    Thank you!

  • BOM usage change

    Dear Friends,
    How can we do the BOM usage change... without creating a new BOM with new usage. For example I have created a BOM with usage 1 (Production). This I want to change to usage 6 (Costing). How can I do it.. it is possible? or not?
    Regards,

    Hi,
    First you need to create new BOM which is relevent to costing  by copying the production BOM after that you can delete the production BOM.
    Apart from archiving you can also simply delete the BOM by going in change mode -CS02,material -->Delete
    OR,
    Please check transaction codes CS26 and CS28. And There is one more function module to delete the bom with histoty.CS_SF_BOM_DELETE_FOR_ARCHIVE.
    Hope clear to you. Reward if useful.
    Regards,
    R.brahmankar
    Edited by: R Brahmankar on Jul 26, 2008 8:17 PM

Maybe you are looking for

  • Problem Syncing Outlook....says outlook sync client encountered problem

    I have been syncing outlook calendar and contacts from my PC to my iPhone with no problems. I have version 1.1.2 on my iPhone and 7.5 or whatever the latest is on iTunes software. The syncs were fine until recently and now I cant sync and get an erro

  • InDesign CS3 crashing

    We have an issue with InDeisgn CS3 crashing on a regular basis randomlly 3-6 times per night while publishing a newspaper.  The environment is a small newspaper.  The affected systems are 5 editors iMacs running iOS 10.6.8 and 4GB RAM.  They use InDe

  • Adding Notes In Purchase order

    Hi Gurus, 1.How to add Note to Supplier of data of A4 Size Paper in Purchase Order Other Than Attachment 2.If It IS Attachment How To Integrate it with the Po Print Out 3.This Note Must Be General And Should be Printed in All Po Standard Foramt How t

  • Avoid report refresh when updating cascade parameters

    I have a report with 3 cascade parameters. The first parameter, region, is independent. The second parameter, zone, depends on region. The third parameter, store, depends both on region and zone. These are multi value parameters. The report is viewed

  • Lauching URLS with parameters Form Personalization

    Hello, At Crawley Borough Council we wish to use FP to launch urls with parameters; this would really enhance how CRM is used at Crawley BC. There values are taken from the contact centre customer block e.g. CUSTOMER_HEADER_BLK.CUST_FNAME would could