33
I. Derive Fiscal Year (P_GJAHR) and Period (P_MONAT) from the table BKPF. BKPF – GJAHR = P_GJAHR BKPF – MONAT = P_MONAT II. Derive Profit Center (P_PRCTR) from the table MARC. MARC-PRCTR = P_PRCTR III. Derive Division (P_SPART) from the table MARA. MARA –SPART = P_SPART A. Select all the Materials (MATNR) from the table MARA Where, Material Type (MTART) = ZFGS Material Group (MATKL) = 1880 1. MOTORS IN STOCK KALWA: i. i. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M031’ to ‘M099’ ii. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘2020’ iii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with ‘M’ and ‘2’ and SPRAS eq ‘EN’ iv. Pass the Materials (MATNR) fetched in step (iii) to MBEW-matnr to fetch total Quantity (LABKUM), and total value (SALK3) KALWA QTY = MBEW – LABKUM KALWA VALUE = MBEW – SALK3 b. i. Pass the Materials (MATNR) fetched in step (iii) to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3) KALWA QTY = KALWA QTY +EBEW- LABKUM . KALWA VALUE = KALWA VALUE +EBEW-SALK3 c.

Logicforbank116.10.2013_20131114043152.046_X

Embed Size (px)

DESCRIPTION

SAP

Citation preview

Page 1: Logicforbank116.10.2013_20131114043152.046_X

I. Derive Fiscal Year (P_GJAHR) and Period (P_MONAT) from the table BKPF.

BKPF – GJAHR = P_GJAHR

BKPF – MONAT = P_MONAT

II. Derive Profit Center (P_PRCTR) from the table MARC.

MARC-PRCTR = P_PRCTR

III. Derive Division (P_SPART) from the table MARA.

MARA –SPART = P_SPARTA. Select all the Materials (MATNR) from the table MARA

Where,

Material Type (MTART) = ZFGS

Material Group (MATKL) = 1880

1. MOTORS IN STOCK KALWA: i.i. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M031’ to

‘M099’ii. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘2020’ iii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with ‘M’ and ‘2’ and SPRAS eq

‘EN’iv. Pass the Materials (MATNR) fetched in step (iii) to MBEW-matnr to fetch total Quantity

(LABKUM), and total value (SALK3)

KALWA QTY = MBEW – LABKUM

KALWA VALUE = MBEW – SALK3

b.

i. Pass the Materials (MATNR) fetched in step (iii) to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

KALWA QTY = KALWA QTY +EBEW- LABKUM

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

i. Pass the Materials (MATNR) fetched in step (iii) to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

A. KALWA QTY = KALWA QTY +QBEW-LABKUM

Page 2: Logicforbank116.10.2013_20131114043152.046_X

. B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

2. MOTORS IN STOCK BRANCHES & O/S PARTIES:

a.

i. Pass MARA-Matnr to MARC-MATNR where WERKS NE 2010 PRCTR EQ ‘1010’ or ‘2020’

ii. Pass the MARC-MATNR to MAKT-MATNR where (MAKTX) starts with ‘M’ and ‘2’ and SPRAS eq ‘EN’

iii. Pass the Materials (MATNR) fetched in step a. ii to MBEW-MATNR to fetch total Quantity (LABKUM), and total value (SALK3)

BRANCHES & O/S PARTIES QTY = MBEW-LABKUM

BRANCHES & O/S PARTIES VALUE = MBEW-SALK3

b.

i. Pass the Materials (MATNR) fetched in step a.ii to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

BRANCHES & O/S PARTIES QTY = BRANCHES & O/S PARTIES QTY +EBEW- LABKUMBRANCHES & O/S PARTIES VALUE = = BRANCHES & O/S PARTIES VALUE +EBEW-SALK3

c. .

i. Pass the Materials (MATNR) fetched in step a. ii to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

A. BRANCHES & O/S PARTIES QTY = BRANCHES & O/S PARTIES QTY +QBEW-LABKUMB. BRANCHES & O/S PARTIES VALUE = = BRANCHES & O/S PARTIES VALUE +QBEW-

SALK3

3. TOTAL VALUE:

1. TOTAL VALUE = 1.C.i.B+ 2.C.i.B

4. PUMPS IN STOCK IN KALWA

a.

i. Pass MARA-MATNR to MARD-MATNR where WERKS EQ 2010 and LGORT EQ from M031 to M099

Page 3: Logicforbank116.10.2013_20131114043152.046_X

ii. Pass MARD-MATNR to MARC-MATNR where PRCTR EQ 1010 and 1020iii. Pass MARC-MATNR to MAKT-MATNR where MAKTX starts with ‘PT’iv. Pass the Materials (MATNR) fetched in step (iii) to MBEW-MATNR to fetch total quantity

(LABKUM) and total value (SALK3)

KALWA QTY = MBEW – LABKUMKALWA VALUE = MBEW – SALK3

b.

i. Pass the Materials (MATNR) fetched in step (iii) to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

KALWA QTY = KALWA QTY +EBEW- LABKUM

. KALWA VALUE KALWA VALUE +EBEW-SALK3

c.

i. Pass the Materials (MATNR) fetched in step (iii) to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

A. KALWA QTY = KALWA QTY +QBEW-LABKUM

. B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

5. PUMPS IN STOCK BRANCHES & O/S PARTIES:

