Functions in Calculation and Summary Fields

Hi,
I'll give a bit of background to my situation before describing the advice I'm looking for here.
I am experienced Mac user and I have used AW a fair bit in the past, but since I've been working in a job which has Windows machines and uses a complex custom-written relational database for its main tool, I use it less often than I did, so I am a little rusty. It is the shortcomings of the complex relational database (which I do not have admin rights to) that has led me back to AW and its database module.
Essentially, I am a complaints investigator, and the relational database provided by my employer is used to keep track of correspondence and various metadata associated with the investigation of the complaint. However, although it is called a Complaints Management System (CMS), it does not help me manage my caseload very well. I've previously tried to create an Excel spreadsheet that would help me manage my work, but it is not a database (or I am not sufficiently skilled with Excel) and I cannot get it to provide me with what I want.
So, my problems.
I have complaints (cases) assigned to me to investigate. These cases have differing priorities, which means differing time limits for completion of the investigation. The priorities and time limits are set out below:
J (jurisdictional issues) - time limit = 1 month
D (discretion not to investigate) - time limit = 3 months
1 - time limit = 4 months
2 - time limit = 6 months
3 - time limit = 12 months
The priority field in my AW DB is currently a 'pop-up menu' field, but I could change this to another type if this would be advisable.
I have a date-type field in which I enter the date the complaint was received. I have an calculation-type field in which I calculate the age of the complaint using the function:
=(NOW()-'DateReceived')
This returns an age in days, which I input into a separate calculation field that divides the result of 'age in days' by 30, to give a rough approximation of the number of months old the complaint is (If AW has an equivalent to Excel's 'workdays' variable, I'd love to hear about it). This latter field is the one that I display in the main data entry view of the database.
Given the priority assigned to the complaint, and the age of it, I am either 'On Target' or 'Over Target' for completing the investigation.
Each month I have a meeting with my manager to review progress, and since the reports that can be extracted from the CMS are not very useful for this purpose, I want my AW database to help me generate reports that can form the basis of discussion in these meetings.
Part A of My Query
At present, I have a manually operated field, in the form of a pop-up menu, to indicate for each record (complaint) whether I am over or on target for completion of the investigation. I would like to make this a calculated field, so that the database keeps track of this for me automatically. Unfortunately, I'm either too dense, or not good enough with the syntax of AW functions, to be able to write a function which essentially does the following:
IF 'Priority'=1 AND 'Age in Months'<4 THEN 'On Target' ELSE 'Over Target'
- and then repeats that for the other priority possibilities.  It seems likely that the 'IF' function is what I'm after, but I haven't been able to get the syntax right to combine 'Priority' and 'Age in Months' in the format spelt out in the AW help, which is:
=IF(logical,true value,false value)
Getting the syntax of one part of this function right would be a good start. However, I suspect that I have a larger problem, in that I have 5 priorities to measure against and I need the overall calculation (that produces the 'On Target' or 'Over Target' results) to report in one result field. This means nesting the functions that look at the 5 priorities and 5 age limits. I've tried and failed to get the syntax of such nesting right, so advice on this is doubly welcome.
Unfortunately, I have a sneaking suspicion that unless the answer is much more concise than I imagine it to be, there will be an additional problem: AW appears to have a character limit for the length of a function string in a calculation field which may be too short for my needs.  If you think this is an issue but that it can be solved through the use of intermediate fields (which don't need to be displayed in the main 'data entry' layout), I'm happy to give that a shot.
Part B of my Query
Even if the problem above cannot be solved, and I have to manually enter whether a complaint is 'On Target' or 'Over Target', I have a separate but related question for the reports I have to present to my manager.
On these reports, I would like to have a summary at the top of the first page (in a grand-summary part, I assume) which gives a count of how many complaints are 'On Target' or 'Over Target' for each priority. Below that is a sub-summary part, ordered by the type of action that must next be taken in the investigation. (Getting that right may be a subject of a separate post at a later date.) The report must, of course, only report on those complaints that are still being investigated ('open complaints') and not those which have been completed ('closed complaints'). So, I need a function in a summary field which will present an accurate count of the number of open complaints that are 'on target' for priority J (with separate summary fields that do the same thing for priorities D, 1, 2, and 3), and a separate set of summary fields that will present a count of open complaints that are 'over target' for each type of priority.
It might look a bit like this table below, with figures from the summary fields populating the cells in the third row:
Priority
J
D
1
2
3
In / Out of Target
In
Out
In
Out
In
Out
In
Out
In
Out
Number of Complaints
My guess is that it is easier to have the summary field simply count all the complaints that are on or over target for a given priority, regardless of whether they are open or closed, since the report could be based on a saved search (match) which strips out all closed complaints. But if I'm off-beam with that idea, I'm happy to have another way of cracking this nut.
Many thanks in advance to any Community members that take the time to try and help me with this.
Andrew
PS Cross posted in AWUG forum too, if people prefer to answer there.

Hi Andrew,
Part A:
I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
Field List:
Priority: Popup menu with six items: 00, J, D, 1, 2, 3  Defaults to 00
TL (time limit in months): Calculation:  CHOOSE('Priority',0,1,3,4,6,12)
Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
Target Date: Calculation:
DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
Remaining (Days): Calculation: INT('Target Date'+1-NOW())  (see revision below)
Completed: Checkbox. Set default value to Unchecked.
Completed Date: Date: Entered manually
OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
Rsults (and some further formatting of the Layout) below.
Part B:
You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on  a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
Regards,
Barry

Similar Messages

  • Issue with Duplicate Results and Summary Fields

    My report is based on an Access Database. For the purposes of this current issue, there is the Master Table called u201CCnu201D and then a related u201CTable Au201D which includes multiple records related to the Master and also a related u201CTable B,u201D also with multiple records related to the Master.
    For my report, I want to output results from Table B based on criteria in Table A. This naturally produces duplicate output on the report. As a result, the Summary Fields that I want to include are incorrect.
    I have tried multiple combinations of the Select Distinct function, suppression based on u201Cprevious fieldu201D being equal, summary fields, running totals and if-then statements and still cannot find a solution that works in all of the cases involved.
    Below are descriptions of three different scenarios that are occurring:
    EXAMPLE #1: Entry 1 has 2 records in Table A and 2 Records in Table B so "Select Distinct" including the Table B ID # and then a Summary Field for the Total produces the correct results, while a Running Total is Incorrect.
    EXAMPLE #2: Entry 2 has 2 records in Table A and 1 Record in Table B so a suppression formula of the field based on the "Previous =" Table B ID # and the Running Total produce the correct results, while Summary Field is incorrect.
    EXAMPLE #3: Entry 3 has 6 records in Table A and 6 Records in Table B. Neither Summary or
    Running Totals produce correct results.
    I would greatly appreciate any advice in terms of creative formulas, etc. that would help produce correct results here.
    Iu2019ll be pulling my hair out soon! Thanks so much-

    Hi Berry
    Try to create a command with a subquery. The subquery will be returning the the duplicate records and the main query that uses this subquery will find distinct records out of the resultset returned by the subquery.
    Let me know if this helps.
    Regards
    Nikhil

  • Ordering of formula and summary fields - Reports6i

    Hello,
    I want to know if it is possible to make certain order of field (XML tags) in XML.
    If I have ordinary field that I get from SQL I can put it in the place that I want it to be and position in xml is OK, but when I put formula or summary field on certain place in xml file it is always on last place.
    For example:
    I have sql with 3 fields (one, two, three) and two formula fields (fo1, fo2). In report they are in this order:
    1. one
    2. fo1
    3. two
    4. fo2
    5. three
    but in xml file I get this order:
    <body>
    <edp:bodyContent>
    </one>
    </two>
    </three>
    </fo1>
    </fo2>
    </edp:bodyContent>
    </body>
    and I wish to have this order in xml:
    <body>
    <edp:bodyContent>
    </one>
    </fo1>
    </two>
    </fo2>
    </three>
    </edp:bodyContent>
    </body>
    Is this possible and if so how?
    Thanks for your help

    Finally, I got the fix.
    Here is what I did: Instead of the format mask '000' or '099' or '0nn' I used '000Y'
    adding a Y supresses the extra space that is reserved for + or - sign. And supression need to be added at the end like I showed, not like 'Y000'.
    Now my data looks like this, which is what I wanted:
    04/23/20120020123.451234.5610/24/2008
    If you look close, there are no spaces now as compard to my previous data line.
    Thank you all both for spending some time and giving me pointers.

  • Extra blank space in formula and summary fields

    I have a report that gives text output. In that I have 3 fields which are numeric.
    One of them has source as summary column- numeric 3 digits(format mask 000) and other 2 has source as formula column- numeric format mask (0000.00)
    Here is my problem- When the value in my summary column is 3, it prints space(instead of 0) and 03,
    if the value is 56, it prints a space and 56. if the value is 139, it prints a space and 139. Now this increaases the size of my line by 1 space, which is acceptable to the system that we are feeding this data.
    Similar thing is happening for the formula columns, 1 space (instead of 0) and then 000.00 is printed, if the value is filling the format mask, then it will have an extra space before giving out the value 1234.56.
    Can somebody please help me with the situation.
    Thanks
    Anna

    Finally, I got the fix.
    Here is what I did: Instead of the format mask '000' or '099' or '0nn' I used '000Y'
    adding a Y supresses the extra space that is reserved for + or - sign. And supression need to be added at the end like I showed, not like 'Y000'.
    Now my data looks like this, which is what I wanted:
    04/23/20120020123.451234.5610/24/2008
    If you look close, there are no spaces now as compard to my previous data line.
    Thank you all both for spending some time and giving me pointers.

  • BAPI function module name and mandatory fields

    Give the name of BAPI function module for pricing change into the transaction VA05 ?
    What are the mandatory fields ?
    Please give a exemple code to do this.

    Hi,
    VA05 is for list of sales order. But if you want to change pricing of material stocks go for follwoing fn module.
    BAPI_SALESORDSTCK_PRICE_CHANGE
    If you want other BAPI for sales related, just go to SE37, give BAPISALE and press F4, you will get all the BAPI fn modules.
    Rewards points if helpful.
    Regards,
    CS.

  • Function module RFC_READ_RABLE and currency fields

    I am using RFC_READ_TABLE to access table BSEG on a remote system.  My problem is retrieving field PSWBT which is a currency field.  The value is returned as 20202020203.43 and overwrites part of the next field too.  The value should be 4,083.33
    Does anyone have any experence with currency fields in this situation and can offer any advice?
    Thanks & regards.

    Hi everyone,
    Thank you for your help.  I have now resolved the issue.
    Yes I was using table FIELDS.  Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem.  I had to define the currency field PSWBT as char 13.  When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field.  As follows:
    TYPES  : BEGIN OF ty_accdoc,
              pswbt(13),
              pswsl           type pswsl,
            END OF ty_accdoc.
    DATA   : wa_accdoc         TYPE ty_accdoc,
             i_accdoc         TYPE TABLE OF ty_accdoc.
    DATA   : wa-pswbt          TYPE pswbt.
    wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.
    wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.
    u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026
    CONDENSE wa_accdoc-pswbt NO-GAPS.
    wa-pswbt = wa_accdoc2-pswbt.
    Kind regards,
    Alison

  • Cross Tab And summary fields

    <p>Hello Guys, </p><p>Need your help for the following problem:</p><p>1. In a Crosstab i have the customers in the Rows and the sum(invoiceamount) in the summarised fields. I have sort (group sort expert) to show the top 10 customers. Now i want to show what is the <strong>sum(of the invoice amount of the top 10 customers only), sum(of the invoice amount of the other customers), sum(invoice amount for all the customers). <font color="#ff6600">How do i get this</font></strong></p><p>2. I have year on Year comparison report. Customer in rows, order date(summarised for each year) in columns, sum(invoiceamount) in the summarised fields. <strong>Now i want to show what was the % growth or decline from last year.</strong> <strong><font color="#ff6600">How do i get this</font></strong></p><p>If you need any more information or explanation please let me know....</p><p>Any help is welcomed</p><p>Vignesh</p>

    Search forums for the answer

  • Summary field of subreport used in main report formula calculation

    I have a summary field in a subreport that I want to use in a calculation of a percentage using a second summary field in the main report as the denominator.  How do I do this in a new formula?

    Thank You Ian Waterman,...
    Couple of questions:
    Where you say "... in subreport
    @ eval
    whileprinting records;
    shared number x:=your summary
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Should the "your summary" be:  "DistinctCount of Activated_Survey.Seq.Incident"  which I have showing in the Report Footer of the subreport?
    Where in the subreport should I place the formula?  Can it be hidden?
    Where you say "In subreport header..."
    @reset
    whileprintingrecords;
    shared number x:=0
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Where in the subreport should I place the formula?  Can it also be hidden?
    Where you say "In the main report in section after subreport..."
    I have the subreport sitting up in the main Report Header as I only want the subreport summary field showing. 
    In the subreport, I have the Report Header and Details section hidden.
    @calc
    whileprintingrecords;
    (shared number x / main report summary) * 100
    Am I correct that this is to be a new formula in the main report?
    However, what I need to have happen is that the main report summary field of: "Count of Answered_Survey.Seq.Incident" needs to be divided by the subreport summary field of "DistinctCount of Activated_Survey.Seq.Incident" * 100.
    What do I modify in the formula?
    Thanks.

  • IDOC mapping issue (calculation using parent and child fields)

    We are mapping an IDOC to a file for output to a third party.  The IDOC has many segments, some of which are embedded.  This is where I'm having the issue.  I am trying to perform a calculation on a field from the parent node (E1EDP01-MENGE) with the field from the child node (E1EDP05-KRATE) to determine the total tax for that line (qty X rate). 
    <b>Issue:</b> The mapping that is in place is using the same MENGE value for all calculations, even where the E1EDP01 segment is not a parent of the E1EDP05 segment. 
    Please review the screen prints and explain how I can correctly group the E1EDP05 child segments rate field (KRATE) with the corresponding parent segment E1EDP01 quantity (MENGE).
    <b>Example:</b>
    Parent segment, E1EDP01 / Child segment E1EDP05 (There are many E1EDP05 segments for 1 E1EDP01 segment)
    E1EDP01 (parent node)
      E1EDP05 (child node)
    <b>Target structure</b>
    ITEM (parent) --->E1EDP01 is mapped at node level
      -->ITEM_DATA --->E1EDP01 is mapped at node level
      -->ITEM_TAX --->E1EDP01 is mapped at node level
           -->(fields for item_tax)
           -->Record type
           -->Invoice number
           -->Line total
           -->etc...
    I am mapping (E1EDP01-MENGE) for calculation with (E1EDP05-KRATE) to determine tax at the line item level. I have the context set at each Node, E1EDP01 for MENGE and E1EDP05 for KRATE.  I was using CopyValue, but this was using the frist occurence of MENGE for all line items.
    <b>mapping example</b>
    <u><b>*I am using MENGE (Copy_Value) then multiplying by KRATE to get the line item total.  This was causing the same MENGE (because of Copy_Value) for all line items.</b></u>
    E1EDP01-MENGE|Copy_Value|MULT--->TAX_ITEM-LINE_TOTAL
    E1EDP05-KRATE|
    I removed the CopyValue and now I'm getting the following error:
    Cannot produce target element /ns0:MT_DTN_INVOICE1/INVOICE/ITEM/ITEM_TAX[3]/LINE_TOTAL. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    How can I map this so the child records (E1EDP05) are grouped with the correct parent records (E1EDP01)?
    Thanks in advance!
    Michael

    Check this blog:
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    Regards
    Stefan

  • User - defined functions for calculating the taxes of state and country

    hi expects,
        how can write user-defined function in message mapping in which i want to calculate the states taxes (2500) and country taxes (5000) and give the result as grand total in output.please help me?

    Hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    Regards
    Seshagiri

  • Functions in Calculated Keyfigure and New Formula

    Hello All
    I want to know each and every functionality(Under functions)in Calculated Key figure and New Formulae?
    do anyone has docs., on this,if so pl forward to my id
      [email protected]
    regards
    balaji

    Hi Balaji,
       Go though the following links for calculated key figures and formulas
      http://help.sap.com/saphelp_bw31/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    Regards,
    PRK
    Message was edited by: PRK

  • Functional Area and Grant Fields on work Order

    Hi Experts,
    I want to know, how would I hide / set optional Functional area and Grant fields?
    There fields are appeared on IW31 (Header data tab -> GOTO -> Assignments -> Funds Management)
    Best Regards,

    Hi,
    I am going to perform FI Vs PM integration, In our case if funds are available then I can be planned and execute maintenance order, We have very experience resource in FI and that consultant advised me to set off these fields.
    What is GuiXT? from where I can use this? how I will use this?
    Regards,

  • Total calculation based on unit price and UDF field values

    Hi All,
    This is for a construction related company. Please find attached screen shot for details.
    My scenario is when we are creating sales order my client wants to calculate the total amount based on unit price towards the UDF fields defined. For example user will give the unit price  per sqft in Unit price ie 2800 as per screen shot column and constructed area in Sqft in he will enter the area like cons area in sqft =1500. So this 1500 need to calculate with unit price and will display in total. So in Total field it should show like 2800*1500= result. Like wise other amount values in udf needs to be calculated and displayed in total field  .
    Is this possible in SAP B1. Please help me with your valuable suggestions.

    Hi,
    Try this:
    SELECT ($[$38.U_Price.number]* $[ORDR.U_CArea.number)+ $[ORDR.U_EBexp.number]+ $[ORDR.U_RO.number]+ $[ORDR.U_Maintenance.number]+ $[ORDR.U_CorpFund.number]
    Thanks & Regards,
    Nagarajan

  • Issue - Hiding summary field labels in cross tab.

    Hi,
    I have a cross tab displaying two summarised value(say revenue and qty sold) and an embedded summary based on two dimension  (say City and year).
    I have a requirement to hide a particular city (Say Dallas)  in my cross tab.  But I am using the summarised value pertaining to Dallas in my embeded summary calculation.  So I cannot use the specified order in the group option to discard it.
    If I use the suppress option.  I am able to suppress all the values except the summarised fields label.  I used the following formula to suppress it.
    Gridlabelat(City,currentrowindex)= "Dallas" then true else false
    Gridlabelat function is not working for label since it text.  How to hide the label in my case.  Please guide me.
    Thanks and Regards,
    Subbu S.

    Hi,
    As I said earlier the labels are considered as Text and not as fields.  So its not allowing me to use any of the grid functions.
    Thanks and Regards,
    Subbu S.

  • Planner profile SAPFAGL  and Summary Table is FAGLFLEXT

    Dear Friends,
    I am not able to enter plan data (Version 1) for Planner profile SAPFAGL and Summary Table is FAGLFLEXT.
    Whenever i try to enter plan data, got error message GLS0 is not available. Why..?
    Is there way to enter plan data (version 1) in Summary Table is FAGLFLEXT.....?  We are in ECC 6.0. Please help me. Thanks in Advance.
    I will give more points for this solution.
    VK.

    Hi VK,
    Please find the details.
    You must/can start the selection with the following parameters:
    1. Company Code (required entry field)
    Enter the company code of the accruals account to be checked.
    2. G/L Account (required entry field)
    Enter the accruals account to be checked.
    3. Posting Period/Year To (required entry fields)
    Enter the period to be checked in posting periods.
    4. Indicator: Only Not Cleared Documents (optional entry field)
    If you set this indicator, only actions with an incomplete revenue recognitions (revenue postings and billing document postings) are taken into account, because only these postings are necessary for an explanation of the balance. However, to trace the balance, it may be necessary for the system to also display completed (cleared) revenue recognition processes. In this case, the indicator must not be set, which generally has a negative effect on runtime.
                  Note: The periods in the SD tables are determined by the posting date in the VBREVE and VBREVR tables.
    If the necessary selection parameters were set and the report is started, a split screen appears.
    1. Upper part of the screen - Balances
                  This is where different balances are displayed for each currency in the form of a calculation. The calculation consists of the following:
    a) Balance from revenue recognitions
    This balance is determined from the posted revenue lines in the VBREVE table. These are the revenue amounts that were recognized in the selected period according to SD.
    b) - Balance from billing documents
    This balance is determined from the posted, billing items in the VBREVR table that are relevant for revenue recognition. These are the revenue amounts that were deferred in the selected period according to SD.
    c) - Balance from other postings
    If not only the revenue recognition process (VF44/VF46/VF01/VF02/VFX3) but also other FI transactions such as FB01 posted to the selected accruals account, then these values are not known in SD (VBREVx tables). This appears to result in an inconsistency between SD and FI, but there really is no inconsistency at all.
                           The system now takes the balance from revenue recognitions, minus the balance from billing documents, and compares the result with the total balance in FI. If there is a difference, the other postings on the selected accruals account for the selected period in FI are read. The result is the 'Balance from other postings.' If this balance is now also subtracted from the previous result, the determined value must result in the total balance from FI.
    d) Total balance
    This is the balance of the accruals account for the selected period that was determined in FI. If you now take the balance of revenue recognitions, minus the balance of billing documents and minus the balance of other postings, then the result should reflect the total balance in FI. If this is not the case, this result must be analyzed further, since there is an inconsistency between FI and SD. Transactions VF47 and VF45 (among others) are available for further analysis.
    2. Lower part of the screen - VBREVx rows (SD tables)
    This is where SD detail data (VBREVx tables) concerning the selection at sales and distribution document item level is listed (the total in the 'Balance' column must equal the total balance in FI). If the totals are different, there are inconsistencies between FI and SD.
                  The following values are displayed for the items:
    a) Billed revenues
    For the relevant document item, the revenue billed in the selected period is displayed, based on the billing items relevant for revenue recognition (this is the revenue that was posted to the selected accruals account). Data is retrieved using the reference line table (VBREVR).
    b) Recognized revenues
    For the relevant document item, the revenue recognized in the selected period is displayed, based on the VBREVE table (this is the revenue that was posted to the selected accruals account). Data is retrieved using the revenue line table (VBREVE).
    c) Accrued total value
    This is the revenue amount of the document item to be recognized at accruals account level. Data is retrieved using the control row table (VBREVK) in which the relevant accrued total value is updated.
    d) Balance
    This balance at document item level is calculated by subtracting the recognized revenues from the billed revenues.
    3. In addition to the screen described above, you can also receive more detailed information. The functions for the displayed ALV buttons are as follows:
    a) Billing documents (F5)
    This is where the billing items that are relevant for the selected document item are displayed. A jump to the respective billing document is also possible.
    b) Other FI documents (F6)
    If balances exist from other postings, the accounting documents which resulted in these balances are displayed here. A jump to the respective accounting document is also possible.
    c) Overview (F7)
    This is where the revenue recognition data that is relevant for the selected document item is listed. This is done in Transaction VF45 - 'Revenue Recognition: Overview.'
    Implementation
    1. Use Transaction SE38 to create the following program:
                        Name.....: SDRRAV53
           Title....: Compare report for revenue recognition
                         Create without a top include.
                      Attributes
          Type.............: Executable program
          Status...........: SAP Standard Production Program
          Application......: Sales
           Development class: VFE
    2. Use Transaction SE11 to create the following structures in the VFE development class:
    a) Data type (structure): VBREVBSIS
    Short text...........: Output Structure for SDRRAV53
    Enhancement category.: can be enhanced (deep)
    (from Release 4.70)
                           Component  Component type  Ref field  Ref table
    BUKRS      BUKRS
    BELNR      BELNR_D
    GJAHR      GJAHR
    HKONT      HKONT
    BUDAT      BUDAT
    WAERS      WAERS
    MONAT      MONAT
    SHKZG      SHKZG
    WRBTR      WRBTR          WAERS      VBREVBSIS
    ZUONR      DZUONR
    TCODE      TCODE
    AWTYP      AWTYP
    AWKEY      AWKEY
    b) Data type (structure): VBREVDETAIL
    Short text...........: Detailed Structure for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component     Component type  Ref field  Ref table
    VBELN        VBELN
    POSNR        POSNR
    WAERS        WAERS
    VBREVR_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVE_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVK_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVK_BAL    WRBTR          WAERS      VBREVDETAIL
    c) Data type (structure): VBREVSALDO
    Short text...........: Balance Table for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component     Component type  Ref field  Ref table
    WAERS        WAERS
    SALDO        WRBTR           WAERS      VBREVSALDO
    ORDERSALDO    WRBTR          WAERS      VBREVSALDO
    FAKTURASALDO  WRBTR          WAERS      VBREVSALDO
    RESTSALDO    WRBTR           WAERS      VBREVSALDO
    d) Data type (structure): VBREVINVOICE
    Short text...........: Billing Data for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component  Component type  Ref field  Ref table
    VBELN      VBELN_VF
    POSNR      POSNR
    WAERS      WAERS
    WRBTR      WRBTR          WAERS      VBREVINVOICE
    3. Implement the source code attached at the end. Use the "Note Assistant" to do this.
    4. Add the following text elements to the SDRRAV53 report:
    a) Selection texts
                           Name     Text                        Dictionary Ref
    P_BUKRS  Company Code                'X'
    P_HKONT  G/L Account                'X'
    P_OPEN   only Not Cleared Documents  ' '
    b) Text symbols
                           Sym Text                                  dLen mLen
    D01 Total Bal                              11  40
    D02 Balance from Revenue Recognitions_____ 35   40
    D03 Balance from Billing Documents________ 33   40
    D04 - Balance from Other Postings__        33  40
    D05 _____________________________          29   40
    D06 Curr                                    7    7
    D07 Bals                                    6    6
    D24 Bal                                    5   18
    D25 Recognized Revenue                    18   30
    D26 Accrued total value                    25  40
    D27 Billed Revenues                        18  40
    E01 Period                                  8    8
    E02 Acct                                    5    5
    E03 Control                                9    9
    E04 Posting Period/Year                    20  20
    E05 To                                      3    3
                  Start Transaction SE38 or SE80. Under the menu option "Goto" you will find the menu option "Text elements." Here you can make the changes listed above.
    5. Create the GUI statuses INVOICE and STANDARD.
    a) Copy the STANDARD statuses from the SAPLSALV program and remove the following FCODES: &ALL, &SAL, &NFO, &NTE, &CRB, &CRE, &ABC, &CRL, &CRR, &XPA, &EB9, &RNT_PREV, &OMP, &XML.
    b) Add the following functions to the STANDARD status in the new program:
                           FCODE DETA
                           F-key  Function text      Icon name      Info text
    F5    Billing documents  ICON_OVERVIEW  Billing documents
                           FCODE REST
                           F-key  Function text       Icon name       Info text
    F6     Other FI documents  ICON_FINANCING  Other FI documents
                           FCODE VF45
                           F-key  Function text  Icon name    Info text
    F7    Overview       ICON_PERIOD  Revenue recognition overview
    6. Use Transaction SE93 to create the following transaction:
          Transaction code.: VF48 (Report transaction)
          Development class: VFE
          Transaction text.: Revenue recognition: Compare report
          Program..........: SDRRAV53
           Selection screen.: 1000
      Classification
           'x' - Professional User Transaction
       GUI capability
          'x' - SAP GUI for HTML
          'x' - SAP GUI for Java
           'x' - SAP GUI for Windows
    7. Save and activate the objects that you have created.
    Header Data
    Release Status: Released for Customer
    Released on: 16.11.2005  15:44:32
    Master Language: German
    Priority: Correction with high priority
    Category: Advance development
    Primary Component: SD-BIL-RR Revenue Recognition
    regards,
    Srinivas Muthyala

