CRM - Inter Departmenta Group Acct Report
Hi all,
Please can someone help me with following spec writing ABAP Report in ALV.
i am new to abap coding and CRM module.
input
interdepartment group id :
bulling key date :
3. DETAILED FUNCTIONAL REQUIREMENTS
3.1. Functional Specification
Interdepartmental Contract Accounts are identified (Table: FKKVKP Field Name: KOFIZ_SD = 02) and grouped together under a particular Group ID (FKKVKP-ZZ_REF_GRP_NUM). These accounts need to be reported on in a schedule for that particular department. The schedule will be executed using the Interdepartmental Group ID and the Billing Key Date on table ERDK.
The Billing Key Date (ERDK-BILLING_PERIOD) is used to better identify a document because an allocation to a certain date can be made. A billing document can, for example, be allocated to a certain month, although the billing period exceeds this month. If several billings are invoiced, they can be grouped together by billing key date. Each Invoice document has this field populated as each invoice will belong to a particular month.
Table ERDK is the invoicing table and has the contract account number (VKONT) linked to a specific invoice (Table field: OPBEL). This field can be used to link to table DFKKOP on field Reference (Table field: XBLNR) which is the table for all items contained in the invoice document. The service charges will be obtained by looking at specific divisions (DFKKOP-SPARTE).
Miscellaneous Charges (Sundries) linked to each respective service will be obtained by looking at line items per division (DFKKOP-SPARTE) posted between the last invoice and the current Invoice.
The Balance brought forward is the previous net invoice amount in table ERDK; this can be achieved by determining the billing key date less than the current billing key date. E.g if the current Billing key date is 2006/10, then balance brought forward will be 2006/09.
Payments are identified with ORIGIN = 05 and 06 in table DFKKKO. Get the document number (DFKKKO. OPBEL) equal to the document number (DFKKOP.OPBEL) and get amount (DFKKOP.BETRW) if the document was posted between the last Invoice and the current Invoice. It is important to note that Payments can be posted on the same day as the invoice posting date. These payments will be considered for the next schedule run.
IMPORTANT NOTE: Items settled within the specified input period of the report must be displayed on the schedule. With this in mind, the item settled i.e. the original Debit must be included in the Balance Brought Forward and the Payment or Credit adjustment must be reflected on the schedule, this will then give a true reflection of the previous account balance and subsequent payments or credit adjustments made.
A grand total per Interdepartmental Account will be displayed for each of the line item amount fields.
It is also required that the contract accounts street address and stand number linked to the specific account be shown on the schedule, these are found in table EVBS and EHAUISU respectively.
The following rules will apply:
1. The Township field is obtained from table EVBS field CITY1
2. The Stand no field is obtained from structure EHAUD field STANDNO; used HAUS to search
3. The house no. is obtained from table EVBS field HAUS_NUM2
4. The street field is obtained from table EVBS field STREET and is concatenated with the house no above.
How to get address information:
- Get all contracts linked to a contract account in table EVER
- Link EVER and EEINV with the contract
- Get the premise number from EEINV and link table EVBS.
- Select the above (1-4) fields from table EVBS.
3.5. Report Fields
Report/Form Field ID SAP Table SAP Field Name SAP Technical Field Name Rules/Notes
Field should not appear on the Schedule FKKVKP Account Determination ID KOFIZ_SD Account determination ID of 02 indicates an Internal Account.
Interdepartmental Group ID ZBI_REFGROUPNO REFGROUPNO New Field Refer to document< RM_BI_X_8 Group Accounts Referrals Extension.doc >
Interdepartmental Group Name ZBI_REFGROUPNO
REFGROUPDESC New Field Refer to document< RM_BI_X_8 Group Accounts Referrals Extension.doc >
Postal Code of the Group Id ADRC Postal Code POST_CODE1
Billing period ERDK Billing Key Date (For Example January 2002) BILLING_PERIOD
Account ERDK/FKKVKP Contract Account Number VKONT
Name FKKVK Contract Account Name VKBEZ
Stand Number EHAUD (Structure) Stand Number STANDNO Refer to RM_RS_X_1: Connection Object Enhancement
Portion (of stand not cycle as on Venus) EVBS Portion YPORTNO Refer to RM_RS_X_1: Connection Object Enhancement
House Number EVBS House Number HOUSE_NUM1
Street Address EVBS Street Address STREET
District ADRC District CITY1
Cost Centre EVER Cost Centre KOSTL
*Balance B/F * DFKKOP Amount in Transaction Currency with +/- Sign BETRW Amount brought forward
**Payments * * DFKKOP Amount in Transaction Currency with +/- Sign BETRW These include the security deposit as required by the business.
***Electricity, Water etc. DFKKOP Division SPARTE Charges applicable to a specific division and any Debit and Credit adjustments.
Sub-Total N/A N/A N/A Balance B/F - Payments
Total Due N/A N/A N/A Sub-Total + Electricity, Water etc.
Total N/A N/A N/A Totals per column
3.6. Selection Criteria
No Selection Fields Table and Field Name Range?
Y/N Default
Match Code?
Y/N
1 Interdepartmental Group ID (If not populated then ALL) TBC; this will be same Group ID as in document: RM_BI_X_8 Group Accounts Referrals Extension.doc Y N Y
2 Billing Key Date (Mandatory) ERDK- BILLING_PERIOD Y N Y
OUTPUT DISPALY
3.7. Main Heading
(Run Date) City of Joburg Interdepartmental Account Schedule
(Time) (Interdepartmental Group ID)
(Interdepartmental Group Name)
(Address)
Accounts for: (Billing Key Date)
3.8. Sub Heading
(Account Number)
(Name)
(Township)
(Stand no./Portion)
(Street Address)
(Cost Centre)
(Balance B/F)
(Payments)
(Sub-Totals)
(Electricity)
(Water)
(Sewer)
(Refuse)
(Rates)
(Sundries)
(Total Due)
3.9. Totalling
Balance B/F:
Previous net invoice amount in table ERDK, generally auto settlement and account maintenance would run to settle all debit amounts.
Payments:
Payments are identified with ORIGIN = 05 and 06 in table DFKKKO. Get the document number (DFKKKO. OPBEL) equal to the document number (DFKKOP.OPBEL) and get amount (DFKKOP.BETRW) for the same Posting Date (DFKKOP.BUDAT).
Service Charges per account on ERDK:
Get Contract Account (VKONT) from ERDK, link to contract account in DFKKOP, where ERDK.OPBEL = DFKKOP. XBLNR and Division(SPART) = 01 for Electricity, 03 for Water, 04 for Sewer, 05 for Industrial Effluent, 06 for Refuse and 09 for Property Rates.
Total Due: Sum the Sub-Total and all service charges
Total: Sum of all the columns
Note: For field AUGOB in DFKKOP, if the field is populated with an X it must be excluded from the calculation on the report. For field AUGRD in DFKKOP, if the field is populated with 05, it must be excluded from the report, as it is a reversed item which the customer will be unaware of and subsequently must not be displayed on the report.
3.10. Sorting
The report output will be sorted by Interdepartmental Group ID and Contract Account Number.
3.11. Page Breaks
Page breaks will be used where necessary to prevent overflow of retrieved data. Each new page should have the headings printed at the top. Each Interdepartmental Group Account should start on a new page.
Verify your repository design and make sure that you have defined count aggregate on fact column. You would also need to define the content level of each dimension in fact table.
Similar Messages
-
Is this Oracle Reports bug – "break order property" in "group above" report
Is this Oracle Reports bug – “break order property” in "group above" report
Could anybody confirm that in "group above" report, we could only order the brake column's values with ""none" or "ascending" or "descending" provided by "break order property"?
In the following example, “Dept” is brake column. Oracle Reports allows us to order values in “Dept” with “descending” provided by “break order property”:
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
or “ascending” provided by “break order property”:
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
I need to do:
Dept 20
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 10
job ename salary
xxx xxx xxx
xxx xxx xxx
Dept 30
job ename salary
xxx xxx xxx
xxx xxx xxx
Could I do this? Could anybody confirm that we could never ever do this, or If yes, how?
Millions of thanks for advice.
M.Z.
Edited by: jielan on Sep 18, 2010 8:23 AMWhy should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
DECODE(DEPT, 20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column. -
Supress repeated labels in group Above reports o matrix group above reports
Hi,
I have a problem, because I´m brand new in reports.
I've defined same reports.
When I defined a Group Above Report or a Matrix with Group Above Report the labels appear repeated in the same page:
Year 2006
Level 1 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 1 3
18-24 12 6 2
25 4 5 2Total Level 1: 17 14 5
Level 2 Range 1-3 months 3-6 months 6-12 months
Age
< 16 1
16-17 2 1
18-24 8 12 2
25 5 4 3Total Level 1: 15 17 6
Is it possible not to repeat the labels "Range 1-3 months 3-6 months 6-12 months",? I want them to appear once per page.
How can I do it?
Please may anyone help me?
thanks
BeatrizWhy should that be a bug? You have a custom requirement and have to find a way to fulfill it. But, what is your actual sorting order? Do you have only this three departments? If so, you could add an addtional column in your query like
DECODE(DEPT, 20, 1, 10, 2, 30, 3, 4) SORTINGput that column in the same group as dept and sort after that new column. -
Refresh CRM data in R/3 report
Hi All,
I've a report in R/3 where i get the Order Status of CRM through a RFC, but when i'm changing the status in CRM through crmd_order, when the report is open in R/3. When i press the refresh button, the status is not changed, it shows the previous status.
Below is the code, can any1 help me how to go about
CALL FUNCTION 'CRM0_READ_RFC_DEST'
EXPORTING
i_consumer = 'CRM'
i_download_type = '*'
i_objname = '*'
I_BAPICRMDH2 =
I_REM_LOGSYS =
TABLES
t_crmrfcpar = t_crmrfcpar
EXCEPTIONS
NO_ENTRY_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF NOT t_crmrfcpar[] IS INITIAL.
READ TABLE t_crmrfcpar INDEX 1.
l_rfcdst = t_crmrfcpar-rfcdest.
ENDIF.
Call RFC
*loop at z_guid into lguid.
*endloop.
*refresh ZORDER_STATUS.
CALL FUNCTION 'ZCRM_HEADER_STATUS'
DESTINATION l_rfcdst
IMPORTING
ORDER_IDRET = l_guid
tables
ORD_STATUS = ZORDER_STATUS
Regards
Sanjuany body?
-
Error in generating a report group in Report Painter
Hi,
I created a report in SAP report painter using transaction code GRR2. I attached the report to an existing group ( 15 reports already in the group), when I generate the group in transaction code GR55 thereu2019s an error message u201CSyntax error in GP40V42F6QG4OQVI4Q93F6FE3QK500, row 97,644 (-> long text)u201D. Please help me on this error.
Thanks,
LouieThere's no error when I generate the same report in a new created group as well as when I generate the existting report group without the new created report.
Information on where terminated
The termination occurred in the ABAP program "GP40V42F6QG4OQVI4Q93F6FE3QK500"
in "FILL_RANGES_FROM_SET".
The main program was "GP40V42ERDE7HBU91TXFAHVA6B0500 ".
The termination occurred in line 92457 of the source code of the (Include)
program "GP40V42F6QG4OQVI4Q93F6FE3QK500"
of the source code of program "GP40V42F6QG4OQVI4Q93F6FE3QK500" (when calling
the editor 924570).
Louie -
Hi,
I am facing problem in Group Above report this can be said in the schema of Scott as follows.
I have developed group above report on Dept,Emp tables. It is showing all the data but the deptno =40 is not showing. The query used is
select * from emp,dept
where dept.deptno=emp.deptno(+)
There I have also used formula column to calculate total salary for each department in front of each department. I case of dept no =40 it is also showing blankHi Riaz
The 'emp' table does not have employees in dept 40.
Regards
Sripathy -
How to create a Group Above report using APEX
I want to create a Group above report with more that one group using APEX. Is it possible to generate such a report using APEX. If so kindly let me know how to go about creating a Group above report with more than one group.
Hello Srini,
Thank you very much for the reply but I'm not into OBIEE... I want the required query to be processed and the output to be shown in xml layout to load into RTF document. The rest I can manage.. but please let me know how to get the .xml output with out using the report builder or the apps environment(concurrent prg submission)..
Please let me know if any... urgent
Thanks in advance
Krishna -
How to make Group Matrix Report in BI Publisher Template Builder for Word
Dear All
I have created a template in MSWord's BI Publisher for creating Matrix report, it is working fine, but i couldn't do it for Group matrix report. Kindly give me any kind of example regarding group matrix or nested group in column level and row level.
Regards
Haq Nawaz
A.F.Ferguson & Co
Edited by: 823804 on Dec 28, 2010 5:42 PMHey hi,
I m also trying to create template for matrix wih group. have you found any solution for this? if yes please forward me the information on my mail id [email protected] -
Group Left report: problem in order the columns
Hi,
I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
I created laxical variable in order to change order by clause dynamically.
Any suggestion?
Thanks in advance
DipHi,
I have a Group Left report in report6i with group A and Group B. Group A has columns AAA, BBB, CCC, DDD, EEE, FFF and Group B has coulmn YYY, ZZZ.
The problem is report does not take order by clause. It sort the report by first column of Group A, does not reflect my order by clause.
I created laxical variable in order to change order by clause dynamically.
Any suggestion?
Thanks in advance
Dip -
Break Column in Group Above Report - Causing Error in Data Groupings
Since I'm required to designate at least one Break Column in my Group Above report, I created a dummy column in my SELECT statement. I did this so that I could designate the required minimum of at least one break column, but I designated one that won't have any impact on how the report is ordered, because it will be the same value (NULL) for every record. So, my SELECT statement starts out looking something like this:
SELECT
NULL break_column,
column_1 column1_name,
column_2 column2_name,
column_3 column3_name,
column_4 column4_name,
column_5 column5_name
I needed for the break column to have no impact on the ordering of the report because I need for the ORDER BY clause to completely control how the report is sorted, w/o any interference by a hard-coded break column. I need this because my intention is to make the ORDER BY clause dynamic, and a hard-coded break column with actual data would supercede the ORDER BY clause, thereby making it static.
Everything is working correctly with regard to how the report is sorting the records designated as group columns; however, the detail columns are getting all messed up as far as what main record they're grouped under.
By this I mean that when I designate only one break column, some details may display under the wrong group, where they're not supposed to. For example, each page consists of demographic info. about a specific record on a table, and the details listed under it should be the individual comments that have been made on that record. The issue I'm seeing is that for some records, it's showing comments from not only the record for that group, but it continues to list out comments made for other requests as well, when those comments should be displayed under their own respective records.
Why is this happening when I designate only one break column, and how can I keep it from doing this?Did you get a solution for this?
I have the same problem.
Any help would be appreciated.
Thanks,
Madhu -
Display Total in Group Above Report
Hello,
I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
How can I display total and grand for total_qty and actual_qty?
Any help is highly appreciable.
Thanksponic wrote:
Hello,
I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
How can I display total and grand for total_qty and actual_qty?
Any help is highly appreciable.
ThanksIf you want to display total qty for each month and you already done it. as you says..
total is getting displayed for each month.If not ,
Take a summary column at month group >> at properties .. Summary Function : Sum , Reset at month group.
and for grand total
take a summary column outside the query. >> at properties .. Summary Function : Sum , Reset at report.
Hope it works.
hamid
If someone's response is helpful or correct, please mark it accordingly. -
How to design group above report manualy
I want to design group above report manually. How can i define main repeating frame and then internal repeating frame like report builder.
Hi,
one possibel way is:
//-- loop through all master values
<?for-each:DEPT_ROW?>
//-- store the master key in a variable
<?xdoxslt:set_variable($_XDOCTX,'v_DEPTNO',DEPTNO)?>
//-- Output of master data
<?DEPTNO?>
<?DNAME?>
//-- Loop through second dataset looking vor all data suitable to the current master key
<?for-each://EMP_ROW[xdoxslt:get_variable($_XDOCTX, 'v_DEPTNO')=DEPTNO]?>
<?ENAME?>
<?JOB?>
<?end for-each?>
<?end for-each?>
Hope that helps
Rainer -
Multi-query group above report creates more pages
Hi,
I have a multi-query group above report (paper only), the parent group creates 5 rows(subframes) all onto the same page, but then creates 4 more IDENTICAL pages!!?
at the end I have 5 repating frames and 5 pages.
If I set Maximum Records per Page to 1, I have 5 pages (IDENTICAL) with the first frame only...
any idea?
cheers
Matteohello,
you will have to create a counter, that tells you the numbers of students (summary-column, function : count, reset on : course) and create a format-trigger on the heading that hides it when the number of students is 0.
regards,
the oracle reports team --pw -
Multi level Group Above Report
I have a multi level Group Above report like this.
School name : xxxx
Course1
Student1
Student2
Course2
Student1
School name : yyyy
etc...
No students are enrolled in some of the courses. I used the Outer Query in SQL to include those courses. Everything looks okay, except the header for the students are still appearing. how do I supress the student heading if no drecords are present?
Can somebody help me.
Thank you
David Smithhello,
you will have to create a counter, that tells you the numbers of students (summary-column, function : count, reset on : course) and create a format-trigger on the heading that hides it when the number of students is 0.
regards,
the oracle reports team --pw -
hi,
To get clear idea i am using emp table as an example.
I am creating a report using style GroupAbove and save it in .jsp file.
I took empno as group .
My report was displayed in this way:
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499
ename job sal comm deptno
allen sales 1600 30 30
ramu manager 4000 0 20
and so on...
page2 :
empno 7499
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ename job sal comm deptno
ramu worker 300 0 40
..... so on
But My result should be in this way :
page 1:
empno 7369
ename job sal comm deptno
simth clerk 800 0 20
empno 7499(problem :Here i dont want to display heading of ename.... and so on)
allen sales 1600 30 30
ramu manager 4000 0 20
page 2:(if next page starts then should start with heading of ename... and so on)
ename job sal comm deptno
raju clerk 500 0 10
empno 7599
ramu worker 300 0 40
..... so on
If any one know this probelm help me soon
it's very urgent
with regard's
vijayYou may have been better to use deptno as the group column in your example, since I'm not sure that grouping on empno makes sense (and hence makes the example difficult to picture).
That said, it seems that the problem is that you only want the details headings to be displayed once per page (for a group above report). This isn't going to be too easy, and will require some coding, but bear with me.
The first thing to do is to create a PL/SQL package with a single boolean variable in it. This will be used a flag to determine whether the headers should be displayed.
In the before report trigger, set this variable to TRUE.
In the format trigger for the frame containing all the boilerplate labels, check to see if the variable is TRUE. If it is then set it to FALSE, and return TRUE.
If it's not then return FALSE (to suppress the display).
In the between pages trigger set the variable to TRUE.
Hope this helps (and that I've understood the problem),
Danny
Maybe you are looking for
-
How to get IP address of the Managed Server, in a cluster?
Hello, I have created a cluster and have two managed servers in it. WLS version is 10.3 and paltform is Windows. Both the managed servers are on different machines. And I have Sun one web server (version 6) configured instead of the WLS in-built web
-
Portal.wwdoc_document Access
Hi all, I am trying to write a SQL script that I can use in conjunction with Oracle Reports (Portal). I want this script to show all new documents uploaded by anyone in a page group. When I run the script from my Desktop app, I see everyones documen
-
Object Link to Inspection Point (QAPP)
I am trying to set up a new obejct link to an inspection point. So, to start with I am trying to create a bespoke screen that will perform exactly as screen 204 the Equipment master object link. I have created two new screens SAPLCVIN 9000 and SAPLC
-
Flash Player seems to have lost functionality
Suddenly the Flash 8 player has lost the ability to show filter effects [blur]. It worked fine before [I'm using Flash Professional 8 and the latest browsers, Safari, Firefox, Opera]. What happened?
-
Why is firefox continually blocking valid websites and redirecting?
Firefox frequently (and annoyingly) blocks trusted sites from loading, sites like Sprint.com, for example. I know of no instance where they have blocked a malicious site and I find this practice annoying. How may I stop this from occurring?