a.

i. Pass MARA-Matnr to MARC-MATNR where WERKS NE 2010 PRCTR EQ ‘1010’ or ‘2020’

ii. Pass the MARC-MATNR to MAKT-MATNR where (MAKTX) EQ ‘PT and SPRAS eq ‘EN’iii. Pass the Materials (MATNR) fetched in step (ii) to MBEW-MATNR to fetch total Quantity

(LABKUM), and total value (SALK3)

BRANCHES & O/S PARTIES QTY = MBEW-LABKUM

BRANCHES & O/S PARTIES VALUE = MBEW-SALK3

b.

i. Pass the Materials (MATNR) fetched in step a. (ii). to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

BRANCHES & O/S PARTIES QTY = BRANCHES & O/S PARTIES QTY +EBEW- LABKUM

Page 4: Logicforbank116.10.2013_20131114043152.046_X

BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +EBEW-SALK3

c. .

i. Pass the Materials (MATNR) fetched in step a. i. to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

A. BRANCHES & O/S PARTIES QTY = BRANCHES & O/S PARTIES QTY +QBEW-LABKUMB. BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +QBEW-

SALK3

6. TOTAL VALUE:

1. TOTAL VALUE = 4.c.i.B+ 5.C.i.B

6. TRANSFORMERS KALWA:

Create a Z Table with fields Plant, Profit Center, Fiscal yr & Quantity

Develop screen or program to update ztable created above.

a. Transformer Qty : select records from ztable where plant = P_WERKS PRCTR EQ P_PRCTR Fiscal Year (RYEAR) = P_ GJAHR to get addition of qty

b. Pass the G/L Account (RACCT) 272100, 230405 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year (RYEAR) = P_ GJAHR

A. TRASFORMER VALUE= HSLVT + HSL01+ HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16

7. TOTAL VALUE:

1. TOTAL VALUE = 6. A.

8. PS CONTROLLERS, VSD, GEARLESS M/C etc. (DRIVES+ESD)

a.

i. Pass MARA-Matnr to MARC-MATNR where WERKS EQ 2040, 2042, 2043,2050 PRCTR EQ ‘4010’4030 4040 5010 5020

ii. Pass the Materials (MATNR) fetched in step i to MBEW-MATNR to fetch total value (SALK3)

Page 5: Logicforbank116.10.2013_20131114043152.046_X

BRANCHES & O/S PARTIES VALUE = MBEW-SALK3

b.

i. Pass the Materials (MATNR) fetched in step a.(i) to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch and total value (SALK3)

BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +EBEW-SALK3

c. .

i. Pass the Materials (MATNR) fetched in step a.(i) to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch and total value (SALK3)

A. BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +QBEW-SALK3

d.

i. Pass the G/L account (RACCT) 230405 to FAGLFLEXT table to fetch the value where RBUKRS EQ1000, PRCTR EQ 5010 and 5020 and Fiscal Year EQ P_GJAHR.

A. BRANCHES & O/S PARTIES VALUE = HSLVT + HSL01+ HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16 + 8.c.i. A.

e.

i. Pass the G/L ACCOUNTS (RACCT) 272100, 272110, 272120 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 5010, 5020

A. BRANCHES & O/S PARTIES VALUE = HSLVT + HSL01+ HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+8.d.i.A

9. TOTAL VALUE:

1. TOTAL VALUE = 8.e.i. A.

B.Select all the Materials (MATNR) from the table MARA

Where,

Page 6: Logicforbank116.10.2013_20131114043152.046_X

Material Type (MTART) = ZTRP

Material Group (MATKL) = 1884 AND 1885

10. TRADING GOODS (MOTOR & DRIVES) KALWA :( MOTOR+DRIVES)

a.

i. Pass MARA-Matnr to MARC-MATNR where WERKS EQ 2010 and 2041 PRCTR EQ 1010, 1020 and 4020

ii. Pass the Materials (MATNR) fetched in step a i to MBEW-MATNR to fetch total value (SALK3)

A. KALWA VALUE = MBEW-SALK3

b.

ii. Pass the Materials (MATNR) fetched in step a.i to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch the total value (SALK3)

A. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c. .

i. Pass the Materials (MATNR) fetched in step a. i. to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch total value (SALK3)

A. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d.i. Pass the G/L account (RACCT)230415 to FAGLFLEXT to fetch the value where

RBUKRS EQ 1000 PRCTR EQ 5010 and 5020, Fiscal Year (RYEAR)= P_GJAHR

A. TRADING GOODS value = HSLVT + HSL01+ HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+10.c.i.A

11. BRANCHES AND O/S PARTIES: :( MOTOR+DRIVES)

a.

i. Pass MARA-Matnr to MARC-MATNR where WERKS NE 2010 and 2041 PRCTR EQ 1010, 1020 and 4020

ii. Pass the Materials (MATNR) fetched in step i to MBEW-MATNR to fetch total value (SALK3)

A. BRANCHES & O/S PARTIES VALUE = MBEW-SALK3

Page 7: Logicforbank116.10.2013_20131114043152.046_X

b.

i. Pass the Materials (MATNR) fetched in step a.i to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch the total value (SALK3)

A. BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +EBEW-SALK3

c. .

