Urgent!!!  at new - filling table

Can u tell why inside of " AT NEW / ENDAT" all the contents of internal table are initial?
i need them.
example,
LOOP AT TLZK.
   AT NEW BUDAT.
   T_RESULT-ERFMG = summa.
   MODIFY T_RESULT TRANSPORTING ERFMG WHERE BUDAT = ZBUDAT.
    T_RESULT-NPP = NPP.
   T_RESULT-ERFMG = T_RESULT-ERFMG + TLZK-ERFMG.
    T_RESULT-RSNUM = TLZK-RSNUM.
    T_RESULT-RSPOS = TLZK-RSPOS.
    T_RESULT-LGORT = TLZK-LGORT.
    T_RESULT-UMLGO = TLZK-UMLGO.
    T_RESULT-BUDAT = TLZK-BUDAT.
    APPEND T_RESULT.
    CLEAR SUMMA.
    NPP = NPP + 1.
  ENDAT.
   zbudat = WA_TLZK-budat.
   summa = summa + WA_TLZK-ERFMG.
  ENDLOOP.

HI,
Move the data to a temporary internal table:
LOOP AT TLZK.
ITEMP[] = TLZK[].
AT NEW BUDAT.
T_RESULT-ERFMG = summa.
MODIFY T_RESULT TRANSPORTING ERFMG WHERE BUDAT = ZBUDAT.
T_RESULT-NPP = NPP.
* T_RESULT-ERFMG = T_RESULT-ERFMG + ITEMP-ERFMG.
T_RESULT-RSNUM = ITEMP-RSNUM.
T_RESULT-RSPOS = ITEMP-RSPOS.
T_RESULT-LGORT = ITEMP-LGORT.
T_RESULT-UMLGO = ITEMP-UMLGO.
T_RESULT-BUDAT = ITEMP-BUDAT.
APPEND T_RESULT.
CLEAR SUMMA.
NPP = NPP + 1.
ENDAT.
zbudat = WA_TLZK-budat.
summa = summa + WA_TLZK-ERFMG.
ENDLOOP.

