Reconcillation report for controlling
My requirement as follows.
this is a report for developing reconcillation statement for a company.
i created program as per requirement it is not executing becasuse of COEP table taking much time for executing.
any body have reconcillation report with sourcode kindly forward me.
TECHNICAL SPECIFICATIONS FOR RECONCILIATION REPORT
SELECTION SCREEN:
COMPANY CODE: T001-BUKRS
FISCAL YEAR : BKPF-GJAHR
PERIOD : BKPF-MONAT
OUTPUT FORMAT:
PARTICULARS AMOUNT
A TOTAL OF FI P/L ACCOUNTS
B LESS: TOTAL OF FI P/L ACCOUNTS NOT FLOWN TO CO (including VVGK values)
C TOTAL OF FI P/L ACCOUNTS FLOWN TO CO
D TOTAL OF COST VOLUME (MAT+ FEK+MGK+WVK)
E LESS : TOTAL OF RECONCILIATION ITEMS (ITEMS APPEARING ONLY IN CO - FOR E.G. ED,CC ETC)
F (D) (E)
RECONCILIATION -
( C ) = ( F )
START OF FIELD A
TABLE : SKB1 (G/L Account Master Table)
INPUT : BUKRS (Company Code)
SAKNR - NUMBER RANGE 4* (G/L Account No.)
OUTPUT : SAKNR (G/L Account No)
Result : This step will provide a list of Expenses G/L Accounts
TABLE : GLT0 (G/L Account Balances table)
INPUT : BUKRS (Company Code)
SAKNR - NUMBER RANGE 4*) (G/L Account No.)
DRCRK = S (Debit / Credit Indicator)
RYEAR = GJAHR (Fiscal year)
OUTPUT : HSL0*( * -PERIOD ENTERED IN SELECTION) [G/L Account Balance Amount field in the Table]
SORT AND SUM SAKNR WISE WHILE DISPLAYING IN THE REPORT
Result : This step will provide balances for the list of the expenses G/L accounts fetched from table SKB1 for the company code, fiscal year and period mentioned in the selection screen
LIST OF EXPS. G/L ACCOUNTS WITH VALUES AND THEIR TOTAL LIST A
TOTAL OF ABOVE LIST = FIELD A
The List Is To Be Displayed In The Report On Double-Clicking On The Total (Field A)
END OF FIELD A----
START OF FIELD B
TABLE : SETLEAF (Table for values in a group)
INPUT : SETCLASS = 0102 (Code for Cost Element groups)
SETNAME = FIXED, VARIABLE (Cost Element group names)
OUTPUT : VALFROM, VALTO (Cost Element from & to)
Result : This step will provide a list of cost elements within the cost element groups Fixed and Variable
TABLE : COSP (Cost Accounting postings)
INPUT : GJAHR (Fiscal year)
KSTAR = VALFROM TO VALTO SETLEAF (Cost Elements range)
VRGNG = COIN (CO Business transaction type)
BEKNZ = D (Debit / Credit indicator)
OUTPUT : KSTAR (Cost Element), WKG0( -PERIOD ENTERED IN SELECTION) [Amount field in the table]
Result : This step will provide a list of Cost Centre values used for calculating Activity rate and Overheard rates)
LIST OF COST ELEMENTS WITH VALUES AND THEIR TOTAL LIST B
COMPARE LIST A WITH LIST B FIND RECORDS THAT DONT MATCH
MAKE A LIST OF UNMATCHED RECORDS (FOUND ONLY IN LIST A) AND THEIR TOTALS LIST C
TABLE : SETLEAF (Table for values in a group)
INPUT : SETCLASS = 0101 (Code for Cost Centre groups)
SETNAME = JL-VVGK (Cost Centre group name)
OUTPUT : VALFROM ( COST CENTRE)
Result : This will provide a list of Cost centers in the JL-VVGK cost element group
TABLE : COSP (Cost Accounting Postings)
INPUT : OBJNR = CONCATENATE KSKBX TO SETLEAF- VALFROM WITH SPACE, (OBJNR = Object Number)
GJAHR (Fiscal year)
VRGNG = COIN (CO Business transaction type)
OUTPUT : WKG0( -PERIOD ENTERED IN SELECTION) [Amount field in the table]
Result : This will provide a list of Cost centers values in the in the JL-VVGK cost element group
LIST OF VVGK COST CENTRES WITH VALUES AND ITS TOTAL LIST D
ADD LIST C WITH LIST D THE TOTAL OF WHICH IS EQUAL TO FIELD B
Result : This will provide the costs which are not used to apply Activity Rates and Overhead Rates on the products
The Lists (List C & D) are To Be Displayed In The Report On Double-Clicking On The Total (Field B)
END OF FIELD B----
START OF FIELD C
SUBTRACT FIELD B FROM FIELD A WHICH IS EQUAL TO FIELD C (NO LINE ITEMS REQUIRED)
END OF FIELD C----
START OF FIELD D
TABLE : AUFK (Header table for Orders)
INPUT : KOKRS = KBX (Controlling Area)
BUKRS = SELECTION SCREEN (Company Code)
AUART = RM01 (Order Type)
OUTPUT : OBJNR (Object Number)
Result : This will provide a list Product Cost Collector Numbers
MAT :
TABLE : COSP (Cost Accounting Postings)
INPUT : OBJNR-AUFK (Object number fetched from AUFK table)
GJAHR = SELECTION SCREEN (fiscal year)
WRTTP = 4 (Value type for Actuals)
KSTAR = 41261 TO 41265 (Cost elements range)
BEKNZ = D (Debit / Credit indicator)
OUTPUT : KSTAR (Cost Element), WTG00X (Amount field in the table), OBJNR CONCATENATE (Object Number)
Result : This will provide the MAT costs applied to the products through Product Cost Collectors - MATLIST
FEK :
TABLE : COEP (Cost Accounting Postings)
INPUT : KOKRS = KBX (Controlling Area)
PERIO = SELECTION SCREEN (Period)
OBJNR-AUFK (Object Number fetched from AUFK table)
GJAHR = SELECTION SCREEN (Fiscal year)
KSTAR = 430001 TO 430010 (Cost Elements range)
BUKRS = SELECTION SCREEN (Company Code)
OUTPUT : KSTAR (Cost Element), WTGBTR (Amount field), OBJNR CONCATENATE (Object number)
Result : This will provide the FEK costs applied to the products through Product Cost Collectors - FEKLIST
MGK :
TABLE : COEP (Cost Accounting Postings)
INPUT : KOKRS = KBX (Controlling Area)
PERIO = SELECTION SCREEN (Period)
OBJNR-AUFK (Object Number fetched from AUFK table)
GJAHR = SELECTION SCREEN (Fiscal year)
KSTAR = 410001 (Cost Element)
BUKRS = SELECTION SCREEN (Company Code)
OUTPUT : KSTAR (Cost Element), WTGBTR (Amount field), OBJNR CONCATENATE (Object Number)
Result : This will provide the MGK costs applied to the products through Product Cost Collectors - MGKLIST
WVK :
TABLE : COEP (Cost Accounting postings)
INPUT : KOKRS = KBX (Controlling Area)
PERIO = SELECTION SCREEN (Period)
OBJNR-AUFK (Object Number fetched from AUFK table)
GJAHR = SELECTION SCREEN (Fiscal year)
KSTAR = 410015 (Cost Element)
BUKRS = SELECTION SCREEN (Company Code)
OUTPUT : KSTAR (Cost Element), WTGBTR (Amount field), OBJNR CONCATENATE (Object Number)
Result : This will provide the WVK costs applied to the products through Product Cost Collectors - WVKLIST
TOTAL OF MAT WTG00X, FEK - WTGBTR, MGK - WTGBTR, WVK WTGBTR = FIELD D
The Lists are (MATLIST, FEKLIST, MGKLIST, WVKLIST) To Be Displayed categorically In The Report On Double-Clicking On The Total (Field D)
END OF FIELD D----
START OF FIELD E
TABLE : COSS (Cost Accounting Postings)
INPUT : KOKRS = KBX (Controlling Area)
GJAHR = SELECTION SCREEN (Fiscal year)
WRTTP = 4 (Value type for Actuals)
KSTAR = 44951 TO 44958 (Cost Elements range)
VRGNG = COIN, RKU1, RKU3, (CO Business transaction type)
BEKNZ = D (Debit / Credit Indicator)
OUTPUT : KSTAR (Cost Element), WTG00X (Amount field)
Result : This will provide the costs posted only through Controlling (not FI, MM, SD, PP) which are used to calculate Activity rates and Overhead rates applied to the product EDCCLIST
The EDCCLIST Is To Be Displayed In The Report On Double-Clicking On The Total (Field E)
END OF FIELD E----
START OF FIELD F
SUBTRACT FIELD D FROM FIELD E WHICH IS EQUAL TO FIELD F (NO LINE ITEMS REQUIRED)
END OF FIELD F----
I have return code like as follows.
*& Report ZCO_RECONCILIATION_REPORT *
REPORT zco_reconciliation_report NO STANDARD PAGE HEADING
LINE-COUNT 60 LINE-SIZE 180.
TABLES : t001.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_bukrs LIKE t001-bukrs MEMORY ID buk ,
p_year LIKE glt0-ryear MEMORY ID gjh ,
p_period LIKE bkpf-monat .
SELECTION-SCREEN END OF BLOCK b1 .
DATA : BEGIN OF it_skb1 OCCURS 0,
saknr LIKE skb1-saknr ,
END OF it_skb1.
DATA : BEGIN OF it_glt0 OCCURS 0,
racct LIKE glt0-racct ,
hsl01 LIKE glt0-hsl01,
END OF it_glt0.
DATA : BEGIN OF it_glt0_sum OCCURS 0,
racct LIKE glt0-racct ,
hsl01 LIKE glt0-hsl01,
END OF it_glt0_sum.
DATA : BEGIN OF it_setb1 OCCURS 0,
valfrom LIKE cosp-kstar, " setleaf-valfrom,
valto LIKE setleaf-valto,
END OF it_setb1.
DATA : BEGIN OF it_setb2 OCCURS 0,
valfrom LIKE setleaf-valfrom,
objnr LIKE coss-objnr,
END OF it_setb2.
DATA : BEGIN OF it_setd OCCURS 0,
valfrom LIKE setleaf-valfrom,
objnr LIKE coss-objnr,
END OF it_setd.
DATA : BEGIN OF it_sete OCCURS 0,
valfrom LIKE setleaf-valfrom,
objnr LIKE coss-objnr,
END OF it_sete.
DATA : BEGIN OF it_cospb OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cospb.
DATA : BEGIN OF it_cossb OCCURS 0,
objnr LIKE coss-objnr,
kstar LIKE coss-kstar,
wkg001 LIKE coss-wkg001,
END OF it_cossb.
DATA : BEGIN OF it_bkpf OCCURS 0,
belnr LIKE bkpf-belnr,
END OF it_bkpf.
DATA : BEGIN OF it_cossd1 OCCURS 0,
objnr LIKE coss-objnr,
belnr LIKE bseg-belnr,
wkg001 LIKE coss-wkg001,
END OF it_cossd1.
DATA : BEGIN OF it_cossd2 OCCURS 0,
objnr LIKE coss-objnr,
kstar LIKE coss-kstar,
wkg001 LIKE coss-wkg001,
END OF it_cossd2.
DATA : BEGIN OF it_cosse OCCURS 0,
objnr LIKE coss-objnr,
kstar LIKE coss-kstar,
wkg001 LIKE coss-wkg001,
END OF it_cosse.
dATA : itab_period TYPE string .
DATA : BEGIN OF it_cospb_sum OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cospb_sum.
DATA : BEGIN OF it_cossb_sum OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cossb_sum.
DATA : BEGIN OF it_cossd1_sum OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cossd1_sum.
DATA : BEGIN OF it_cossd2_sum OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cossd2_sum.
DATA : BEGIN OF it_cosse_sum OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_cosse_sum.
DATA : BEGIN OF it_unmatch OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_unmatch.
DATA : BEGIN OF it_merge OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_merge.
DATA : BEGIN OF it_merged OCCURS 0,
kstar LIKE cosp-kstar,
wkg001 LIKE cosp-wkg001,
END OF it_merged.
DATA : BEGIN OF it_field OCCURS 0,
fielda TYPE p DECIMALS 2,
fieldb TYPE p DECIMALS 2,
fieldc TYPE p DECIMALS 2,
fieldd TYPE p DECIMALS 2,
fielde TYPE p DECIMALS 2,
fieldf TYPE p DECIMALS 2,
END OF it_field.
DATA : v_fielda TYPE p DECIMALS 2,
v_fieldb TYPE p DECIMALS 2,
v_fieldc TYPE p DECIMALS 2,
v_fieldd TYPE p DECIMALS 2,
v_fielde TYPE p DECIMALS 2,
v_fieldf TYPE p DECIMALS 2,
v_objnr LIKE coss-objnr,
v_kstar LIKE cosp-kstar,
v_field(1).
yr(4),
mon(2),
day(2),
v_date LIKE sy-datum,
v_date1 LIKE sy-datum,
flag1 TYPE c ,
flag2 TYPE c ,
flag3 TYPE c ,
flag4 TYPE c,
flag5 TYPE c.
data : begin of iaufk occurs 0 ,
objnr like aufk-objnr,
end of iaufk .
DATA : BEGIN OF IFEK OCCURS 0 ,
KSTAR LIKE COEP-KSTAR,
WTGBTR LIKE COEP-WTGBTR,
OBJNR LIKE COEP-OBJNR,
END OF IFEK.
DATA : BEGIN OF IMAT OCCURS 0 ,
KSTAR LIKE COSP-KSTAR,
WTG001 LIKE COSP-WTG001,
WTG002 LIKE COSP-WTG002,
WTG003 LIKE COSP-WTG003,
WTG004 LIKE COSP-WTG004,
WTG005 LIKE COSP-WTG005,
WTG006 LIKE COSP-WTG006,
WTG007 LIKE COSP-WTG007,
WTG008 LIKE COSP-WTG008,
WTG009 LIKE COSP-WTG009,
WTG010 LIKE COSP-WTG010,
WTG011 LIKE COSP-WTG011,
WTG012 LIKE COSP-WTG012,
WTG013 LIKE COSP-WTG013,
WTG014 LIKE COSP-WTG014,
WTG015 LIKE COSP-WTG015,
WTG016 LIKE COSP-WTG016,
OBJNR LIKE COSP-OBJNR,
END OF IMAT.
data : begin of imgk occurs 0 ,
kstar like coep-kstar,
wtgbtr like coep-wtgbtr,
objnr like coep-objnr,
end of imgk.
data : begin of iwvk occurs 0 ,
kstar like coep-kstar,
wtgbtr like coep-wtgbtr,
objnr like coep-objnr,
end of iwvk.
AT SELECTION-SCREEN.
PERFORM validity.
START-OF-SELECTION .
PERFORM get_period.
PERFORM fill_skb1.
PERFORM get_aufk .
perform get_COEP .
PERFORM GET_MGK.
perform get_wvk.
PERFORM fill_it_glt0.
PERFORM fill_it_glt0_sum.
PERFORM fill_set.
PERFORM fill_cospb_cossb.
PERFORM sum_cospb_cossb.
PERFORM fill_cossd1_cossd2.
PERFORM sum_cossd1_cossd2.
PERFORM fill_cosse.
PERFORM sum_cosse.
PERFORM fill_it_unmatch.
PERFORM fill_it_merge.
PERFORM fill_it_merged.
PERFORM fill_it_fieldb.
PERFORM fill_it_fieldc.
PERFORM fill_it_fieldd.
PERFORM fill_it_fieldf.
PERFORM display.
PERFORM fill_it_fielde.
TOP-OF-PAGE.
PERFORM header.
AT LINE-SELECTION.
PERFORM list_display.
*& Form VALIDITY
text
--> p1 text
<-- p2 text
FORM validity .
SELECT SINGLE bukrs FROM t001 INTO t001-bukrs WHERE bukrs = p_bukrs.
IF sy-subrc NE 0.
ENDIF.
ENDFORM. " VALIDITY
*& Form FILL_SKB1
text
--> p1 text
<-- p2 text
FORM fill_skb1 .
SELECT saknr FROM skb1 INTO TABLE it_skb1
WHERE bukrs = p_bukrs
AND saknr LIKE '000004%' .
SORT it_skb1 BY saknr.
ENDFORM. " FILL_SKB1
*& Form FILL_IT_GLT0
text
--> p1 text
<-- p2 text
FORM fill_it_glt0 .
CASE p_period.
WHEN '1' OR '01'.
SELECT racct hsl01
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '2' .
SELECT racct hsl02
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '3' .
SELECT racct hsl03
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '4' .
SELECT racct hsl04
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '5' .
SELECT racct hsl05
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '6' .
SELECT racct hsl06
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '7' .
SELECT racct hsl07
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '8' .
SELECT racct hsl08
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '9' .
SELECT racct hsl09
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '10' .
SELECT racct hsl10
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '11' .
SELECT racct hsl11
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '12' .
SELECT racct hsl12
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '13' .
SELECT racct hsl13
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '14' .
SELECT racct hsl14
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '15' .
SELECT racct hsl15
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
WHEN '16' .
SELECT racct hsl16
FROM glt0
INTO TABLE it_glt0
FOR ALL ENTRIES IN it_skb1
WHERE racct = it_skb1-saknr
AND bukrs = p_bukrs
AND drcrk = 'S'
AND ryear = p_year.
AND rtcur = 'INR' .
ENDCASE.
SORT it_glt0 BY racct.
ENDFORM. " FILL_IT_GLT0
*& Form FILL_IT_GLT0_SUM
text
--> p1 text
<-- p2 text
FORM fill_it_glt0_sum .
SORT it_glt0 BY racct.
LOOP AT it_glt0.
it_glt0_sum-racct = it_glt0-racct.
AT END OF racct.
SUM.
it_glt0_sum-hsl01 = it_glt0-hsl01.
APPEND it_glt0_sum.
CLEAR it_glt0_sum.
ENDAT.
ENDLOOP.
LOOP AT it_glt0_sum.
AT LAST.
SUM.
it_fielda-fielda = it_glt0_SUM-hsl01.
it_field-fielda = it_glt0_sum-hsl01.
APPEND it_field.
ENDAT.
ENDLOOP.
ENDFORM. " FILL_IT_GLT0_SUM
*& Form fill_SET
text
--> p1 text
<-- p2 text
FORM fill_set .
SELECT valfrom valto FROM setleaf INTO TABLE it_setb1
WHERE setclass = '0102' AND
setname IN ('FIXED', 'VARIABLE') .
SORT it_setb1 BY valfrom .
SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_setb2
WHERE setclass = '0101' AND
setname = 'JL-VVGK'.
SORT it_setb2 BY valfrom .
SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_setd
WHERE setclass = '0102' AND
setname IN ('FBK', 'MAT').
SORT it_setd BY valfrom .
SELECT valfrom FROM setleaf INTO CORRESPONDING FIELDS OF TABLE it_sete
WHERE setclass = '0102' AND
setname = 'CO-RECON'.
SORT it_sete BY valfrom .
LOOP AT it_sete.
CONCATENATE 'KSKBX' it_sete-valfrom INTO v_objnr SEPARATED BY space.
it_sete-objnr = v_objnr.
MODIFY it_sete.
ENDLOOP.
SORT it_sete BY valfrom .
LOOP AT it_setb2.
CONCATENATE 'KSKBX' it_setb2-valfrom INTO v_objnr SEPARATED BY space.
it_setb2-objnr = v_objnr.
MODIFY it_setb2.
ENDLOOP.
LOOP AT it_setd.
CONCATENATE 'KSKBX' it_setd-valfrom INTO v_objnr SEPARATED BY space.
it_setd-objnr = v_objnr.
MODIFY it_setd.
ENDLOOP.
ENDFORM. " fill_SET
*& Form fill_cospb_cossb
text
--> p1 text
<-- p2 text
FORM fill_cospb_cossb .
CASE p_period.
WHEN '1' .
SELECT kstar wkg001 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg001 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '2' .
SELECT kstar wkg002 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg002 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '3' .
SELECT kstar wkg003 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg003 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '4' .
SELECT kstar wkg004 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg004 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '5' .
SELECT kstar wkg005 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg005 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '6' .
SELECT kstar wkg006 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg006 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '7' .
SELECT kstar wkg007 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg007 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '8' .
SELECT kstar wkg008 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg008 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '9' .
SELECT kstar wkg009 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg009 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '10' .
SELECT kstar wkg010 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg010 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '11' .
SELECT kstar wkg011 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg011 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '12' .
SELECT kstar wkg012 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg012 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '13' .
SELECT kstar wkg013 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg013 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '14' .
SELECT kstar wkg014 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg014 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '15' .
SELECT kstar wkg015 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg015 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
WHEN '16' .
SELECT kstar wkg016 FROM cosp INTO TABLE it_cospb
FOR ALL ENTRIES IN it_setb1
WHERE kstar = it_setb1-valfrom
AND gjahr = p_year
AND vrgng = 'COIN'
AND beknz = 'S'.
SELECT objnr kstar wkg016 FROM cosp
INTO TABLE it_cossb
FOR ALL ENTRIES IN it_setb2
WHERE objnr = it_setb2-objnr
AND vrgng IN ('COIN','RKIV')
AND gjahr = p_year.
ENDCASE.
SORT it_cospb BY kstar.
SORT it_cossb BY kstar.
ENDFORM. " fill_cospb_cossb
*& Form SUM_COSPB_COSSB
text
--> p1 text
<-- p2 text
FORM sum_cospb_cossb .
LOOP AT it_cospb.
it_cospb_sum-kstar = it_cospb-kstar.
AT END OF kstar.
SUM.
it_cospb_sum-wkg001 = it_cospb-wkg001.
APPEND it_cospb_sum.
CLEAR it_cospb_sum.
ENDAT.
ENDLOOP.
LOOP AT it_cossb.
it_cossb_sum-kstar = it_cossb-kstar.
AT END OF kstar.
SUM.
it_cossb_sum-wkg001 = it_cossb-wkg001.
APPEND it_cossb_sum.
CLEAR it_cossb_sum.
ENDAT.
ENDLOOP.
SORT it_cospb_sum BY kstar.
SORT it_cossb_sum BY kstar.
ENDFORM. " SUM_COSPB_COSSB
*& Form fill_it_unmatch
text
--> p1 text
<-- p2 text
FORM fill_it_unmatch .
LOOP AT it_glt0_sum.
READ TABLE it_cospb_sum WITH KEY kstar = it_glt0_sum-racct.
IF sy-subrc NE 0.
it_unmatch-kstar = it_glt0_sum-racct.
it_unmatch-wkg001 = it_glt0_sum-hsl01.
APPEND it_unmatch.
CLEAR it_unmatch.
ENDIF.
ENDLOOP.
ENDFORM. " fill_it_unmatch
*& Form fill_it_merge
text
--> p1 text
<-- p2 text
----
We can't really tell without seeing the code. Would you post it please? (Just the portions that are overly slow.)
Rob
Similar Messages
-
Require Help in developing a Report for Gross Margin
Dear Experts,
I need some inputs regarding development of Gross Margin Report for Controlling. If any body could help us in providing some inputs regarding Costing Information from CK13N or give us some contact number so that we will contact them immediately to get our doubts clarified. Please help ASAP.
Regards,
AnuHi jaya ,
whats ur Business requirement ?
Regards
Prabhu -
I have reports in SSRS. I am using remote reports. Reports have multiple pages.
In IE, the print button displays, but in Firefox and Chrome, it does not display.
Below links shows how to display the print button for mozilla and chrome. These solutions only fire the print for the
current page in the report viewer-
http://stackoverflow.com/questions/951009/sql-reporting-services-print-button-not-shown-in-mozilla
http://stackoverflow.com/questions/4208457/ssrs-print-button-in-chrome-and-firefox
I need to be able to issue a print command for all
pages in one go from the reportviewer.Hello,
The common workaround about print button on ReportViewer control for non-IE browsers is add ActiveX print control or create Print function. It has pros and cons.
I am not good at programming. But you can try to disable page breaks by setting InteractiveHeight to 0 so that the report will rendering in single page with Report Viewer control.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Is there a report viewer control for html5 using javascript?
VS 2005,2008,2010,2012
SSRS-2008,2012
I want to be able to create a simple report viewer that will run on ios, android, and win8 devices.
I believe that the solution lay with the concept of HTML5 and javascript.
If I use aspx and vb also HTML5, then don't I run the risk of the target device not having the required .net lbrary?
Is that correct? Or does the server alone need the library? what about printing or saving as PDF options on the client side?
So is there a SSRS report viewer control that I can use to create a report that runs on any device that supports HTML5? I want it to look professional.
Or any technique or tutorial that I can look at to accomplish this goal?
Thanks
Jerry CHi Jerry,
To work around this issue, you can write .aspx pages using html 5 and use ReportViewer control or iframe to display the report. For more information, please see:
http://www.hanselman.com/blog/AnnouncingTheWebStandardsUpdateHTML5SupportForTheVisualStudio2010Editor.aspx.
Since the ReportViewer itself uses Ajax, if the mobile device doesn't support that, you're better use some type of front end code to pull data from a web service and render it.
Besides, according to the document
View Reporting Services Reports on Microsoft Surface Devices and Apple iOS Devices, to view and interact with a report on iPad device or Microsoft Surface device, there are several methods:
from Email subscription
from Windows Azure portal
from Report Server
from Report Manager
from a SharePoint document library
from SharePoint web part
So, it seems impossible to view report through Report Viewer control on mobile devices.
Reference:
http://forums.asp.net/t/1863129.aspx/1
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Maximum Number of Columns for Control Break on APEX Reports
Hi
I'm new to APEX. I just want to ask if the number of maximum columns for control break in Reports can be adjusted? I have noticed that it can only handle up to six columns for Control Break, I just want to know if it can have more than six columns.
Thank you very much.Are you sure it's the number of columns? It may be one of the columns that is causing this problem.
-
Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
Exemple:
Table1
Cliente name:
John
Client number:
12345
Survay number of negative answers:
3
Table2
Questions and answers that were negative:
Question: How much time where you waiting
Avaluation: 3 (from 1 to 10)
Answer: They only called me 1 mouth later
Can you please help me?Hi,
Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
References:
Subreports (Report Builder and SSRS)
Add a Subreport and Parameters (Report Builder and SSRS)
If I have any misunderstanding, please feel free to contact me.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
Material Stock Report for tcode MB5B
Hello Expert
I have a SAP report for stock posting date with T-Code as MB5B and
the report name is RM07MLBD.
When I enter Material no, plant code , Movement type (101) and selection
dates for a month, The report is displaying but not break by Movement type instead it is showing all the movement type....?
Can anyone have idea about this
REPORT RM07MLBD NO STANDARD PAGE HEADING MESSAGE-ID M7 LINE-SIZE 95.
REPORT RM07MLBD (Transaktionscode MB5B) *
correction June 2004 MM "n747306
wrong the assignment of the MM and FI documents for data "n747306
constellation : n MM doc items --> 1 FI doc item "n747306
ABAP-Preprocessor removed "n599218 A
- this version is for release 4.6C and higher "n599218 A
- process database table OBEW always "n599218 A
- IS-OIL specific functions : "n599218 A
- define IS-OIL workings fields "n599218 A
- transport and process these fields only when "n599218 A
structure MSEG comprise these fields "n599218 A
Improvements : Dec. 2003 MM "n599218
- print the page numbers "n599218
"n599218
- send warnings and error messages only when report is "n599218
launched / advoid warnings when user changes entries on "n599218
the selection screen "n599218
- send warning M7 689 when user does not restrict the "n599218
database in dialog or print mode "n599218
- send warning M7 393 when user deletes the initial "n599218
display variant "n599218
"n599218
- allow to process the fields MAT_KDAUF, MAT_KDPOS, and "n599218
MAT_PSPNR from release 4.5B and higher "n599218
"n599218
- show the current activity and the progress "n599218
"n599218
- error message 'programmfehler' improved "n599218
"n599218
- new categories for scope of list "n599218
"n599218
- use function module for database commit for the update "n599218
of the parameters in table ESDUS. This allows to record "n599218
this transaction for a batch input session using "n599218
transaction SHDB "n599218
"n599218
- reset the entries for plant when valuation level is "n599218
is company code and mode is valuated stock "n599218
"n599218
- enable this report to run in the webreporting mode "n599218
Dec. 2002 MM "n571473
the definition of the selection screen moved from include "n571473
RM07MLBP into this report "n571473
Sept 2002 MM "n555246
log function tax auditor "n555246
note 547170 : August 2002 MM "n547170
- representation of tied empties improved "n547170
active this function automatically in retail systems "n547170
- FORM routines without preprocessor commands and without "n547170
text elements moved to the new include reports "n547170
RM07MLBD_FORM_01and RM07MLBD_FORM_02 "n547170
- the function module FI_CHECK_DATE of note 486477 will "n547170
be processed when it exists "n547170
- function and documentation of parameter XONUL improved "n547170
- display MM documents with MIGO or MB03 depending from "n547170
the release "n547170
- get and save the parameters per user in dialog mode "n547170
only in release >= 4.6 "n547170
the following items were improved with note 497992 "n497992
- wrong results when remaining BSIM entries contain "n497992
an other quantity unit as material master MEINS "n497992
- improve check FI summarization "n497992
- the messages M7 390, M7 391, and M7 392 "n497992
- definition of field g_f_repid for all releases "n497992
- incomplete key for access of internal table IT134M "n497992
causes wrong plant selection "n497992
- the function "no reversal movement" did not surpress "n497992
the original movements; fields "SJAHR" was moved from "n497992
from report RM07MLBD_CUST_FIELDS to RM07MLBD "n497992
- process valuated subcontractor stock from database "n497992
table OBEW if it exists "n497992
- if FI summarization is active process warning M7 390 "n497992
for stock type = valuated stock "n497992
- the user wants to restrict the movement type : process "n497992
warning M7 391 "n497992
- the user wants to surpress the reversal movements : "n497992
process warning M7 392 "n497992
- consider special gain/loss-handling of IS-OIL "n497992
- automatic insert of field WAERS currency key into the "n497992
field catalogue : "n497992
- at least one ref. field is active -> WAERS active "n497992
- all reference fields are hidden -> WAERS hidden "n497992
- the length of sum fields for values was increased "n497992
- customizing for the selection of remaining BSIM entries "n497992
- customizing for the processing of tied empties "n497992
separate time depending authorization for tax auditor "n486477
additional fields are displayed in wrong format "n480130
report RM07MLBD and its includes improved Nov 2001 "n451923
- merging FI doc number into table G_T_MSEG_LEAN improved "n451923
- handling of the short texts improved "n451923
- some types and data definitions -> include RM07MLDD "n451923
error for split valuation and valuated special stock "n450764
process 'goods receipt/issue slip' as hidden field "n450596
error at start date : material without stock has value "n443935
wrong results for docs with customer consignment "W" "n435403
error during data selection for plants "n433765
report RM07MLBD and its includes improved May 10th, 2001 "n400992
!!! IMPORTANT : DO NOT CHANGE OR DELETE THE COMMENT LINES !!! *
- consider the material number during looking for FI documents
- field "g_cust_color" in include report "RM07MLBD_CUST_FIELDS"
allows the customer to activate or inactivate the colors in the
lines with the documents.
- error during calcuation of start stock for special stock "M"
- valuted stocks required : no documents found ? continue and
process empty document table
- the length of sum fields for quantities has been increased
to advoid decimal overflow
- table ORGAN is replaced by G_T_ORGAN
- it is filled by the following ways :
- at process time at selection screen if the
user wants the selection via cc or plant
- otherwise after the database selection of the stock
tables
- it contains less data fields
- it contains all entries twice, for binary search
with plant or valuation area
- selection of databases MKPF and MSEG in one SELECT
command with an inner JOIN
- authority checks after the database selections
- result of database selection from the both database tables
MSEG and MKPF in working table G_F_MSEG_LEAN instead of
the tables IMSEG and IMKPF
- the number of processed data fields was reduced
- the user has the possibility to increase the number of
the processed fields deleting the '*' in the types-command
in include report RM07MLBD_CUST_FIELDS
- the creation of the field catalog for the ALV considers
only the fields of structure G_S_MSEG_LEAN
- the new table G_T_BELEG contains the results for the ALV.
the number of fields of table G_T_BELEG corresponds with
the number of fields of table G_T_MSEG_LEAN.
- the functions "define breakdown" and "choose" are inactivated
in the menue, because they are are not carried out correctly
in all blocks of the list
Anzeige der Materialbestände in einem Zeitintervall *
Der Report gliedert sich im wesentlichen in folgende Verarbeitungs- *
blöcke: *
1) Definition des Einstiegsbildes und Vorbelegung einzelner *
Selektionsfelder, sowie Prüfung der eingegebenen Selektions- *
parameter und Berechtigungsprüfung *
2) Lesen der aktuellen Bestandswerte *
3) Lesen und Verarbeiten der Materialbelege *
4) Berechnung der Bestandswerte zu den vorgegebenen Datümern *
5) Ausgabe der Bestände und Materialbelege *
*eject
*# APP_CALL_DECLARE TEST
this definitions depend on the release
TYPE-POOLS: IMREP, " Typen Bestandsführungsreporting
SLIS. " Typen Listviewer
for the selection of the reversal movements only in release >=45B
DATA: BEGIN OF STORNO OCCURS 0,
MBLNR LIKE MSEG-MBLNR,
MJAHR LIKE MSEG-MJAHR,
ZEILE LIKE MSEG-ZEILE,
SMBLN LIKE MSEG-SMBLN,
SJAHR LIKE MSEG-SJAHR,
SMBLP LIKE MSEG-SMBLP,
END OF STORNO.
include: rm07mldd, " reportspezifische Datendefinitionen
rm07grid. " Gitternetz, Formatierung, Farbgebung
INCLUDE RM07APP1. "ABAP-PREPROCESSOR "TEST
"n571473
define the selection screen here "n571473
"n571473
SELECTION-SCREEN BEGIN OF BLOCK Database-selection
WITH FRAME TITLE TEXT-001.
Text-001: Datenbankabgrenzungen
SELECT-OPTIONS: MATNR FOR MARD-MATNR MEMORY ID MAT
MATCHCODE OBJECT MAT1,
BUKRS FOR T001-BUKRS MEMORY ID BUK,
WERKS FOR T001W-WERKS MEMORY ID WRK,
LGORT FOR T001L-LGORT,
CHARG FOR MCHB-CHARG,
BWTAR FOR MBEW-BWTAR,
BWART FOR MSEG-BWART.
PARAMETERS SOBKZ LIKE MSEG-SOBKZ.
SELECTION-SCREEN SKIP.
SELECT-OPTIONS: DATUM FOR MKPF-BUDAT NO-EXTENSION.
Datumsintervall für Selektion
SELECTION-SCREEN END OF BLOCK Database-selection.
SELECTION-SCREEN BEGIN OF BLOCK BESTANDSART
WITH FRAME TITLE TEXT-002.
Text-002: Bestandsart
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS LGBST LIKE AM07M-LGBST RADIOBUTTON GROUP BART DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(50) TEXT-010 FOR FIELD LGBST.
Text-010: Lagerort-/Chargenbestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS BWBST LIKE AM07M-BWBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-011 FOR FIELD BWBST.
Text-011: bewerteter Bestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS SBBST LIKE AM07M-SBBST RADIOBUTTON GROUP BART.
SELECTION-SCREEN COMMENT 4(50) TEXT-012 FOR FIELD SBBST.
Text-012: Sonderbestand
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK BESTANDSART.
improved definition of parameters for scope of list "n599218
SELECTION-SCREEN BEGIN OF BLOCK listumfang
with frame title text-003. "Listumfang
the following 3 parameters became obsolete do not use "n599218
anymor. They are still here to inform the user about "n599218
that he is using old variants or SUBMIT commands "n599218
PARAMETERS : "n599218
XONUL LIKE AM07M-XONUL no-display, "n599218
XVBST LIKE AM07M-XVBST no-display, "n599218
XNVBST LIKE AM07M-XNVBS no-display. "n599218
7 new categories for the scope of list "n599218
"n599218
cat. I docs I stock on I I stock on I Parameter "n599218
I I start date I I end date I "n599218
---+--+--------++------+-------- "n599218
1 I yes I = zero I = I = zero I pa_wdzer "n599218
2 I yes I = zero I <> I <> zero I pa_wdzew "n599218
3 I yes I <> zero I <> I = zero I pa_wdwiz "n599218
4 I yes I <> zero I <> I <> zero I pa_wdwuw "n599218
5 I yes I <> zero I = I <> zero I pa_wdwew "n599218
I I I I I "n599218
6 I no I = zero I = I = zero I pa_ndzer "n599218
7 I no I <> zero I = I <> zero I pa_ndsto "n599218
"n599218
definition of the pushbutton : show or hide the following "n599218
parameters for the scope of list "n599218
SELECTION-SCREEN PUSHBUTTON /1(20) PB_LIU "n599218
USER-COMMAND LIU. "n599218
"n599218
text line : materials with movements "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN COMMENT 1(55) TEXT-072 "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start = zero = end = zero "n599218
1 I yes I = zero I = I = zero I pa_wdzer "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdzer LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-083 : no opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-083 "n599218
FOR FIELD pa_wdzer "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start = zero = end <> zero "n599218
2 I yes I = zero I <> I <> zero I pa_wdzew "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdzew LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-084 : no opening stock ; with closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-084 "n599218
FOR FIELD pa_wdzew "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / start stock <> 0 / end stock = 0 "n599218
3 I yes I <> zero I <> I = zero I pa_wdwiz "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwiz LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-085 : with opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-085 "n599218
FOR FIELD pa_wdwiz "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / with start and end stocks / different "n599218
4 I yes I <> zero I <> I <> zero I pa_wdwuw "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwuw LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-086 "n599218
FOR FIELD pa_wdwuw "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
with movements / with start and end stock / equal "n599218
5 I yes I <> zero I = I <> zero I pa_wdwew "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_wdwew LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; non-changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-087 "n599218
FOR FIELD pa_wdwew "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
text line : materials without movements "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN COMMENT 1(55) TEXT-073 "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
materials without movements / stocks = zero "n599218
6 I no I = zero I = I = zero I pa_ndzer "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_ndzer LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
text-083 : no opening stock ; no closing stock "n599218
SELECTION-SCREEN COMMENT 5(70) text-083 "n599218
FOR FIELD pa_ndzer "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
materials without movements / with start or end stock "n599218
7 I no I <> zero I = I <> zero I pa_ndsto "n599218
SELECTION-SCREEN BEGIN OF LINE. "n599218
SELECTION-SCREEN POSITION 2. "n599218
PARAMETERS : pa_ndsto LIKE AM07M-MB5B_XONUL "n599218
modif id liu. "n599218
with opening stock ; with closing stock ; non-changed "n599218
SELECTION-SCREEN COMMENT 5(70) text-087 "n599218
FOR FIELD pa_ndsto "n599218
modif id liu. "n599218
SELECTION-SCREEN END OF LINE. "n599218
"n599218
SELECTION-SCREEN END OF BLOCK listumfang.
SELECTION-SCREEN BEGIN OF BLOCK EINSTELLUNGEN
WITH FRAME TITLE TEXT-068. "Settings
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
PARAMETERS XSUM LIKE AM07M-XSUM.
SELECTION-SCREEN COMMENT 4(50) TEXT-019 FOR FIELD XSUM.
Text-019: nur Summen
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 1.
PARAMETERS XCHAR LIKE AM07M-XCHRG.
SELECTION-SCREEN COMMENT 4(50) TEXT-015 FOR FIELD XCHAR.
Text-015: nur chargenpflichtige Materialien
Das Kennzeichen 'xchar' bestimmt die Art der Listausgabe entweder
auf Material- oder Chargenebene.
SELECTION-SCREEN END OF LINE.
the function "No reversal movements" is only "n571473
available from relaese 4.5B and higher "n571473
( TEXT-026 : No reversal movements ) "n571473
SELECTION-SCREEN BEGIN OF LINE. "n571473
SELECTION-SCREEN POSITION 1. "n571473
PARAMETERS NOSTO LIKE AM07M-NOSTO. "n571473
SELECTION-SCREEN COMMENT 4(50) TEXT-026 "n571473
FOR FIELD NOSTO. "n571473
SELECTION-SCREEN END OF LINE. "n571473
SELECTION-SCREEN END OF BLOCK EINSTELLUNGEN.
SELECTION-SCREEN BEGIN OF BLOCK LISTE WITH FRAME TITLE TEXT-040.
PARAMETERS: P_VARI LIKE DISVARIANT-VARIANT.
SELECTION-SCREEN END OF BLOCK LISTE.
*eject
new data definitions
working fields for reading structures from DDIC "n599218 A
and check whether IS-OIL is active "n599218 A
types : stab_x031l type standard table of x031l "n599218 A
with default key. "n599218 A
"n599218 A
data : g_s_x031l type x031l, "n599218 A
g_t_x031l type stab_x031l. "n599218 A
"n599218 A
data : g_f_dcobjdef-name like dcobjdef-name, "n599218 A
g_flag_is_oil_active(01) type c, "n599218 A
g_cnt_is_oil type i. "n599218 A
contains the a structure with the max. number of fields of
the database table MSEG, but those lines are comment lines
with a '*'. The customer can achtivate those lines.
The activated fields will be selected from the database table
and are hidden in the list. With the settings in the display
variant the can be shown.
INCLUDE RM07MLBD_CUST_FIELDS.
common types structure for working tables
a) g_t_mseg_lean results form database selection
b) g_t_beleg data table for ALV
TYPES : BEGIN OF STYPE_MSEG_LEAN,
MBLNR LIKE MKPF-MBLNR,
MJAHR LIKE MKPF-MJAHR,
VGART LIKE MKPF-VGART,
BLART LIKE MKPF-BLART,
BUDAT LIKE MKPF-BUDAT,
CPUDT LIKE MKPF-CPUDT,
CPUTM LIKE MKPF-CPUTM,
USNAM LIKE MKPF-USNAM,
process 'goods receipt/issue slip' as hidden field "n450596
XABLN LIKE MKPF-XABLN, "n450596
LBBSA LIKE T156M-LBBSA,
BWAGR LIKE T156S-BWAGR,
BUKRS LIKE T001-BUKRS,
BELNR LIKE BKPF-BELNR,
GJAHR LIKE BKPF-GJAHR,
WAERS LIKE MSEG-WAERS,
ZEILE LIKE MSEG-ZEILE,
BWART LIKE MSEG-BWART,
MATNR LIKE MSEG-MATNR,
WERKS LIKE MSEG-WERKS,
LGORT LIKE MSEG-LGORT,
CHARG LIKE MSEG-CHARG,
BWTAR LIKE MSEG-BWTAR,
KZVBR LIKE MSEG-KZVBR,
KZBEW LIKE MSEG-KZBEW,
SOBKZ LIKE MSEG-SOBKZ,
KZZUG LIKE MSEG-KZZUG,
BUSTM LIKE MSEG-BUSTM,
BUSTW LIKE MSEG-BUSTW,
MENGU LIKE MSEG-MENGU,
WERTU LIKE MSEG-WERTU,
SHKZG LIKE MSEG-SHKZG,
MENGE LIKE MSEG-MENGE,
MEINS LIKE MSEG-MEINS,
DMBTR LIKE MSEG-DMBTR,
DMBUM LIKE MSEG-DMBUM,
XAUTO LIKE MSEG-XAUTO,
KZBWS LIKE MSEG-KZBWS,
special flag for retail "n497992
retail(01) type c, "n497992
define the fields for the IO-OIL specific functions "n599218 A
mseg-oiglcalc CHAR 1 "n599218 A
mseg-oiglsku QUAN 13 "n599218 A
oiglcalc(01) type c, "n599218 A
oiglsku(07) type p decimals 3, "n599218 A
insmk like mseg-insmk, "n599218 A
the following fields are used for the selection of
the reversal movements
SMBLN LIKE MSEG-SMBLN, " No. doc
SJAHR LIKE MSEG-SJAHR, " Year "n497992
SMBLP LIKE MSEG-SMBLP. " Item in doc
additional fields : the user has the possibility to activate
these fields in the following include report
INCLUDE TYPE STYPE_MB5B_ADD.
TYPES : END OF STYPE_MSEG_LEAN.
TYPES: STAB_MSEG_LEAN TYPE STANDARD TABLE OF STYPE_MSEG_LEAN
WITH KEY MBLNR MJAHR.
data tables with the results for the ALV
TYPES : BEGIN OF STYPE_BELEGE.
INCLUDE TYPE STYPE_MSEG_LEAN.
TYPES : FARBE TYPE SLIS_T_SPECIALCOL_ALV.
TYPES : END OF STYPE_BELEGE.
TYPES : STAB_BELEGE TYPE STANDARD TABLE OF STYPE_BELEGE
WITH KEY BUDAT MBLNR ZEILE.
DATA : G_T_BELEGE TYPE STAB_BELEGE WITH HEADER LINE,
G_T_BELEGE1 TYPE STAB_BELEGE WITH HEADER LINE.
global working areas data from MSEG and MKPF
FIELD-SYMBOLS : TYPE STYPE_MSEG_LEAN.
DATA : G_S_MSEG_LEAN TYPE STYPE_MSEG_LEAN,
G_S_MSEG_UPDATE TYPE STYPE_MSEG_LEAN, "n443935
G_T_MSEG_LEAN TYPE STAB_MSEG_LEAN.
working table for the control break "n451923
types : begin of stype_mseg_work. "n451923
include type stype_mseg_lean. "n451923
types : tabix like sy-tabix, "n451923
end of stype_mseg_work, "n451923
"n451923
stab_mseg_work type standard table of "n451923
stype_mseg_work "n451923
with default key. "n451923
"n451923
data : g_t_mseg_work type stab_mseg_work, "n443935
g_s_mseg_work type stype_mseg_work. "n443935
working table for the requested field name from MSEG and MKPF
TYPES: BEGIN OF STYPE_FIELDS,
FIELDNAME TYPE NAME_FELD,
END OF STYPE_FIELDS.
TYPES: STAB_FIELDS TYPE STANDARD TABLE OF STYPE_FIELDS
WITH KEY FIELDNAME.
DATA: G_T_MSEG_FIELDS TYPE STAB_FIELDS,
G_S_MSEG_FIELDS TYPE STYPE_FIELDS.
working table for the requested numeric fields of MSEG
types : begin of stype_color_fields,
FIELDNAME TYPE NAME_FELD,
type(01) type c,
end of stype_color_fields,
stab_color_fields type standard table of
stype_color_fields
with default key.
data: g_t_color_fields type stab_color_fields
with header line.
DATA: BEGIN OF IMSWEG OCCURS 1000,
MBLNR LIKE MSEG-MBLNR,
MJAHR LIKE MSEG-MJAHR,
ZEILE LIKE MSEG-ZEILE,
MATNR LIKE MSEG-MATNR,
CHARG LIKE MSEG-CHARG,
BWTAR LIKE MSEG-BWTAR,
WERKS LIKE MSEG-WERKS,
LGORT LIKE MSEG-LGORT,
SOBKZ LIKE MSEG-SOBKZ,
BWART LIKE MSEG-BWART,
SHKZG LIKE MSEG-SHKZG,
XAUTO LIKE MSEG-XAUTO,
MENGE LIKE MSEG-MENGE,
MEINS LIKE MSEG-MEINS,
DMBTR LIKE MSEG-DMBTR,
DMBUM LIKE MSEG-DMBUM,
BUSTM LIKE MSEG-BUSTM,
BUSTW LIKE MSEG-BUSTW, "147374
define the fields for the IO-OIL specific functions "n599218 A
mseg-oiglcalc CHAR 1 "n599218 A
mseg-oiglsku QUAN 13 "n599218 A
oiglcalc(01) type c, "n599218 A
oiglsku(07) type p decimals 3, "n599218 A
insmk like mseg-insmk, "n599218 A
END OF IMSWEG.
User settings for the checkboxes "n547170
DATA: oref_settings TYPE REF TO cl_mmim_userdefaults. "n547170
*eject
HAUPTPROGRAMM *********************************
F4-Hilfe für Reportvariante -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
PERFORM f4_for_variant.
"n599218
INITIALIZATION "n599218
"n599218
"n599218
pay attentions : this process time will not be processed "n599218
in the webreporting mode "n599218
INITIALIZATION.
PERFORM APP_PROCESS USING 'ME'. "TEST
PERFORM initialisierung.
get the parameters from the last run "n547170
perform esdus_get_parameters. "n547170
set flag when INITILIZATION is processed
move 'X' to g_flag_initialization.
"n599218
AT SELECTION-SCREEN "n599218
"n599218
Prüfung der eingegebenen Selektionsparameter, -
Berechtigungsprüfung -
AT SELECTION-SCREEN.
the following 3 parameters XONUL, XVBST, and XNVBST "n599218
became obsolete; send error when they should be filled. "n599218
This could be possible if the user works with old "n599218
selection variants or this report is launched by a "n599218
SUBMIT command "n599218
if XONUL is initial and "n599218
XVBST is initial and "n599218
XNVBST is initial. "n599218
ok, the old parameters are empty "n599218
else. "n599218
text-088 : note 599218 : obsolete parameter used "n599218
MESSAGE E895 with text-088. "n599218
endif.
did the user hit the pushbutton "Category" ? "n599218
case SSCRFIELDS-UCOMM. "n599218
when 'LIU '. "n599218
yes, the pushbutton "Category" was hit "n599218
IF g_flag_status_liu = C_HIDE. "n599218
show the 7 parameters on the selection srceen "n599218
MOVE C_SHOW TO g_flag_status_liu. "n599218
ELSE. "n599218
hide the 7 paramaters "n599218
MOVE C_HIDE TO g_flag_status_liu. "n599218
ENDIF. "n599218
ENDcase. "n599218
"n599218
go on only if the user wants to launch this report "n599218
check : sy-ucomm = 'ONLI' or "n599218
sy-ucomm = 'PRIN' or "n599218
sy-ucomm = 'SJOB'. "n599218
PERFORM eingaben_pruefen.
check whether FI summarization is active and other "n547170
restrictions could deliver wrong results "n547170
perform f0800_check_restrictions. "n547170
- the user wants to surpress the reversal movements : "n497992
process warning M7 392 "n497992
IF NOT NOSTO IS INITIAL. "n497992
emerge warning ? "n497992
CALL FUNCTION 'ME_CHECK_T160M' "n497992
EXPORTING "n497992
I_ARBGB = 'M7' "n497992
I_MSGNR = '392' "n497992
EXCEPTIONSPlease read the KBA document 2012912 - Changeablility of the field "material group" in purchasing documents
It clearly says that material group can't be changed in case you will use material master in purchase order.
So, it is clear that you can't use different material group for material master in purchase order.
For stock report, system will only show you the material group which is assigned to the material master (MARA-MATKL). System will not look into the purchase order section (like EKPO). -
Any Standard Aging report for MM
Hello All,
I am looking a standard aging report for Materials on my storage location.
We are following batch.
Please help
Regards
LalHi ,
I hope for your new requirement this might help you .
If you want to perform an analysis based on the key figure dead stock, proceed as follows:
From the Inventory Controlling menu, select Environment -> Document evaluations-> Dead stock.
1. The selection screen appears.
2. Specify the desired analysis criterion and selection parameters.
You can carry out the analysis for all plants, that is, for each material, data from all plants are grouped together or only for certain plants, that is, the analysis is created for every designated plant. Any period can be selected for the analysis. The system suggests 90 days as the period to analyze, the calculation starting from the current date.
The following functions can be used to process the material list.
Detailed Display
By using the function Detailed display, you can call up in a table or graph form detailed data for a material including the respective material document. You can analyze all material documents that are related to the evaluated stock of a material.
If you want to view detailed information for a certain material, proceed as follows:
Position the cursor on the desired material in the results list and select Edit ->Detailed display.
A dialog box appears in which you can choose either a graph or table display.
If you select the graphic, you can display the latest information on:
Cumulative receipts/issues
Warehouse issues
Warehouse receipts
Stock level
If you select the table, you can display the following information:
Stock movements
Cumulative stock movements
Current stock level
From the stock movement table you can drill down as far as the material document level to see detailed information. To display stock movements on a particular day, position the cursor on the relevant line and select the Choose function. A popup window appears which displays all the movements on the selected day. The individual movements for a selected date are displayed in a dialog box.
To display the document for a particular movement, position the cursor on the relevant line and select the Choose function. A popup window appears which displays the document.
Similarly you can try for the slow moving also .please let me know wether you were able to find what you were looking for .
source: SAP
cheers
KP -
Report for Pending 103 for 105 (If GR based IV is untick condition)
Hi,
I required logic for mapping the report in Pending 103 for 105, If GR based IV is untick condition in PO.
Our business accept the material with movement type 103. After various tests (outside SAP), we post this document with movement type 105.
Normally each MIGO document has a reference document no . In case of 103 document, the reference docu no is the same no. In case of 105 document, the reference docu no is the docu no of 103.
It is noticed that for some 103 and 105 documents, the reference docu no is blank when GR based IV is not ticked in the Purchase order.
We need some logic to find the ref of 103 doc in 105 doc.
Regards,
MaddaliThanks for your promt reply.
I have seen ME2M/ ME2L with selection parameter we104 or we105. However our client required specific report format for controlling this issue.
So I am trying for logic in this particular senarieo.
Regards,
Suresh -
Which infocube should I use for Controlling and Inventory?
Hi all,
I have several questions regarding Controlling and Supply chain management infocubes:
1. We need cost reports for the material ledger in order to meet the Brazilian compliance. I have found two infocubes:
CO-PC: Cost Object Controlling (0PC_C01)
CO-PC: Actual Costing / Material Ledger Costs (0COPC_C02)
What Infocube will help me to create a query that will meet our requirements? Which one is better?
2. We need a cost Center summary report, Expenses analysis, by product, cost center, business unit, region, plant, etc. and Expenses period comparison report. Which infocube will provide me that information for those reports, the CO-OM-CCA: Statistical Key Figures (0CCA_C03) or CO-OM-CCA: Costs and Allocations (0CCA_C11)?
3. What infocube will be needed to generate an inventory report (raw material, semi and finished goods)? Is it the Material Stocks/Movements (as of 3.0B) 0IC_C03?
Can I get an inventory report from the Purchasing data (0PUR_C01) infocube?
Thanks a lot
VicHi
1)you need to check the requiered characteristics are available or not from these data sources which supply data to the above said cubes,,2
2)0CCA_C11
3)0IC_C03
You cann't get the inventory report from the purchasing data(purchasing data always talks about the vendor supplying inventory,it never talks about the production inventory)
Hope it helps
Thanks
Teja -
MIS report : Daily Cumulative Report for contract in SD module
Hi All,
Do you have any idea about MIS report in SD module.actually my requirement is that
i have to generate daily cumulative report for contract. that means at time i am selecting ten plants
and correspondingly sum of total quantity,average rate and average weight of all the contracts for particular plant should be displayed in a column and various existing flavours should be displayed in a row.
for above requirement following output format is there:
plant -> plant1 plant2 plant3 .... .....
flavour quantity rate quantity rate
cumulative
total cumulative
please refer sample code,if any.
Thks & Regards
ShaileshHi,
You can ask your functional people what are the required fields to develop a report below are the table.
customer related tables:
KNA1 Customer master General Data
KNB1 Customer Master Co. Code Data
KNKK Customer Master Credit Control Area Data
KNVV Sales Area Data
KNVI Customer Master Tax Indicator
KNVP Partner Function
KNVD Output type
KNVS Customer Master Ship Data
KLPA Customer/Vendor Link
Sales Documents
VBAK Sales Document - Header Data
VBAP Sales Document - Item Data
VBUK Header Status and Administrative Data
VBKD Sales Document - Business Data
VBUP Item Status
VBPA Partners
VBFA Document Flow
VBEP Sales Document Schedule Line
VBBE Sales Requirements: Individual Records
Delivery Document
LIKP Delivery header table
LIPS Delivery item table
Billing document:
VBRK Billing document header table
VBRP Billing Document Item table
Shipping
VEKP Shipping Header Table
VEPO Shipping Item Table
Thanks
VIkranth -
How can I run the report for different input values at the same time?
Reports version: Report Builder 6.0.8.13.1
Oracle version: Oracle8i Enterprise Edition Release 8.1.7.0.0
I want to run the same report for different input parameter values and spool each o/p to different file and ftp to a server. For this, as a first step, I am spooling different input values in to a file, reading those values through a loop and calling the report for that input values. Each report run/execution is taking 15 minutes. Total report execution is taking approximately 4 hours (assuming 16 different input values) to complete. So I have to wait 4 hours to see ALL outputs.
I would like to run the report parallel for ALL the input values and I should be able to see the ALL outputs with in 15 or 16 minutes.
In my shell script, I added & symbol at the end of the report call to start/run the job in the background. Due to this the control passed to the next step after the report call. At this place I have an ftp command to send the output file to a different server and it is giving error some thing like o/p file is not available/created yet". This is due to the fact that report writer is NOT yet completely started/initiated or it is NOT completed the spooling.
How can I run the report at the same time for all the input values and save the time?
Thanks in advance.
Kishore.Increase the number of server engines running right now it seems there is only one engine running ,increase it to 4 or 6
and then atleast 4 or 6 reports will run simultaneously.
For FTPing the output add to your sript to check whether it is locked and if not then only try to ftp .
Also for more better functionality read the document (chapter 15 ) for 10g reports for its new fuinctionality.
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm
Thanks
Subodh -
Hi: I'm analyzing this STATSPACK report: it is "volume test" on our UAT server, so most input is from 'bind variables'. Our shared pool is well utilized in oracle. Oracle redo logs is not appropriately configured on this server, as in 'Top 5 wait events' there are 2 for redos.
I need to know what else information can be dig-out from 'foreground wait events' & 'background wait events', and what can assist us to better understanding, in combination of 'Top 5 wait event's, that how the server/test went? it could be overwelming No. of wait events, so appreciate any helpful diagnostic or analysis. Database is oracle 11.2.0.4 upgraded from 11.2.0.3, on IBM AIX power system 64bit, level 6.x
STATSPACK report for
Database DB Id Instance Inst Num Startup Time Release RAC
~~~~~~~~ ----------- ------------ -------- --------------- ----------- ---
700000XXX XXX 1 22-Apr-15 12:12 11.2.0.4.0 NO
Host Name Platform CPUs Cores Sockets Memory (G)
~~~~ ---------------- ---------------------- ----- ----- ------- ------------
dXXXX_XXX AIX-Based Systems (64- 2 1 0 16.0
Snapshot Snap Id Snap Time Sessions Curs/Sess Comment
~~~~~~~~ ---------- ------------------ -------- --------- ------------------
Begin Snap: 5635 22-Apr-15 13:00:02 114 4.6
End Snap: 5636 22-Apr-15 14:00:01 128 8.8
Elapsed: 59.98 (mins) Av Act Sess: 0.6
DB time: 35.98 (mins) DB CPU: 19.43 (mins)
Cache Sizes Begin End
~~~~~~~~~~~ ---------- ----------
Buffer Cache: 2,064M Std Block Size: 8K
Shared Pool: 3,072M Log Buffer: 13,632K
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~ ------------------ ----------------- ----------- -----------
DB time(s): 0.6 0.0 0.00 0.00
DB CPU(s): 0.3 0.0 0.00 0.00
Redo size: 458,720.6 8,755.7
Logical reads: 12,874.2 245.7
Block changes: 1,356.4 25.9
Physical reads: 6.6 0.1
Physical writes: 61.8 1.2
User calls: 2,033.7 38.8
Parses: 286.5 5.5
Hard parses: 0.5 0.0
W/A MB processed: 1.7 0.0
Logons: 1.2 0.0
Executes: 801.1 15.3
Rollbacks: 6.1 0.1
Transactions: 52.4
Instance Efficiency Indicators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffer Nowait %: 100.00 Redo NoWait %: 100.00
Buffer Hit %: 99.98 Optimal W/A Exec %: 100.00
Library Hit %: 99.77 Soft Parse %: 99.82
Execute to Parse %: 64.24 Latch Hit %: 99.98
Parse CPU to Parse Elapsd %: 53.15 % Non-Parse CPU: 98.03
Shared Pool Statistics Begin End
Memory Usage %: 10.50 12.79
% SQL with executions>1: 69.98 78.37
% Memory for SQL w/exec>1: 70.22 81.96
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
CPU time 847 50.2
enq: TX - row lock contention 4,480 434 97 25.8
log file sync 284,169 185 1 11.0
log file parallel write 299,537 164 1 9.7
log file sequential read 698 16 24 1.0
Host CPU (CPUs: 2 Cores: 1 Sockets: 0)
~~~~~~~~ Load Average
Begin End User System Idle WIO WCPU
1.16 1.84 19.28 14.51 66.21 1.20 82.01
Instance CPU
~~~~~~~~~~~~ % Time (seconds)
Host: Total time (s): 7,193.8
Host: Busy CPU time (s): 2,430.7
% of time Host is Busy: 33.8
Instance: Total CPU time (s): 1,203.1
% of Busy CPU used for Instance: 49.5
Instance: Total Database time (s): 2,426.4
%DB time waiting for CPU (Resource Mgr): 0.0
Memory Statistics Begin End
~~~~~~~~~~~~~~~~~ ------------ ------------
Host Mem (MB): 16,384.0 16,384.0
SGA use (MB): 7,136.0 7,136.0
PGA use (MB): 282.5 361.4
% Host Mem used for SGA+PGA: 45.3 45.8
Foreground Wait Events DB/Inst: XXXXXs Snaps: 5635-5636
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
enq: TX - row lock contentio 4,480 0 434 97 0.0 25.8
log file sync 284,167 0 185 1 1.5 11.0
Disk file operations I/O 8,741 0 4 0 0.0 .2
direct path write 13,247 0 3 0 0.1 .2
db file sequential read 6,058 0 1 0 0.0 .1
buffer busy waits 1,800 0 1 1 0.0 .1
SQL*Net more data to client 29,161 0 1 0 0.2 .1
direct path read 7,696 0 1 0 0.0 .0
db file scattered read 316 0 1 2 0.0 .0
latch: shared pool 144 0 0 2 0.0 .0
CSS initialization 30 0 0 3 0.0 .0
cursor: pin S 10 0 0 9 0.0 .0
row cache lock 41 0 0 2 0.0 .0
latch: row cache objects 19 0 0 3 0.0 .0
log file switch (private str 8 0 0 7 0.0 .0
library cache: mutex X 28 0 0 2 0.0 .0
latch: cache buffers chains 54 0 0 1 0.0 .0
latch free 290 0 0 0 0.0 .0
control file sequential read 1,568 0 0 0 0.0 .0
log file switch (checkpoint 4 0 0 6 0.0 .0
direct path sync 8 0 0 3 0.0 .0
latch: redo allocation 60 0 0 0 0.0 .0
SQL*Net break/reset to clien 34 0 0 1 0.0 .0
latch: enqueue hash chains 45 0 0 0 0.0 .0
latch: cache buffers lru cha 7 0 0 2 0.0 .0
latch: session allocation 5 0 0 1 0.0 .0
latch: object queue header o 6 0 0 1 0.0 .0
ASM file metadata operation 30 0 0 0 0.0 .0
latch: In memory undo latch 15 0 0 0 0.0 .0
latch: undo global data 8 0 0 0 0.0 .0
SQL*Net message from client 6,362,536 0 278,225 44 33.7
jobq slave wait 7,270 100 3,635 500 0.0
SQL*Net more data from clien 7,976 0 15 2 0.0
SQL*Net message to client 6,362,544 0 8 0 33.7
Background Wait Events DB/Inst: XXXXXs Snaps: 5635-5636
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg %Total
%Tim Total Wait wait Waits Call
Event Waits out Time (s) (ms) /txn Time
log file parallel write 299,537 0 164 1 1.6 9.7
log file sequential read 698 0 16 24 0.0 1.0
db file parallel write 9,556 0 13 1 0.1 .8
os thread startup 146 0 10 70 0.0 .6
control file parallel write 2,037 0 2 1 0.0 .1
Log archive I/O 35 0 1 30 0.0 .1
LGWR wait for redo copy 2,447 0 0 0 0.0 .0
db file async I/O submit 9,556 0 0 0 0.1 .0
db file sequential read 145 0 0 2 0.0 .0
Disk file operations I/O 349 0 0 0 0.0 .0
db file scattered read 30 0 0 4 0.0 .0
control file sequential read 5,837 0 0 0 0.0 .0
ADR block file read 19 0 0 4 0.0 .0
ADR block file write 5 0 0 15 0.0 .0
direct path write 14 0 0 2 0.0 .0
direct path read 3 0 0 7 0.0 .0
latch: shared pool 3 0 0 6 0.0 .0
log file single write 56 0 0 0 0.0 .0
latch: redo allocation 53 0 0 0 0.0 .0
latch: active service list 1 0 0 3 0.0 .0
latch free 11 0 0 0 0.0 .0
rdbms ipc message 314,523 5 57,189 182 1.7
Space Manager: slave idle wa 4,086 88 18,996 4649 0.0
DIAG idle wait 7,185 100 7,186 1000 0.0
Streams AQ: waiting for time 2 50 4,909 ###### 0.0
Streams AQ: qmn slave idle w 129 0 3,612 28002 0.0
Streams AQ: qmn coordinator 258 50 3,612 14001 0.0
smon timer 43 2 3,605 83839 0.0
pmon timer 1,199 99 3,596 2999 0.0
SQL*Net message from client 17,019 0 31 2 0.1
SQL*Net message to client 12,762 0 0 0 0.1
class slave wait 28 0 0 0 0.0
thank you very much!Hi: just know it now: it is a large amount of 'concurrent transaction' designed in this "Volume Test" - to simulate large incoming transaction volme, so I guess wait in eq:TX - row is expected.
The fact: (1) redo logs at uat server is known to not well-tune for configurations (2) volume test slow 5%, however data amount in its test is kept the same by each time import production data, by the team. So why it slowed 5% this year?
The wait histogram is pasted below, any one interest to take a look? any ideas?
Wait Event Histogram DB/Inst: XXXX/XXXX Snaps: 5635-5636
-> Total Waits - units: K is 1000, M is 1000000, G is 1000000000
-> % of Waits - column heading: <=1s is truly <1024ms, >1s is truly >=1024ms
-> % of Waits - value: .0 indicates value was <.05%, null is truly 0
-> Ordered by Event (idle events last)
Total ----------------- % of Waits ------------------
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
ADR block file read 19 26.3 5.3 10.5 57.9
ADR block file write 5 40.0 60.0
ADR file lock 6 100.0
ARCH wait for archivelog l 14 100.0
ASM file metadata operatio 30 100.0
CSS initialization 30 100.0
Disk file operations I/O 9090 97.2 1.4 .6 .4 .2 .1 .1
LGWR wait for redo copy 2447 98.5 .5 .4 .2 .2 .2 .1
Log archive I/O 35 40.0 8.6 25.7 2.9 22.9
SQL*Net break/reset to cli 34 85.3 8.8 5.9
SQL*Net more data to clien 29K 99.9 .0 .0 .0 .0 .0
buffer busy waits 1800 96.8 .7 .7 .6 .3 .4 .5
control file parallel writ 2037 90.7 5.0 2.1 .8 1.0 .3 .1
control file sequential re 7405 100.0 .0
cursor: pin S 10 10.0 90.0
db file async I/O submit 9556 99.9 .0 .0 .0
db file parallel read 1 100.0
db file parallel write 9556 62.0 32.4 1.7 .8 1.5 1.3 .1
db file scattered read 345 72.8 3.8 2.3 11.6 9.0 .6
db file sequential read 6199 97.2 .2 .3 1.6 .7 .0 .0
direct path read 7699 99.1 .4 .2 .1 .1 .0
direct path sync 8 25.0 37.5 12.5 25.0
direct path write 13K 97.8 .9 .5 .4 .3 .1 .0
enq: TX - row lock content 4480 .4 .7 1.3 3.0 6.8 12.3 75.4 .1
latch free 301 98.3 .3 .7 .7
latch: In memory undo latc 15 93.3 6.7
latch: active service list 1 100.0
latch: cache buffers chain 55 94.5 3.6 1.8
latch: cache buffers lru c 9 88.9 11.1
latch: call allocation 6 100.0
latch: checkpoint queue la 3 100.0
latch: enqueue hash chains 45 97.8 2.2
latch: messages 4 100.0
latch: object queue header 7 85.7 14.3
latch: redo allocation 113 97.3 1.8 .9
latch: row cache objects 19 89.5 5.3 5.3
latch: session allocation 5 80.0 20.0
latch: shared pool 147 90.5 1.4 2.7 1.4 .7 1.4 2.0
latch: undo global data 8 100.0
library cache: mutex X 28 89.3 3.6 3.6 3.6
log file parallel write 299K 95.6 2.6 1.0 .4 .3 .2 .0
log file sequential read 698 29.5 .1 4.6 46.8 18.9
log file single write 56 100.0
log file switch (checkpoin 4 25.0 50.0 25.0
log file switch (private s 8 12.5 37.5 50.0
log file sync 284K 93.3 3.7 1.4 .7 .5 .3 .1
os thread startup 146 100.0
row cache lock 41 85.4 9.8 2.4 2.4
DIAG idle wait 7184 100.0
SQL*Net message from clien 6379K 86.6 5.1 2.9 1.3 .7 .3 2.8 .3
SQL*Net message to client 6375K 100.0 .0 .0 .0 .0 .0 .0
Wait Event Histogram DB/Inst: XXXX/xxxx Snaps: 5635-5636
-> Total Waits - units: K is 1000, M is 1000000, G is 1000000000
-> % of Waits - column heading: <=1s is truly <1024ms, >1s is truly >=1024ms
-> % of Waits - value: .0 indicates value was <.05%, null is truly 0
-> Ordered by Event (idle events last)
Total ----------------- % of Waits ------------------
Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s
SQL*Net more data from cli 7976 99.7 .1 .1 .0 .1
Space Manager: slave idle 4086 .1 .2 .0 .0 .3 3.2 96.1
Streams AQ: qmn coordinato 258 49.2 .8 50.0
Streams AQ: qmn slave idle 129 100.0
Streams AQ: waiting for ti 2 50.0 50.0
class slave wait 28 92.9 3.6 3.6
jobq slave wait 7270 .0 100.0
pmon timer 1199 100.0
rdbms ipc message 314K 10.3 7.3 39.7 15.4 10.6 5.3 8.2 3.3
smon timer 43 100.0 -
Problem in crystal report viewer control's toolbar "export"button using SSL
Hi,
I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
u201CInternet Explorer cannot download file from server.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
Anyone can help ???
ThanksIn Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
Default is to have that option checked.
It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later). So more recent versions of IE implemented that option setting.
How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type. So the application tries to open a directory path to a non-existing file.
Issue is specific to IE, and it's not something you can control via the SDK.
Sincerely,
Ted Ueda -
Crystal Reports for VS2010 cannot find crdb_adoplus.dll
I installed Crystal Reports for VS2010 successfullly, At least the report editor works without a problem and the viewer control can be placed on a form. My problem is when I try to run it, I get the following exception:
System.IO.FileNotFoundException was unhandled
Message=Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
Source=mscorlib
FileName=file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
FusionLog=WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
StackTrace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)
InnerException:
I used Windows Explorer and found that crdb_adoplus.dll is present in the directory, so it must be a "related file" Has any one seen this error before and if so, do you know how to fix it??See if [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do] KB resolves the issue.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Maybe you are looking for
-
I'm using an iPad 2 and have upgraded to ios6. Now, when I open a web page that has embedded video, it auto-plays and then I have to search all over the page to find the video to stop it. It's extremely annoying. Is there some setting that I need to
-
Hello guys I recenty got a few videos that are in divx. I would like them to be conveted into mp4. I have tried to do that in my quicktime pro that I bought but it wont open any divx. Please help, and I want a free converter or at least a 30 day tria
-
Material availability chek for order
Hi I created one production order status is CRTD then i release this same order status is REL now i do material avilability by click oncheck availability material but statem status is NMAT Systm give mesage like... "No material components exist" th
-
WLIntegration Worklist.jsp in a portlet problem
I am using the BEA WLIntegration client example and have managed to get the initial page displayed in a portal. The Worklist.jsp uses bean ResponseHandler. When trying to display Worklist.jsp the server returns ResponseHandler not found. For portlets
-
Need to install Form 6i runtime on MAC OS X Version 10.4.10
Hi Gurus, I've got an Apple MAC Book version 10.4.10. And we are already working with an application which is developed in Forms 6i. DB version: 9.2.0.7 Database server: Oracle Unbreakable linux 4 Application Server: Developer 2000/ Forms 6i Reports