i. Pass the Materials (MATNR) fetched in step a. i. to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch total value (SALK3)

A. BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +QBEW-SALK3

d

i. Pass the G/L account (RACCT) 230415 to FAGLFLEXT to fetch the value where RBUKRS EQ 1000 PRCTR EQ 1010 and 1020, Fiscal Year (RYEAR) = P_GJAHR

A. BRANCHES & O/S PARTIES VALUE = HSLVT + HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+11.c.i.A

12. TOTAL VALUE:

1. TOTAL VALUE = 10.d.i. A.+11.d.i.A

C. Select all the Materials (MATNR) from the table MARA

13. Maintenance Products/ ACC.

a.

iii. Pass MARA-Matnr to MARC-MATNR where WERKS EQ 3121, 3201, 3401, 3411 PRCTR EQ 2010, 2020

iv. Pass the Materials (MATNR) fetched in step i to MBEW-MATNR to fetch total value (SALK3)

A. BRANCHES & O/S PARTIES VALUE = MBEW-SALK3

b.

ii.Pass the Materials (MATNR) fetched in step a.i to EBEW-matnr and MARC-WERKS to EBEW- BWKEY to fetch the total value (SALK3)

Page 8: Logicforbank116.10.2013_20131114043152.046_X

A. BRANCHES & O/S PARTIES VALUE = = BRANCHES & O/S PARTIES VALUE +EBEW-SALK3

c. .

ii.Pass the Materials (MATNR) fetched in step a. i. to QBEW-matnr and MARC-WERKS to QBEW- BWKEY to fetch total value (SALK3)

B. BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +QBEW-SALK3

d

ii. Pass the G/L account (RACCT) 230415 to FAGLFLEXT to fetch the value where RBUKRS EQ 1000 PRCTR EQ 1010 and 1020, Fiscal Year (RYEAR) = P_GJAHR

B. BRANCHES & O/S PARTIES value = HSLVT + 9HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+13.c.ii.B.

14. TOTAL VALUE:

1. TOTAL VALUE = 13.d.ii.B

1. SUB TOTAL FINISHED GOODS

A. KALWA VALUE = 1.c.i.B+4.c.i.B+6.b.A+10.d.i.A

B. BRANCHES & OTHER O/S PARTIES=2.c.i.B+5.c.i.B+8.e.i.A+11.d.i.A+13.d.ii.B

C. TOTAL VALUE=3.1+6.1+9.1+12.1+14.1

15. STAMPINGS AND LAMINATIONS KALWA:

a.

v. Pass MARA-MATNR to MARD-MATNR where WERKS EQ 2010 and LGORT EQ from M001 to M015

vi. Pass MARD-MATNR to MARC-MATNR and MARD-WERKS to MARC-WERKS where PRCTR EQ 1010 and 2010

vii. Pass the Materials (MATNR) fetched in step vi to MBEW-MATNR where HRKFT EQ M030 to fetch total quantity (LABKUM) and total value (SALK3)

KALWA QTY = MBEW – LABKUMKALWA VALUE = MBEW – SALK3

Page 9: Logicforbank116.10.2013_20131114043152.046_X

b.

ii. Pass the Materials (MATNR) fetched in step vi to EBEW-matnr and MARC-WERKS to EBEW- BWKEY where HRKFT EQ M030 to fetch total Quantity (LABKUM), and total value (SALK3)

KALWA QTY = KALWA QTY +EBEW- LABKUM

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

ii. Pass the Materials (MATNR) fetched in step 3 to QBEW-matnr and MARC-WERKS to QBEW- BWKEY where HRKFT EQ M030 to fetch total Quantity (LABKUM), and total value (SALK3)

A. KALWA QTY = KALWA QTY +QBEW-LABKUM

. B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d.

i. Select all the MATNR from the table MARA where MATKL EQ 2020, 2021, 2022

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii. Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the LABKUM and SALK3

A. KALWA QTY = QBEW-LABKUM+ c. ii. A

. B. KALWA VALUE = QBEW-SALK3+ c. ii. B

16. STAMPINGS AND LAMINATIONS BRANCHES and O/S PARTIES:

i. Select all the MATNR from the table MARA where MATKL EQ 2020, 2021, 2022

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiv.Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

A. BRANCHES & O/S PARTIES QTY = MBEW- LABKUMB. BRANCHES & O/S PARTIES VALUE = MBEW- SALK3

17. TOTAL VALUE:

1. TOTAL VALUE: 15.d.B+16.B

Page 10: Logicforbank116.10.2013_20131114043152.046_X

18. STEEL SHEETS, SECTIONS, SHAFTING KALWA:

i. Select all the MATNR from the table MARA where MATKL EQ 2080, 2082, 2200

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

. B. KALWA VALUE = QBEW-SALK3

19. STEEL SHEETS, SECTIONS, SHAFTING BRANCHES and O/S PARTIES:

i. Select all the MATNR from the table MARA where MATKL EQ 2080, 2082, 2200

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiv.Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

C. BRANCHES & O/S PARTIES VALUE = MBEW- SALK3

20. TOTAL VALUE:

1. TOTAL VALUE: 18.B+19.C

21. CU BARS, WIRES, STRIPS & ALUMINIUM KALWA:

viii. Pass MARA-MATNR to MARD-MATNR where WERKS EQ 2010 and LGORT EQ from M001 to M015

