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
Similar Messages
-
Hi guys
I have facts ( FINISHINGPOSITION) having dimensions datedim,JOCKEY_KEY,tracksdim
FINISHINGPOSITION
DATE_KEY
JOCKEY_KEY
TRACKS_KEY
datedim
ACTUALDATE
YEAR
QUARTER
MONTH
WEEK
DAYOFYEAR
DAYOFMONTH
JOCKEY_KEY
JOCKEY_KEY
JOCKEYCODE
JOCKEYNAME
tracksdim
TRACKCODE
TRACKSHORTNAME
TRACKLONGNAME
how can I create summary tables and aggregate table based on these fact and dimensions
Thanks in advance
VikramjitHi,
Where Mustafa used COUNT (*), just use SUM (nbrinparty) instead.
Also, you need to GROUP BY both fltnbr and fltdate, and join by both columns as well.
Since there can be flights with no meals (like fltnbr 003), the join has to be an outer join.
So what you want is something like:
SELECT f.fltdate
, f.fltnbr
, flight_total
, NVL (meal_total, 0) AS meal_total
FROM (
SELECT fltdate, fltnbr
, SUM (nbrinparty) AS meal_total
FROM meals
GROUP BY fltdate, fltnbr
) m
SELECT fltdate, fltnbr
, SUM (nbrinparty) AS flight_total
FROM flights
GROUP BY fltdate, fltnbr
) f
WHERE m.fltdate (+) = f.fltdate
AND m.fltnbr (+) = f.fltnbr;Alternatively, you could do just one sub-query, to get the sum from either one of the tables. In the main query, get the sum from the other table and join, like this:
ITH got_meal_total AS
SELECT fltdate, fltnbr
, SUM (nbrinparty) AS meal_total
FROM meals
GROUP BY fltdate, fltnbr
SELECT f.fltdate
, f.fltnbr
, SUM (f.nbrinparty) AS flight_total
, NVL (SUM (m.meal_total), 0) AS meal_total
FROM flights f
LEFT OUTER JOIN got_meal_total m ON f.fltdate = m.fltdate
AND f.fltnbr = m.fltnbr
GROUP BY f.fltdate
, f.fltnbr
;Edited by: Frank Kulash on Oct 21, 2010 6:52 AM
Added one-sub-query option -
hi all
do any one about (planner profile report) and (price activity variance report)
can any one explain me about these two reports.
Thanks and regards,
kiran.Hi Venkat,
Check this Thread
Re: Creating Aging Report and Counting report
Please search the Forum, you will get lot of more information.
Thanks
CK -
FAGLFLEXT not appearing in planner profile
Dear all,
I am trying to create a planner profile for profit center planning with new gl. I have created in golden client and transported to production. But when i check in production the totals table for the SAPFAGL profile in the totals table FAGLFLEXT not found.
regards
rangaIt doesn't help.
I have the same problem and table FAGLFLEXP is forbidden in maintenance of planner profile (transaction GLPLADM). Planner profile works correctly only with FAGLFLEXT table.
Any other idea ? -
Discoverer and Standby Database Summary Tables
Are there any known problems with Discoverer attempting to write to read-only Standby database summary tables? Has anyone been successful running Discoverer against a Standby database?
Regards,
ChadI have not used synonyms in our system, but they can be accessed by creating custom folders in admin. In general, Custom folders are created to build complex query using advanced SQL which cannot be handled by discoverer end user editions. Custom folders can use tables, views, or synonyms.
-
User/Profile Risk Violation Report table is empty
Dear community,
I am struggeling to find the solution for a quite simple problem: the user and profile risk violation report tables show no results (are empty). And this, although the associated tables (in the backend) contain entries for the same selection criteria (eg. GRACPROFILEACTVL etc.). What could be the reason for that? I started again the batch risk analysis very carefully (manually) on User and Profile Level, for the correct rule set and the correct system, it completed successfully, but I still can't see any results (not even a message like "No violations" or something). As an example, I took the profile SAP_ALL for a target system, which should obviously return a lot of risks/violations.
I have also checked that this is not an authorization issue. To be more precise, actually, this functionality is working fine on the development and UAT GRC system, but not in production.
Any help is highly appreciated. Thanks in advance.Hi Erik,
The problem you are facing with only due to the SoD rule sets, which are in active as you might not have generated in Production system
Generate the SoD rule sets, run the jobs and then run the risks reports, you will get the results as expected.
Regards,
Ameet -
Background job fails for BDC profile creation and role assignment
Hi Experts,
I have created a BDC Function module for Tcode 'PFCG' for profile creation and role assignment, and called this FM in my zprogram. the problem is that when i run this program in foreground it executes succesfully, but if i schedule it in background it fails throwing error in job log 'Role 'Z...' does not contain any active authorizations'. But i have created one more program to create authorization objects which runs before this zprogram.I have also checked the authorization object in 'RSECADMIN', it reflects active. I dont understand whats happening exactly when it runs background.
Below is the process of job
1. ZMIS_AUTH_OBJECT_CREATE
Variant : auth-create
2. ZMIS_AUTH_ASSIGN_TO_ROLE
Variant : auth-assign
The problem is in second program, runs in foreground but fails in background.
Code which i have written in my second program
***BDC for Profile creation and assignment to Roles
CALL FUNCTION 'ZROLE'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
agr_name_neu_001 = wa_role-role_name
text_002 = wa_role-desc
text_003 = wa_role-desc
text_004 = wa_role-desc
value_01_005 = 'T-ML330881'
h_fval_low_01_006 = wa_role-auth
profn_007 = lv_profile
ptext_008 = lv_text1
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message.
***Generation of Profile created
CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
EXPORTING
activity_group = wa_role-role_name
* PROFILE_NAME =
* PROFILE_TEXT =
no_dialog = ' '
rebuild_auth_data = ''
org_levels_with_star = ' '
fill_empty_fields_with_star = 'X'
template = ' '
check_profgen_tables = 'X'
generate_profile = 'X'
authority_check_pfcg = 'X'
EXCEPTIONS
activity_group_does_not_exist = 1
activity_group_enqueued = 2
profile_name_exists = 3
profile_not_in_namespace = 4
no_auth_for_prof_creation = 5
no_auth_for_role_change = 6
no_auth_for_auth_maint = 7
no_auth_for_gen = 8
no_auths = 9
open_auths = 10
too_many_auths = 11
profgen_tables_not_updated = 12
error_when_generating_profile = 13
OTHERS = 14 .
Experts please help me out its very urgent. your help is appreciated and rewarded. Thanking you in advance.
Regards,
ChetanHi Praveen,
Yeah definately, my requirement is that I have to access of some BI reports to certain users, so contract data will be downlaoded from ECC on application server, need to read that file from application server and for the each contract i ahould create a authorization object, role creation and assigning of role to the user and profile generation and activation.
To achieve this i have written two programs
1) ZMIS_AUTH_OBJECT_CREATE- This program will create the Authorization Object using BDC and Role creation Using the BAPI
"" Creation of Authorization Object
CALL FUNCTION 'ZAUTHOBJ'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
g_authname_001 = 'ZDUMMY_MIS'
g_targetauth_002 = wa_tab-auth
g_authtxt_003 = wa_tab-short_desc
g_authtxtmd_004 = wa_tab-med_desc
marked_04_005 = 'X'
g_authtxt_006 = wa_tab-short_desc
g_authtxtmd_007 = wa_tab-med_desc
tctiobjnm_04_008 = 'ZBUS_UNIT'
g_authtxt_009 = wa_tab-short_desc
g_authtxtmd_010 = wa_tab-med_desc
marked_05_011 = ''
opt_01_012 = 'EQ'
low_01_013 = wa_tab-bu
g_authtxt_014 = wa_tab-short_desc
g_authtxtmd_015 = wa_tab-med_desc
marked_04_016 = 'X'
g_authtxt_017 = wa_tab-short_desc
g_authtxtmd_018 = wa_tab-med_desc
tctiobjnm_04_019 = 'ZCONTRCT'
g_authtxt_020 = wa_tab-short_desc
g_authtxtmd_021 = wa_tab-med_desc
marked_05_022 = ''
opt_01_023 = 'EQ'
low_01_024 = lv_contract
g_authtxt_025 = wa_tab-short_desc
g_authtxtmd_026 = wa_tab-med_desc
g_authtxt_027 = wa_tab-short_desc
g_authtxtmd_028 = wa_tab-med_desc
g_authname_029 = wa_tab-auth
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message.
"" Creation of role
LOOP AT it_role INTO wa_role.
CLEAR wa_text.
wa_text-text = wa_role-desc.
wa_text-langu = 'E'.
APPEND wa_text TO it_text.
wa_jobrole-agr_name = wa_role-role_name.
wa_parentrole-agr_name = 'ZM_CT_DUMMY_MIS'.
wa_method-usmethod = 'CHANGE'.
CALL FUNCTION 'ZBAPI_JOBROLE_CLONE'
EXPORTING
jobrole = wa_jobrole
parent = wa_parentrole
method = wa_method
TABLES
* RETURN =
shorttext = it_text
* LONGTEXT =
* MENU_NODES =
* MENU_TEXTS =.
ENDLOOP.
2) ZMIS_AUTH_ASSIGN_TO_ROLE - This program will generate the profile created assign it to the role.
""*BDC for Profile creation and assignment to Roles
CALL FUNCTION 'ZROLE'
EXPORTING
ctu = 'X'
mode = p_mode
UPDATE = 'L'
* GROUP =
* USER =
* KEEP =
* HOLDDATE =
nodata = '/'
agr_name_neu_001 = wa_role-role_name
text_002 = wa_role-desc
text_003 = wa_role-desc
text_004 = wa_role-desc
value_01_005 = 'T-ML330881'
h_fval_low_01_006 = wa_role-auth
profn_007 = lv_profile
ptext_008 = lv_text1
* IMPORTING
* SUBRC =
TABLES
messtab = temp_message .
COMMIT WORK AND WAIT.
""*Generation of Profile created
LOOP AT it_role INTO wa_role.
CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
EXPORTING
activity_group = wa_role-role_name
* PROFILE_NAME =
* PROFILE_TEXT =
no_dialog = ' '
rebuild_auth_data = ''
org_levels_with_star = ' '
fill_empty_fields_with_star = 'X'
template = ' '
check_profgen_tables = 'X'
generate_profile = 'X'
authority_check_pfcg = 'X'
EXCEPTIONS
activity_group_does_not_exist = 1
activity_group_enqueued = 2
profile_name_exists = 3
profile_not_in_namespace = 4
no_auth_for_prof_creation = 5
no_auth_for_role_change = 6
no_auth_for_auth_maint = 7
no_auth_for_gen = 8
no_auths = 9
open_auths = 10
too_many_auths = 11
profgen_tables_not_updated = 12
error_when_generating_profile = 13
OTHERS = 14
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
For creating authorization objects, role & profile i have created one dummy auth, dummy role & dummy profile respectively.
i have created dummy objects to copy the roles from dummy object and assign the same to new Auth obj, role & profile.
Let me know what needs to be done. because these both the programs run perfectly in foreground, but fails in background.
Regards,
Chetan -
Edit User Profile How do I enalble user lo loggin to their own profile page and edit it?
Hi
I am having some problems....... any help would be nice
I am using DWCS3 and ADDT toolbox extension wamp and phpmyadmin
I am trying to create a site for people to be able to post a profile with a picture and info and display it in a dynamic table.
I can create the form, a database and display the data on another page in a dynamic table all ok..... kind of.
I can create a user registration system with ADDT.
I can redirect them after registration to a post profile page, which has a form to upload details. I can then display those details on a user info page.
I would like to allow logged in users to be able to click on a link to their own profile page , which would show the same form that was filled out in the post profile page, but would be already populated with their previously entered information. I would like users to be able to edit the content of the form and update the information in the database and automatically delete delete any previously entered information ( only in the fields that have been edited)
How do I go about doing this?.... step by step?
I want to allow logged in user to view their own profile not every bodies.... how do I do that?
I have read on another post that to do something similar to this I should filter my database information using a session varialble MM_username that I think is created automatically after user logs in .... but I don;t know how to do this.... I really don;t understand is this the way I link my user to a page that only displays their info ? or is there another way?
I would also like to allow only people who have posted a profile to be able to edit profile ...... do I do that by
1. new user registers and is redirected to login page
2. user logs in and is redirected to an index page that has a post profile button and a edit profile button but only the POST button is active ( and links to a form to post info ) and the edit profile button is linked to a " You must post a profile first" page ( with a link back)
3 so user posts profile and is directed to an index page which has an edit profile button which is now linked to an edit profile page
Does that sound correct?
Any suggestions in getting all this to work would be much appreciatedHi Yomi,
I have created the users page which submits to a members page and tell the user to edit biodata, profession, and hobbies. but on clicking I am really confused on how the id will be transfered from the members page to update biodata and the user updates the form which will show past records. this should also apply to the profession and hobbies
If I understand this right, you might want to consider providing a complete "userdata" section which comes with a Dynamic List and a Dynamic Form to have users add & update their data plus (via the Dynamic List) track all past records
Lastly is it possible I create recordset at will and the id will be passed thru since kt-login-id behaves sololy
I really can´t recommend this "pass user_id as URL variable" approach in this case, as URL variables are displayed in the browser´s address bar -- and this is absolutely insecure, because anyone could simply change the displayed "user_id" value, reload the form and hence edit data which belongs to a different user.
The only secure method is indeed to use ADDT´s session variable kt_login_id
Fatal error: Call to undefined function: var_export()
Not sure, but maybe some "includes" files haven´t been generated
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Post Author: strife
CA Forum: General
I am using Crystal 10 and trying to develop a donor percent participation report, comparing donors to total number of class members (donors per class/good addresses per class) * 100. The number of class members comes from a summary table of good address counts that remains static throughout the year.
1) I can create a view for the good address counts but Iu2019m unclear as to the way to link this view to the table of donors. I canu2019t link ID to ID since itu2019s a summary and doesnu2019t have a row per ID (I need address counts for ALL IDs not just the ones who are donors).
2) If I put the view in a subreport, I get only one result not a count for each group which is class year.
3) If I put the subreport in the class year group to get a result returned for each class but the subreport creates unwanted blank rows in the export to Excel.
I am looking at the last option but wonder if there is some other way that Iu2019m overlooking. Any help is appreciated.Here is the video! and it works for 2010. It shows you how to put the pivot wizard that you need on the ribbon.
https://www.youtube.com/watch?v=pUXJLzqlEPk
Excel Pivot Tables: How to flatten a cross tab table
Note: the above instructions for 2007 and 2003 work as well BUT you must let go of the "alt" & "d" when you press "P"! -
How do I display an invalid zip code in a summary table
On my airshow website we have a feedback form, one of the questions is the zipcode where the visitor came from. This works fine. The summary results tab includes a lookup for the zipcode where I show the city associated with the zipcode and then how many responses came from that zipcode. This can be seen here http://www.hollisterairshow.com/feedback-results.php?tab=7
In testing, I found that an invalid zipcode is not displayed in the summary table, although it is counted in the total number of responses. I'd like to display the invalid zipcode and leave the City blank, or maybe put "Invalid zip code". The current code is displayed below, it's beyond my ability to figure out how I should change it to display invalid zipcodes and I'd really appreciate some direction on this.
I know I could validate the zipcode on entry but it's quite possible the zipcode table I have is out of date and i can't find a free downloadable list, so I'm thinking anything invalid could cause me to update my table.which is fine.
Thanks for any assistance.
Tony
<div class="TabbedPanelsContent">
<?php
// Make a MySQL Connection
$query = "SELECT feedback.zip, COUNT(feedback.zip), zipcodes.citystate FROM feedback, zipcodes WHERE feedback.zip = zipcodes.zipcode GROUP BY feedback.zip";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result))
echo $row['zip']. " ". $row['COUNT(feedback.zip)']. " ". $row['citystate'];
echo "<br />";
?>
</div>Use an outer join on the two tables so that results are returned for all feedback rows, instead of just matching rows. The column zipcodes.citystate will be NULL. In your recordset output, you can test for null in the column and populate it with "Invalid Zipcode" if you want.
You'll need to move the join to the FROM clause as I believe that MySQL does not support outer joins in the WHERE clause like most other DBMS's. -
Trying to understand "User/Role/Profile Synchronization" and Batch Analysis
Hello,
Im trying to understand what exactly and from which tables these jobs are copying to which tables in CC. I have a understanding that these jobs are moving also deleted roles from backend. This is causing unnecessary delay to long lasting job.
I would appreasite if some one could explain the logic behind these jobs. What the fullsync and incremental is reading ? What kind of changes are causing a role/user/profile to be included to the full and incremental jobs?
How the incremental analysis logic is built ?
br JanneJanne,
In my current implementation we are going for an offline risk analysis due to the heteregoneus system landscape of our client (several SAP and non SAP systems and several SAP systems under 4.6C). Eventhough within our approach we don't perfrom the backend synchronization (we use CC data extractor to pull data from backend into CC) hope the following info could hel you:
The tables such jobs you mention access to, are all the SAP backend system tables related with users, roles, profiles, action and permissions. If you check the data mapping appendix of the "user and configuration guide for 5.2" you will see all the data that CC retrieves. For instance, in order to extract user info (UserID, FName, LName, Email, Phone, Email, Department) tables USR21, USR02, ADRP, ADR6 and ADCP must be accessed.
In terms of CC tables:
VIRSA_CC_SYSUSR >> UserIDs and Systems ID relationship
VIRSA_CC_GENOBJ >> User, Role and Profile master data
VIRSA_CC_GENACT >> User-action, role-action and profile-action data
VIRSA_CC_GENPRM >> User-permission, role-permission and profile-permission
VIRSA_CC_SAPOBJ >> Action-permission
VIRSA_CC_OBJTEXT >> Objects descripcions (ACT, PRM, FLD, VAL, ORG)
Hope this helps.
Regards,
Imanol -
Hi
I am tasked with producing an automated version of a manual summary table that is built in Excel.
The data is derived from a single reporting table.
My problem is going about how to design such a table. Please see the image attached to get an idea of what i'm after.
It's like I'm after a double grouping of data - one for the rows and one for the columns, but I don't know how to implement one.
Should I just insert a row for each summation into the table that first begins with the row title? eg
VALUES ROWTITLE, SummedInfo2012, SummedInfo2013 etc....
Or is there another way about this?
Thanks.Well, keep guessing
select type, value
from (select
sum(cast(fault as int)) as
fault ,
sum(cast(nonfault as int)) as
nonfault ,
sum(cast(dispute as int)) as
dispute
from t1) as agg
unpivot(value for type in([fault ], [nonfault ],
[dispute ])) as u;
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Query Question: Sum of master and monthly table data
Hi All,
I have two tables that store financial data about programs. The PROGRAM table has the following columns (for purposes of this discussion):
ID, INITIAL_BUDGET, COST_CENTER
The PROGRAM_MONTHLY table has the following (abbreviated list of) columns:
ID, PROGRAM_ID (FK to PROGRAM.ID), CURRENT_FORECAST, RECORD_DATE
Every month, a copy of the program_monthly records for last month is made to new records in the PROGRAM_MONTHLY table and we use RECORD_DATE for our filters and comparisons. This way we have historical data, plus current month data that can be updated by our financial systems and program managers.
I am using Application Express and would like to create a dashboard chart that shows the summary of the INITIAL_BUDGET and the CURRENT_FORECAST for a selected month. Obviously, the INITAL_BUDGET doesn't change, but the CURRENT_FORECAST (and similar columns such as the amount committed to purchase orders, which were omitted to simplify the discussion) change monthly.
My goal is to create a chart that can display the initial budget, current forecast, amount committed on purchase orders, etc. for all cost centers, or just one at a time as the user requires, that is filtered by the month of the PROJECT_MONTHLY record. If I can come up with the statement for a view or query, then I can manage the rest.
The required syntax for the chart is "SELECT link, label, value FROM...", where "link" can be NULL, since is it an optional link to another URL. The "label" and "value" portion are the important parts.
For example, I have another chart that shows the project status (which is a Varchar 2 constrained to values such as, Active, On-Hold, Completed, etc.) with the status as the label and the count of the rows as the value. It starts:
select null link, pjm.PROJECT_STATUS label, COUNT(pjm.ID) value FROM ... However, I have been unable to come up with a query that generates the desired results for these PROGRAM and PROGRAM_MONTHLY tables. I have played with various types of joins and sub-queries, but my SQL just isn't up to the challenge yet. I realize that I might have to re-work the table structure to accomodate this requirement.
I would greatly appreciate any guidance in approaching this problem.
Many thanks for your time and help,
PetieCertainly, Warren, thanks so much for your willingness to look at my problem.
To keep things simple, I will put the fundamentals of the tables with sample data. Please let me know if you would like more and I would be happy to provide it.
Table: PROGRAM
ID PROGRAM_NUMBER INITIAL_BUDGET COST_CENTER
1 10001 100000 500-001
2 10002 125000 500-001
3 10003 150000 500-002
4 10004 175000 500-002
5 10005 10000 500-003
6 10006 200000 500-004Table: PROGRAM_MONTHLY
ID PROGRAM_ID CURRENT_FORECAST RECORD_DATE
1 1 95000 02-FEB-06
2 2 125000 02-FEB-06
3 3 145000 02-FEB-06
4 4 180000 02-FEB-06
5 5 9000 02-FEB-06
6 6 225000 02-FEB-06
7 1 97500 02-MAR-06
8 2 120000 02-MAR-06
9 3 145000 02-MAR-06
10 4 185000 02-MAR-06
11 5 10000 02-MAR-06
12 6 215000 02-MAR-06
Report Example 1
When a user would like to see the current summary data for all cost centers, they would see a chart with the following data:
INIT_BUDGET CURRENT_FORECAST
760000 772500
Report Example 2
When a user would like to see the summary data for all cost centers for last month, they would see a chart with the following data:
INIT_BUDGET CURRENT_FORECAST
760000 779000
Report Example 3
When a user would like to see the current summary data for cost center 500-001, they would see a chart with this following data:
INIT_BUDGET CURRENT_FORECAST
225000 220000I hope this better illustrates the solution I seek.
Thank you again for your time and assistance
Petie -
Summary Tables for Asset Master?
I need to create an asset/insurance data report, using SAP Query, which shows the asset master record balances only (acquisition and posted depre'n) as at report selection date.
Are there any summary tables for fixed assets that are equivalent to GLT0, KNC1 and LFC1 for GL, Customer and Vendor?
Thanks in advance for any assistance.
Best regards,I am not sure about ANEP or know how to use it. It only has data records for the fiscal year when there is posting to acquisition values field u201CAmount postedu201D for the asset. No data records for other years with posted depreciation.
-
Hello
We are using Oracle 10g rel2 and have a table called transactions. There are millions of rows in this table and we would like to build a summary table that will sum the PNL by day. At some point we will purge data which is older than 60 days but need to be the summary totals by day. What is the best way to accomplish this. Materized views rely on the master table and that table will have data purged out of it, so I do not think it will work.
Transaction table has column transaction_date , cost,sale
We want a summary table of TRANSACTION_DATE,SUM(SALE - COST) AS PNL
GROUP BY TRUNC(TRANSACTION_DATE)Danny G wrote:
Hello
We are using Oracle 10g rel2 and have a table called transactions. There are millions of rows in this table and we would like to build a summary table that will sum the PNL by day. At some point we will purge data which is older than 60 days but need to be the summary totals by day. What is the best way to accomplish this. Materized views rely on the master table and that table will have data purged out of it, so I do not think it will work.Not a problem with materialized views.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/refresh.htm#sthref888
You do need to be strict about here about process control though:
* suspend modifications to transaction table.
* refresh the MV.
* purge the old transaction data.
* CONSIDER FRESH on the MV.
* restart modifications to transaction table.
Maybe you are looking for
-
Hi I have a servlet that is working perfectly through JBuilder. When I try and run it through Tomcat I get an error saying it cannot find the file. In JBuilder I have a html form. The value entered in the form is passed to the servlet. The servlet ca
-
Windows Update 80072EE2 after Factory recovery
Hello everyone! I just did a complete factory recovery on a Lenovo 3000 K100, with Windows Vista Home Premium 32bits. The recovery was successeful. (I used the Recovery partition that came from the Lenovo) The device manager has nothing wrong. But
-
How can I change and create new events?
iPhoto for iPad seems to stick some naming convention for creating Events. Is there a way to: 1. change the Event name? 2. Split events? 3. Rearrange photos to certain events? pacpac
-
Capture Delta records in Fixed Assets Subledger
Hi, I am creating an extract from ECC 6.0(flat file). After the initial load I will have to capture the delta records, how can I do that? My file will bring the Fixed asset Balance Sheet accounts at WBS level.(the asset number do not appear in the fi
-
All of the thumbnails on my iPhoto are different then the pictures that they actually are, is there any solution for that?