Filtering of field.

hi all,
In a report .I am able to display serial no's. for certain records.
When i filter according to one field .I am not able to display. serial no's in  order.
for ex.
1                            91000001
2                            91000001  
3                            90000001
4                            90000002
5                            90000002
when i filter for no. 90000002   serial no. showing from 4.
how do i get serial no's from 1 when i filter.
4                            90000002
5                            90000002

Hi,
In your code define a numeric field called Serial Number which will be of type integer. Now you can loop the table and can search for the number 90000002 in a loop using the where clause. So when you will get the value you will keep on increasing the serial number. Now create an internal table to store the serial number and the value '9000002'.
Example code :
DATA : begin of itab occurs 0 with header line,
                 serial_no type i,
                 value      type char10,
             end of itab.
Loop at itab where number = '90000002'.
itab-serial_no = itab-serial_no + 1.
itab-value = '9000002'.
append itab.
endloop.
You can now use the ITAB Internal Table to display it.
This logic is easy. You can put your own program logic inside the code if required.
Hope this will help.
Thanks,
Samantak.

Similar Messages

  • Get filtered lookup field in sharepoint 2013

    Hi, 
    I have LIST1 
     Title            User
    Title1           Spservices
    Title2            Spservices
    Title3           Spuser
    here User column is people/group
     LIST 2
    how can i get Titles from LIST1 where User= Spservices ([Me]) for TitleLIST1 column in LIST2
    Example:
    Title TitleLIST1
    1        Title1 
              Title2
    Here TitleLIST1 is dropdown (Lookup)
    Thanks in advance

    You could consider using a calculated column on the source list that has your filtering built into it. Then look up into this on your target list.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Formula to filtering one field with another

    Post Author: MWinn
    CA Forum: Formula
    I need to pull information from fields based on the contents of another field. For example, I want to use the SBCODE.SCDDS2 field in one location in the report, but it will only return the correct information if SBCODE.SCDTYP field = "PR". In another location on the report I want to use the SBCODE.SCDTNM field, but it will only return the correct information if the SBCODE.SCDTYP field = "TE". Is there a formula I can use to accomplish this?
    Thanks,
    Michael D. Winn

    Post Author: MWinn
    CA Forum: Formula
    Thank You for your input, I just returned from vacation and saw your solution, unfortunately I had already tried that formula and although it does return the correct Problem Codes it also returnes 'WD" (work done) codes with the same numbers. So I end up with a report that has 2 or 3 of the same ticket numbers but different Problem Descriptions (because the formula returns WD codes as well). For some reason this formula does not limit itself to just the "PR" code.

  • Field Segregation using JavaScripts : (Filtering particular field types)

    Hi,
         I've used large no of Dropdown ListBoxes (with same set of list items) in my document. Now I need to segregate the field (Dropdown ListBox) names based on selected option.
    Help me with a javascript to filter all the Fields of Type: DropdownList.
    Example: Consider all Dropdown ListBoxes has the below options:
                                                                  i) Pen
                                                                  ii)Pencil
                                                                  iii)Paper
          (list of DropdownListboxes carrying 1st option "Pen")
                       DropdownList1, DropdownList3, DropdownList4, DropdownList15.........
          (list of DropdownListboxes carrying 2nd option "Pencil")
                        DropdownList2, DropdownList5, DropdownList8, DropdownList9.........
         (list of DropdownListboxes carrying 3rd option "Paper")
                         DropdownList6, DropdownList7, DropdownList10, DropdownList11.........
    Please suggest me with exact solution(javascript).
    Thanks.

    To differentiate between select lists, give each one a unique ID.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <form action="path/form-processing-script.php" method="get">
    <select id="myselectlist1">
    <option value="0">--Select one--</option>
    <option value="1">Pen</option>
    <option value="2">Pencil</option>
    <option value="3">Paper</option>
    </select>
    <select id="myselectlist2">
    <option value="0">--Select one--</option>
    <option value="1">Pen</option>
    <option value="2">Pencil</option>
    <option value="3">Paper</option>
    </select>
    <select id="myselectlist3">
    <option value="0">--Select one--</option>
    <option value="1">Pen</option>
    <option value="2">Pencil</option>
    <option value="3">Paper</option>
    </select>
    <p><input type="submit" name="submit" value="Submit"></p>
    </form>
    </body>
    </html>
    Nancy O.

  • Filtering out field which include 2 underscores

    I was wondering if anyone has an example of code which you can exclude data which includes 2 underscores next to each other.
    Here is my query which doesn't work:
    SELECT i.interface_id,
    i.interface_name,
    s.site_id,
    s.site_name,
    s.database_server_id
    FROM interfaces i,
    sites s,
    companies c
    WHERE i.site_id = s.site_id
    AND s.company_id = c.company_id
    AND c.company_id = :company_id
    AND s.site_name NOT LIKE '%__%';
    I was thinking of using the CHR() function in the where clause but can find no example of this being done.
    Any help would be appreciated.
    Thanks
    ReedK

    Hi Reed,
    you can specify an escape character (preferably one that doesn't exist in your site_names).
    SELECT i.interface_id,
           i.interface_name,
           s.site_id,
           s.site_name,
           s.database_server_id
    FROM   interfaces i,
           sites s,
           companies c
    WHERE  i.site_id = s.site_id
    AND    s.company_id = c.company_id
    AND    c.company_id = :company_id
    AND    s.site_name NOT LIKE '%\_\_%' escape '\';Jens

  • To modify a field in a database table based record identification by primar

    hi
    i want to to modify a field in a database table based record identification by primary key filed and two more fields
    ie customer (primary key
    i want to modify record from intenal table the record existing with primary key field customer
    the status field needs to be mofied as " value rolled"
    the below code is happening
    loop at it_record into wa_Record
    wa_inv-customer (primary key) = wa_Record=custome
    wa_inv-date = wa_Record-date
    ...so one
    append wa_inv to it_invest
    clear wa_inv
    endloop.
    if not it_invest  is initial
    modify TABle1 ( this table is data base table which needs to be mofified) based on the primary key field
    and also date field and status field which is not primary key.
    regards
    arora

    Hi there.
    Your requirement is to update a Z Database table from your internal table, right? You have several options:
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable
         SET date = wa_inv-date
       WHERE prim_key = wa_inv-prim_key
         AND any_field = wa_inv-any_field.
    ENDLOOP.
    or
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
    ENDLOOP.
    In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
    Regards.
    Valter Oliveira.

  • Custom field html displays as text

    I am converting a custom field from a SharePoint 2007 version to SharePoint 2013. The field works correctly in SP2007. In SP2013 it has the correct information but displays as text instead of html. I have set the "disable-output-escaping" in the
    xsl to "yes" but it does not help. Here the xml and xsl data for the field.
    <?xml version="1.0" encoding="utf-8" ?>
    <FieldTypes>
      <FieldType>
        <Field Name="TypeName">PriorityIndicator2</Field>
        <Field Name="ParentType">Text</Field>
        <Field Name="TypeDisplayName">Priority Indicator</Field>
        <Field Name="TypeShortDescription">Priority Indicator</Field>
        <Field Name="UserCreatable">TRUE</Field>
        <Field Name="Sortable">TRUE</Field>
        <Field Name="AllowBaseTypeRendering">TRUE</Field>
        <Field Name="Filterable">TRUE</Field>
        <Field Name="FieldTypeClass">Company.WebParts.PriorityIndicator2, $SharePoint.Project.AssemblyFullName$</Field>
        <Field Name="FieldEditorUserControl">/_controltemplates/15/PriorityIndicator2FieldEditor.ascx</Field>
        <Field Name="CAMLRendering">TRUE</Field> 
        <RenderPattern Name="DisplayPattern">
     <Column HTMLEncode="FALSE" />
        </RenderPattern>   
      </FieldType>
    </FieldTypes>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                    version="1.0"
                    exclude-result-prefixes="xsl msxsl ddwrt"
                    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                    xmlns:ddwrt2="urn:frontpage:internal">
      <xsl:template match="FieldRef[@Name = 'PriorityIndicator2]" mode="Text_body">
        <xsl:param name="thisNode" select="." />
        <span style="background-color:lightgreen;font-weight:bold">
          <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes" />
        </span>
      </xsl:template >
    </xsl:stylesheet>
    Any help would be greatly appreciated.
    Luis R. Lebron

    Hi,
    According to your post, my understanding is that the custom field not render html well.
    As you have known, we can use the “disable-output-escaping” to render the html, however, it not works in your environment.
    As a workaround, we can use JQuery to render the html, I have made a simple code snippets to achieve this scenario, you can refer to it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    var theTDs = $("td[id='SPFieldCustom']");
    //console.log(theTDs.html());
    TDContent = theTDs.text();
    //console.log(TDContent);
    theTDs.html(TDContent);
    </script>
    Note: You should change the id to fit your environment.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Set Filter Criteria Fields for ALV

    Hi everyone!
    Is there a way in ALV that you can set the filtering criteria fields for your ALV report, but not the field values itself?
    To be more clear (I hope), When you run the ALV report, it initially shows you the entire report, but when you click on the FILTER button, there are already pre-selected fields for the filter criteria.
    Thanks a lot.. points for any useful answer.

    Hi,
    Yes you can do with Layout button in the application tool bar.
    First filter out the columns and save it with name.
    Everytime you execute the program,click the layout button and select the layout variant .
    regards,
    Maha

  • Custom fields at checklist item to be displayed based on the checklist type

    Hello,
    We have developed custom fields at the checklist item level. Now we want these fields to be displayed on the basis of the checklist type. 
    We have explored the notes 931274 and 942672 and based on these we have created the new condition Z001. Following these notes, we have created the schema Z_EVAL_CONDS_Z001 in SE38. However, we are not able to set breakpoints in the schema and / or debug the same. Hence, we are unable to write the required logic for filtering the fields based on checklist type.
    Any help in this area will be appreciated.
    Regards,
    Abraham.

    Hi Abraham,
    You can find the generated method in class: /1CPR/CL_XXX_YYY_ITO, where:
      - XXX is your client number.
      - YYY the name of yout field control.
    Method: EVALUATE_CONDITION_Z001
    Here, you should be able to set a break-point for debugging.
    BR
    Matthias

  • Smart Filters

    After I convert a file as smart object, I have no access to the filters : Blur / Field Blur, Iris Blur and Tilt-Shift. How can I access them? Thanks

    Hi,
    What operating system and do you have the cloud version or perpetual license version of photoshop cs6?
    If you have the cloud version, that was added in one of the available updates and possibly on 13.04 version for macs.

  • Filters at filed level in BD64?

    I am trying to create filters on field level.But i didnt see any 'create filters' button in BD64 tcode in ECC6 verion.
    Any body plzz suggest me y is it so?
    or is there any other way of creating filters on field level?

    Hi,
    You can use the filter criteria even in ECC 6.0 as in previous versions.
    In BD64 please when you open all the nodes of the MODEL, you will see no filter set. Double click on it and it will take you to the screen to create the filter.
    YOu can create some filter criterias for only some restricted fields.
    Anyways whats the message type u r using
    Hope this would help.
    Shreekant

  • CIC0 to modify a field

    Hello all,
    I would like to know how can I change the state of  fields  in the Customer profile subscreen at the CIC0 transaction in orden to make it mandatory.
    Thank you.

    Hi there.
    Your requirement is to update a Z Database table from your internal table, right? You have several options:
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable
         SET date = wa_inv-date
       WHERE prim_key = wa_inv-prim_key
         AND any_field = wa_inv-any_field.
    ENDLOOP.
    or
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
    ENDLOOP.
    In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
    Regards.
    Valter Oliveira.

  • Display Totally paid items(cleared items), partial payments and residual pa

    Hi Experts,
    I am working on one requirement,
    Requirement: Display Totally paid items(cleared items), partial payments and residual payments.
    I am fetching data from BSAD table for Totally paid items, but I want to understand what are the fields to check when fetching data.
    Partial payments: Please let me know the logic to get data for partial payments from BSID table.
    Residual payments: what are the tables to check for residual payments and the logic.
    What are the fields that i have check and what are the fields that I have to check and get.?
    Please let me know what ever you know about this.
    Regards,
    Dileep,

    Hi,
    All types of Payments  either Totally paid items(cleared items) or  partial payments and residual payments the Document Number serious will b same.   Try to  extract by  Filtering Assignment Field .
    Thanks
    Goutam

  • Feature Request - better croping, focus patterns,focal length selections?

    Tool specific Keyboard shortcuts:  It would be helpful to have popup clues about keyboard shortcuts.  For example, when using the crop tool,  it is not obvious that typing an "X" will change the crop tool from a portrait to landscape mode or repeatedly pressing "O" will cycle through a number of grids.  (Thank you Matt!)
    Crop at other than "Fit" setting:  Other crop tool request - allow crop to work on image at settings other than "fit"  I may be able to get a more accurate crop at 1:2, etc.  Otherwise I have to crop an image roughly, make a virtual copy and then crop again.  Is there a better way to do this?
    Show Focus Points on request:  If you shoot wildlife with a long lens, a slight error in focus can ruin the shot.  I review my bad shots to determine patterns of error in focusing.  It would be helpful to see the focus points that were used in Lightroom, (e.g. killer whales move differently than an egret....)  I assume this is stored in the metadata.  I'd love to be able to do this in Lightroom.
    Add Focal Length to filterable metadata fields:  It would help to be able to see the various focal lengths used during a shoot, just like you can look at apertures (i.e.  select folder for shoot, turn on filters, select aperture in the metadata and wallah!  you can see the distribution of apertures used during a shoot.)  This reminds you to mix it up and/or helps with lens selection.  Is there a way to do this now? 
    My apologies if these features are available and I just haven't found them yet.
    -TAB, a lightroom fan
    P.S. Thank you for the wonderful new features.  I can't wait to convert my existing catalogs.  I love the new import dialog.  Now I can organize my backup copy in a logical fashion.  When I'm in the field on a multi-day shoot, I don't want to risk reorganizing the backup.  Now I don't need to.  Enough has been said about noise reduction and better rendition.  Thank you!!!

    There is a corresponding idea at the feedback forum: http://feedback.photoshop.com/photoshop_family/topics/add_image_direction_in_map_module
    Anyone who wants this feature should also vote over there...
    BTW: +1
    Edit: P.S. I think it is generally a better idea to post feature wishes in the feedback forum (or comment on existing ones there) because it's regularly monitored by Adobe employees, while that is not necessarily the case for the user-to-user-forum here.

  • How to localize a custom FieldType in SharePoint 2013?

    I'm trying to localize a custom FieldType that has been a functional part of our SharePoint deployment for some time.  I've localized the field's configuration ASCX and backend code, but the portion of it which is installed via the fldtypes_*.xml files
    eludes me.  There are some distantly related examples here that don't seem to apply, and one or two that are bang on - but which unfortunately link to no longer existent pages.  Can anyone spot what I'm doing wrong in the fldtype_*.xml file following
    (or in other places perhaps)?  Other portions of the UI are successfully localized using the same ApplicationResources resource file, however when I view the configuration of a list with one of these fields, its type is displayed as "$Resources:ApplicationResources,ResourceField_Name;"
    instead of the localized value.
    <FieldTypes>
    <FieldType>
    <Field Name="TypeName">ResourceField</Field>
    <Field Name="TypeDisplayName">$Resources:ApplicationResources,ResourceField_Name;</Field>
    <Field Name="TypeShortDescription">$Resources:ApplicationResources,ResourceField_Description;</Field>
    <Field Name="ParentType">URL</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="ShowOnListCreate">TRUE</Field>
    <Field Name="ShowOnSurveyCreate">TRUE</Field>
    <Field Name="ShowOnDocumentLibraryCreate">TRUE</Field>
    <Field Name="ShowOnColumnTemplateCreate">TRUE</Field>
    <Field Name="Sortable">TRUE</Field>
    <Field Name="Filterable">TRUE</Field>
    <Field Name="FieldTypeClass">...</Field>
    <Field Name="FieldEditorUserControl">...</Field>
    <PropertySchema>
    <Fields>
    <Field Name="ModelViewName" DisplayName="ModelViewName" Type="Text" Hidden="TRUE">Model View Name</Field>
    <Field Name="ContextProperty" DisplayName="ContextProperty" Type="Text" Hidden="TRUE"/>
    <Field Name="RichText" DisplayName="RichText" Type="Boolean" Hidden="TRUE" Value="TRUE" />
    <Field Name="RichTextMode" DisplayName="RichTextMode" Type="Text" Hidden="TRUE" Value="FullHtml" />
    </Fields>
    </PropertySchema>
    </FieldType>
    </FieldTypes>

    Hi,
    How about removing the semicolon at the end of your resource referenced string?
    Feel free to reply with the test result if the issue still exists.       
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • CRM 2011+An error has occurred during report processing. (rsProcessingAborted)

    Hi,  i have installed CRM 2011 on-premise version in Server A. Database and CRM 2011 Reporting Extenison in Server B. Both the server are 64 bit server and IIS 7.0 . i can able to browse the Report server url. USer as been added in Sql DB Logins and

  • SE 3.0 periodically crashes when performing simple operations.

    During or just after many simple operations, like opening a new Data View, or dragging data from one window to another, or just moving a cursor, SE will periodically crash.  I'm running SE 3.0 on Windows XP.  My .seproj file is 9 MB.

  • Exporting package meta data

    Hi all, I would like to export all the meta data of a package (such as database table names and structure, dataelements, reports, function groups, etc.) into a text file. I could not find an export functionality in the se80. Anyone have any ideas? Th

  • File size reported reported differently

    Can someone help me explain why this file size is reported differently depending whether you list file or folder properties: This is an Azure Basic_A1 VM. Drive E: is standard VHD attached to the VM (Page Block Storage). This is an active/open file t

  • Multiple subtotals/totals in ALV

    Hi guys, my requirement in ALV(oops) is, I need to get the ALV in the below format . I have done the report which brings subtotal and grand total. my requirement has changed a little. I need an intermediate total (ie. sub_4 mentioned below). mat1  10