ix. Pass MARD-MATNR to MARC-MATNR and MARD-WERKS to MARC-WERKS where PRCTR EQ 1010 and 2010

x. Pass the Materials (MATNR) fetched in step ix to MBEW-MATNR where HRKFT EQ M040 and M045 to fetch total quantity (LABKUM) and total value (SALK3)

KALWA QTY = MBEW – LABKUMKALWA VALUE = MBEW – SALK3

b.

iii. Pass the Materials (MATNR) fetched in step ix to EBEW-matnr and MARC-WERKS to EBEW- BWKEY where HRKFT EQ M040 and M045 to fetch total Quantity (LABKUM), and total value (SALK3)

KALWA QTY = KALWA QTY +EBEW- LABKUM

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

Page 11: Logicforbank116.10.2013_20131114043152.046_X

iv. Pass the Materials (MATNR) fetched in step ix to QBEW-matnr and MARC-WERKS to QBEW- BWKEY where HRKFT EQ M040 and M045 to fetch total Quantity (LABKUM), and total value (SALK3)

A. KALWA QTY = KALWA QTY +QBEW-LABKUM

. B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d.

i. Select all the MATNR from the table MARA where MATKL EQ 2000, 2001, 2002

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii. Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the LABKUM and SALK3

A. KALWA QTY = QBEW-LABKUM+ c. iv. A

. B. KALWA VALUE = QBEW-SALK3+ c. iv. B

22. CU BARS, WIRES, STRIPS & ALUMINIUM BRANCHES and O/S PARTIES:

xi. Pass MARA-MATNR to MARC-MATNR where PRCTR EQ 1010,1020xii. .Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oxiii. Pass the Materials (MATNR) fetched in step xii to MBEW-MATNR where HRKFT EQ

M040 and M045 to fetch total quantity (LABKUM) and total value (SALK3)

KALWA QTY = MBEW – LABKUMKALWA VALUE = MBEW – SALK3

b.

iv. Pass the Materials (MATNR) fetched in step xii to EBEW-matnr and MARC-WERKS to EBEW- BWKEY where HRKFT EQ M040 and M045 to fetch total Quantity (LABKUM), and total value (SALK3)

KALWA QTY = KALWA QTY +EBEW- LABKUM

. KALWA VALUE = MBEW – SALK3+EBEW-SALK3

c.

v. Pass the Materials (MATNR) fetched in step xii to QBEW-matnr and MARC-WERKS to QBEW- BWKEY where HRKFT EQ M040 and M045 to fetch total Quantity (LABKUM), and total value (SALK3)

A. KALWA QTY = KALWA QTY +QBEW-LABKUM

Page 12: Logicforbank116.10.2013_20131114043152.046_X

. B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d. i. Select all the MATNR from the table MARA where MATKL EQ 2000, 2001, 2002

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiv.Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

D. BRANCHES & O/S PARTIES QTY = MBEW- LABKUM+ c. v .AE. BRANCHES & O/S PARTIES VALUE = MBEW- SALK3+ c. v. B

23. TOTAL VALUE:

1. TOTAL VALUE: 21.B+22.E

24. TRANSFORMER OIL, PAINTS etc. KALWA:

xiv. Pass MARA-MATNR to MARD-MATNR where WERKS EQ 2010 and LGORT EQ from M001 to M015

xv. Pass MARD-MATNR to MARC-MATNR and MARD-WERKS to MARC-WERKS where PRCTR EQ 1010 and 2010

xvi. Pass the Materials (MATNR) fetched in step xv to MBEW-MATNR where HRKFT EQ M320 to fetch total value (SALK3)

KALWA VALUE = MBEW – SALK3

b.

v. Pass the Materials (MATNR) fetched in step xv to EBEW-matnr and MARC-WERKS to EBEW- BWKEY where HRKFT EQ M320 to fetch total value (SALK3)

. KALWA VALUE KALWA VALUE +EBEW-SALK3

c.

vi. Pass the Materials (MATNR) fetched in step xv to QBEW-matnr and MARC-WERKS to QBEW- BWKEY where HRKFT EQ M320 to fetch total Quantity (LABKUM), and total value (SALK3)

. A. KALWA VALUE = KALWA VALUE +QBEW-SALK3

Page 13: Logicforbank116.10.2013_20131114043152.046_X

d.

i. Select all the MATNR from the table MARA where MATKL EQ 2040, 2041,

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

. B. KALWA VALUE = QBEW-SALK3+24.c.vi.A

25. TRANSFORMER OIL, PAINTS etc. BRANCHES AND OTHER O/S PARTIES:

i. Select all the MATNR from the table MARA where MATKL EQ 2040,2041

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiv.Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

A. BRANCHES & O/S PARTIES VALUE = MBEW- SALK3+

26. TOTAL VALUE:

1. TOTAL VALUE: 24.B+25.A

27. INSULATING MATERIALS:

v. Select all the MATNR from the table MARA where MTART EQ ZRAWvi. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M001’ to

‘M015’vii. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘2020’ viii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with x15 and SPRAS eq ‘EN’ix. Pass the Materials (MATNR) fetched in step viii to MBEW-matnr to fetch total Quantity

(LABKUM), and total value (SALK3)

KALWA VALUE = MBEW – SALK3

b.

