Unable to add Counter to a field in Query Layout

Hello experts,
Requirement: Need to display the no:of records at the end of query output and the end of Sub-totals.
Issue:I am unable to add Counter to a field in SAP Query.
I followed the steps in the below specified link
http://help.sap.com/erp2005_ehp_06/helpdata/EN/4e/56898907564f49e10000000a42189e/frameset.htm
Please find the attached screen shot and help me to fix the issue.
Thanks in Advance,
Manasa Veena P.

Hi Manasa,
You can know the number of records of your table with this sentence:
DATA: l_contador TYPE i.
DESCRIBE TABLE it_table LINES l_contador.
In my opinion, if you're using an ALV, the best option would be to add an additional field to your ALV. This new field should be TYPE i.
The layout of these new field has to be like this:
      L_FIELDCAT-do_sum = 'X'.
Then you have to sort the internal table that is used by the ALV. You have to sort by the field you want to get the subtotal:
DATA: WA_SORT TYPE SLIS_SORTINFO_ALV.
WA_SORT-SPOS = 1.
WA_SORT-FIELDNAME = 'NAME_OF_YOUR_FIELD'.
WA_SORT-TABNAME = 'TI_ALV'.
WA_SORT-UP = 'X'.                         " Sentido ascendente
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.
Best Regards

