To get count of  Perchase Requisition based conditions

Hi Experts ,
I need count of Perchase Requisitions ,
Report Format is
In rows , have created Selections based (material , Item categoty , material type ),  in Column I need count of Perchase Requisitions .
I have created Formula variable on purchase requisition but to get the result  i had to put  purchase requition which is not in scope .
Kindly suggest .

Hi,
You can create the one KF zcount add in target level
put the constant value at transformation level.
go to rule details change the form direct assignment to constant 1.
it will easy calculate for count each object.
then one more time load the data.
Thanks,
Phani.

Similar Messages

  • How to get count of all records of all entities in CRM Online

    Hi,
     I want to get count of all records entitywise in dynamics CRM 2013 online. I know we can count the records in CRM on-premise using a SQL query in report. Earlier I wrote a SSRS report to count the records in a CRM entity wise  as displayed in
    the screenshot below..
    Can someone suggest me a good approach to implement the same in CRM Online. 
    Thanks
    Pratibha Singh

    Hello,
    In a CRM Online environment, you need to create reports based on Fetch XML. Take a look at this link to create a Fetch XML query with aggregates: https://msdn.microsoft.com/en-us/library/gg309565.aspx?f=255&MSPPError=-2147217396#count .
    Here is an example to create a report in an online environment: http://edwardsdna.com/2012/12/03/crmonline-report/
    Hope it helps,
    Kind regards

  • How to get count as 0 for records not in table

    Hi All,
    I have requirement where I need count of records in the table based on ids. Example query below
    SELECT empid ,
    nvl(COUNT(id), 0) empcount
    FROM employee
    WHERE empid IN(1, 2, 4, 5)
    GROUP BY empid
    In the table only record for "empid=2" is present so I get count 1 for it. But with it I should get count as 0 for non existing records. Expecting below output
    empid | empcount
    1 | 0
    2 | 1
    4 | 0
    5 | 0
    Appreciate your help and Thanks in advance.
    Regards.
    Ashish

    e.g.
    SQL> select column_value deptno, count (deptno)
    from emp, table (sys.odcinumberlist (10, 20, 100))
    where deptno(+) = column_value
    group by column_value
        DEPTNO COUNT(DEPTNO)
            10             3
            20             5
           100             0
    3 rows selected.

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • VPRS-based condition redetermined in return order (referencing billing doc)

    I have an issue with copy-control from invoice to return order.
    I want the invoice pricing conditions to be copied unchanged to the return order.
    This is similar to when creation the Sales order>Delivery>Billing Document.
    I need to make a return order for the same amount as in the original sales order (naturally, we want to credit the same amount).
    This works fine for all conditions, except for a VPRS-based condition, which is redetermined upon return order creation.
    The VPRS-based condition should fetch the moving average price for the sales order only, not for the return order.
    I have maintained copy control for billing document to sales order with pricing type 'G'
    G: Copy pricing elements unchanged and redetermine taxes. The system
    This works fine for Sales order --> Delivery --> Invoice, but not for Invoice --> Return order.
    I would prefer not to use a formula, but I guess one alternative solution is to fetch the condition value from the original sales order if I cannot do this with customizing.
    Let me know what you think about the forumla (VOFM) and if it is possible to achieve copy-control with unmodified condition values for the VPRS-condition.
    Thanks!

    Ok, thanks for your input!
    I'm sharing my solution:
    I implemented a new condition value formula for my pricing procedure:
    VOFM>Formulas>Condition value
    FORM FRM_KONDI_WERT_XXX.
      DATA: lv_kbetr TYPE kbetr,
            ls_vbfa  TYPE vbfa,
            lv_knumv TYPE knumv.
    Get moving average price for return order from SO
    The ZPRS pricing condition modifies price in return order
    The value of ZPRS should be the same in return order and SO
      IF xkomv-kschl EQ 'ZPRS'.
    Get sales order and position
        SELECT SINGLE vbelv posnv
          INTO corresponding fields of ls_vbfa
          FROM vbfa
          WHERE vbeln   EQ komp-vgbel  "invoice number
            AND posnn   EQ komp-vgpos  "invoice item
            AND vbtyp_n EQ 'M'         "invoice
            AND vbtyp_v EQ 'C'.        "order
        IF sy-subrc EQ 0.
    Get sales order conditions key
          SELECT SINGLE knumv
            INTO lv_knumv
            FROM vbak
            WHERE vbeln EQ ls_vbfa-vbelv.
          IF sy-subrc EQ 0.
    Get moving average price from sales order conditions
            SELECT SINGLE kbetr
              INTO lv_kbetr
              FROM konv
              WHERE knumv EQ lv_knumv
                AND kposn EQ ls_vbfa-posnv
                AND kschl EQ 'ZPRS'.
            IF sy-subrc EQ 0.
    Recalculate condition values
              xkomv-kbetr = lv_kbetr.
              xkomv-kwert = ( lv_kbetr * komp-mgame / 1000 ).
              xkwert      = xkomv-kwert.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.

  • Get-Counter failing with error : A counter with a negative denominator value was detected

    Hi Folks,
    I have a weird situation where I am sampling the CPU usage for small duration and taking an average of the usage using the 'Get-Counter' command. This command seems to work well when tried directly in the powershell prompt. However, when we use the same
    command in script, the following error throws up, 
    Starting process to consume CPU cycles
    Get-Counter : A counter with a negative denominator value was detected.
    At C:\Monitor.ps1:100 char:29
    + $sys_cpu_obj = Get-Counter <<<< '\Processor(_Total)\% Processor Time'
    + CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
    + FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand
    PS C:\> Get-Counter '\Processor(_Total)\% Processor Time'
    Timestamp CounterSamples
    2/29/2012 9:56:47 AM \\vms1\processor(_total)\% processor time :
    26.2817087701422
    PS C:\>
    Here is the routine that is being executed, 
    function sample-CPUUsage([int] $iterations=3,[int] $sampling_interval=2){
    [long] $sum=0
    # Collect an average of physical memory usage
    for($i=0; $i -lt $iterations; $i++){
    $sys_cpu_obj = Get-Counter '\Processor(_Total)\% Processor Time'
    [long] $cpu_usage=$($sys_cpu_obj.CounterSamples).CookedValue
    $sum+=$cpu_usage
    Start-Sleep -Seconds $sampling_interval
    [long] $sum=[long] ($sum/$iterations)
    return $sum
    Why am I getting this error when running the same command from the script ?
    -Pranav

    Hi,
    I cannot reproduce your issue either. It seems like that this issue a issue related with your environment.
    Based on the error message "A counter with a negative denominator value was detected", it seems like that
    $iterations sometimes is treated as a negative number. How about change
    [long] $sum=[long]
    ($sum/$iterations)
     as
    [long] $sum=[system.math]::abs([long]
    ($sum/$iterations))
    Best Regards,
    Yan Li 
    Yan Li
    TechNet Community Support

  • How to get SSO userid to URL-based app?

    I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
    I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
    The version of Portal will be 9.0.2 (or greater).

    This topic is answered in the PDK forum here:
    How to get SSO userid to URL-based app?

  • TS4425 when trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    When trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    Welcome to the Apple Community.
    The following article(s) may help you.
    Photo Stream ToU's

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Ordering of objects by more than one field and get counts

    i have an object visit (personid, city, street, place, date)
    A person could have visited a same place in the same strret in the same city several times on different dates.
    I have a visits 'Set' for a person and I have to get a count of visits he has done to a place..
    its basically select count(visits) group by city, street , place.
    I know to use interface comparator for a single field.. how to compare multiple fields and get counts??
    if you know abt where i can find information please let me know.
    Thanks.

    For multiple fields, your comparator compares the most significant field first. If they're unequal, it returns +/- accordingly. If they're equal, then it moves on to the next field. And so on, until, finally, if all the relevant fields are equal, then the objects are equal.
    Just like what you do when comparing, say, last names. If the first letters are unequal, you're done, else move onto the next letter, and so on..
    For the count, you wouldn't use a comparator, as that's for sorting. Exactly how you do it depends on the details of what you're storing and how, which you haven't provided.

  • Auto Creation of new requisitions based on a list of items

    Auto Creation of new requisitions based on a list of items
    We are starting discussions to determine how we could auto-create requisitions based on a list of servers in order to perform periodic health checks. 
    One approach we thought about was creating one service request that could spawn multiple requests, again based on a list and using a set schedule (weekly, monthly, quarterly, yearly, etc.)
    Has anyone implemented this and can provide some guidance/tips?

    You can check this article for more references on how to use sp_helptext object_name stored procedure:
    http://blog.sqlauthority.com/2007/05/25/sql-server-stored-procedure-to-display-code-text-of-stored-procedure-trigger-view-or-object/
    I also suggest trying commercial tools to sync and compare the stored procedures between two databases. We used
    ApexSQL Diff, but I've also heard some good things about
    Devart's tools.

  • Quantity based condition type for excise duty  calculation in tax procedure

    Hi,
    If any one has worked on the issue of excise duty  calculation on Quantity of items purchased Quantity based condition type.
    [<b>For a formula based calculation procedure TAXAU]</b>
    Example : If quantity purchased = 10 units
              Duty to be calculated @ Rs.3 per unit
              Duty on the 10 units = Rs.30
    Other than SAP Note 816835 any help is appreciable.
    Thanks a lot,
    Uma
    Message was edited by: Uma

    I could not find this condition type/Tcode  in our client system.
    Even we are on 4.6c.
    Thanks,
    Message was edited by: Uma

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • How to get count of rows for a table?

    Hi,
    How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
    Regards,
    Devashish

    Hi Devashish,
    WdContext.node<Your_node_name>().size() will give you the no: of rows.
    This should be the node that is bound to the table's datasource property.
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
    You can access an attribute of a particular row as
    WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

Maybe you are looking for

  • Unable to open dashboards in presentation services

    Hi All, I have recently installed BI applications in my system.After installtion I am unable to open dashboards.Answers and delivers all the others are working fine. When I click on the dashboard link it is giving the following error "access denied f

  • Regarding the error ORA-01841: (full) year must be between -4713 and +9999,

    The issue is the code is not inserting the good records into the MIE table. This is becasue of the error 'OtherError GFSTM_INS_SNURK_NEW_TABLES_PA.gfstm_ins_asn_journal_pr:ORA-01841: (full) year must be between -4713 and +9999, and not be 0' This err

  • Follow on doc(PREQ) not created in teh  backend

    Hi All,   Need some urgent help...We are runnin on SRM 5.0 n the Classic scneario....   When we order the SC,The  backend  doc  is  not created..In the follow on documents...we just get the status  as  Approved....The workflow is in status  completed

  • C7 Landscape dialer

    Apart with the purple-instead-of-black display issue, and the occasional system hanging (about 5 times since purchase, which is better than any other phone I've had so far) I've been very happy with my C7, 6 weeks after purchasing. I'm hoping that ne

  • Incopy chapter numbering

    HI....for my indesign/incopy workflow, my editor is building a separate incopy file for each chapter, (chapter1.icml, chapter2.icml, etc....) When I bring them into indesign, how can I get the chapter 2 numbering to start with 2 instead of continuing