ii. Pass the Materials (MATNR) fetched in step viii to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

Page 14: Logicforbank116.10.2013_20131114043152.046_X

ii. Pass the Materials (MATNR) fetched in step viii to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

B. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d.

i. Select all the MATNR from the table MARA where MATKL EQ 2060, 2065,

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

. B. KALWA VALUE = QBEW-SALK3+24.c.ii.B

28. INSULATING MATERIALS BRANCHES AND OTHER O/S PARTIES:

ii. Select all the MATNR from the table MARA where MATKL EQ 2060,2065

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiv.Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

C. BRANCHES & O/S PARTIES VALUE = MBEW- SALK3

29. TOTAL VALUE:

1. TOTAL VALUE: 27.B+28.C

30. BEARINGS:

x. Select all the MATNR from the table MARA where MTART EQ ZRAWxi. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M001’ to

‘M015’xii. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘1020’ xiii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with x16 and SPRAS eq ‘EN’xiv. Pass the Materials (MATNR) fetched in step xiii to MBEW-matnr to fetch total Quantity

(LABKUM), and total value (SALK3)

KALWA VALUE = MBEW – SALK3

b.

iii. Pass the Materials (MATNR) fetched in step xiii to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

. KALWA VALUE KALWA VALUE +EBEW-SALK3

Page 15: Logicforbank116.10.2013_20131114043152.046_X

c.

iii. Pass the Materials (MATNR) fetched in step xiii to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

D. KALWA VALUE = KALWA VALUE +QBEW-SALK3

31. TOTAL VALUE:

1. TOTAL VALUE: 30.D

32. HARDWARE:

xv. Select all the MATNR from the table MARA where MTART EQ ZRAWxvi. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M001’ to

‘M015’xvii. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘1020’ xviii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with x17 or x34 and SPRAS eq

‘EN’xix. Pass the Materials (MATNR) fetched in step xviii to MBEW-matnr to fetch total Quantity

(LABKUM), and total value (SALK3)

KALWA VALUE = MBEW – SALK3

b.

iv. Pass the Materials (MATNR) fetched in step xiii to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

iv. Pass the Materials (MATNR) fetched in step xiii to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

E. KALWA VALUE = KALWA VALUE +QBEW-SALK3

d.

i. Select all the MATNR from the table MARA where MATKL EQ 2221 to 2225, 2231, 2232

ii. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020

iii.Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

. B. KALWA VALUE = QBEW-SALK3+32.c.iv.E

33. TOTAL VALUE:

Page 16: Logicforbank116.10.2013_20131114043152.046_X

1. TOTAL VALUE: 32.B

34 BOUGHT CASTINGS:

xx. Pass the MARA-MATNR to MARD-matnr where WERKS eq ‘2010’ and lgort From ‘M001’ to ‘M015’

xxi. Pass MARD-Matnr to MARC-MATNR where PRCTR EQ ‘1010’ or ‘1020’ xxii. Pass the MARC-MATNR to MAKT-matnr where (MAKTX) starts with x19 and SPRAS eq ‘EN’xxiii. Pass the Materials (MATNR) fetched in step xxii to MBEW-matnr to fetch total Quantity

(LABKUM), and total value (SALK3)

KALWA VALUE = MBEW – SALK3

b.

v. Pass the Materials (MATNR) fetched in step xxii to EBEW-matnr and MARD-WERKS to EBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

. KALWA VALUE = KALWA VALUE +EBEW-SALK3

c.

v. Pass the Materials (MATNR) fetched in step xxii to QBEW-matnr and MARD-WERKS to QBEW- BWKEY to fetch total Quantity (LABKUM), and total value (SALK3)

F. KALWA VALUE = KALWA VALUE +QBEW-SALK3

35. TOTAL VALUE:

1. TOTAL VALUE: 34.F

36. OTHER COMPONENTS KALWA:

A.i. Select MATNR from the table MARA where MATKL NE 1880ii. Pass the MARA- MATNR to MARD- MATNR where WERKS EQ 2010 and

LGORT EQ M001 to M015 iii. Pass MARD- MATNR to MARC- MATNR where WERKS EQ 2010 and

PRCTR EQ 1010, 1020iv. Pass MARC- MATNR to MAKT- MATNR where MAKTX NE x17, x34, x15v. Pass the MATNR fetched from step iv to MBEW-MATNR where HRKFT NE

M030, M040, M045, M320

KALWA VALUE= MBEW-SALK3

vi. Pass the MATNR fetched from step iv to EBEW-MATNR where HRKFT NE M030, M040, M045, M320

KALWA VALUE= KALWA VALUE +EBEW-MATNR

Page 17: Logicforbank116.10.2013_20131114043152.046_X

vii. Pass the MATNR fetched from step iv to QBEW-MATNR where HRKFT NE M030, M040, M045, M320

KALWA VALUE= KALWA VALUE +QBEW-MATNR

viii. Select all the MATNR from the MARA where MATKL NE 2020, 2021, 2022, 2000, 2002, 2040, 2041, 2060, 2065, 2221 to 2225, 2231, 2232, 2241, 2080 to 2082, 2200 and MTART NE zpkz, zcom, zspr

ix. Pass the MARA- MATNR to MARC-MATNR where PRCTR 2010,2020x. Pass MATNR fetched from step ix to Qbew-MATNR where BKLAS NE 0002 to 0007 and SOBKZ