Similar Messages

  • How to delete the data in New data table Because...

    Hi all,
    I have an urgent issue :
    in the process chain DSO has finished a delta load with 18592 data entries transfered and added, and activated , but when I checked New data table , there are still 18592 data entries there. This will cause problem I think, because this chain has to run daily, so next run will make the data in new data table added twice, so could you pls let me know the way to delete data in new data table?
    thanks in advance

    Dear Ryan Zhang  ,
    When activation DSO will automatically clears New table and places records in active table and change log table.
    If records still exist in New table means it has not activated properly.
    Check in active table and change log table if any entries are found.
    If not ,try activation again.
    If entries are there in active table then try these
    Go to SE14
    Give the active table name..
    Click on Edit
    Click on activate and adjust database.
    Load again and try to activate.
    Hope it helps
    Regards
    Bala

  • DSO New data table rejects data

    Dear SDNers,
    I have a critical issue.
    I am loading data into a DSO (which has end routine, lookup DSO of 2crore records in production)
    In development, it worked good.
    In Production it took very long time to load data. I initially thought it might be because of the lookup DSO. But it never loaded the data into new data table. The data load monitor results in yellow always.
    I used filter in DTP and loaded only limited data. But this also not loading data. The data load monitor results in yellow again.
    Then I found that i am unable to access the new data table's data browser (from manage).
    I checked with se11 also, I am able to see the table. But if I click contents, the system hangs.
    So what I observe is New data table is not allowing to post any new entries?
    Kindly give me some insight regarding solving this issue.
    Thanks,
    Guru

    Hi Prasanth,
    I didnt say as i am able to see data in change log. I said I am able to access the data browser of both Active and change log table.
    and @Saveen, I donot want to load data manually to new data table.
    To be Precise i ll answer pransanth questions here..
    What is the status of the load in the monitor screen. Yellow (still running)
    Is the load completed or not? what is the record count? No the load is not completing.
    Is the request active in the DSo and available for reporting? Request is active
    Are you facing this issue for the first time? Yes for the first time and only in this DSO.
    Are you sure you have authorizations to check the data through manage screen, try to run the Authorization trace on your id and check if the roles are there for your id or not?  Yes, I am able to see active data table, change log etcc. even new table of other DSOs. Only new table of this DSO is inaccessible from manage
    See, I used filter in DTP, so it ll bring only limited records from lookup DSO. So no issue with the performance deadlock.
    And again I simulated the load and saw, Result package gets filled up perfectly, So the code also works fine.
    but if I load the data itll be yellow status with no records added in new table.
    In this scenario, New table is inaccesible from manage, So I am pretty sure that both are interrelated issues.
    Can some one help me pls..
    Thanks,
    Guru

  • Customizing column sorting in new jsf table

    The new JSF table in the creator 2 is great. I like it. It includes so many out of the box features. It is the reason we use the creator for our current project.
    But I cannot figure out how to customize the column sorting.
    Why do I need column sorting?
    I need to sort a column that can include ad IP address or a host name. Our customer can either use a host name or an IP address to address a device in the network, both in the same column.
    Now sorting an IP address is already difficult. It is actually a sort over a 4 byte number. Sorting over host names is normal alphabetic string sorting.
    How to sort over both in the same column?
    This cannot be done using standard sorting. I need to use a validator or something similar to customize the sorting of this column.
    Can anybody help me with a hint if:
    1- Customizing sorting over a column is possible. (I really would like to keep all other sorting features (icons, multi column support...)).
    2- A hint or code sample, how to do this.
    If this is not possible, I urge the creator team to think of implementing this soon. Otherwise one killer feature of the creator 2 will lose a lot of its teeth.

    Thx mayagiri for your reply!
    But including the src-code for the dataprovider package into a test project, and debugging in the creator-ide has done the thing!
    Here our solution:
    Class ToCompare is the object type which address field displayed in a page, simply containing a table with 2 adress colums, that can be sorted either according to our ip/hostname-comparison or according to String.compare().
    * ToCompare.java
    * Created on 10. Februar 2006, 10:41
    * This class is a basic model object,
    * with a field - String address - according
    * to which it shall be sortable.
    package comparator;
    * @author mock
    public class ToCompare {
         * holds the IP or Host address
        private String address=null;
         * Instance of a Comparator class that
         * provides our sorting algorithm
        private RcHostComparator hostComparator=null;
        /** Creates a new instance of ToCompare */   
        public ToCompare() {
            this("defaultHost");       
         * when creating a new ToCompare instance,
         * the hostComparator is created for it
         *  @ param aAddress - IP or Hostname
        public ToCompare(String aAddress) {
            address=aAddress;
            hostComparator=new RcHostComparator(address);
        public String getAddress() {
            return address;
        public RcHostComparator getHostComparator() {
            return hostComparator;
    }Here the code of the Class RcHostComparator, it is created with the address field of the ToCompare object that it holds. It first checks if the address field is an IP or not, and then chooses the comparison algorithm according to its own field state and the field state of the object to compare to:
    * RcHostComparator.java
    * Created on 10. Februar 2006, 10:43
    *  This class is used to provide a method for
    *  comparing objects that have an address field,
    *  containing either IP adresses or hostnames.
    package comparator;
    import java.text.CollationKey;
    import java.text.Collator;
    import java.util.Comparator;
    import java.util.Locale;
    * @author mock
    public class RcHostComparator implements Comparator
         * holds the IP or Host address
        private String address=null;
         * Is the address an IP
        private boolean isIPAddress=false;
         * if (!isIPAddress) this is created out of the address
         * to provide a performant way of comparing it with another
         * CollationKey, in order to sort Strings localized
         *  @ see java.text.Collator
         *  @ see java.text.CollationKey
        private CollationKey hostnameCollationKey=null;
         * if (isIPAddress) this array holds
         * the 4 byte of the Ip address to compare
        private int[] intValues=null;
         * minimum for IP bytes/ints
        private static final int minIntValue=0;
         * maximum for IP bytes/ints
        private static final int maxIntValue=255;
         * Creates a new instance of IpComparator
         *  @ param aAddress  - holds the IP or Host address
        public RcHostComparator(String aAddress) {
            address=aAddress;
             * check if address is an IP
            isIPAddress=checkIP();
             * if Hostname -> instantiate localized CollationKeys
            if(!isIPAddress){
                 Collator _localeCollator=Collator.getInstance(Locale.getDefault());
                 hostnameCollationKey=_localeCollator.getCollationKey(address);
            }else{}
         *  Here the comparison of the address fields is done.
         *  There a 4 cases:
         *  -1 both Hostnames
         *  -2 aObject1 IP, aObject2 Hostname
         *  -3 aObject1 Hostname, aObject2 IP
         *  -4 both IPs
         *  @ param aObject1, aObject2 - Comparator objects
        public int compare(Object aObject1, Object aObject2)
          int _result= 0;
          if(aObject1 instanceof RcHostComparator && aObject2 instanceof RcHostComparator )
               RcHostComparator _ipComparator1=(RcHostComparator)aObject1;
               RcHostComparator _ipComparator2=(RcHostComparator)aObject2;
               *  Compare algorithms, according to address types
               if(!_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                       *  If both addresses are Strings use collationKey.compareTo(Object o)
                    _result=_ipComparator1.getHostnameCollationKey().compareTo(_ipComparator2.getHostnameCollationKey());
               }else{
                       *  IPs are smaller than Strings -> aObject1 < aObject2
                    if(_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
                         _result=-1;
                    }else{
                                *  IPs are smaller than Strings -> aObject1 > aObject2
                         if(!_ipComparator1.isIPAddress()){
                              _result=1;
                         }else{
                             int _intIndex=0;
                             int[] _int1=_ipComparator1.getIntValues();
                             int[] _int2=_ipComparator2.getIntValues();
                                      * compare IP adresses per bytes
                             while(_result==0 && _intIndex<4){
                                  if(_int1[_intIndex]>_int2[_intIndex]){
                                       _result=1;
                                  }else if(_int1[_intIndex]<_int2[_intIndex]){
                                       _result=-1;
                                  }else{}                            
                                             _intIndex++;
          }else{}   
          return _result;
         *  checks if the address field holds an IP or a hostname
         *  if (_isIP) fill intValues[] with IP bytes
         *  if (!isIP)  create hostnameCollationKey
        private boolean checkIP(){
           boolean _isIP=false;
           String[] _getInts=null;
            *  basic check for IP address pattern
            *  4 digits also allowed, cause leading
            *  0 stands for octet number ->
            *  0172=122                  ->
            *  0172.0172.0172.0172 = 122.122.122.122
           boolean _firstcheck=address.matches("[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}");
           if(_firstcheck){
                _getInts=address.split("\\.");           
                intValues=new int[4];
                for (int _count=0; _count<4; _count++){
                   try{                     
                       int _toIntValue;
                       if(_getInts[_count].startsWith("0")){
                                // if leading 0 parse as octet -> radix=8
                               _toIntValue=Integer.parseInt(_getInts[_count], 8);                          
                       }else{  
                                // parse as is -> radix=10 -> (optional)
                               _toIntValue=Integer.parseInt(_getInts[_count]);                          
                       if(_toIntValue<minIntValue||_toIntValue>maxIntValue){
                              // out of unsigned byte range -> no IP
                              return _isIP;
                       }else{
                              // inside byte range -> could be part of an IP
                              intValues[_count]=_toIntValue;
                   }catch(NumberFormatException e){
                           // not parseable -> no IP
                           return _isIP;
               // all 4 bytes/ints are parseable and in unsigned byte range -> this is an IP
                _isIP=true;
           }else{}      
           return _isIP;
        public boolean isIPAddress() {
                return isIPAddress;
        public int[] getIntValues() {
                return intValues;
        public CollationKey getHostnameCollationKey() {
                return hostnameCollationKey;
        public String getAddress()
            return address;
    }The page bean holds an array of ToCompare objects. It is the model for a new table component, hold by an ObjectArrayDataProvider. Here a code excerpt:
    public class Page1 extends AbstractPageBean
        private ToCompare[] toCompare= new ToCompare[]{
            new ToCompare("1.1.1.1"),
            new ToCompare("2.1.1.1"),
            new ToCompare("9.1.1.1"),
            new ToCompare("11.1.1.1"),
            new ToCompare("0172.0172.0172.0172"),
            new ToCompare("123.1.1.1"),
            new ToCompare("a"),
            new ToCompare("o"),
            new ToCompare("u"),
            new ToCompare("z"),
            new ToCompare("�"),      
            new ToCompare("�"),
            new ToCompare("�")        
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced
        private void _init() throws Exception
            objectArrayDataProvider1.setArray(toCompare);
        private TableRowGroup tableRowGroup1 = new TableRowGroup();   
        private ObjectArrayDataProvider objectArrayDataProvider1 = new ObjectArrayDataProvider();
    }The relevant .jsp section for the two column table looks like:
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{Page1.objectArrayDataProvider1}" sourceVar="currentRow">
      <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="SortIP" id="tableColumn1" sort="#{currentRow.value['hostComparator']}">
        <ui:staticText binding="#{Page1.staticText1}" id="staticText1" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
      <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="SortString" id="tableColumn2" sort="address">
        <ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['address']}"/>
      </ui:tableColumn>
    </ui:tableRowGroup>Sorting localized with Locale="DE_de" according to ip/hostcompare sorts:
    SortIP
    1.1.1.1
    2.1.1.1
    9.1.1.1
    11.1.1.1
    0172.0172.0172.0172
    123.1.1.1
    a

    o

    u

    zWhereas normal sort over String address whitout localization sorts:
    SortString
    0172.0172.0172.0172
    1.1.1.1
    11.1.1.1
    123.1.1.1
    2.1.1.1
    9.1.1.1
    a
    o
    u
    z


    �Not that short, but I hope it will help - if anyone has the need for another than the default sorting algorithms
    Best regards,
    Hate E. Lee

  • Can the AET be used to create a new Z table?.

    I understand that new user tables can be created/changed via EEWB, but, I keep reading that in CRM 7 we should now be using the AET tool. Can I create a new user table in AET, and if so, how?.
    I only know of one way to launch the AET via the WebUI, and that's via the screen configuration tool. Of course this method would only allow us to ammend an existing structure/table and not create a new one, hence my question.
    Anyone.
    Jason

    As far as I know EEWB never supported Z-tables except for those related to the SAP Business Partner.  It's always been next to impossible to use the EEWB to add Z-tables for the business transaction model.
    Jason can you please back your rant with some examples what the EEWB did with Z-tables that is not supported by the AET, for specific business object types.  EEWB was never used to create stand alone z-tables.  Also technically the EEWB was a big failure because it never supported currency and quantity type fields, so you could never automate your work.
    I'm just little concerned that if you don't clarify your statement about the EEWB you are going to confuse people who read this thread in the future.
    On another note the new tools available in EHP1 for enhancements are great and not hard to figure out.  They definitely fill some needed gaps.  Now just don't get me started about EHP1 not being in GA.
    Take care,
    Stephen

  • Why in SE16 we can not  see New Data Table for standard DSO

    Hi,
    We says that there is three tables (New Data Table, Active Data Table and Change Log Table) of Standard DSO, Then Why in SE16 we can not  see New Data Table of Standard DSO.
    Regards,
    Sushant

    Hi Sushant,
    It is possible to see the 3 DSO tables data in through SE16. May be you do not have authorization to see data through SE16.
    Sankar Kumar

  • DSO activation: Data in new data table but missing in active data table?

    we use an end routine in transformation to populate a data field in DSO.
    it works as we can see the value populated in new data table.
    when we activate (activation) DSO, we see the value is deleted from this data field.
    why?
    this data field is set as an characteristic info obj in the data field portion of the DSO.
    we are using 2004s, I forget to check the SP level.
    George

    good job ,thanks for the update and good luck.
    I saw it late on this, else i never miss OSS notes
    Chetan
    @CP..

  • Data not going from active data table to new data table -DSO activation iss

    Hi Experts,
    Data is going from DSO1 to DSO2. I see some of the records are getting missed in DSO 2 which are supposed to come.
    There is start routine from DSO1 TO DSO2 and as per the start routine some records should come but they are getting missed.
    Apart from that..to  DSO 2 there are 4 other DSO sending data.
    I tried to send single record and saw that data is going

    Hi Experts,
    Data is going from DSO1 to DSO2. I see some of the records are getting missed in DSO 2 which are supposed to come.
    There is start routine from DSO1 TO DSO2 and as per the start routine some records should come but they are getting missed.
    Apart from that..to  DSO 2 there are 4 other DSO sending data.
    I tried to send single record and saw that data is going to New data table and upon activation it does not go to Active data table.
    Please suggest.
    Regards
    Sudha

  • Sales Order Unable to Use New Condition Tables for Tax Condition Type

    Dear All,
    I am currently working on SAP R/3 4.0. I have a new requirement for my tax where I need to create new condition tables other than the 4 standard SAP tables which are Customer/Material, Division/Customer, Departure Country/Destination Country, Domestic Taxes and Export Taxes. My new tables consists of Departure Country/Destination Country/Shipping Point/Tax Code. The requirement is that the tax code is based on the chosen destination country and shipping point. The problem I am facing now is that no matter what types of table I create or even I generate with reference to the standard table, the access sequence will only refer to the 4 standard SAP tables above. Even if I put my own table in the highest priority for the access sequence, the same thing happens. My sales order will only pick up date from the standard table.
    I wonder if anyone encountered the same problem as me.
    Kindly advise.
    Thank you.
    Regards,
    Yvonne

    Hi
    Yvonne
    I suggest fist check a simple thing ,whether u have successfully determined shipping point for each line item ,it is possible that just adding a line item will not trigger shipping point determination . So after u update the shipping point on line level u can rerun pricing and check agian if u r getting it .
    Secondly for tax purposes I suggest   Try to have Customer and material tax classification approach  this allows to u have long term flexibiliy and also reduces your maintenance activity . As if u change or add number of shipping points and business changes using the sequence of shipping point ,the logic of just using shipping point will not work.
    In Tax classification u cna add new condition table for each new tax category and use it in different access sequences.
    This information can be passed on to FI using Different Tax code for Different combination.
    I hope this helps
    Regards
    Mandar

  • New Condition TAble for Inbound Delivery

    Hello
    i want to maintain a new Condition table for the Inbound delivery picking with the combination of _Delivery type/Plant
    so that the Inbound created for the particular plant alone uses the particular output type.
    Where in IMG can i configure the new Condition table for this combination for the Inbound delivery ?

    Hi,
    Go to SPRO > Logistics Execution > Shipping > Basic Shipping Functions > Output Control > Output Determination > Maintain Output Determination for Inbound Deliveries > Here perform following;
    - Define Condition Table for Inbound Delivery
    - Define Output Types for Inbound Delivery
    - Define Access Sequence for Inbound Delivery
    - Maintain Output Determination Procedure
    - Assign Output Determination Procedures

  • Creating  A new Pricing table

    hi everyone
    i need to create  a new price table for ZS83 based on
    PM_COLOUR. This new table needs to allow me to set
    different special
    colour pricing for Coca Cola Canada customer for the
    different sizes this customer purchases: 813 (TBA), 466 (TBA), 465
    (TWA)
    waiting for the reply
    thank you
    praveen
    praveen

    Praveen,
    I don't think this is the right forum where you can get an answer on the pricing procdures.
    This forum is for ESA.
    Regards
    Ravi

  • Access key needed when creating a new database table with SE11

    Hi,
    I'm using SAP Testdrive (evaluation) on linux in order to learn a bit about ABAP programming. I want to create a new database table in the  dictionary to be used in my programs. I proceed in the following way:
    1) I run the SE11 transaction
    2) At the first entry I write the name of the table to be created (in the Database Table field)
    3) I click on the create button.
    But then the system asks me an Access Key to register, where can I get this?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    Ok I found the answer to my question in another thread
    Developer Key
    Make sure that your program names starts with "Z" or "Y", otherwise the system will ask you to register the object because it thinks you are creating/changing in the SAP namespace.
    In fact this was my error, my table name didn't start with neither "Z" nor "Y".
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on Nov 13, 2010 12:34 PM

  • Changed DataSource in R/3-- New PSA Table in BI ?????

    Hello Experts,
    I have one question. When someone change a DataSource in R/3 System, what happens it for the DataSource
    in BI at this time.
    An Error ? (TimeStamp)
    Or new PSA Table ???
    Thank you for your Answer..

    Dear Baris,
    Until and unless you replicate the Data Source in BW System there will no effect.
    Once you replicate the meta data and reactivate the D.S the a new PSA Table is generated.
    Hope this Helps....
    Dev

  • New Condition Table not working in Sales order

    Dear All,
    I am facing problem in pricing procedure. I have created new condition table(LIFNR & ROUTE), included Vendor(Fwd Agent) and Route in condition table with sales area. I have added that condition table in access sequence and assigned access sequence to condition type. Then Condition type added into pricing procedure and assigned pricing procedure to document type.
    In sales order I've added route and fwd agent but while checking in analysis system does not determine route and fwd agent.
    Thanks and Regards,
    Kaushal

    hi,
    i have a query to ask why you need LIFNR in condition table creation.
    where in sales order it will trigger automatically.
    please check the config settings for route determiantion automatically.
    so that if route comes automatically into the sales order then from where you will trigger LIFNR.
    please clarify.
    regards,
    balajia.

  • Cannot use new fill pattern scripts for Photoshop CC 2014.2

    I have installed Photoshop CC 2014.2 (2014.2.0 Release), but am unable to get the new Fill pattern scripts to work or even show up in the UI. Namely, I am referring to the Flame, Picture Frame, and Tree scripted patterns described here: https://www.adobe.com/technology/projects/DecoScriptedPatternsInPhotoshop.html
    This is what my Fill dialog looks like:
    I have confirmed that the corresponding presets exist in the Photoshop CC 2014 > Presets > Deco folder:
    I have tried resetting Photoshop's preferences; and while everything was reset, the missing presets still failed to appear.

    If you are talking about CC 2014 and not CC, have you updated to
    Adobe Photoshop Version: 2014.2.1 20141014.r.257 2014/10/14:23:59:59 CL 987299  x64?
    (First line of File > System Info)
    Gene

Maybe you are looking for

  • XML with BSP

    Hello, I have created a xml file "data.xml" with a string page attribut "xml" and the following page layout. <?xml version='1.0' encoding='iso-8859-1'?> <%@page language="abap"%> <%=xml%> in the event handler "On Request" I set the xml variable with

  • Is it possible to get the ip address of the person who logged in a site

    I need to get the IP address of the person who is browsing, i have tried request.getRemoteAddr() which is giving a firewall ip address but not his local system ip. what is the way to find out the ipaddress? should i use any applets or javascript?

  • Issue sound on the Pavilion dv 1720us

    Is been approx. a week  than I do not have the same good sound on my laptop.The only sound that I hear right know is from below ( HP triple bass subwoofer),  Also the touch control of the sound is still red and does not came when I touch it blue like

  • Trouble with itunes playlist and iphoto slideshow

    Hello, I have created the slideshow in iphoto with background music from a playlist from itunes. It all looks great and plays perfectly in iphoto but after the conversion into a movie using Quicktime only the first song from the playlist accompanies

  • Reaching the java file outside the package?

    Hi how can i reach the java(or class) files outside the packge(i mean one top folder) For example i have a java file in a folder named tech and i want to reach a java file in the folder named support which is under tech folder is something like that