Maybe you are looking for

  • Report is taking too much time when running from parameter form

    Dear All I have developed report in oracle reports bulider 10g. while running it from report builder data is coming very fast. But, If it is running from parameter form it is taking too much time to format report in PDF. Please suggest any configurat

  • Which is better: Oracle incremental update (merge) or Oracle incremental update

    Hi All, We have big data load happening from Oracle RDBMS(source) to Oracle RDBMS(target). The data is huge (in billions) and new insertions, updates will happen. I would like to understand which among Oracle incremental update (merge) or Oracle incr

  • 10.4.2 update from 10.4.10

    I tried to use my software update to update my software from 10.4.10 to 10.4.2 which is supposed to fix a problem I have with Airport. I noticed that on the Tiger page on the right side, it only shows 10.4.10 as the latest update. And, when I do a se

  • Merging of Prodn Order number and operation number into the unloading point

    Hi, I am creating the production order using the Tcodes Co01 or co10 and my requirement is that after creating the production number and then when I open that one in the change mode using co02 Tcode the unloading point which is present in the Goods R

  • Can someone help with device authorisation for adobe digital editions?

    This may not be the right forum, I could not find one for Adobe Digital Editions. As you can see in the attached image the activation server is not responding. I tried with another email address, same problem. Have reset password on both accounts and