NE to O

KALWA VALUE = QBEW-MATNR+36.vii

xi. Select all the MATNR from the table MARA where MTART EQ ZROH, ZRAWxii. Pass the MARA- MATNR to MARC-MATNR where WERKS EQ 2040, 2042, 2043 PRCTR EQ

4010, 4030, 4040 xiii. Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

KALWA VALUE=QBEW-SALK3+36.x

xiv. Select all the MATNR from the table MARA where MTART EQ ZROH, ZRAWxv. Pass the MARA- MATNR to MARC-MATNR where WERKS EQ 2050 PRCTR EQ 5010, 5020, xvi. Pass MARC-MATNR to QBEW-MATNR where SOBKZ NE ‘O’ to fetch the SALK3

KALWA VALUE=QBEW-SALK3+36.x

xvii. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xvi

xviii. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xvii

xix. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

Page 18: Logicforbank116.10.2013_20131114043152.046_X

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+ xviii

xx. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+ xix

37. OTHER COMPONENTS BRANCHES and O/S PARTIES:

i. Select MARC-MATNR where WERKS EQ 2010 and PRCTR EQ 1010, 1020ii. Pass MARC-MATNR to MBEW-MATNR to fetch the SALK3

BRANCHES and O/S PARTIES VALUE = MBEW-SALK3iii. Pass MARC-MATNR to EBEW-MATNR to fetch the SALK3

BRANCHES and O/S PARTIES VALUE = EBEW-SALK3+37.iiiv. Pass MARC-MATNR to QBEW-MATNR to fetch the SALK3

BRANCHES and O/S PARTIES VALUE = QBEW-SALK3+37.iii

v. Select all the MATNR from the table MARA where MATKL NE 2020, 2021, 2022, 2000, 2001, 2002, 2040, 2041, 2060, 2065, 2221 to 2225, 2031, 2032, 2241, 2080, 2082, 2200

vi. Pass the MARA- MATNR to MARC –MATNR where PRCTR EQ 2010, 2020vii. Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oviii. Pass the MSLB-MATNR to MBEW-MATNR to fetch the total LABKUM and SALK3

BRANCHES & O/S PARTIES VALUE = MBEW- SALK3+37.ivix. Select all the MATNR from the table MARA where MTART EQ ZROH, ZRAWx. Pass the MARA- MATNR to MARC-MATNR where WERKS EQ 2040, 2042, 2043 PRCTR EQ

4010, 4030, 4040 xi. Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oxii. Pass the MSLB-MATNR to MBEW-MATNR to fetch the SALK3

BRANCHES & O/S PARTIES VALUE = MBEW- SALK3+37.viiixiii. Select all the MATNR from the table MARA where MTART EQ ZROH, ZRAWxiv. Pass the MARA- MATNR to MARC-MATNR where WERKS EQ 2050 PRCTR EQ 5010, 5020,xv. Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oxvi. Pass the MSLB-MATNR to MBEW-MATNR to fetch the SALK3

BRANCHES & O/S PARTIES VALUE = MBEW- SALK3+37.xii

38. TOTAL VALUE:

1. TOTAL VALUE: 36. Xxi. + 37. Xvi.

2. SUB TOTAL RM & C

A. KALWA VALUE =15.B + 18.B + 21.B+ 24.B+27.B+30.D+32.B+34.F+36.xxi

Page 19: Logicforbank116.10.2013_20131114043152.046_X

B. BRANCHES & O/S PARTIES = 16.B + 19.C+22.E+25.A+28.C+37.xvi

C. TOTAL VALUE=17.1+20.1+23.1+26.1+29.1+31.1+33.1+35.1+38.1

39. PACKING MATERIAL KALWA:

i. Select all the MATNR from the table MARA where MTART EQ ZPKGii. Pass the MARA- MATNR to MARD- MATNR where LGORT EQ M001 to M015iii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ 1010,

1020iv. Pass the MATNR fetched from step (iii) to MBEW-MATNR where BKLAS 0002 to fetch SALK3

KALWA VALUE= MBEW- SALK3 v. Select all the MATNR from the table MARA where MTART EQ ZPKG and MATKL EQ 2241vi. Pass the MARA- MATNR to MARC-MATNR where PRCTR EQ 2010, 2020vii. Pass the MATNR fetched from step (vi) to MBEW-MATNR where BKLAS 0002 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3viii. Select all the MATNR from the table MARA where MTART EQ ZPKGix. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ

4010, 4030,4040x. Pass the MATNR fetched from step (ix) to MBEW-MATNR to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3xi. Select all the MATNR from the table MARA where MTART EQ ZPKGxii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010, 5020,xiii. Pass the MATNR fetched from step (xii) to MBEW-MATNR to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3xiv. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xiii

xv. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xiv

xvi. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xv

xvii. Pass the G/L Account (RACCT) 230005 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

Page 20: Logicforbank116.10.2013_20131114043152.046_X

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xvi

40. TOTAL VALUE:

1. TOTAL VALUE: xvii

41. CONSUMABLE STORE KALWA:

D. Select MATNR from MARA table where MTART EQ ZCOM

i. Pass the MARA- MATNR to MARD- MATNR where LGORT EQ M001 to M015ii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ 1010,

