Grouping/ consolidating by date

Hello
I have an application acknowledgement communication which is built like this:
Print Date
Name and Address
Salutation
NAME OF SCHOLARSHIP
Body text
Closing signature
People may apply for multiple scholarships and some of them will have the same closing date.
I want to send one communication per closing date group listing the Scholarships which close on that date.
So - a person may apply for 10 scholarships, 5 close on date 'A'; 3 close on date 'B' and 2 close on date 'C'. I would expect them to get 3 communications, listing 5, 3 and 2 scholarship names respectively in the appropriate part of the comm.
I need to know the correct syntax and where to place it <?for-each: CLOSING_DATE?>
I have had no luck placing it before the Print Date or the NAME OF SCHOLARSHIP. Each time I get a seperate email for each Scholarship.
Any suggestions appreciated

You need to regroup it based on CLOSING_DATE
<?for-each-group:YOUR_GROUP;CLOSING_DATE?>
This will regroup your group based on CLOSING_DATE.
It would be better if you can paste your xml here

Similar Messages

  • Change of method consolidation  - duable data for investment and equity

    Dear All!
    There are:  investor uniu - company A and investee unit - company B.
    Company A has had 50% share in company B to 01/2010. - Equity Method.
    Company A has added by 50% share in company B to 03/2010. - Puarches Method.
    I use activity of investment in AFD for investment and equity. :
    When I perform task consolidation of investment there is duble data for investment and equity.
    And when I perform task for Change to Consolidation Group I have message Process is not nessecery.
    Mabye you know why is process not nessecery?
    Thank you in advance for your help.
    Best regards,
    anka
    Edited by: Anka on Mar 25, 2011 5:07 PM

    Dear Sir,
    Thank you for your answer.
    Yes, I have task for change in group consolidation with documents in the posting level 02,12,22. I did not  data in group currency, when I task change in group consolidation, but only in local currency. My mistake.
    I have a new question:
    When I purchase new shares, which the activite of investment I must choose in AFD:
    - step aqusition or increase in capitalization?
    Thank you in advance for your help.
    Best regards,
    anka

  • Consolidation of data in two different instances

    Hi,
    I am having a scenario that ABCD is a subsidiary of holding company PQRS. Both the systems are running on two different instances of SAP. Now the ABCD is going for SAP implementation. PQRS is interested to consolidate the data of PQRS as well as ABCD. In ABCD, let me presume that the group chart of account has been used and each GL account of operating chart of account has been mapped to group chart of account GL account. Now, the question is how the data of ABCD can be transferred / moved to PQRS. The presumptions are: 1. There is RFC connections between ABCD and PQRS 2. PQRS is consolidating using EC-CS
    Please throw some light on this.
    Thanks in advance.
    Regards,
    Ravi

    >
    Pradip Nikam wrote:
    > Hi,
    >
    > I am transferring data from Non SAP system into SAP through XI. But I want to do consolidation of data in XI before transferring data to SAP system. Suppose I have 4 purchase entries from same vendor of same material for a week in non SAP system. Instead of transferring 4 different entries to SAP system. can I consolidate those 4 entries in XI into one & then tranfer to SAP?
    >
    > If this is possible then how to do it?
    >
    > Please guide.
    >
    >
    >
    > Pradip Nikam
    1. If your source system is sending all the entries in a single message you can easily do this via the mapping in XI
    2. Suppose your source system is sending these 4 message separately and then you want to consolidate, then you will have to involve BPM.
    You will need to collect these messages and then have a N:1 mapping that does the consolidation
    Ref:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • Count(*) with group by max(date)

    SQL> select xdesc,xcust,xdate from coba1 order by xdesc,xcust,xdate;
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06
    RUB-A 11027 10-JAN-06
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06
    RUB-C 11027 08-JAN-06
    I want to make sql that result :
    XDESC     COUNT(*)
    RUB-A     2
    RUB-B 1
    RUB-C 1
    Criteria : GROUPING: XDESC XCUST AND MAX(DATE)
    bellow mark *** that was selected in count.
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06 ***
    RUB-A 11027 10-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-A = 2
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-B = 1
    RUB-C 11027 08-JAN-06 ***
    --------------------------------------------------------COUNT RUB-C = 1
    Can Anybody help ?
    I tried :
    select xdesc,max(xdate),count(max(xdate)) from coba1 group by xdesc
    ERROR at line 1:
    ORA-00937: not a single-group group function
    Thank

    This one is duplicate. see the following link
    Count(*) with group by max(date)
    Thanks

  • Payment Medium Workbench -  Group by Posting Date

    I have made a medium format with DMEE Engine but it doesn't work as I would like.
    I want to have a file with all items group by posting date (subtotals group by posting date, no depends on vendor).
    I have 2 leveles:
       - Level 1: Repetition Factor 1          and Key Field FPAYP-FAEDT (Posting Date)
       - Level 2: Repetition Factor 999999 and Key Field FPAYP-DOC2R (Document unique key)
    However when I execute F110 transaction it generates different files, WHY?
    One file per vendor and posting date, but I WANT TO HAVE A UNIQUE FILE.
    Example
                      Vendor          Posting Date          Ammount
    ITEM 1:       xx                 15/10/2007            100
    ITEM 2:       xx                 15/10/2007            200
    ITEM 3:       yy                 15/10/2007            300
    ITEM 4:       xx                 21/10/2007            400
    ITEM 5:       zz                 21/10/2007            500
    Output (wrong)
    FILE1:
                     15/10/2007
                     xx     100
                     xx     200
                              300
    FILE2:
                     15/10/2007
                     yy     300
                              300
    FILE3:
                     21/10/2007
                     xx     400
                              400
    FILE4:
                     21/10/2007
                     zz     500
                              500
    Output (ok)
    FILE1:
                    15/10/2007
                     xx     100
                     xx     200
                     yy     300
                              600
                     21/10/2007
                     xx     400
                     zz     500
                              900
    Thanks in advanced!

    Ok, the problem has been fixed.
    The repetition factor for level 1 (Posting Date) should be 9999999 instead of 1, beacuse it refers to input data and it doesn't refer to output data.
    We can have differents posting dates in input data, but we want to have a unique line by posting date in output data.
    Regards!

  • Group by with date range.

    Hi,
    I am looking for effective usage of Group by against date range.
    I have a transaction table as below.
    Date            customer_no      amount_paid
    01-Dec-13     001                  500
    02-Dec-13     001                  360
    09-Dec-13     001                  200
    02-Nov-13     001                  360
    09-Nov-13     001                  200
    02-Nov-13     001                  360
    09-Oct-13     001                  200
    02-Oct-13     001                  360
    09-Oct-13     001                  200
    02-Sep-13     001                  360
    09-Sep-13     001                  200
    ............... etc.
    I would like to see sum(amount_paid) by past date ranges 1-30 days, 31-60 days, 61-90 days.
    Below are expected results.
    Customer          Duration       amount_paid
    001                    1-30             980
    001                    31-60           450
    001                    61-90          1200
    002                    1-30             300
    002                    31-60           490
    002                    61-90           320
    003                    1-30             450
    ......................etc.
    I have to group by customer no and date range (1-30, 31-60, 61-90..etc).
    Can someone help me getting query for this.
    Thanks...
    Sreeram.

    SQL> with t
      2  as
      3  (
      4  select to_date('01-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 500 amount_paid from dual
      5    union all
      6  select to_date('02-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
      7    union all
      8  select to_date('09-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
      9    union all
    10  select to_date('02-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    11    union all
    12  select to_date('09-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    13    union all
    14  select to_date('02-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    15    union all
    16  select to_date('09-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    17    union all
    18  select to_date('02-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    19    union all
    20  select to_date('09-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    21    union all
    22  select to_date('02-Sep-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    23    union all
    24  select to_date('09-Sep-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    25  )
    26  select customer_no
    27       , ((grp_val - 1) * 30) + 1 start_val
    28       , grp_val * 30 end_val
    29       , sum(amount_paid) amount_paid
    30    from (
    31            select dt
    32                 , customer_no
    33                 , amount_paid
    34                 , ceil(sum(dt_interval) over(partition by customer_no order by dt)/30) grp_val
    35              from (
    36                      select dt
    37                           , customer_no
    38                           , amount_paid
    39                           , nvl(dt - lag(dt) over(partition by customer_no order by dt), 1) dt_interval
    40                        from t
    41                   )
    42         )
    43   group
    44      by customer_no
    45       , grp_val
    46   order
    47      by grp_val;
    CUS  START_VAL    END_VAL AMOUNT_PAID
    001          1         30         560
    001         31         60         760
    001         61         90         920
    001         91        120        1060
    SQL>

  • Grouping with 2 date in sql server

    totle_count
             dt
             name   
    program_id
    1
      1/3/2015
      Tea
    14
    1
      1/5/2015
      Tea
    14
    1
      1/6/2015
      Lunch
    13
    17
    1/6/2015
      Tea
    14
    2
    1/9/2015
      Breakfast
    1008
    39
    1/10/2015
      Breakfast
    1008
    4
    1/19/2015
      Breakfast
    1008
    1
    1/19/2015
      Dinner
    1009
    3
    1/21/2015
       Tea
    14
    totle_count
              dt
    name
    program_id
    1
       1/6/2015 and 1/8/2015
      Lunch
    13
    2
       1/3/2015 and 1/5/2015
      Tea
    14
    17
       1/6/2015 and 1/9/2015
      Tea
    14
    3
       1/21/2015 and 1/23/2015
      Tea
    14
    41  
    1/9/2015 and 1/11/2015
     Breakfast
    1008
    4
       1/18/2015 and 1/20/2015
     Breakfast
    1008
    1
       1/18/2015 and1/20/2015
    Dinner
    1009
    Here is 2 table, 1st is my row table, and I want to group with 2 date.
    Here is 3 days difference. and sum of value is coming.
    2nt table is my expectation table.
    Plz help me for this problem.
    Thanks
    Samir

    I am doing 3 days grouping here
    "dt" is name of date column
    if "dt" column has '1/19/2015' then next in group it will come in "1/18/2015 and1/20/2015"
    any date of 18 or 19 0r 20 it will come in "1/18/2015 and1/20/2015"
    and counting will add between 3 date
    Sorry your posted output is not as per above rule
    How did row for  1/6/2015 and 1/9/2015 got included then. If you group by 3 days you wont get
    this row as 6-9 is 4 days not 3 days
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Group Consolidation Error

    HI Experts,
    I had run a consolidation package sucessfully. But the problem i am facing currently is that when i open my evdre and check the trial balance my group consolidation shows a difference i.e balance sheet does not get tally. The difference is the group profit which the input datasrc does not reflect it. Pls advice on this.
    Following is my business rule for account transformation :-
    Transformation Group : R1
    Source Account : PNL_ACCT
    Source Flow: F_CLO
    Destination Account: PL_CY
    Destination Flow: F_CLO
    Following is the script logic :-(for account transformation and consolidation)
    TRANSFORMATION:-
    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY=%CATEGORY_SET%
    GROUP=LC
    TID_RA=%TIME_SET%
    OTHER=[ENTITY=%ENTITY_SET%]
    *ENDRUN_PROGRAM
    CONSOLIDATION :-
    RUN_PROGRAM CURR_CONVERSION     
    CATEGORY = %CATEGORY_SET%     
    GROUP = %GROUPS_SET%     
    TID_RA = %TIME_SET%     
    RATEENTITY = GLOBAL     
    *ENDRUN_PROGRAM     
    *RUN_PROGRAM CALC_ACCOUNT     
    CATEGORY=%CATEGORY_SET%     
    CURRENCY=%GROUPS_SET%     
    TID_RA=%TIME_SET%     
    CALC=R1     
    // OTHER=[ENTITY = %ENTITY_SET%]     
    *ENDRUN_PROGRAM     
    *RUN_PROGRAM CONSOLIDATION     
        CATEGORY = %CATEGORY_SET%     
        GROUP = %GROUPS_SET%     
        TID_RA = %TIME_SET%     
    // OTHER = [ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]     
    *ENDRUN_PROGRAM
    If the business rules and script logic are right pls suggest me whether there are any other reasons for the same.
    Regards,
    Sujitha
    Edited by: suji1705 on Aug 12, 2011 9:32 AM
    Edited by: suji1705 on Aug 12, 2011 9:37 AM

    Hi Suijitha,
    There suppose to be two business rule for account transformation(for profit posting)
    One will post the entry in PL and another one will post the document in BS.
    So you will have a balanced entry.
    Anil

  • Using Authorization group field in Data entry profile

    Hi,
    I would need some help in configuring/using the authorization group field in data entry profile.
    After setting up the values in the drop down, how do we link to the authorization profiles or roles .
    basically, I would like to know the steps/activities required to use this field

    cross posting->thread locked.

  • Dynamically group records by date

    I am attempting to create a report that will dynamically group records into a set number of date buckets.  This is similar to grouping records by a date field and setting the days, weeks, months, etc property but instead of grouping by a set time span I want to a specific number of date groups regardless of date span.  So say i have records where the first date is today at 1am and the last record is today at 9 pm.  I want the data grouped into 10 groups and the time calculated for that group based on total time span / 10.  The first group would be 1AM to 3AM, the second would group 3AM to 5AM, etc..  The reason I am doing this is for a chart that displays record counts over time but the overall timespan will never be known until runtime.  Setting the chart for hourly or weekly doesn't work because if the user runs the report over a year the dates will be illegible.
    Thanks in advance!

    Well this SHOULD be easy. But leave it to CR make not...
    You can start by finding the minimum & maximum dates within your range:
    Local DateTimeVar MinDate;
    MinDate := Minimum({Table.DateField})
    and
    Local DateTimeVar MaxDate;
    MaxDate := Maximum({Person.ModifiedDate})
    Then figure out what the the interval would be if the span is broken down into 10 equal parts"
    DateDiff("n", {@MinDate}, {@MaxDate}) / 10
    From there just use a formula to segregate each records into the appropriate groups:
    EvaluateAfter({@Interval});
    IF {Table.DateField} >= {@MinDate}
        AND {Table.DateField} <= DateAdd("n",{@Interval}, {@MinDate}) THEN 1 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval}, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 2, {@MinDate}) THEN 2 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 2, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 3, {@MinDate}) THEN 3 ELSE
    IF{Table.DateField} > DateAdd("n",{@Interval} * 3, {@MinDate})
        AND{Table.DateField} <= DateAdd("n",{@Interval} * 4, {@MinDate}) THEN 4 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 4, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 5, {@MinDate}) THEN 5 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 5, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 6, {@MinDate}) THEN 6 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 6, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 7, {@MinDate}) THEN 7 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 7, {@MinDate})
        AND{Table.DateField} <= DateAdd("n",{@Interval} * 8, {@MinDate}) THEN 8 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 8, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 9, {@MinDate}) THEN 9 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 9, {@MinDate})
        AND {Table.DateField}  <= {@MaxDate} THEN 10
    This is where CR drops the ball... IMHO... it WON'T allow you to to group by a formula field that uses an aggregate in the formula (in this case Minimum & Maximum)... It will however allow to to graph on it, which I assume is what you are actually trying to do.  If anyone knows a way to work around the grouping issue, I'd love to know it myself.
    HTH,
    Jason

  • Use of semantic groups to aggregate data

    In a number of threads - e.g. Semantic Groups in DTP it is stated that you cannot use semantic groups to aggregate data. In others, there are statements that this is only for handling the error stack.
    This I find puzzling, as the SAP Help says:
    +Choose Semantic Groups to specify how you want to build the data packages that are read from the source (DataSource or InfoProvider). To do this, define key fields. Data records that have the same key are combined in a single data package.
    This setting is only relevant for DataStore objects with data fields that are overwritten. This setting also defines the key fields for the error stack. By defining the key for the error stack, you ensure that the data can be updated in the target in the correct order once the incorrect data records have been corrected.+
    The experience of one of my clients is that you can indeed use Semantic Groups, and you do not need to define an error-DTP. ( Change the error handling on the Update tab to, e.g. "1 Valid Records Update, No Reporting" - then the key fields displayed after perssing the semantic group button become available ).
    Any comments? Have I misunderstood the point that the others have been making?
    matt

    Hi Matt,
    Semantic group is used to define the groupiing of records by data package.  If you select 0PLANT as a Semantic group, each packet of data will contain all values of 0PLANT until the Max record is reach.  Example, Package Size is set to 50K.  If you have 30K of 0PLANT = 0002 and 22K of 0PLANT = 0003.  First packet will contain 52K records of plant 0002 & 0003.  The next packet will start with plant 0004 and will contain all records with 0004.  If this doesn't make 50K records then plant 0005 will be included in packet 2. 
    Regards,
    Dae Jin

  • What's def of field group and intermediate data set

    what's def of field group and intermediate data set

    The drawing panel cannot draw the figures, what's
    wrong?You can't have written this much code and then suddenly detected it doesn't work at all. You must now restart from the point where you had a working program. Then you add code is small increments and see to it that it works in each step and you understand why it works. This method is called stepwise refinement and it does wonders.

  • Reg MDM - BP "Consolidating Master Data"  in Solution Manager

    Hi,
        In solution manager there are standard Business Process (BP) and Business Process Steps (BPS) defined for each BP under any functional area. Similarly when we look at the standard BP for MDM we have "Consolidating Master Data" as one of the BP. Under that we have a two BPS called  1. <b>"Change or enrich records "</b> -  I understand that this BPS is referring adding or changing some field values in data manager. The second BPS is <b>"Use external data quality services to cleanse and enrich data"</b>. - I understand this step should be the Validation rules that we run. Is my understanding correct? because the 2nd BPS say "external data quality service" - this is where am bit confused.
    Your inputs are welcome !
    Thanks in advance

    Hi Arumgam,
    Validations belon to <b>"Change or enrich records"</b>. <b>"Use external data quality services to cleanse and enrich data"</b> means that you can connect MDM to other third party services (e.g. for address data cleansing) using MDM's enrichment controller.
    BR Michael

  • Group By Like Dates????

    does anyone know if there is a way to group by like dates?
    so if there were 10 transaction records in a table, 5 in Oct and 5 in Nov. but not all transactions took place on the same day.
    Eg:
    DATE AMOUNT
    15-OCT-02 1.50
    16-OCT-02 115.00
    17-NOV-02 200.00
    24-NOV-02 99.00
    and so on. is there a way i can group the dates together so i can get only one record for each month so it would look like this? i dont need the date displayed
    AMOUNT
    116.50
    299.00
    any help would be great
    thanks

    thanks richard,
    that worked great.
    but i have one more question.
    what i am doing is joining two tables by account number one holds the account_name and the other holds the transaction ammount, and i need to have the ammount displayed based on the month that the user inputs. but if there is no transaction for a given month it comes up no rows selected.
    what i would like is to display the account name and if there is no transaction for a given month then have the ammount show 0.00. right now only the accounts that have transactions for the given month come up.
    many thanks for any help

Maybe you are looking for

  • Accessing a native method from within a packaged class

    I have seen some very useful information from RPaul. However, I can not quite get it to work. I have a class "JNIGetUserId" that is in a package "com.services.localoptions". I am trying to call a native method from a dll. it works fine at the default

  • How do i know if my icloud is on

    hello i have a macbook pro for 2 years now and i dont own ipad nor iphone. i have never turned on the icloud but i think that it might be working. how do i know for sure? i dont want to have icloud! i wanna cancel it! plus, there is a guest user opti

  • Can't create VM with existing VHDX via Powershell. Nothing but errors because of Permissions BS/Nightmare

    -

  • How can I put data in FCE?

    Hello, After I had finally managed to install FCE (4.0) , I connected my Sony HDR-CX155 with my computer. It appears on the desktop and in FCE, I can also "look" in the camera's recorded clips via FCE, but it is not possible to get the chosen clips o

  • ITunes TV Show conversion

    I have purchased a few TV episodes which I can view on my computer. However, I would like to be able to transfer the files to another protable video device which requires MP4 files. Is it possible to convert the episode to MP4??