0HDCNT_LAST
Hi All,
I am facing some issues related to 0HDCNT_LAST. This infoobject is a key figure with aggregation as SUM, Exceptation aggregation as Last value and Agg reference char as 0Calday.
the summazation of all the values in this infoobject will give the total number of employees in the organization as this infoobject will give me value as 1 or 0 for a particular employee.
The issue I am facing is that this infoobject is displaying value more than 1 (i.e. 11, 16,etc) for single employee number which is not possible.
Please help me in resolving this issue as how to get the correct data using this infoobject.
Regards
Vikas
Hi All,
I am facing some issues related to 0HDCNT_LAST. This infoobject is a key figure with aggregation as SUM, Exceptation aggregation as Last value and Agg reference char as 0Calday.
the summazation of all the values in this infoobject will give the total number of employees in the organization as this infoobject will give me value as 1 or 0 for a particular employee.
The issue I am facing is that this infoobject is displaying value more than 1 (i.e. 11, 16,etc) for single employee number which is not possible.
Please help me in resolving this issue as how to get the correct data using this infoobject.
Regards
Vikas
Similar Messages
-
Can not retrive total result for 0HDCNT_LAST(number of employee)
Dear all:
We tried to create query from cube 0PA_C01. We used 0ORGUNIT and Number of Employees(0HDCNT_LAST) in the row and column.Also we created a formula to get total result of number employees by SUMGT (0HDCNT_LAST). But when we executed this query, there is no cumulative value appeared in the "total result" of bottom row. And we are not able to catch total result by formula as well. The setting for infoObject of 0HDCNT_LAST is integer and cumulative.
Can anyone tell me what is going wrong?
Thank you very much
BR
SFHi Jasprit,
I am loading the headcount (0HR_PA_0) to Actions & Headcount cube. As a part of load I have used all the standard fields of the cube. Apart from that I have populated the functional group value from Employee-Org Masterdata. As this is an time dependent.
0HDCNT_LAST is an non-Cumulative key figure in the cube which is get populated from the 0HR_PA_0.
I required a headcount report by functional group. So I have pulled 0HDCNT_LAST & Period into the Columns and Functional Group into Rows.
When I run the report for headcount by function group it is showing very less value. But if run the same report by including the Employee and the functional group in the rows then it is showing the correct headcount in the result.
I am not sure where I am missing.
Regards,
Tony -
Issue with 0HDCNT_LAST (number of employees)
Hi experts
I have a query with this structure:
Lines:
Employee SubGroup
Columns:
Age Intervail (18-25; 26-35; 36-45; 46-55; 56-100)
Gender
0HDCNT_LAST
Definition in 0HDCT_LAST is SUM, AGGREGATION, Last value; 0CALDAY (guess it is ok)
Query is mandatory stricted to current month and year.
Now the trouble is, query retrieves about half of the employees.
The (0HDCNT_LAST) count changes as I change the free characteristics in the lines structure. If I change Employee SubGroup by 0EMPLOYEE, I get the true results (supposing 2200). If I return to Employee SubGroup I get 1300, if Employee Group, like 700.
This issue regards the wrong number of employees, not the result lines, because they sum like they should.
I gess you got a point on what is my issue. Has anyone faced this before? If so, how can it be solved?
Thanks in advande for your help,
Best Regards,
André Oliveira
Edited by: Andre Oliveira on Mar 17, 2010 10:13 AMSAP_PHIL,
there is no option in routing to give number of employes.
But while creating Work centre you can give number of capacilties used in it.
If you are using employes are resources , create a work centre with capacity category labour and assign number of emply to it.
Check it out and revert back.
Hope it helps you.
Regards
Ritesh -
Strange problem wth 0HDCNT_LAST (No. of Employees) Key Figure
Hi gurus,
I hava a strange problem with 0HDCNT_LAST key figure.
The KF has Sum aggregation with Last Value Exception Aggregation for 0CALDAY - standard settings from Bi Content.
I use this KF in two InfoCubes.
It behaves in a very strange way in queries based on one of them:
- when I execute this query for a range of 0CALMONTH (i.e. 01.2009 - 12.2009), I get No. of Employees = 12 for every worker - it should be 1.
- for some months the Total result is 0, even if there are some workers hired and the results for different Organizational Units is shown well (i.e. 10, 14, 5, and Total = 0 instead of 29).
Please help... I have already reactivated the KF from BI Content, I have also reactivated the cube. What might be wrong?Hi Dorota ,
you are using exception aggregation at 0CALDAY so it is doing sum at 0employee .try to change it to max or min and then execute query .It should work.
For more details you can visit following links :
http://wiki.sdn.sap.com/wiki/display/BI/Exceptionaggregationin+queries
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/47/4d6d902dbb22c5e10000000a42189d/frameset.htm
Regards,
Jaya -
How to know which master data objects need to activated in R3
SALES OVERVIEW CUBE -0SD_C03
How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.
its very urgent please advise.
R/3 in RSA5
Sales Master Data
0ACCNT_ASGN_TEXT Account assignment group for this customer
0ACCNT_GRP_TEXT Customer account group
0BILBLK_DL_TEXT Locked
0BILBLK_ITM_TEXT Billing block for item
0BILL_BLOCK_TEXT Billing block in SD document
0BILL_CAT_TEXT Billing Category
0BILL_RELEV_TEXT Relevant for Billing
0BILL_RULE_TEXT Billing rule
0BILL_TYPE_TEXT Billing Type
0CONSUMER_ATTR Consumer
0CONSUMER_LKLS_HIER Consumer
0CONSUMER_TEXT Consumer
0CUST_CLASS_TEXT Customer Classification
0CUST_GROUP_TEXT Customer Group
0CUST_GRP1_TEXT Customer Group 1
0CUST_GRP2_TEXT Customer Group 2
0CUST_GRP3_TEXT Customer Group 3
0CUST_GRP4_TEXT Customer Group 4
0CUST_GRP5_TEXT Customer Group 5
0DEALTYPE_TEXT Sales Deal Type
0DEL_BLOCK_TEXT Delivery block (document header)
0DEL_TYPE_TEXT Delivery Type
0DISTR_CHAN_TEXT Distribution Channel
0DIVISION_TEXT Division
0DLV_BLOCK_TEXT Schedule line blocked for delivery
0DOC_CATEG_TEXT SD Document Category
0DOC_TYPE_TEXT Sales Document Type
0INCOTERMS_TEXT Incoterms (Part 1)
0INDUSTRY_TEXT Industry keys
0IND_CODE_3_TEXT Industry code 3
0IND_CODE_4_TEXT Industry code 4
0IND_CODE_5_TEXT Industry code 5
0IND_CODE_TEXT Industry code
0ITEM_CATEG_TEXT Sales document item category
0ITM_TYPE_TEXT FS item type
0KHERK_TEXT Condition Origin
0MATL_GRP_1_TEXT Material Group1
0MATL_GRP_2_TEXT Material Group 2
0MATL_GRP_3_TEXT Material Group 3
0MATL_GRP_4_TEXT Material Group 4
0MATL_GRP_5_TEXT Material Group 5
0MATL_TYPE_TEXT Material Type
0MAT_STGRP_TEXT Material statistics group
0NIELSEN_ID_TEXT Nielsen ID
0ORD_REASON_TEXT Order reason (reason for the business transaction)
0PICK_INDC_TEXT Indicator for picking control
0PRODCAT_TEXT Product Catalog Number
0PROD_HIER_TEXT Product Hierarchy
0PROMOTION_ATTR Promotion
0PROMOTION_TEXT Promotion
0PROMOTYPE_TEXT Promotion Type
0PROV_GROUP_TEXT Commission Group
0REASON_REJ_TEXT Reason for rejection of quotations and sales orders
0REBATE_GRP_TEXT Volume rebate group
0RECIPCNTRY_TEXT Destination country
0ROUTE_TEXT Route
0SALESDEAL_ATTR Sales deal
0SALESDEAL_TEXT Sales deal
0SALESORG_ATTR Sales organization
0SALESORG_TEXT Sales Organization
0SALES_DIST_TEXT Sales district
0SALES_GRP_TEXT Sales Group
0SALES_OFF_TEXT Sales Office
0SCHD_CATEG_TEXT Schedule line category
0SHIP_POINT_TEXT Shipping point/receiving point
In BW
Base Unit of Measure 0BASE_UOM
Bill-to party 0BILLTOPRTY
Calendar Day 0CALDAY
Calendar Year/Month 0CALMONTH
Calendar Year/Week 0CALWEEK
Change Run ID 0CHNGID
Company code 0COMP_CODE
Cost in statistics currency 0COST_VAL_S
Credit/debit posting (C/D) 0DEB_CRED
Distribution Channel 0DISTR_CHAN
Division 0DIVISION
Number of documents 0DOCUMENTS
Sales Document Category 0DOC_CATEG
Document category /Quotation/Order/Delivery/Invoice 0DOC_CLASS
Number of Document Items 0DOC_ITEMS
Fiscal year / period
Fiscal year variant 0FISCVARNT
Gross weight in kilograms 0GR_WT_KG
Number of Employees 0HDCNT_LAST
Material 0MATERIAL
Net value in statistics currency 0NET_VAL_S
Net weight in kilograms 0NT_WT_KG
Open orders quantity in base unit of measure 0OPORDQTYBM
Net value of open orders in statistics currency 0OPORDVALSC
Payer 0PAYER
Plant 0PLANT
Quantity in base units of measure 0QUANT_B
Record type 0RECORDTP
Request ID 0REQUID
Sales Employee 0SALESEMPLY
Sales Organization 0SALESORG
Sales group 0SALES_GRP
Sales Office 0SALES_OFF
Shipping point 0SHIP_POINT
Ship-To Party 0SHIP_TO
Sold-to party 0SOLD_TO
Statistics Currency 0STAT_CURR
In R3 RSA5 we have all the Master data data sources as mentioned above, and BW also. How to find the related Master data Infosource in R/3 Master data Data sources.
Thanks in advance,
Bhima.
Message was edited by: Bhima Chandra Sekhar GuntlaHi,
<i>How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.</i>
I think, you are looking for master data sources(text,attributes,hier).Am i right?
If so, This cube has almost all SD master data characterstics. So you can activate all the all master data datasources of SD in r/3 (SD-IO).
Any way you requirement does not stop only by using this cube . You will activate all other cubes in SD also. So if you want to activate only needed master data datasources when you are activating a cube, the job becomes senseless. There is no problem(wrong) in activating all master data available under that application , even though you want to activate only one cube.
With rgds,
Anil Kumar Sharma .P -
Data Source 0HR_PA_0 Syntax Error in the start routine while activating
Hi All,
I have migrated the Business content for the data source 0HR_PA_0
While activating the transformation-2 there is errors like:
Start Routine: Syntax error in routine
Rule (target: 0HDCNT_LAST, group: 01 Standard Group): Syntax error in routine
Rule (target: 0AGE_KYF, group: 01 Standard Group): Syntax error in routine
.................... etc
I need help to resolve this issue.
Thanks & Regards,
SavithaHello Jurgita,
When Data Source was migrated the codes related to COMM_STRUCTURE was missing in the start routinue.
Following codes (in bold) with regard to COMM_STRUCTURE added and then got activated
4. *--
5. COMM_STRUCTURE type tys_sc_1__rule_25,
6. l_subrc type sy-tabix,
7. l_abort type sy-tabix,
8. ls_monitor TYPE rsmonitor,
9. ls_monitor_recno TYPE rsmonitors.
10.
11. REFRESH:
12. MONITOR.
13.
14. * Runtime attributs
15. SOURCE_SYSTEM = p_r_request->get_logsys( ).
16. move-corresponding SOURCE_FIELDS to COMM_STRUCTURE.
17.
18. * Migrated update rule call
19. Perform routine_0011
20. using
21. COMM_STRUCTURE
22. CHANGING
Regards,
Savitha
Edited by: Savitha Ravi on Jun 19, 2009 6:34 AM -
Hi,
How I can validate the key Figure 0HDCNT_FTE and 0HDCNT_LAST key figure with R/3.
Thanks
Edited by: pranitaSAP on Oct 5, 2011 10:54 PMHi
first analyze your data flow. follow your data flow from Info CUBE to R3.
let's take an example your data flow is PSA --> DSO --> CUBE
1) check the data for this 2 key figures in Info Cube.
2) Check the data in DSO for this key figures.
3) If you find any difference then check out the transformation. if you found both are same then goto below step
4) check the data in PSA, if you found any difference then check the transformation between PSA and DSO.
Note: Check the mappings in Transformations and check if you have ant routines in transformations. Try to run the DTP for some records using simulation mode to test the routines.
If you feel data is wrong in R3 system, then follow the below steps.
5) Check the transfer structure of this data source and check which fields are mapped to this key figures.
6) goto SE11 in R3 system, by giving field name and click on where used list and in next screen select tables and execute. you will get table name.
7) Check the data for this fields in tables.
Regards,
Venkatesh -
Dear Experts
I am facing an issue for the data source 2lis_11_vaitm and 2lis_11_vcitm for info cube 0SD_C03. When i create transformation on update rule, it gets created with warnings but no issues. When i try making a transformation on update rule it gives errors about abap routines and start routines. Then i would go for migrating 2lis_11_vaitm but that cant be done because of above mentioned error. I have migrated other data sources same way. The reason i am doing so is because of making exact transformations as trsansfer and update rule.
My objectives is migrating 2lis_11_vaitm and 2lis_11_vcitm to 7.X etl flow. Am I right on the sequence of steps? cause my main issue is when my info package starts writing data in PSA in errors out for both 2lis_11_vaitm & 2lis_11_vcitm. The IDOC has the same problem. So migrating seems to be the only solution. Plz help and FYI my patch levels on bi system.
compo Rel. SP-lev. Supp. pack Desc.
SAP_ABA 701 0010 SAPKA70110 Cross-Application Component
SAP_BASIS 701 0010 SAPKB70110 SAP Basis Component
PI_BASIS 701 0010 SAPK-70110INPIBASIS Basis Plug-In
SAP_BW 701 0010 SAPKW70110 SAP Business Warehouse
BI_CONT 706 0000 - Business Intelligence ContentThe errors I face during the transformation activation while making them on the update rule are following.
Start Routine: Syntax error in routine
Rule (target: 0SUBTOT_1S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_2S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_3S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_4S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_5S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0SUBTOT_6S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0QUANT_B, group: 01 Standard Group): Syntax error in routine
Rule (target: 0DOC_ITEMS, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NET_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0COST_VAL_S, group: 01 Standard Group): Syntax error in routine
Rule (target: 0GR_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0NT_WT_KG, group: 01 Standard Group): Syntax error in routine
Rule (target: 0VOLUME_CDM, group: 01 Standard Group): Syntax error in routine
Rule (target: 0HDCNT_LAST, group: 01 Standard Group): Syntax error in routine
Rule (target: 0BP_GRP, group: 01 Standard Group): Syntax error in routine
Rule (target: 0CP_CATEG, group: 01 Standard Group): Syntax error in routine
Rule 39 (target field: 0CRM_PROD Group: 01 Standard Group): incomplete master data rule
Rule (target: 0DEB_CRED, group: 01 Standard Group): Syntax error in routine
Rule (target: 0DOC_CLASS, group: 01 Standard Group): Syntax error in routine
Rule (target: 0PROD_CATEG, group: 01 Standard Group): Syntax error in routine
Key rule 44 (target field: 0VERSION): Initial update set
it has as many routine as many syntax errors in routine. -
COMM_SRTUCTURE is uknown when migrating data flow bw 3.x to 7.4
Dear ALL,
2LIS_13_VDHDR data flow migrating 3.x to 7.x , ABAP syntax error COMM_STRUCTURE is unknown infosoure transformation level, present we are using 7.4 sp5 . after migration ABAP code
TYPES:
BEGIN OF _ty_s_TG_1_full,
* InfoObject: 0CHNGID Change Run ID.
CHNGID TYPE /BI0/OICHNGID,
* InfoObject: 0RECORDTP Record type.
RECORDTP TYPE /BI0/OIRECORDTP,
* InfoObject: 0REQUID Request ID.
REQUID TYPE /BI0/OIREQUID,
* InfoObject: 0CALDAY Calendar Day.
CALDAY TYPE /BI0/OICALDAY,
* InfoObject: 0CALMONTH Calendar Year/Month.
CALMONTH TYPE /BI0/OICALMONTH,
* InfoObject: 0CALWEEK Calendar year / week.
CALWEEK TYPE /BI0/OICALWEEK,
* InfoObject: 0FISCPER Fiscal year / period.
FISCPER TYPE /BI0/OIFISCPER,
* InfoObject: 0FISCVARNT Fiscal year variant.
FISCVARNT TYPE /BI0/OIFISCVARNT,
* InfoObject: 0BILLTOPRTY Bill-to party.
BILLTOPRTY TYPE /BI0/OIBILLTOPRTY,
* InfoObject: 0COMP_CODE Company code.
COMP_CODE TYPE /BI0/OICOMP_CODE,
* InfoObject: 0DISTR_CHAN Distribution Channel.
DISTR_CHAN TYPE /BI0/OIDISTR_CHAN,
* InfoObject: 0DOC_CATEG Sales Document Category.
DOC_CATEG TYPE /BI0/OIDOC_CATEG,
* InfoObject: 0PLANT Plant.
PLANT TYPE /BI0/OIPLANT,
* InfoObject: 0SALESORG Sales Organization.
SALESORG TYPE /BI0/OISALESORG,
* InfoObject: 0SALES_GRP Sales group.
SALES_GRP TYPE /BI0/OISALES_GRP,
* InfoObject: 0SALES_OFF Sales Office.
SALES_OFF TYPE /BI0/OISALES_OFF,
* InfoObject: 0SHIP_TO Ship-To Party.
SHIP_TO TYPE /BI0/OISHIP_TO,
* InfoObject: 0SOLD_TO Sold-to party.
SOLD_TO TYPE /BI0/OISOLD_TO,
* InfoObject: 0VERSION Version.
VERSION TYPE /BI0/OIVERSION,
* InfoObject: 0VTYPE Value Type for Reporting.
VTYPE TYPE /BI0/OIVTYPE,
* InfoObject: 0DIVISION Division.
DIVISION TYPE /BI0/OIDIVISION,
* InfoObject: 0MATERIAL Material.
MATERIAL TYPE /BI0/OIMATERIAL,
* InfoObject: 0SHIP_POINT Shipping point.
SHIP_POINT TYPE /BI0/OISHIP_POINT,
* InfoObject: 0PAYER Payer.
PAYER TYPE /BI0/OIPAYER,
* InfoObject: 0DOC_CLASS Document category /Quotation/Order/Deliver
*y/Invoice.
DOC_CLASS TYPE /BI0/OIDOC_CLASS,
* InfoObject: 0DEB_CRED Credit/debit posting (C/D).
DEB_CRED TYPE /BI0/OIDEB_CRED,
* InfoObject: 0SALESEMPLY Sales Representative.
SALESEMPLY TYPE /BI0/OISALESEMPLY,
* InfoObject: 0SUBTOT_1S Subtotal 1 from pricing proced. for condit
*ion in stat. curr..
SUBTOT_1S TYPE /BI0/OISUBTOT_1S,
* InfoObject: 0SUBTOT_2S Subtotal 2 from pricing proced. for condit
*ion in stat. curr..
SUBTOT_2S TYPE /BI0/OISUBTOT_2S,
* InfoObject: 0SUBTOT_3S Subtotal 3 from pricing proced.for conditi
*on in stat. curr..
SUBTOT_3S TYPE /BI0/OISUBTOT_3S,
* InfoObject: 0SUBTOT_4S Subtotal 4 from pricing proced. for condit
*ion in stat. curr..
SUBTOT_4S TYPE /BI0/OISUBTOT_4S,
* InfoObject: 0SUBTOT_5S Subtotal 5 from pricing proced. for condit
*ion in stat. curr..
SUBTOT_5S TYPE /BI0/OISUBTOT_5S,
* InfoObject: 0SUBTOT_6S Subtotal 6 from pricing proced. for condit
*ion in stat. curr..
SUBTOT_6S TYPE /BI0/OISUBTOT_6S,
* InfoObject: 0OPORDQTYBM Open orders quantity in base unit of meas
*ure.
OPORDQTYBM TYPE /BI0/OIOPORDQTYBM,
* InfoObject: 0OPORDVALSC Net value of open orders in statistics cu
*rrency.
OPORDVALSC TYPE /BI0/OIOPORDVALSC,
* InfoObject: 0QUANT_B Quantity in base units of measure.
QUANT_B TYPE /BI0/OIQUANT_B,
* InfoObject: 0DOCUMENTS No. of docs.
DOCUMENTS TYPE /BI0/OIDOCUMENTS,
* InfoObject: 0DOC_ITEMS Number of Document Items.
DOC_ITEMS TYPE /BI0/OIDOC_ITEMS,
* InfoObject: 0NET_VAL_S Net value in statistics currency.
NET_VAL_S TYPE /BI0/OINET_VAL_S,
* InfoObject: 0COST_VAL_S Cost in statistics currency.
COST_VAL_S TYPE /BI0/OICOST_VAL_S,
* InfoObject: 0GR_WT_KG Gross weight in kilograms.
GR_WT_KG TYPE /BI0/OIGR_WT_KG,
* InfoObject: 0NT_WT_KG Net weight in kilograms.
NT_WT_KG TYPE /BI0/OINT_WT_KG,
* InfoObject: 0VOLUME_CDM Volume in cubic decimeters.
VOLUME_CDM TYPE /BI0/OIVOLUME_CDM,
* InfoObject: 0HDCNT_LAST Number of Employees.
HDCNT_LAST TYPE /BI0/OIHDCNT_LAST,
* InfoObject: 0CRM_PROD Product.
CRM_PROD TYPE /BI0/OICRM_PROD,
* InfoObject: 0CP_CATEG Category.
CP_CATEG TYPE /BI0/OICP_CATEG,
* InfoObject: 0FISCYEAR Fiscal year.
FISCYEAR TYPE /BI0/OIFISCYEAR,
* InfoObject: 0BP_GRP BP: Business Partner Group (from Hierarchy).
BP_GRP TYPE /BI0/OIBP_GRP,
* InfoObject: 0STAT_CURR Statistics Currency.
STAT_CURR TYPE /BI0/OISTAT_CURR,
* InfoObject: 0BASE_UOM Base Unit of Measure.
BASE_UOM TYPE /BI0/OIBASE_UOM,
* InfoObject: 0PROD_CATEG Product Category.
PROD_CATEG TYPE /BI0/OIPROD_CATEG,
* InfoObject: 0VOLUME Volume.
VOLUME TYPE /BI0/OIVOLUME,
* InfoObject: 0VOLUMEUNIT Volume unit.
VOLUMEUNIT TYPE /BI0/OIVOLUMEUNIT,
* InfoObject: 0FISCPER3 Posting period.
FISCPER3 TYPE /BI0/OIFISCPER3,
* InfoObject: 0SALES_DIST Sales District.
SALES_DIST TYPE /BI0/OISALES_DIST,
* InfoObject: 0BILL_TYPE Billing type.
BILL_TYPE TYPE /BI0/OIBILL_TYPE,
* InfoObject: 0MOVE_PLANT Receiving Plant/Issuing Plant.
MOVE_PLANT TYPE /BI0/OIMOVE_PLANT,
* InfoObject: 0SHIP_COND Shipping conditions.
SHIP_COND TYPE /BI0/OISHIP_COND,
* InfoObject: 0AB_RFBSK Status for Transfer to Accounting.
AB_RFBSK TYPE /BI0/OIAB_RFBSK,
* InfoObject: 0AB_FKSTO Indicator: Document Is Cancelled.
AB_FKSTO TYPE /BI0/OIAB_FKSTO,
* InfoObject: 0CUST_GRP5 Customer Group 5.
CUST_GRP5 TYPE /BI0/OICUST_GRP5,
* InfoObject: ZCU_COND1 Constomer Condition Group 1.
/BIC/ZCU_COND1 TYPE /BIC/OIZCU_COND1,
* InfoObject: ZCU_COND2 Customer Condition Group 2.
/BIC/ZCU_COND2 TYPE /BIC/OIZCU_COND2,
* InfoObject: ZBATCHCD Batch Code.
/BIC/ZBATCHCD TYPE /BIC/OIZBATCHCD,
* InfoObject: 0BATCH Batch number.
BATCH TYPE /BI0/OIBATCH,
* InfoObject: ZBATCH Batch number.
/BIC/ZBATCH TYPE /BIC/OIZBATCH,
* Field: RECORD Data record number.
RECORD TYPE RSARECORD,
END OF _ty_s_TG_1_full.
* Additional declaration for update rule interface
DATA:
MONITOR type standard table of rsmonitor WITH HEADER LINE,
MONITOR_RECNO type standard table of rsmonitors WITH HEADER LINE,
RECORD_NO LIKE SY-TABIX,
RECORD_ALL LIKE SY-TABIX,
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS.
* global definitions from update rules
* TABLES: ...
DATA: IN TYPE F,
OUT TYPE F,
DENOM TYPE F,
NUMER TYPE F.
* Def. of 'credit-documents': following doc.categ. are 'credit docs'
* reversal invoice (N)
* credit memo (O)
* internal credit memo (6)
* Credit-documents are delivered with negative sign. Sign is switched
* to positive to provide positive key-figures in the cube.
* The combination of characteristics DE_CRED and DOC-CLASS provides
* a comfortable way to distinguisch e.g. positive incoming orders or
* order returns.
* Def. der 'Soll-Dokumente': folgende Belegtypen sind 'Soll-Belege'
* Storno Rechnung (N)
* Gutschrift (O)
* Interne Verrechn. Gutschr. (6)
* Soll-Dokumente werden mit negativem Vorzeichen geliefert. Um die Kenn-
* zahlen positiv in den Cube zu schreiben, wird das Vorzeich. gedreht
* Die Kombination der Merkmale DEB_CRED und DOC-CLASS gibt Ihnen die
* Möglichkeit schnell z.B. zwischen Auftrags-Eingang oder Retouren zu
* unterscheiden.
DATA: DEB_CRED(3) TYPE C VALUE 'NO6'.
FORM routine_0002
TABLES
P_MONITOR structure rsmonitor
CHANGING
RESULT TYPE _ty_s_TG_1_full-DOCUMENTS
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
* init variables
* fill the internal table "MONITOR", to make monitor entries
CLEAR RESULT.
RESULT = COMM_STRUCTURE-NO_INV.
IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED.
RESULT = RESULT * ( -1 ).
ENDIF.
RETURNCODE = 0.
p_monitor[] = MONITOR[].
CLEAR:
MONITOR[].
ENDFORM. "routine_0002
FORM routine_0003
TABLES
P_MONITOR structure rsmonitor
CHANGING
RESULT TYPE _ty_s_TG_1_full-DEB_CRED
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
* init variables
* fill the internal table "MONITOR", to make monitor entries
IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED.
RESULT = 'C'.
ELSE.
RESULT = 'D'.
ENDIF.
RETURNCODE = 0.
p_monitor[] = MONITOR[].
CLEAR:
MONITOR[].
ENDFORM.
Error:
E:Field "COMM_STRUCTURE-NO_INV" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement. "DATA" statement.
communication structure chaged to sours fields but no uses , please suggest how can i proceed , Thanks in Advance immediate replay
Thanks & Regards
Ramesh GHi Gareth,
You have two options:
1. Transport from BW 3.1 to BI 7.0. You'll need to create a transport route between both systems. This may cause you some troubles in the future when you want to modify the objects you transported.
2. As there are few objects, you can use XML export utility from Transport connection. There, you make an XML file with the objects you need to transport. One thing that you may take care of, in this option, is that the business content objects you are exporting need to be activated in the destination system. Another problem is that querys are not exported.
Since it's only a cube, maybe you can create the objects manually. Look that in BI 7.0 there are several new functionalities, i don't know how transport or xml export would work.
Hope this helps.
Regards,
Diego -
How to calculate number of employees according to gender
Now our customer want to calculate number of employees(0HDCNT_LAST) according to gender, expecially for female employee. we know that SAP has gender infoobject(0GENDER), and male with 1 and female with 2.
1) how should we use infoobject 0GENDER with female information connect R/3 table, and calculate number of employees at the end of one periode or time point? Should we use infoobject 0GENDER in cube?
2) How to write ABAP code? And what should we do in BW side ? should we do some enhancement?Hi,
you can use 0GENDER in your Cube. If you want to count you can do this in query.
For counting you build your own calculated key figure (formula).
Create a calculated keyfigure on global, formula ' =1' . Then drag this newly created global KF to the report column, restrict it with 0GENDER wich is restricted to male or female .
This would provide a count based on 0GENDER
Regards
Andreas -
Hello Friends,
I am getting the below error while running a dimbuild mxl script.
" ERROR - 1042012 - Network error [10054]: Cannot Send Data."
The same script worked fine when the datafile size was less than 100MB. Script gives the below error if the datafile size is around 500MB or more. Here is the complete dump of the mxl command and system messages.
Can you please help?
Thanks!
MAXL> import database "'SR_SalesA'"."'SR_SalesA'" dimensions
2> from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_Emp_01' suppress verification
3> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_COA_01' suppress verification
4> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_HStr00' suppress verification
5> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_HStr01' suppress verification
6> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_CStr00' suppress verification
7> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_CStr01' suppress verification
8> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_JCode' suppress verification
9> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_Grade1' suppress verification
10> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_Grade2' suppress verification
11> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_PGroup' suppress verification
12> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_Emp_02' suppress verification
13> ,from Local data_file "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\Datafiles\\DataLoad\\sarayu_AllPayroll_20110113111722.txt'" using server rules_file 'D_Emp_03'
14> enforce verification
15> on error write to "'\\\\sarayu.americas.stn.com\\d$\\Appfiles\\SR_SalesA\\RejFiles\\oDimPayroll.err'";
OK/INFO - 1053012 - Object [SR_SalesA] is locked by user [sarayu_batch].
OK/INFO - 1007132 - Building Dimensions Elapsed Time : [113.36] seconds.
WARNING - 1241114 - There were errors, look in \\sarayu.americas.stn.com\d$\Appfiles\SR_SalesA\RejFiles\oDimPayroll.err.
ERROR - 1042012 - Network error [10054]: Cannot Send Data.
ERROR - 1042012 - Network error [10054]: Cannot Send Data.
ERROR - 1241101 - Unexpected Essbase error 1042012.
OK/INFO - 1053013 - Object [SR_SalesA] unlocked by user [sarayu_batch].----------------
Edited by: Jayamani on Jan 20, 2011 8:24 AMusing cube 0PA_C01 (only use datasource 0HR_PA_0), KF (cumulative key figure) 0HDCNT_LAST, after loading transaction data I can see one employee has 12 records within one year. It means that cube 0PA_C01 calculate the number of employees by each employee by month. Actually we need this infomation with reference to the 0employee attr. however we worry about the records occurs in the cube. That will biger and biger.
e.g. with reference to the 0employee attr. use employee group, based on employee group I can distinguish how many person has attendance by each month by year. So, cube 0PA_C01 will calculate it.
Edited by: hi ni on May 10, 2008 12:20 PM -
0PA_C01 Keyfigure updation in HR Module
Hi all,
I am in process of activating the update rules for 0PA_C01(Copied to a Z cube) , with the help of help.sap i came to know this cube is basically loading from 0HR_PA_1 and 0HR_PA_0 infosource ,But when i trying to map the keyfigures(for eg 0HDCNT_LAST ) i am not able get any corresponfing mapping , actaully i copied the orginal cube to a Z cube inorder to add some more fields into the cube and also while mapping the 0person and other infoobject ,do i need to map with with 0employee .
Waiting for all of yours great suggestions .
Thanks
RHi Vinay,
Actually the datasources 0HR_PA_0 or 0HR_PA_1 doesnt provide any inforamtion about that key figure...the key figure 0HDCNT_LAST no of employees in our case is initial .... and it depends upon ur requirment....and based upon ur requirement u can define it to constant 1 or accordingly....
For suppose there is one key figrue called 0ACTION_CNT for a particular record the action count will be only one action so u can fix this key figure to constant 1.
Like this u can map ur key figures...
Regards
vamsi
Edited by: vamsi talluri on Dec 30, 2008 1:36 PM -
BW Datamodel Industry code with keyfigure
Dear BI Team,
we want to create a new datamodel on a 7.40 BI system. The new datamodel should give us a possibity to select the industrie codes for all customers and calculate the keyfigures eg. turnover with the percentage of the industrie code.
Our customer has three industrie codes and three percentages for the industrie codes.
So one Customer can have 20 % in Agricultur 40% in Mining and 40% in Manufacturing. So our Target is, that we want to calculate the percentage with the Turnover and make the industrie codes selectable. Our idea is to transform the data and write them into a cube, but the master data can be updated every day and makes the keyfigures wrong. (A virtual provider is not fast enough)
Do you have other ideas? How do you work with the industrie codes?
Thanks
RudolfHi,
Whats the exception aggregation for (0HDCNT_LAST)? it should be "last value" (check in KF properties--Aggregation tab)with some time reference characteristic...
Hope this helps
regards -
Hi forum,
I have created a new query based on cube 0PA_C01. One colum of my query is number of employees (0HDCNT_LAST) but the results are wrong.
Can anybody explain how 0HDCNT_LAST is calculated in BEX Query (in 0PA_C01, KF 0HDCNT_LAST is filled; its value is 1 for each employee)
kind regardsHi
You need to assign it to User Role/ With relevant Authorizations with EP / BAIS help.
Make sure that :
You have access to portal Universal Worklist iView. --access to the Universal Worklist Administration iView. -- and You have a predefined configuration (for example one shipped by Manager Self Services Business Package).
This predefined configuration (for example uwl.webflow.mss ) XML contains ItemTypes that are defined independent of any particular system.
Hope it helps
Maybe you are looking for
-
Managed server is getting crashed with Unexpected Signal : 11 occurred
Hi All, I have installed weblogic 8.1 in production environment which has 4 manged servers configured on it. One of my managed server is getting down on daily basis with JVM crash leaving the below error: Unexpected Signal : 11 occurred at PC=0xFEDCB
-
I can't drag files from iTunes to my iphone 5, I get an alert that says files can't be copied because I have iTunes Match enabled but I do not have iTunes M
-
Can I display the full address ?
I'd like to see the addresses when I send an e-mail, not just the name. Is there a way to show them in the "To" or "CC" fields?
-
okay..here is the setup: i am working on a project that has separate swf files serving as different sections (students, faculty, etc). for each section, on the first frame i have a combobox that lists the different values within that particular se
-
I want to buy a 2011 Macbook Pro 17"
I want to buy a 2011 Macbook Pro 17". I've seen a lot of new 2011 Macbook Pro 17" with 500GBSSD drives posted on Ebay. My question is did Apple sell them with internal SSD drives in them? If so, what were the storage capacities. I need 500GB. Were th