1020iii. Pass the MATNR fetched from step (ii) to MBEW-MATNR where BKLAS 0003 to fetch SALK3

KALWA VALUE= MBEW- SALK3 iv. Pass the MARA- MATNR to MARC-MATNR where PRCTR EQ 2010, 2020v. Pass the MATNR fetched from step (iv) to MBEW-MATNR where BKLAS 0003 to fetch SALK3

KALWA VALUE= KALWA VALUE + MBEW- SALK3 vi. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ

4010, 4030,4040vii. Pass the MATNR fetched from step (vi) to MBEW-MATNR where BKLAS 0003 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3viii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010, 5020,ix. Pass the MATNR fetched from step (viii) to MBEW-MATNR where BKLAS 0003 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3x. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+ix

xi. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+x

xii. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xi

Page 21: Logicforbank116.10.2013_20131114043152.046_X

xiii. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xii

42 TOTAL VALUE :

1. TOTAL VALUE: xiii

43. SPARES:

E. Select MATNR from MARA table where MTART EQ ZSPR

i. MARA- MATNR to MARD- MATNR where LGORT EQ M001 to M015ii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ 1010,

1020iii. Pass the MATNR fetched from step (ii) to MBEW-MATNR where BKLAS 0004 to fetch SALK3

KALWA VALUE= MBEW- SALK3 iv. Pass the MARA- MATNR to MARC-MATNR where PRCTR EQ 2010, 2020v. Pass the MATNR fetched from step (iv) to MBEW-MATNR where BKLAS 0004 to fetch SALK3

KALWA VALUE= KALWA VALUE + MBEW- SALK3 vi. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ

4010, 4030,4040vii. Pass the MATNR fetched from step (vi) to MBEW-MATNR where BKLAS 0004 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3viii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010, 5020,ix. Pass the MATNR fetched from step (viii) to MBEW-MATNR where BKLAS 0004 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3x. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+ix

xi. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+x

xii. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

Page 22: Logicforbank116.10.2013_20131114043152.046_X

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xi

xiii. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xii

44. TOTAL VALUE :1. TOTAL VALUE: xiii

45. FUEL, COKE FURNACE OIL etc.i. Select all the MATNR from the table MARA where MTART EQ ZCOM and MATKL

8002ii. Pass the MARA- MATNR to MARD- MATNR where LGORT EQ M001 to M015iii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ

1010, 1020iv. Pass the MATNR fetched from step (iii) to MBEW-MATNR where BKLAS 0007 to fetch

SALK3KALWA VALUE= MBEW- SALK3

v. Pass the MARA- MATNR to MARC-MATNR where PRCTR EQ 2010, 2020vi. Pass the MATNR fetched from step (v) to MBEW-MATNR where BKLAS 0004 to fetch

SALK3KALWA VALUE= KALWA VALUE + MBEW- SALK3

vii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ 4010, 4030,4040

viii. Pass the MATNR fetched from step (vii) to MBEW-MATNR where BKLAS 0004 to fetch SALK3

KALWA VALUE= KALWA VALUE+ MBEW- SALK3ix. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010,

5020,x. Pass the MATNR fetched from step (ix) to MBEW-MATNR where BKLAS 0004 to fetch

SALK3KALWA VALUE= KALWA VALUE+ MBEW- SALK3

xi. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+x

xii. Pass the G/L Account (RACCT) 230115 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

Page 23: Logicforbank116.10.2013_20131114043152.046_X

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xi

xiii. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xii

xiv. Pass the G/L Account (RACCT) 230125 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xiii

46. TOTAL VALUE1. Total value : xiv

47. TOOLS:

Select MATNR from MARA table where MTART EQ ZCOMi. MARA- MATNR to MARD- MATNR where LGORT EQ M001 to M015ii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ 1010,

1020iii. Pass the MATNR fetched from step (ii) to MBEW-MATNR where BKLAS 0005 to fetch SALK3

a. KALWA VALUE= MBEW- SALK3 iv. Pass the MARA- MATNR to MARC-MATNR where PRCTR EQ 2010, 2020v. Pass the MATNR fetched from step (iv) to MBEW-MATNR where BKLAS 0005 to fetch SALK3

a. KALWA VALUE= KALWA VALUE + MBEW- SALK3 vi. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ

4010, 4030,4040vii. Pass the MATNR fetched from step (vi) to MBEW-MATNR where BKLAS 0005 to fetch SALK3

a. KALWA VALUE= KALWA VALUE+ MBEW- SALK3viii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010, 5020,ix. Pass the MATNR fetched from step (viii) to MBEW-MATNR where BKLAS 0005 to fetch SALK3

a. KALWA VALUE= KALWA VALUE+ MBEW- SALK3x. Pass the G/L Account (RACCT) 230205 to FAGLFLEXT table to fetch the value where RBUKRS

a. EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+ix

Page 24: Logicforbank116.10.2013_20131114043152.046_X

xi. Pass the G/L Account (RACCT) 230205 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+x

xii. Pass the G/L Account (RACCT) 230205 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xi

xiii. Pass the G/L Account (RACCT) 230205 to FAGLFLEXT table to fetch the value where RBUKRS

EQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xii

48. TOTAL VALUE :1. TOTAL VALUE: xiii

3. SUB TOTAL STORES

