Problem in at new field.

hi experts,
              i have an itab which has
materialno and qty.
i need the highest qty in each material .so what shall i do now.
ragrds
mani

hi
try this out
data: itab1 type itab.
sort itab by matnr qty.
loop at itab wa_itab.
at new matnr.
append wa_itab into itab1.
endat.
endloop.
regards
vijay
reward points if helpfull

Similar Messages

  • Problem in creating new field using AET

    Hi ,
    We are facing a problem while creating a new field using AET.
    [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0190611650DB01471683520393954021End?blog=/pub/wlg/12716]
    Im following this blog while creating the new field using AET.
    After filling all the field details and trying to create a Transport request its going for a runtime error.
    The error is happening in class  CL_CRM_GENIL_AXT_API
    method get_editable_properties.
      data lr_field_ext type ref to cl_genil_field_extension.
      field-symbols <axt_field_extension> type gtype_field_extension.
      data lr_fieldext_ref type ref to if_axt_field_ext_access.
      read table axt_field_extension_tab assigning <axt_field_extension> with key ext_bo       = is_key-ext_bo
                                                                              ext_bo_part  = is_key-ext_bo_part
                                                                              extension_id = is_key-extension_id.
      lr_field_ext = <axt_field_extension>-axt_extension.
      if sy-subrc = 0.
    While Debugging we can see that the table axt_field_extension_tab  is having zero values during the last execution.
    But the Zfield is getting generated and the status is in green.
    Any suggestions will be highly appreciated.
    Regards,
    Sijo.
    Edited by: sijokjohn85 on Sep 9, 2009 1:00 PM
    Edited by: sijokjohn85 on Sep 10, 2009 12:49 PM

    Hi,
    you posted the same question again in a later post.
    Here is my answer:
    Hi,
    the reason that AET does not work is because there is/are missing entries in one of DB table.
    Namely the enhance BO assignment to the UI Object Type.
    Could you please tell me, what is the UI Object Type in you current IC application.
    In order to figure this out, you can put mouse cursor in one of the field in the UI and then press F2.
    Then you can go to SM30 in SAP GUI open the View BSPDLCV_OBJ_TYPE and search for the UI object type.
    Select the UI object type and see whether any enhanced BO is defined.
    In your case it should be empty, otherwise you can use AET in IC.
    And if it is empty we need to figure out which enhanced BO is relevant for the given UI Object Type.
    Regards,
    Steve
    P.S. But still you can raise a CSN message.
    The "Create New Field" should be in active mode.

  • Problem with adding new field to the mass change screen in FBL5N

    Hi,
    We have a problem with adding the field XREF3 to the mass change screen. We followed steps described in the SAP Note 640908, but the result is that when we try to mass change some documents in FBL5N and enter some values in the mass change screen, a message appears: "Please enter at least one new value" and nothing is changed.
    If you have faced with such a problem, we would be grateful if you give us some tips.
    Regards,
    Miłosz Włodarczyk

    The problem has been resolved: we didn't activate a code in SE80.

  • Problem adding a new field to existing BPS planning layout

    Hi
    I am new to BPS and planning
    I have a requirement to add a new field which has values maintained as 0 and 1 to an existing planning cube.The user wants this new field in the existing planning layout where in he can enter the values for this field as 0 or 1.I have created a new field and maintained values for this field as 0 and 1.I have added this field to the existing planning area and have created variable with fixed value with range 0 to1.I have added the same in selections in existing planning level and package as well along with other existing selection conditions.
    In additional functions of adhoc package they have made setting as set to all possible char combination.
    In this planning area all the selections are locked in planning level and package.
    Now when i execute the planning layout to enter data,my new field is grayed out,it does not allow me to enter the values.need help  with this as to how can i make this field input enabled.This is an independent characteristic.
    Thanks
    Panchan

    Hi,
    Yu need to delete the data to fill the new field again.
    Assign points if it helps
    Regards,
    Srinivas

  • Problem creating a new field

    Hi,
    Im trying to create a new field "identification type" in a view. This field is existing as a attribute of "BuilIdNumber" object. Im able to add this as context node. But when i include this field in view, and launch webclient, this field is disabled, Can ne one help me on this. I have used the wizard for creating a context node.
    Can ne one plz tell all the steps in detail that are to be carried to  create a new context node and add attributes to this context node and make these attributes available in view.
    Thanks in advance,
    chandan

    Hi Sudipta,
    Thanks for your reply. I was able to make it enabled in webclient. My mistake was that when creating a context node thru wizard, we need to select the option " Always create an instance", which i was missing out.
    By the way, can you plz explain what is"lock on BuilIDNumber node". I have no idea regarding this.
    Now i have added two new attributes to a view. But now webclient is responding differently. I have added two new fields in "CreatePerson" view. After save it shud go to "DetailAccount" view, but after adding two new fields it is going to "SearchAccount" view. Any inputs regarding this??
    Regards,
    chandan

  • Problem in add new fields in xk01

    i want to add new customer field in xk01,xk02,xk03, i have append new structure in lfa1.
    i am using badi  VENDOR_ADD_DATA & VENDOR_ADD_DATA_CS .
    when i saved new additional fields using xk02 ,no  additional fields values is coming in lfa1 structure .
    pls help how we save these addtional zfields.

    Well for a start, i can't imagine that this line functions too well for you..
    String query = "INSERT INTO U UPDATE UserInfo SET Password = '"+
    passwd2 +"' WHERE UserID='" + userid +"' AND Password='"+ passwd1 +"'";But in any case, what are the errors... what Exception is being thrown. Is it a SQLException? If so, what's the error message being displayed. Where in the code is the problem. Anyone trying to help you is really going to need to know most of this stuff before we can figure anything out.

  • I have added a new field in IT0006 ,Now when try to create a new record for

    Hi Experts,
    I have added a new field in IT0006 ,Now when try to create a new record for a employee.
    1,If I give the SUBTY in the PA30 screen getting an error "Don't Specify a subty error"
    if and remove the subty and press CREATE button popup's comes and list the subty values.......It was allowing me to enter the subty in the PA30 screen prior to my new field addition in IT0006... is't a problem with the new field addition?
    2, After I choose the subty value from the pop-up I am able to see the next screen....BUT GETTING AN INFORMATION MESSAGE THAT "Assignment to feature P0006 did not take place"?
    3,, In the next screen after I have passed all mandatory fields while attempting SAVE I am getting an error called " Time constraint table in T777D is incorrect" what could be the cause?

    How are u adding fields to table using append in se11 or pm01.
    if you are adding fields using se11 delete it and add it0005 in transaction pm01 and generate object.
    add fields to structure CI_XX_R0005 and generate screen and maintain entry and screen in maintance view add entry and activate program.

  • Errors in New Field Creation via AET

    HI All,
    I am facing a problem while creating new fields in the Campaign UI via AET. We are using CRM 7.0 system.
    I am creating this field in the Campaign Header (MKTPL_CPG).
    When I am creating a field and clicking on the 'Save and Generate' button I am getting following two error messages:
    1. Error Code: E064(AXT_MODEL): Error in Registry.
    2. Error Code: E404(R8): DataSource 0CRM_MKTELM5_ATTR doen not exist in version A.
    Any Idea what these messages relate to and how to rectify these.
    Regards
    Dave
    Edited by: Dave on Apr 8, 2011 10:45 AM

    HI Vishal,
    Thanks for the reply, I have gone through the post, but i am afraid i am getting a different kind of error. In the post, I believe major problem is "Unknown Dynpro".
    any way, I tried the AXTSHOW and AXT_EXT_GENERATE but no luck.
    My major problem is "DataSource 0CRM_MKTELM5_ATTR does not exist in version A". I am not able to understand it. What I came to know is that this is some how related to BI. I checked into the Table SMOXHEAD but in vain.
    One more point, since this field needs to be available in BI reporting, I have selected the Check Box for the same while creating this field in the UI.
    Any other Ideas to work with?
    Regards
    Dave

  • Add new field into Standard Adobe Form

    Hi Expert,
    I'm trying to do a very simple thing (at least that is what i think), we want to have new scenario for PCR (personnel change request). So i copy the standard interface and form (ISR_FORM_SPEG)  and add some new field in that form (trough Tcode SFP). The problem is the new field that i added is not showing up any value, i tried to add address or personnel area to the form. What do i miss here? I'm relatively new to this adobe form. Thanks
    Regards
    Hendri

    Hi,
    Because I'm new at this i will assume that this problem is just as a matter of binding problem. I've copy the form and interface  ISR_form_SPEG to Z.
    In interface(TCode SFP)  Z_ISR_IF_SPEG there is enty in import like this
    position | Type | QISR_TAB_type|   |    |
    In the Z_ISR_FORM_SPEG i drag the interface Position (from import folder) into the context on the right side of screen, in Layout tab i create ISR Text Display, and drag the position into the text display (which i believe is the binding processes). Activate it and save. But no value is displayed when running the iview on the portal (personnel change request), the form show and all label are show too but the value is not showing. Thanks

  • Problems with new fields added for tc MASS for material master data.

    Hello to all.
    We created new fields in MARA table and added to the process of the tc MASS. We made the following steps and it almost works correctly:
    1-Add new fields to the object ZBUS1001, copy of bus BUS1001.
    2-Add new fields to table T130F
    3-Add new field to structure E1MARAM.
    4-Add new fields to structure CL_MMH1.
    5-Add new fields to structure MARA_TMP.
    6-Created a function module to control that the new fields not filled in MASS have a "/" value.
    If we run the mass for our objetct ZBUS1001 and put a new value or modify the value of new fields, the tc MASS works correctly.If we want to delete a value leaving the value empty,click to the carry out a mass change button and save the change, the system don´t delete the value and keep the first value.
    Do you know what the problem is , and what step we didn´t make it.
    Thanks in advance.
    Edited by: tonnetti pablo on Feb 6, 2008 7:45 PM

    Hi,
    Check ZTERMDT is checked under Attribute list as below.
    Hope it helps..
    regards,
    Raju

  • Giving problem after I included the new field to MCHB table.

    Hi Friends,
    I added one new field called ZZINQNUM to the MCHB table.For this field I created one new data element called ZVBELN_INQUIRY and attached domain VBELN.
    Activated and adjusted  the table.
    Now what the problem is
    I went to SE11 -> Display - > Selected the contents -> In selection screen, I double clicked the ZZINQNUM select-option and selected the equal to space option. For this I am expecting all the records from the table,because in the field ZZINQNUM is empty. But result is zero entries.
    Can any one help me out in this. Thanks in advance.
    Thanks
    Srinu

    Hello Srinivasa
    Two years ago I had the very same problem when I added a new field to an already existing and filled customer table. I debugged the maintenance view and saw that the new field contained an undefined value but not the initial value.
    You could try and use the DB utility (<b>SE14</b>) and activate the table again (of course without deleting the table entries).
    Alternatively, you could write a simple ABAP to initialize the field value, e.g.:
    DATA:
      gs_mchb   TYPE mchb,
      gt_mchb    TYPE STANDARD TABLE OF mchb.
      SELECT * INTO TABLE gt_mchb.
      gs_mchb-zvbeln_inquiry = ' '. " space
      MODIFY gt_mchb FROM gs_mchb
        TRANSPORTING zvbeln_inquiry
        WHERE ( zvbeln_inquiry ne ' ' ).
      UPDATE mchb FROM TABLE gt_mchb.
    Regards
      Uwe

  • Problem adding new field to free goods Determination

    Hi everyone. We need to add a new field for Free Goods determination. According to the documentation in SPRO, the new field should be added in SE11 KOMK under include KOMKZ for free goods.
    However there is no KOMKZ include in KOMK. How is this supposed to work? We have succesfully added fields for pricing,using KOMKAZ but... I cant find KOMKZ, the is a error in SPRO documentation or what Im doing wrong?
    "New fields for free goods determination are added in the following INCLUDES:
    Header data in KOMKZ (INCLUDE in KOMK, KOMG)
    Item data in KOMPZ (INCLUDE in KOMP, KOMG)"
    Someone could tell me how u do it to add a field for Free Good determination ?
    Thanks!

    It seems to ve a Typo Is not KOMKZ  I used KOMPAZ include and worked fine after checking the customozing.

  • LSMW - Problem with copied and edited Project - missing new field

    I have copied an LSMW project to a new Project to load a Journal Entry to FI - Transaction Code FB01.  I added a new field VALUT (value date) to both the Maintain Source Fields and Maintain Field Mapping Steps.  The data with the new field shows up in Display Read Data, but it does not show up in Display Converted Data.  This new field is the last field in the csv file, i added it to the end of the Source fields.
    I think perhaps i need to create a new Batch Input Session, because when i run the Start Direct Input Program, one of the messages that comes up refers back to the original project name - not my renamed Project. --> "Session Name OLD PROJECT NAME was opened"
    (The steps available on my screen do not include a "Create Batch Input Session" step, as some of the posted answers show)
    Thank you for your help.

    Hi Sandra, Thank you for your reply.  I am not sure what you mean by restart.  if you mean go through all the steps- yes, i went through all the steps again. I also exited out of the LSMW screen completely and went back in to my project and redid the read and convert data again, just to be sure, but i am still missing the new field in display converted data. 
    The only change i made to the Project was to change the name of the Project, subproject, and object and to add a field to the Source Fields and Field Mapping - for field mapping i used the default rule of Transfer(move)and my source and code seems to be correct - in that i followed the example of all the other fields.  i also changed the name of the file where my new csv file was located, but i did not change the names of the read and converted data files. Perhaps i need to change something else? It seems to me that it is still using the instructions from the old project to convert the data.  Thanks again.

  • Populating marketing attribute of bp in new field created by eew in crm

    Hi all,
        I have created new field in transaction types(lead opp, quotation and order) through eew.
        how do i populate a value of a marketing attribute that i have maintained for a business partner(TABLE for marketing attribute:- AUSP) in the new fields created in all the transaction types.
        Can anyone help me in how to achieve this as it is an high priority issue for me?
        I have tried doing by writing a code in pbo of the screen in which fields are created but it gives me a dump at item level if item is maintained otherwise it works but item is compulsary.
    Regards,
    Rahul

    Hi Rahul,
    Check the BADI 'CRM_CUSTOMER_H_BADI'
    Implement the method 'CRM_CUSTOMER_H_MERGE'
    First of all select the data from the table.
    Fill in the appropriate corresponding field in the structure 'CS_CUSTOMER_H_BADI',of the method, with the data extacted. Finally(very important), In the table 'IT_INPUT_FIELD_NAMES', of the method, append a line with the field FIELDNAME containing the name of the field in the Customer_h structure and field CHANGEABLE containing space.
    I think this should solve your problem.

  • How to map new field in DSO

    I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.

    Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
    Edited by: Daniel on Nov 28, 2011 9:59 AM