Similar Messages

  • Unable to add the F4 help data description in field of ALV

    Hi All,
    I want to create a column based on the F4 help data description which i has mentioned below images..
    I want to create a new column next to G/L account number column.
    I want to add F4 Long Text field to a column..
    Please help me how to pass the F4 help data from F4 to New column???
    Thanks in advance..
    Regards,
    Kiran

    Hi Aruna,
    Thanks for replying.
    Actually my requirement is , I use to add G/L number on F4 help, there I am having G/L account number with G/L account Description next to it ( LONG TEXT), I want that description should come in separate column next to G/L account.
    After giving the G/L account number, its description will populate next to its Column...
    The column will looks like in this Screen shot.
    I added the new Column called G/L account Description, But how to pass the field value from F4 search data to that Column??
    pls help me with this.
    Regards,
    Kiran

  • How to add a field in the layout of cs11

    Hi,
    i want to add a field in the layout of cs11,
    i tryed with user exits and badis as below but i am unable to find the solution .
    BOM_EXIT
    BOM_UPDATE
    CEWB_BOM_CUS_FIELDS (SCREEN ENHANCEMENT WITH BOM HEADER)
    CEWB_BOM_UPDATE
    CEWB_ITM_CUS_FIELDS (SCREEN ENHANCEMENT WITH BOM ITEM)
    PCSD0001 Applications development R/3 BOMS
    PCSD0002 BOMs: Customer fields in item
    PCSD0003 BOMs: Customer fields in header
    PCSD0004 BOM comparison
    PCSD0005 BOMs: component check for material items
    PCSD0006 Mass changes user exit
    PCSD0007 Check changes in STKO
    PCSD0008 WBS BOM: Customer-specific explosion for creating
    PCSD0009 Order/WBS BOM, determine URL page
    PCSD0010 Order/WBS BOM, determine explosion date
    PCSD0011 Knowledge-based order BOM, parallel update
    PCSD0012 Customer - Mat. number/mat. number during material exchange
    PCSD0013 Customer-specific processing of an explosion for BOM browser
    Thanks,
    ksbabu

    Hi,
    Please see documentation of enhancement MM06E005 (transaction SMOD).          
    Userexit EXIT_SAPMM06E_016 is a component of enhancement MM06E005.            
    With that enhancement, you can                                                
      -   Maintain/supply your own customer fields                                
      -   Update your own customer-specific tables                                
    You cannot:                                                                   
      -   Change standard fields                                                  
      -   Change data that depends on the document header in the items            
      -   Change data that depends on an item in the document header                                                                               
    Please have a look at Business Add-In (BAdI) ME_PROCESS_PO_CUST.              
    Regards,
    Edit

  • Add counter in FTP receiver file adapter

    Hello,
    I have sen that in a File System (NFS) you can add a counter to the filename, but I don't found this possibility when I put File Transfer Protocol (FTP), I only see to add timestamp or message id.
    There is some possibility to add the counter in the FTP like in NFS?
    Regards,
    Xavier.

    Hi,
    Unfortunately, the functionality to add a counter is available only with NFS and not with FTP. If you want to achieve this, you will probably have to use variable substitution to dynamically get the counter from a field in the payload. The counter can be incremented in the mappings.
    For info on variable substitution: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm">Configuring the Receiver File/FTP Adapter</a>
    Regards
    MAnish

  • Add Counter to File name when using Tran Protocol as FTP

    Hi There,
    Was wondering if there was any way to achive the same "Add Counter"  functionality used for File names in Reciever file adapter when we are using FTP as the transport protocol, this option is only provided in NFS,
    My requirement is ..
    Write files using counter on to ftp..
    say if three files already exists on the ftp server with names ...fname001, fname002 and fname003
    then the next time a file is written it should have a file name fname004 else fname001 if no file exists.
    Any help would be greatly appreciated

    No such standard functionality is available in communication channel...
    But you can try customizing ur scenario in one of the following ways...
    Case 1: If a field in source data carries the information regarding the sequence.
    You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a Ztable to store the sequence number , a function module to fetch the number , and then use a UDF in which you will implement the RFC call logic.Then the same process .... assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • Add a new date field

    Hi,
    I have a requirment to add a non existing field to my query
    My actual query is like this..
    select Date ,count(*) from tablename where date is between dt1 and dt2;
    The output will be displayed for all the dates where some transactions are there..
    eg:
    Date                     Count
    25.12.2005 12:02:00 PM          1
    25.12.2005 12:16:00 PM          1
    25.12.2005 12:20:00 PM          3
    25.12.2005 12:51:00 PM          1
    25.12.2005 12:52:00 PM          5
    but the business wanted me to add an additional column which is a date field..
    ie to display all the dates between dt1 and dt2 and the other 2 fileds from the query
    if Dt1=25.12.2005 12:00:00 and Dt2=25.12.2005 12:59:00 then my output should look like this :
    Column1                Date                    count
    25.12.2005 12:00:00 PM
    25.12.2005 12:01:00 PM
    25.12.2005 12:02:00 PM     25.12.2005 12:02:00 PM          1
    25.12.2005 12:03:00 PM
    25.12.2005 12:04:00 PM
    25.12.2005 12:05:00 PM
    25.12.2005 12:06:00 PM
    25.12.2005 12:07:00 PM
    25.12.2005 12:08:00 PM
    25.12.2005 12:09:00 PM
    25.12.2005 12:10:00 PM
    25.12.2005 12:11:00 PM
    25.12.2005 12:12:00 PM
    25.12.2005 12:13:00 PM
    25.12.2005 12:14:00 PM
    25.12.2005 12:15:00 PM
    25.12.2005 12:16:00 PM     25.12.2005 12:16:00 PM          1
    25.12.2005 12:17:00 PM
    25.12.2005 12:18:00 PM
    25.12.2005 12:19:00 PM
    25.12.2005 12:20:00 PM     25.12.2005 12:20:00 PM          3
    25.12.2005 12:21:00 PM
    25.12.2005 12:22:00 PM
    25.12.2005 12:23:00 PM
    25.12.2005 12:24:00 PM
    25.12.2005 12:25:00 PM
    25.12.2005 12:26:00 PM     25.12.2005 12:26:00 PM          1
    25.12.2005 12:27:00 PM
    25.12.2005 12:28:00 PM
    25.12.2005 12:29:00 PM
    25.12.2005 12:30:00 PM
    25.12.2005 12:31:00 PM
    25.12.2005 12:32:00 PM
    25.12.2005 12:33:00 PM
    25.12.2005 12:34:00 PM
    25.12.2005 12:35:00 PM
    25.12.2005 12:36:00 PM
    25.12.2005 12:37:00 PM
    25.12.2005 12:38:00 PM
    25.12.2005 12:39:00 PM
    25.12.2005 12:40:00 PM
    25.12.2005 12:41:00 PM
    25.12.2005 12:42:00 PM
    25.12.2005 12:43:00 PM
    25.12.2005 12:44:00 PM
    25.12.2005 12:45:00 PM
    25.12.2005 12:46:00 PM
    25.12.2005 12:47:00 PM
    25.12.2005 12:48:00 PM
    25.12.2005 12:49:00 PM
    25.12.2005 12:50:00 PM               
    25.12.2005 12:51:00 PM
    25.12.2005 12:52:00 PM     25.12.2005 12:52:00 PM          5
    25.12.2005 12:53:00 PM
    25.12.2005 12:54:00 PM
    25.12.2005 12:55:00 PM
    25.12.2005 12:56:00 PM
    25.12.2005 12:57:00 PM
    Thanks
    Vamsi

    You can do it with the SQL Model clause:
      1  with t1 as
      2  (select to_date('07/02/2007 12:02:00', 'DD/MM/YYYY HH24:MI:SS') mydate from dual UNION ALL
      3   select to_date('07/02/2007 12:26:00', 'DD/MM/YYYY HH24:MI:SS') mydate from dual)
      4  select newdate, mydate
      5  from t1,
      6      (select newdate
      7       from dual
      8       model
      9       dimension by (to_number(null) as myid)
    10       measures (to_date(null) as newdate)
    11       rules upsert iterate(1000) until (&startdate+((iteration_number-1)*((1/24)/60)) >= &enddate)
    12             (newdate[0]=to_date(&startdate),
    13              newdate[iteration_number+1]=newdate[cv()-1]+((1/24)/60))) t2
    14  where t1.mydate(+)=t2.newdate
    15* order by newdate
    SQL> /
    Enter value for startdate: to_date('07/02/2007 12:00:00', 'DD/MM/YYYY HH24:MI:SS')
    Enter value for enddate: to_date('07/02/2007 12:30:00', 'DD/MM/YYYY HH24:MI:SS')
    NEWDATE              MYDATE
    07-FEB-2007 12:00:00
    07-FEB-2007 12:01:00
    07-FEB-2007 12:02:00 07-FEB-2007 12:02:00
    07-FEB-2007 12:03:00
    07-FEB-2007 12:04:00
    07-FEB-2007 12:05:00
    07-FEB-2007 12:06:00
    07-FEB-2007 12:07:00
    07-FEB-2007 12:08:00
    07-FEB-2007 12:09:00
    07-FEB-2007 12:10:00
    07-FEB-2007 12:11:00
    07-FEB-2007 12:12:00
    07-FEB-2007 12:13:00
    07-FEB-2007 12:14:00
    07-FEB-2007 12:15:00
    07-FEB-2007 12:16:00
    07-FEB-2007 12:17:00
    07-FEB-2007 12:18:00
    07-FEB-2007 12:19:00
    07-FEB-2007 12:20:00
    07-FEB-2007 12:21:00
    07-FEB-2007 12:22:00
    07-FEB-2007 12:23:00
    07-FEB-2007 12:24:00
    07-FEB-2007 12:25:00
    07-FEB-2007 12:26:00 07-FEB-2007 12:26:00
    07-FEB-2007 12:27:00
    07-FEB-2007 12:28:00
    07-FEB-2007 12:29:00
    07-FEB-2007 12:30:00
    07-FEB-2007 12:31:00
    07-FEB-2007 12:32:00
    34 rows selected.Have a look at the Oracle documentation to see exactly how this works, but basically my inner query:
    select newdate
    from dual
    model
    dimension by (to_number(null) as myid)
    measures (to_date(null) as newdate)
    rules upsert iterate(1000) until (&startdate+((iteration_number-1)*((1/24)/60)) >= &enddate)
          (newdate[0]=to_date(&startdate),
           newdate[iteration_number+1]=newdate[cv()-1]+((1/24)/60))is building a dummy table containing values 1 minute apart between startdate and enddate. You can then join to the original table. Not sure how clear that is so ask away if you're confused (but I would advise you go to the Oracle doc's first and search for info on the model clause).
    Martyn

  • Unable to add aspx file to document library using REST and JSOM in SharePoint Hosted App

    Hi,
    I am unable to add an aspx file to document library.  I was actually trying to create a WIKI page and upload to Pages library but that wasn't working so I tried simple document library.  It keeps failing with Access Denied error.  I have checked
    the blocked types and aspx is not included.  I can upload it directly from the browser so that shouldn't be the case.  I have read that it can be achieved with CSOM but I need this to work with a SharePoint Hosted App.  Here is my JSOM:
    factory = new SP.ProxyWebRequestExecutorFactory(appweburl);
        context.set_webRequestExecutorFactory(factory);
        appContextSite = new SP.AppContextSite(context, hostweburl);
        oWeb = appContextSite.get_web();
        oList = oWeb.get_lists().getByTitle('Documents');
        fileCreateInfo = new SP.FileCreationInformation();
        fileCreateInfo.set_url("mywiki.aspx");
        fileCreateInfo.set_content(new SP.Base64EncodedByteArray());
        fileContent = "<%@ Page Inherits=\"Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c\" %> <%@ Reference VirtualPath=\"~TemplatePageUrl\"
    %> <%@ Reference VirtualPath=\"~masterurl/custom.master\" %>";
        for (var i = 0; i < fileContent.length; i++) {
            fileCreateInfo.get_content().append(fileContent.charCodeAt(i));
        newFile = oList.get_rootFolder().get_files().add(fileCreateInfo);
        context.load(newFile);
        context.executeQueryAsync(function () {
            alert('yo');
        }, function (sender, args) {
            alert(args.get_message() + '\n' + args.get_stackTrace());
    If I change the file extension to "txt", it works.  Same with REST implementation, it works with "txt" but fails with "aspx".  Maybe what I am trying to do will not work using JSOM or REST.  Any suggestions?  Your
    help is always appreciated.
    Regards,
    kashif

    Your code works fine in both my on-premises and SharePoint Online. I have given the app full control, so I suspect this is a permissions issue. I would check your permissions on your appmanifest. Must be something to do with publishing permissions. Try
    giving full control and work the permissions down.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Unable to add a system in ACC

    Hello,
    We are unable to add a new system in the ACC.Initially we addeed one system in the ACC and everything went fine but we are facing trouble while another system in the ACC.We are getting the following error " Hostname'loopback' is reported from host xxxxxxxx as well as from host xxxxxxx check your network setup! ".
    I checked and found that the loopback address is same for both the hosts.
    Is it necessary to have two seperate loop back adresses for adding in the ACC.
    Regards,
    Vamshi T

    Hi Vamshi,
    I am also getting same error, but i looked into the note and did the following:
    In the field "Hostnames/IP Addresses excluded from hostname" - I gave hostname/ip address.
    Is this same you gave or anything like loopback/ip address also you gave ?
    Thanks,
    Murali.

  • Competitor - Strategy and counter strategy text fields in Web UI

    Hi,
    I want to bring  strategy & counter strategy  text fields in the competitor screen of opportunity.
    Component: BT130I_OPPT
    View: BT130I_OPPT/CompetitorProdEF
    .The other standard fields strength and weakness are already visible in WEbUI.
    Also the text fieds strategy & counter strategy  are visible in SAP GUI -opportunity - Competitor tab
    In standard to display strength and weakness the view /CompetitorProdEF has 2 context nodes BTText1  (Relation BTTextIFirstchangable) and BTtext2 (Relation BTTextISecondchangable).
    I tried to add new contect node for strategy & counter strategy (Relation BTTextIAll)  but the save is not working properly.
    Kindly suggest what needs to be done to make these standard text
    types available in this view in WebUI
    Thanks & Regards,
    Sanila

    Hi,
    The issue is related to 'window.open("url")'. I replaced the above function with another script window.navigation("url).
    When 'window.navigation' script is executed, browser is asking a security question whether to download the content or not. If i click yes, whole window is refreshed and existing data is gone. This happens only for first time when we try to download. After this the download is working fine without any session time out, if we are using the same window.
    Kindly help if you have any inputs regarding the issue.
    Thanks a lot.
    Regards,
    Arun N K.

  • Unable to add supplying plant

    Hi,
    I am unable to add supplying plant for cross company STO in vendor Master. I go to XK02-Purchasing-Extras-Add purchasing data but no tab is coming where I can put the plant.The screen here shows just Data retention at VSR and data retention at plant allowed ticked but no space where I c

    Hi Indraneel,
    At first find out the account group of the Vendor in LFA1.
    Then goto the below path and check whether the field Plant is suppressed in Purchasing data ;
    Spro --Financial Accounting (New)Accounts Receivable and Accounts PayableVendor AccountsMaster DataPreparations for Creating Vendor Master DataDefine Account Groups with Screen Layout (Vendors)
    If Yes make it optional so that u can use it .
    Regards
    Ramesh Ch

  • Unable to add a signature and the fill ?

    I am unable to add a signature with acrobat pro for mac.  pushing the fill & sign button opens a completely blank window beside the document.
    not sure how to fix this problem.

    It's possible to set up your signature on the Desktop such that it can be simply dragged into the Camera icon's "From the Web" field...
    1. Right click on an already posted pic
    2. Choose "Open Link in New Tab"
    3. From the address bar of that new tab, drag the URL's favicon (little icon) to your Desktop whereupon an "@" icon will be created
    The above only has to be done once, and then to use that image in future posts...
    1. Click the Camera icon
    2. Click "From the Web"
    3. Drag the URL's "@" icon from your Desktop to the URL field and click Insert Image
    And if you want your signature instead of a generic "@" icon, that's possible too:

  • Acrobat 8 Standard - Add multiple blank signature fields

    Hello. I remember in prior versions of Acrobat being able to add several blank signature fields for others to sign at a later time. I am unable to figure out how to do this using Acrobat 8 Standard. Would someone please help? Thanks.

    No version of Acrobat Standard provides the full functionality of Acrobat Pro.
    The Pro release always provides more.
    If you want to create PDF forms that can be filled in and saved by others who use Adobe Reader you must use Acrobat X Pro (to "reader enable" the PDF).
    Comparison matrix:
    For Acrobat Pro Versions (7, 8, 9, X) —
    http://www.adobe.com/products/acrobatpro/buying-guide.displayTab2.html
    For Acrobat Standard Versions (7, 8, 9, X) —
    http://www.adobe.com/products/acrobatstandard/buying-guide.displayTab2.html
    Acrobat X Product comparison —
    http://www.adobe.com/products/acrobat/matrix.html
    There is an upgrade path from Acrobat 8 Standard to Acrobat X Pro.
    See:
    http://www.adobe.com/products/acrobatpro/buying-guide.displayTab3.html
    There is an upgrade path from Acrobat 8 Standard to Acrobat X Standard.
    See:
    http://www.adobe.com/products/acrobatstandard/buying-guide.displayTab3.html
    Be well...

  • Unable to define Radio Button Text field & unable to change column position

    Hi,
    While designing a screen in Screen Painter, I am unable to define Radio Button Text field as this option is not there in Graphical Element. And also I want to specify the starting position of column of that element different from the default value, but I am unable to define that because the field is non-editable.
    Can any one please help me out.
    Regards,
    Koushik

    Hi,
    Please find below the sample program from ABAP docu :
    PROGRAM demo_dynpro_input_output.
    DATA: input  TYPE i,
          output TYPE i,
          radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.
    CALL SCREEN 100.
    MODULE init_screen_100 output.
      CLEAR input.
      radio1 = 'X'.
      CLEAR: radio2, radio3.
    ENDMODULE.
    MODULE user_command_0100 input.
      output = input.
      box1 = radio1.
      box2 = radio2.
      box3 = radio3.
      IF exit NE space.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    Here radio1(1) TYPE c is defined within the program but in the element list there are RADIO1 element exist. One is actual radio button and the other is Radio Button Text.
    I am not able to create that radio button text using same object name.
    Please suggest.
    Regards,
    Koushik

  • Unable to add/remove users in Mountain Lion Server (Options are greyed out)

    For some reason, im unable to add/remove users in Mountain Lion server. The + and - are greyed out. It seems like something is wrong with the permissons because it looks like it cant write the the Ldav3 file (although that may be speculation). Does anyone have any advice for me? I URGENTLY need to add users.
    Maybe theres a way to restore default permssions for the boot drive (if that in fact is the issue). Hopefully there is a way that I can fix this while leaving all users, groups, their permissions and shares intact.

    Anything interesting and relevent in the server logs?
    Anything interesting in the server alerts?
    Since it's far and away the most common cause of problems with OS X Server and with distributed authentication (Open Directory is entirely based on network encryption and digital certificates and on responses from your local DNS server(s)), verify your local DNS configuration is working and requires no changes with the following Terminal.app (Applications > Utilities) harmless, diagnostic command:
    sudo changeip -checkhostname
    sudo requires an administrative password.  You might get a one-time warning about the sudo, and that can safely be ignored.  The command will display some details, and indicate whether the local configuration appears valid and no changes are required, or further diagnostics for (most) common errors that can arise.

  • How to add a new metadata field to iPhoto where new field is calculated as age in years and month based on a specific date and the date photo was taken ? I want to calculate and display the age of my two kids on every photo.

    Hi
    How can I add 2 new metadata-fields to every photo in iPhoto ?
    The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
    Exampel:
    My son is born 01.01.2010
    My daughter is born 01.01.2012
    Photo taken by data
    Aage of son
    Aage of daughter
    01.07.2011
    1 year 6 month
    not born yet
    01.01.2014
    4 year 0 month
    2 year 0 month
    I would like to be able to search by kids age and get the info displayed when doing slideshows.
    How to do this in iPhoto ?
    Any alternatives to accomplish the same ?
    Kind regards

    It can't be done with iPhoto.  There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
    However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
    If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field.  Then you can use Smart Albums to search for 1year 6 month text.
    OT

Maybe you are looking for

  • I can no longer "edit in" CS5 from LR4 with RAW files

    I can send jpeg files to CS5 via "edit in" but I can't send RAW files. PS is launched but the photos are never opened. I recently upgraded my camera to a Nikon D800, but I can't remember if the problem started just before I upgraded.

  • Need new Apple ID for iCloud ASAP! Please read!

    In 2003 I created an Apple ID for iTunes using my work e-mail address. Needless to say I have moved on.  I have a Macbook Pro and and iPhone 5.  I can get anything to work on my phone because of the old e-mail address.  If anyone could provide me wit

  • IPad to projector

    I have the original iPad and would like to be able to connect this to a projector to show photos slides when giving a presentation. I know that Keynote is supported when using a VGA connector but is the standard iPad photo app (in slideshow or manual

  • R3 ARCHIVING

    Hi Friends,   I am creating archiving object for FI_DOCUMNT,while defining archiving object there is field write program. So here which name we have to give for write and delete programs?Is there any predefined programs for this? can any one please h

  • How do I enter a "log-in name" and "password" in Security Tab options page; some sites block screen-sweeper?

    The data screen-sweeper in Mozilla seems to be blocked by some sites I need to log into, since Mozilla security does not input username and password data. How do I input this info thru Options/Security/Saved Passwords tab for these sites? Thanks!