A. KALWA VALUE =39.xvii. 41.xiii+43xiii+45xiv+47xiii

B. BRANCHES & O/S PARTIES = 0

C. TOTAL VALUE=40.1+42.1+44.1+46.1+48.1

49. WORK IN PROGRESS:i. Select all the MATNR from the table MARD where LGORT EQ M016 to M030 NE M023ii. Pass the MARD- MATNR to MARC-MATNR where WERKS EQ 2010 and PRCTR EQ

1010, 1020iii. Pass the MATNR fetched from step (ii) to MBEW-MATNR to fetch SALK3

a. KALWA VALUE= MBEW- SALK3 iv. Pass the MATNR fetched from step (ii) to EBEW-MATNR to fetch SALK3

KALWA VALUE= KALWA VALUE +EBEW- SALK3

v. Pass the MATNR fetched from step (ii) to QBEW-MATNR to fetch SALK3

KALWA VALUE= KALWA VALUE +QBEW- SALK3

vi. Select all the MATNR from the table MARA where MTART EQ ZSFG

Page 25: Logicforbank116.10.2013_20131114043152.046_X

vii. Pass the MARA- MATNR to MARC-MATNR where WERKS =2040, 2042, 2043 PRCTR EQ 4010, 4020, 4030,4040

viii. Pass the MATNR fetched from step (viii) to QBEW-MATNR where SOBKZ NE O to fetch SALK3

a. KALWA VALUE= KALWA VALUE+ QBEW- SALK3ix. Pass the MARA- MATNR to MARC-MATNR where WERKS =2050, PRCTR EQ 5010,

5020,x. Pass the MATNR fetched from step (ix) to QBEW-MATNR where SOBKZ NE O to fetch

SALK3a. KALWA VALUE= KALWA VALUE+ QBEW- SALK3

xi. Pass the G/L Account (RACCT) 230300, 230305 to FAGLFLEXT table to fetch the value where RBUKRSa. EQ 1000, PRCTR EQ 1010, 1020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+x

xii. Pass the G/L Account (RACCT) 230300, 230305 to FAGLFLEXT table to fetch the value where RBUKRS EQ 1000, PRCTR EQ 2010, 2020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xi

xiii. Pass the G/L Account (RACCT) 230300, 230305 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 4010,4020,4030,4040 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xii

xiv. Pass the G/L Account (RACCT) 230300, 230305 to FAGLFLEXT table to fetch the value where RBUKRSEQ 1000, PRCTR EQ 5010, 5020 Fiscal Year = P_GJAHR

KALWA VALUE= HSLVT+HSL01+HSL02+HSL03+HSL04+HSL05+HSL06+HSL07+HSL08+HSL09+HSL10+HSL11+HSL12+HSL13+HSL14+HSL15+HSL16+xiv

50. WORK IN PROGRESS BRANCHES O/S PARIES:

i. Select MARC –MATNR where WERKS EQ 2010 PRCTR EQ 1010, 1020ii. Pass the MARC-MATNR to MSLB-MATNR where SOBKZ EQ Oiii. Pass the MSLB-MATNR to MBEW-MATNR to fetch the total SALK3

Page 26: Logicforbank116.10.2013_20131114043152.046_X

BRANCHES & O/S PARTIES VALUE = MBEW- SALK3iv. Select all the MATNR from the table MARA where MTART EQ ZSFGv. Pass MARA–MATNR to MARC –MATNR WERKS EQ 2040, 2042, 2043

PRCTR EQ 4010, 4020, 4030, 4040vi. Pass the MSLB-MATNR to MBEW-MATNR to fetch the total SALK3

BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +MBEW- SALK3

vii. Select all the MATNR from the table MARA where MTART EQ ZSFGviii. Pass MARA–MATNR to MARC –MATNR WERKS EQ 5020 PRCTR EQ

5010,5020ix. Pass the MSLB-MATNR to MBEW-MATNR to fetch the total SALK3

BRANCHES & O/S PARTIES VALUE = BRANCHES & O/S PARTIES VALUE +MBEW- SALK3

51. TOTAL VALUE1. Total value : 49.xv+50.ix

4. SUB TOTAL WORK IN PROGRESS

A. KALWA VALUE =49.xvB. BRANCHES & O/S PARTIES = 50.ixC. TOTAL VALUE=49.xv+50.ix

52. TOTAL 1 TO 4 =

a. KALWA VALUE =1.A+2.A+3.A+4.Ab. BRANCHES & O/S PARTIES = 1.B+2.B+3.B+4.Bc. TOTAL VALUE=1.C+2.C+3.C+4.C

53. LESS FINISHED GOODS OLDER THAN 24 MONTHSCreate a Z Table with fields Plant, Profit Center, Fiscal yr & ValueDevelop screen or program to update ztable created above.select records from ztable where plant = All PRCTR EQ All Fiscal Year LESS STOCK OF

a. (RYEAR) = P_ GJAHR to get addition of value

54. ADVANCES RECEIVED AGAINST ORDERS

Create a Z Table with fields Plant, Profit Center, Fiscal yr & Value.

Develop screen or program to update ztable created above.

Select records from ztable where plant = All PRCTR EQ All Fiscal Year (RYEAR) = P_ GJAHR to get addition of qty

55. TOTAL NET OF ADVANCES: 52.c –(53+54)