Maybe you are looking for

  • How to perform LOV auto completion

    Hi, I want to be able to leave the LOV text box empty and press tab to the LOV flashlight and the all the values corresponding to the LOV should appear automatically. I have set Disable Validation --> False and Selective Search Criteria --> False. So

  • How to run webi report automatically with the current date/system date in webi report

    Hi Friends, I have a webi report which has a date prompt now. Based on the selection that user makes while running a report, he will get the related data for that particular date selection. Now I want to make that date prompt automated that is the re

  • Time Stamp Calculation

    Hi, I am using Oracle Database version 11.2.1 and would like to calculate the time difference in minutes between start_date, start_time and end_date, end_time. The date is stored in a seperate column to the time. Also the time is stored as a number.

  • IPhone 4S and iOS 6 - Problem with downloading podcasts from iTunes

    Along with all the other issues (Wi-Fi, Maps, etc) I have now found a new problem for my iPhone.  I am unable to transfer any files (Podcasts, Music, Movies, etc) or sync with iTunes.  I am using the most current version of iTunes (10.7), and have re

  • Lost thumbnails

    I updated my iPhoto from iLife 09 yesterday. Part way through installation, it was interrupted due to a lack of disk space. After freeing up some space, it installed sucessfully. During the install, it asked if I wanted to merge photos it had found o