Sie sind auf Seite 1von 28

*&---------------------------------------------------------------------* *& Report ZANNEX_DETAIL *& *&---------------------------------------------------------------------* *& *& Author: Prashant Tiwari *& Date: 20090807 *&---------------------------------------------------------------------*

REPORT ZANNEX_DETAIL line-SIZE 170 LINE-COUNT 58(2) NO STANDARD PAGE HEADING. Tables: mseg,mkpf,mara. *****internal tables********* data: begin of it_msegmkpf OCCURS 0, mblnr like mseg-mblnr, matnr like mseg-matnr, mjahr like mseg-mjahr, shkzg like mseg-shkzg, bwart like mseg-bwart, menge like mseg-menge, dmbtr like mseg-dmbtr, budat like mkpf-budat, end of it_msegmkpf. Data: BEGIN OF it_mara OCCURS 0, matnr like mara-matnr, extwg like mara-extwg, end of it_mara. data: begin of it_makt OCCURS 0, matnr like mara-matnr, maktx like makt-maktx, end of it_makt. data: begin of it_disp OCCURS 0, " For data with extwg field extwg like mara-extwg, matnr like mara-matnr, maktx like makt-maktx, open_qty like mseg-menge, pur_qty like mseg-menge, con_qty like mseg-menge, close_qty like mseg-menge, open_val like mseg-dmbtr, pur_val like mseg-dmbtr, con_val like mseg-dmbtr, close_val like mseg-dmbtr, END OF it_disp. data: begin of it_disp_2007 OCCURS 0, extwg like mara-extwg, matnr like mara-matnr, maktx like makt-maktx, open_qty like mseg-menge, pur_qty like mseg-menge, con_qty like mseg-menge, close_qty like mseg-menge, open_val like mseg-dmbtr, pur_val like mseg-dmbtr, con_val like mseg-dmbtr, " For data with extwg field

close_val like mseg-dmbtr, END OF it_disp_2007.

DATA : BEGIN OF it_summary OCCURS 0, grp like mara-extwg, op_qty like mseg-menge, op_val like mseg-dmbtr, pur_qty like mseg-menge, pur_val like mseg-dmbtr, con_qty like mseg-menge, con_val like mseg-dmbtr, cl_qty like mseg-menge, cl_val like mseg-dmbtr, end of it_summary. DATA : BEGIN OF it_summary_07 OCCURS 0, grp like mara-extwg, op_qty like mseg-menge, op_val like mseg-dmbtr, pur_qty like mseg-menge, pur_val like mseg-dmbtr, con_qty like mseg-menge, con_val like mseg-dmbtr, cl_qty like mseg-menge, cl_val like mseg-dmbtr, end of it_summary_07. DATA : BEGIN OF it_summary_08 OCCURS 0, grp like mara-extwg, op_qty like mseg-menge, op_val like mseg-dmbtr, pur_qty like mseg-menge, pur_val like mseg-dmbtr, con_qty like mseg-menge, con_val like mseg-dmbtr, cl_qty like mseg-menge, cl_val like mseg-dmbtr, end of it_summary_08. DATA : BEGIN OF it_summary_09 OCCURS 0, grp like mara-extwg, op_qty like mseg-menge, op_val like mseg-dmbtr, pur_qty like mseg-menge, pur_val like mseg-dmbtr, con_qty like mseg-menge, con_val like mseg-dmbtr, cl_qty like mseg-menge, cl_val like mseg-dmbtr, end of it_summary_09. data: begin of it_disp1 OCCURS 0, matnr like mara-matnr, maktx like makt-maktx, " For data with blank extwg field

open_qty like mseg-menge, pur_qty like mseg-menge, con_qty like mseg-menge, close_qty like mseg-menge, open_val like mseg-dmbtr, pur_val like mseg-dmbtr, con_val like mseg-dmbtr, close_val like mseg-dmbtr, END OF it_disp1. data: BEGIN OF it_mbewh OCCURS 0, matnr like mbewh-matnr, LFGJA like mbewh-LFGJA, LFMON like mbewh-LFMON, lbkum like mbewh-lbkum, SALK3 like mbewh-SALK3, end of it_mbewh. data: BEGIN OF it_mbewh_copy OCCURS 0, matnr like mbewh-matnr, LFGJA like mbewh-LFGJA, LFMON like mbewh-LFMON, lbkum like mbewh-lbkum, SALK3 like mbewh-SALK3, end of it_mbewh_copy. data: BEGIN OF it_mbewh_copy1 OCCURS 0, matnr like mbewh-matnr, LFGJA like mbewh-LFGJA, LFMON like mbewh-LFMON, lbkum like mbewh-lbkum, SALK3 like mbewh-SALK3, end of it_mbewh_copy1. data: begin of it_mbewh_cl occurs 0, matnr like mbewh-matnr, LFGJA like mbewh-LFGJA, lfmon like mbewh-lfmon, lbkum like mbewh-lbkum, salk3 like mbewh-salk3, end of it_mbewh_cl. data: begin of it_mbewh_copy_cl occurs 0, matnr like mbewh-matnr, LFGJA like mbewh-LFGJA, lfmon like mbewh-lfmon, lbkum like mbewh-lbkum, salk3 like mbewh-salk3, end of it_mbewh_copy_cl. ***************************** ranges: r_date FOR data: qty_101 like val_101 like qty_102 like val_102 like qty_501 like mkpf-budat. mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, " getting closing bal here

val_501 qty_502 val_502 qty_261 val_261 qty_262 val_262 qty_201 val_201 qty_202 val_202 qty_241 val_241 qty_242 val_242 qty_541 val_541 qty_542 val_542 qty_543 val_543 qty_544 val_544 qty_601 val_601 qty_602 val_602 qty_653 val_653 qty_561 val_561 qty_562 val_562 qty_701 val_701 qty_702 val_702

like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like like

mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr, mseg-menge, mseg-dmbtr

DATA l_EWBEZ like twewt-EWBEZ. data: tot_op_q like mseg-menge, tot_op_v like mseg-dmbtr, tot_pur_q like mseg-menge, tot_pur_v like mseg-dmbtr, tot_con_q like mseg-menge, tot_con_v like mseg-dmbtr, tot_cl_q like mseg-menge, tot_cl_v like mseg-dmbtr, gtot_op_q like mseg-menge, gtot_op_v like mseg-dmbtr, gtot_pur_q like mseg-menge, gtot_pur_v like mseg-dmbtr, gtot_con_q like mseg-menge, gtot_con_v like mseg-dmbtr, gtot_cl_q like mseg-menge, gtot_cl_v like mseg-dmbtr.

data: s_year like mseg-mjahr. hroughout the program

" selcetion screen year;should not be changed t

selection-screen: begin of block b1 with frame title text-001. parameters p_year like mkpf-mjahr. parameters: p_sum radiobutton group rg1, p_det radiobutton group rg1. selection-screen: end of block b1.

********************************* *****Top of page*/******** TOP-OF-PAGE. if p_sum = 'X'. PERFORM topofpage_summary. else. PERFORM topofpage_detail. endif. end-of-PAGE. skip. write:/86'Page No.-', sy-PAGNO NO-GAP. *clear page. *****start of selection*********** START-OF-SELECTION. s_year = p_year. if p_det = 'X'. PERFORM get_data. PERFORM operate_data. PERFORM display_detail. else. PERFORM get_data. PERFORM operate_data. PERFORM display_summary. endif.

********************************** *&---------------------------------------------------------------------* *& Form SUM_MOVEMENT *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text

* <-- p2 text *----------------------------------------------------------------------* form SUM_MOVEMENT . case it_msegmkpf-bwart. when '101'. qty_101 = qty_101 + val_101 = val_101 + when '102'. qty_102 = qty_102 + val_102 = val_102 + when '501'. qty_501 = qty_501 + val_501 = val_501 + when '502'. qty_502 = qty_502 + val_502 = val_502 + when '261'. qty_261 = qty_261 + val_261 = val_261 + when '262'. qty_262 = qty_262 + val_262 = val_262 + when '201'. qty_201 = qty_201 + val_201 = val_201 + when '202'. qty_202 = qty_202 + val_202 = val_202 + when '241'. qty_241 = qty_241 + val_241 = val_241 + when '242'. qty_242 = qty_242 + val_242 = val_242 + when '541'. qty_541 = qty_541 + val_541 = val_541 + when '542'. qty_542 = qty_542 + val_542 = val_542 + when '543'. qty_543 = qty_543 + val_543 = val_543 + when '544'. qty_544 = qty_544 + val_544 = val_544 + when '601'. qty_601 = qty_601 + val_601 = val_601 + when '602'. qty_602 = qty_602 + val_602 = val_602 + when '653'. qty_653 = qty_653 + val_653 = val_653 +

it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr. it_msegmkpf-menge. it_msegmkpf-dmbtr.

when '701'. qty_701 = qty_701 + it_msegmkpf-menge.

val_701 = when '702'. qty_702 = val_702 = when '561'. qty_561 = val_561 = when '562'. qty_562 = val_562 = when OTHERS. endcase.

val_701 + it_msegmkpf-dmbtr. qty_702 + it_msegmkpf-menge. val_702 + it_msegmkpf-dmbtr. qty_561 + it_msegmkpf-menge. val_561 + it_msegmkpf-dmbtr. qty_562 + it_msegmkpf-menge. val_562 + it_msegmkpf-dmbtr.

endform. " SUM_MOVEMENT *&---------------------------------------------------------------------* *& Form GET_DATA *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form GET_DATA . r_date-sign = 'I'. r_date-option = 'BT'. concatenate p_year '0401' into r_date-low. p_year = p_year + 1. concatenate p_year '0331' into r_date-high. append r_date. p_year = p_year - 1. SELECT mkpf~mblnr matnr mkpf~mjahr shkzg bwart menge dmbtr budat into CORRESPONDING FIELDS OF TABLE it_msegmkpf from mseg INNER JOIN mkpf on mkpf~mblnr = mseg~mblnr and mkpf~mjahr = mseg~mjahr where budat in r_date . Ranges: r_extwg for mara-extwg. r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'CM'. APPEND r_extwg. r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'BOP'. APPEND r_extwg. r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'RF'. APPEND r_extwg.

r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'RHF'. APPEND r_extwg. r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'SVP'. APPEND r_extwg. r_extwg-sign = 'I'. r_extwg-option = 'EQ'. r_extwg-low = 'WS'. APPEND r_extwg.

SELECT matnr extwg from mara into CORRESPONDING FIELDS OF TABLE it_mara where extwg in r_extwg. ****Getting Open_stock(Mr. Suresh Suggested this) if it_mara[] is not INITIAL. *****opeing SELECT matnr LFGJA lfmon LBKUM SALK3 from mbewh into CORRESPONDING FIELDS OF TABLE it_mbewh_copy for ALL ENTRIES IN it_mara WHERE matnr = it_mara-matnr and lfgja LT p_year. endif. sort it_mbewh_copy by matnr LFGJA DESCENDING. ********added by prashant on 20091031 loop at it_mbewh_copy. on CHANGE OF it_mbewh_copy-matnr. it_mbewh_copy1-matnr = it_mbewh_copy-matnr. it_mbewh_copy1-LFgja = it_mbewh_copy-LFgja. it_mbewh_copy1-LFMON = it_mbewh_copy-LFMON. it_mbewh_copy1-lbkum = it_mbewh_copy-lbkum. it_mbewh_copy1-SALK3 = it_mbewh_copy-SALK3. APPEND it_mbewh_copy1. endon. endloop. loop at it_mbewh_copy1. delete it_mbewh_copy where matnr = it_mbewh_copy1-matnr and lfgja LT it_mbewh_ copy1-lfgja. endloop. sort it_mbewh_copy by matnr LFmon DESCENDING. ********end added by prashant on 20091031

loop at it_mbewh_copy. on CHANGE OF it_mbewh_copy-matnr. it_mbewh-matnr = it_mbewh_copy-matnr. it_mbewh-LFgja = it_mbewh_copy-LFgja. it_mbewh-LFMON = it_mbewh_copy-LFMON. it_mbewh-lbkum = it_mbewh_copy-lbkum. it_mbewh-SALK3 = it_mbewh_copy-SALK3. APPEND it_mbewh. endon. endloop. *****closing *****stopped on 20091031***********

*****SELECT matnr LFGJA lfmon LBKUM SALK3 ***** from mbewh ***** into CORRESPONDING FIELDS OF TABLE it_mbewh_copy_cl ***** for ALL ENTRIES IN it_mara ***** WHERE matnr = it_mara-matnr and ***** lfgja LE p_year. ***** ***** ***** *****sort it_mbewh_copy_cl by matnr LFGJA DESCENDING. ***** *****loop at it_mbewh_copy_cl. ***** on CHANGE OF it_mbewh_copy_cl-matnr. ***** it_mbewh_cl-matnr = it_mbewh_copy_cl-matnr. ***** it_mbewh_cl-LFgja = it_mbewh_copy_cl-LFgja. ***** it_mbewh_cl-LFMON = it_mbewh_copy_cl-LFMON. ***** it_mbewh_cl-lbkum = it_mbewh_copy_cl-lbkum. ***** it_mbewh_cl-SALK3 = it_mbewh_copy_cl-SALK3. ***** APPEND it_mbewh_cl. ***** endon. *****endloop. *****

*****end stopped on 20091031*********** sort it_mara by matnr extwg. if it_mara[] is not INITIAL. SELECT matnr maktx from makt into CORRESPONDING FIELDS OF TABLE it_makt for ALL ENTRIES IN it_mara where matnr = it_mara-matnr. ENDIF. endform. " GET_DATA *&---------------------------------------------------------------------*

*& Form OPERATE_DATA *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form OPERATE_DATA .

loop at it_mara. it_disp-matnr = it_mara-matnr. it_disp-extwg = it_mara-extwg. read TABLE it_makt with key matnr = it_mara-matnr. if sy-subrc = 0. it_disp-maktx = it_makt-maktx. ENDIF. loop at it_msegmkpf where matnr = it_mara-matnr. PERFORM sum_movement. endloop. * read TABLE it_mbewh with key matnr if sy-subrc = 0. if p_year = '2008'. it_disp-open_qty = it_mbewh-lbkum it_disp-open_val = it_mbewh-SALK3 endif. else. it_disp-open_qty = it_mbewh-lbkum it_disp-open_val = it_mbewh-SALK3 endif. clear it_mbewh. = it_mara-matnr. + ( qty_561 - qty_562 ) . + ( val_561 - val_562 ) . . .

it_disp-pur_qty = ( qty_101 - qty_102 ) + ( qty_501 - qty_502 ). it_disp-con_qty = ( qty_261 - qty_262 ) + ( qty_201 - qty_202 ) + ( qty_241 - qty_242 ) + ( qty_541 - qty_542 ) + ( qty_543 - qty_544 ) + ( qty_601 - qty_602 ) + ( qty_653 ) + ( qty_702 - qty_701 ).

it_disp-pur_val = ( val_101 - val_102 ) + ( val_501 - val_502 ). it_disp-con_val = ( val_261 - val_262 ) + ( val_201 - val_202 ) + ( val_241 - val_242 ) + ( val_541 - val_542 ) + ( val_543 - val_544 ) + ( val_601 - val_602 ) + ( val_653 ) + ( val_702 - val_701 ) . *****stopped and added on 20091031 * read TABLE it_mbewh_cl with key matnr = it_mara-matnr.

* * n_qty .

it_disp-close_qty = it_mbewh_cl-lbkum . it_disp-close_val = it_mbewh_cl-SALK3 . it_disp-close_qty = it_disp-open_qty + it_disp-pur_qty - it_disp-co it_disp-close_val = it_disp-open_val + it_disp-pur_val - it_disp-co

n_val . *****end stopped and added on 20091031 clear:qty_101,val_101,qty_102,val_102,qty_501,val_501,qty_502,val_502, qty_261,val_261,qty_262,val_262,qty_201,val_201,qty_202,val_202, qty_241,val_241,qty_242,val_242,qty_541,val_541,qty_542,val_542, qty_543,val_543,qty_544,val_544,qty_601,val_601,qty_602,val_602, qty_653,val_653,qty_561 ,val_561,qty_562,val_562 ,qty_701,val_701,qty_ 702,val_702. append it_disp. clear it_disp. endloop. *******************Summary part********* sort it_disp by extwg. loop at it_disp. tot_op_q = tot_op_q + it_disp-open_qty. tot_op_v = tot_op_v + it_disp-open_val. tot_pur_q = tot_pur_q + it_disp-pur_qty. tot_pur_v = tot_pur_v + it_disp-pur_val. tot_con_q = tot_con_q + it_disp-con_qty. tot_con_v = tot_con_v + it_disp-con_val. tot_cl_q = tot_cl_q + it_disp-close_qty. tot_cl_v = tot_cl_v + it_disp-close_val. at end of extwg. it_summary-grp = it_disp-extwg. it_summary-op_qty = tot_op_q. it_summary-op_val = tot_op_v. it_summary-pur_qty = tot_pur_q. it_summary-pur_val = tot_pur_v. it_summary-con_qty = tot_con_q. it_summary-con_val = tot_con_v. it_summary-cl_qty = tot_cl_q. it_summary-cl_val = tot_cl_v. append it_summary. clear it_summary. clear: tot_op_q ,tot_op_v ,tot_pur_q ,tot_pur_v , tot_con_q ,tot_con_v,tot_cl_q,tot_cl_v. endat. endloop. endform. " OPERATE_DATA

*&---------------------------------------------------------------------* *& Form TOPOFPAGE_SUMMARY

*&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form TOPOFPAGE_SUMMARY . FORMAT write: write: skip. skip. write: write: color = 2. /36 'NTF INDIA PVT. LTD'. /36 'PLOT NO.49,SECTOR-3 IMT MANESAR,GURGAON,HARYANA'. /36 'Quatitative Details of Raw Material;'. /36 'For The Financial Year', r_date-low+0(4), '-', r_date-high+0(4).

write: /. uline (142). write: /1 sy-vline, 2 'Particulars', 16 sy-vline, 17 'Qty' , 21 sy-vline, 22 'Qty Mtrs.' , 37 sy-vline, 38'NOS.', 57 sy-vline, 58 'Ltrs/Kgs' , 72 sy-vline, 73 'Ltrs/Kgs' , 88 sy-vline, 89'Ltrs/Kgs', 105 sy-vline, 106 'Nos', 121 sy-vline , 122 'TOTAL', 142 sy-vline. write: /1 sy-vline, 16 sy-vline, 17 'Val', 21 sy-vline , 22 'Cover Material', 37 sy-vline , 38'BOP/Other Material', 57 sy-vline, 58 'Reinforcement', 72 sy-vline, 73 'Resin & Hardner', 88 sy-vline, 89'Solvents', 105 sy-vline, 106 'Wood Stock', 121 sy-vline, 142 sy-vline.

uline (142).

endform. " TOPOFPAGE_SUMMARY *&---------------------------------------------------------------------* *& Form TOPOFPAGE_DETAIL *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form TOPOFPAGE_DETAIL . write: write: skip. skip. write: write: /36 'NTF INDIA PVT. LTD'. /36 'PLOT NO.49,SECTOR-3 IMT MANESAR,GURGAON,HARYANA'. /36 'Quatitative Details of Raw Material;'. /36 'For The Financial Year', r_date-low+0(4), '-', r_date-high+0(4).

write: /.

uline (169). format intensified color = 1. write: /1 sy-vline, 2 'Material', 20 sy-vline, 21 'Decsription', 57 sy-vline, 58 'Opening stock', 71 sy-vline, 72 'Value', 85 sy-vline, 86 'Purch. Qty', 99 sy-vline, 100 'Value', 113 sy-vline, 114 'Consump. Qty', 127 sy-vline, 128 'Value', 141 sy-vline, 142 'Close Stock', 155 sy-vline, 156 'value', 169 sy-vline. uline (169). endform. " TOPOFPAGE_DETAIL *&---------------------------------------------------------------------* *& Form DISPLAY_DETAIL *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form DISPLAY_DETAIL . loop at it_disp.

* * *****subtotal****** tot_op_q = tot_op_q + tot_op_v = tot_op_v + tot_pur_q = tot_pur_q tot_pur_v = tot_pur_v tot_con_q = tot_con_q tot_con_v = tot_con_v tot_cl_q = tot_cl_q + tot_cl_v = tot_cl_v + it_disp-open_qty. it_disp-open_val. + it_disp-pur_qty. + it_disp-pur_val. + it_disp-con_qty. + it_disp-con_val. it_disp-close_qty. it_disp-close_val.

on CHANGE OF it_disp-extwg. format intensified color = 6. write: /1 sy-vline, 2 it_disp-extwg. select single EWBEZ into l_EWBEZ from twewt where spras = 'E' and extwg = it_disp-extwg. write: 20 sy-vline, 21 l_EWBEZ, 169 sy-vline. uline (169). clear: l_EWBEZ. ENDon. format intensified color = 5. write: /1 sy-vline, 2 it_disp-matnr, 20 sy-vline, 21 it_disp-maktx, 57 sy-vline, 58 it_disp-open_qty LEFT-JUSTIFIED, 71 sy-vline, 72 it_disp-open_val LEFT-JUSTIFIED, 85 sy-vline, 86 it_disp-pur_qty LEFT-JUSTIFIED, 99 sy-vline, 100 it_disp-pur_val LEFT-JUSTIFIED, 113 sy-vline, 114 it_disp-con_qty LEFT-JUSTIFIED, 127 sy-vline, 128 it_disp-con_val LEFT-JUSTIFIED, 141 sy-vline, 142 it_disp-close_qty LEFT-JUSTIFIED, 155 sy-vline, 156 it_disp-close_val LEFT-JUSTIFIED, 169 sy-vline. uline (169). at end of extwg. format intensified color = 3. write: /1 sy-vline, 2 'Total', it_disp-extwg, 20 sy-vline, * 21 it_disp-maktx,

57 sy-vline, 58 tot_op_q LEFT-JUSTIFIED, 71 sy-vline, 72 tot_op_v LEFT-JUSTIFIED, 85 sy-vline, 86 tot_pur_q LEFT-JUSTIFIED, 99 sy-vline, 100 tot_pur_v LEFT-JUSTIFIED, 113 sy-vline, 114 tot_con_q LEFT-JUSTIFIED, 127 sy-vline, 128 tot_con_v LEFT-JUSTIFIED, 141 sy-vline, 142 tot_cl_q LEFT-JUSTIFIED, 155 sy-vline, 156 tot_cl_v LEFT-JUSTIFIED, 169 sy-vline. uline (169). ******Grand Total************* gtot_op_q = gtot_op_q + tot_op_q. gtot_op_v = gtot_op_v + tot_op_v. gtot_pur_q = gtot_pur_q + tot_pur_q. gtot_pur_v = gtot_pur_v + tot_pur_v. gtot_con_q = gtot_con_q + tot_con_q. gtot_con_v = gtot_con_v + tot_con_v. gtot_cl_q = gtot_cl_q + tot_cl_q. gtot_cl_v = gtot_cl_v + tot_cl_v. clear: tot_op_q,tot_op_v,tot_pur_q,tot_pur_v, tot_con_q,tot_con_v,tot_cl_q,tot_cl_v. ENDAT. endloop. ********displaying grand total. format intensified color = 3. write: /1 sy-vline, 2 'Grand Total', 20 sy-vline, * 21 it_disp-maktx, 57 sy-vline, 58 gtot_op_q LEFT-JUSTIFIED, 71 sy-vline, 72 gtot_op_v LEFT-JUSTIFIED, 85 sy-vline, 86 gtot_pur_q LEFT-JUSTIFIED, 99 sy-vline, 100 gtot_pur_v LEFT-JUSTIFIED, 113 sy-vline, 114 gtot_con_q LEFT-JUSTIFIED, 127 sy-vline, 128 gtot_con_v LEFT-JUSTIFIED, 141 sy-vline, 142 gtot_cl_q LEFT-JUSTIFIED, 155 sy-vline, 156 gtot_cl_v LEFT-JUSTIFIED, 169 sy-vline. uline (169).

FORMAT COLOR off. skip. skip. skip. skip. *format intensified color = 3. write: /36 'Records Without External Material Group Clssification' color = 6. skip. uline (169). loop at it_disp1. tot_op_q = tot_op_q + tot_op_v = tot_op_v + tot_pur_q = tot_pur_q tot_pur_v = tot_pur_v tot_con_q = tot_con_q tot_con_v = tot_con_v tot_cl_q = tot_cl_q + tot_cl_v = tot_cl_v + it_disp1-open_qty. it_disp1-open_val. + it_disp1-pur_qty. + it_disp1-pur_val. + it_disp1-con_qty. + it_disp1-con_val. it_disp1-close_qty. it_disp1-close_val.

format intensified color = 5. write: /1 sy-vline, 2 it_disp1-matnr, 20 sy-vline, 21 it_disp1-maktx, 57 sy-vline, 58 it_disp1-open_qty LEFT-JUSTIFIED, 71 sy-vline, 72 it_disp1-open_val LEFT-JUSTIFIED, 85 sy-vline, 86 it_disp1-pur_qty LEFT-JUSTIFIED, 99 sy-vline, 100 it_disp1-pur_val LEFT-JUSTIFIED, 113 sy-vline, 114 it_disp1-con_qty LEFT-JUSTIFIED, 127 sy-vline, 128 it_disp1-con_val LEFT-JUSTIFIED, 141 sy-vline, 142 it_disp1-close_qty LEFT-JUSTIFIED, 155 sy-vline, 156 it_disp1-close_val LEFT-JUSTIFIED, 169 sy-vline. uline (169). ENDLOOP. format intensified color = 3. write: /1 sy-vline, 2 'Grand Total', 20 sy-vline, * 21 it_disp-maktx, 57 sy-vline, 58 tot_op_q LEFT-JUSTIFIED, 71 sy-vline, 72 tot_op_v LEFT-JUSTIFIED, 85 sy-vline, 86 tot_pur_q LEFT-JUSTIFIED, 99 sy-vline, 100 tot_pur_v LEFT-JUSTIFIED,

113 sy-vline, 114 tot_con_q LEFT-JUSTIFIED, 127 sy-vline, 128 tot_con_v LEFT-JUSTIFIED, 141 sy-vline, 142 tot_cl_q LEFT-JUSTIFIED, 155 sy-vline, 156 tot_cl_v LEFT-JUSTIFIED, 169 sy-vline. uline (169).

endform. " DISPLAY_DETAIL *&---------------------------------------------------------------------* *& Form DISPLAY_SUMMARY *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form DISPLAY_SUMMARY .

data: tot_qty like mseg-menge, tot_val like mseg-dmbtr. data: tot_cmq like mseg-menge, tot_cmv like mseg-dmbtr, tot_bopq like mseg-menge, tot_bopv like mseg-dmbtr, tot_rfq like mseg-menge, tot_rfv like mseg-dmbtr, tot_rhfq like mseg-menge, tot_rhfv like mseg-dmbtr, tot_svpq like mseg-menge, tot_svpv like mseg-dmbtr, tot_wsq like mseg-menge, tot_wsv like mseg-dmbtr, tot_totq like mseg-menge, tot_totv like mseg-dmbtr. FORMAT color = 2. ******Opeing qyt write: /1 sy-vline, 2 'Opening Stock', 16 sy-vline, 17 'Qty' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_cmq = tot_cmq + it_summary-op_qty. endif. WRITE 37 sy-vline.

read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_bopq = tot_bopq + it_summary-op_qty. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_rfq = tot_rfq + it_summary-op_qty. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_rhfq = tot_rhfq + it_summary-op_qty. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_svpq = tot_svpq + it_summary-op_qty. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-op_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-op_qty. tot_wsq = tot_wsq + it_summary-op_qty. endif. write 121 sy-vline. write: 122 tot_qty LEFT-JUSTIFIED, 142 sy-vline. tot_totq = tot_totq + tot_qty. clear tot_qty. *ULINE (142). ************Opeing val write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-op_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-op_val. tot_cmv = tot_cmv + it_summary-op_val. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-op_val LEFT-JUSTIFIED.

tot_val = tot_val + it_summary-op_val. tot_bopv = tot_bopv + it_summary-op_val. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-op_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-op_val. tot_rfv = tot_rfv + it_summary-op_val. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-op_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-op_val. tot_rhfv = tot_rhfv + it_summary-op_val. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-op_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-op_val. tot_svpv = tot_svpv + it_summary-op_val. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-op_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-op_val. tot_wsv = tot_wsv + it_summary-op_val. endif. write 121 sy-vline. write: 122 tot_val LEFT-JUSTIFIED, 142 sy-vline. tot_totv = tot_totv + tot_val. clear tot_val. * skip. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline, 105 sy-vline, 121 sy-vline, 142 sy-vline. ******* Purchse qty write: /1 sy-vline, 2 'Add: Purchases', 16 sy-vline, 17 'Qty' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-pur_qty LEFT-JUSTIFIED.

tot_qty = tot_qty + it_summary-pur_qty. tot_cmq = tot_cmq + it_summary-pur_qty. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-pur_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-pur_qty. tot_bopq = tot_bopq + it_summary-pur_qty. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-pur_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-pur_qty. tot_rfq = tot_rfq + it_summary-pur_qty. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-pur_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-pur_qty. tot_rhfq = tot_rhfq + it_summary-pur_qty. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-pur_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-pur_qty. tot_svpq = tot_svpq + it_summary-pur_qty. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-pur_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-pur_qty. tot_wsq = tot_wsq + it_summary-pur_qty. endif. write 121 sy-vline. write: 122 tot_qty LEFT-JUSTIFIED, 142 sy-vline. tot_totq = tot_totq + tot_qty. clear tot_qty. ****Pucrchase val write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_cmv = tot_cmv + it_summary-pur_val. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'.

if sy-subrc = 0. write: 38 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_bopv = tot_bopv + it_summary-pur_val. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_rfv = tot_rfv + it_summary-pur_val. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_rhfv = tot_rhfv + it_summary-pur_val. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_svpv = tot_svpv + it_summary-pur_val. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-pur_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-pur_val. tot_wsv = tot_wsv + it_summary-pur_val. endif. write 121 sy-vline. write: 122 tot_val LEFT-JUSTIFIED, 142 sy-vline. tot_totv = tot_totv + tot_val. clear tot_val. * skip. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline, 105 sy-vline, 121 sy-vline, 142 sy-vline. ***** ** total qty. write: /1 sy-vline, 2 'Total', 16 sy-vline,

17 'Qty' , 21 sy-vline. write 22 tot_cmq LEFT-JUSTIFIED. WRITE 37 sy-vline. write: 38 tot_bopq LEFT-JUSTIFIED. write 57 sy-vline. write: 58 tot_rfq LEFT-JUSTIFIED. write 72 sy-vline. write: 73 tot_rhfq LEFT-JUSTIFIED. write 88 sy-vline. write: 89 tot_svpq LEFT-JUSTIFIED. write 105 sy-vline. write: 106 tot_wsq LEFT-JUSTIFIED. write 121 sy-vline. write: 122 tot_totq LEFT-JUSTIFIED, 142 sy-vline. clear tot_totq. *******Total Value write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. write 22 tot_cmv LEFT-JUSTIFIED. WRITE 37 sy-vline. write: 38 tot_bopv LEFT-JUSTIFIED. write 57 sy-vline. write: 58 tot_rfv LEFT-JUSTIFIED. write 72 sy-vline. write: 73 tot_rhfv LEFT-JUSTIFIED. write 88 sy-vline. write: 89 tot_svpv LEFT-JUSTIFIED. write 105 sy-vline. write: 106 tot_wsv LEFT-JUSTIFIED.

write 121 sy-vline. write: 122 tot_totv LEFT-JUSTIFIED, 142 sy-vline. clear tot_totv. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline, 105 sy-vline, 121 sy-vline, 142 sy-vline. *****

****consumption qty write: /1 sy-vline, 2 'Consumption', 16 sy-vline, 17 'Qty' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif.

write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-con_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-con_qty. endif. write 121 sy-vline. write: 122 tot_qty LEFT-JUSTIFIED, 142 sy-vline. clear tot_qty.

****consumption val write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-con_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-con_val. endif. write 121 sy-vline. write: 122 tot_val LEFT-JUSTIFIED, 142 sy-vline.

clear tot_val. * skip. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline, 105 sy-vline, 121 sy-vline, 142 sy-vline. *****sale qty write: /1 sy-vline, 2 'Sales', 16 sy-vline, 17 'Qty' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 '0.000' LEFT-JUSTIFIED. * tot_qty = tot_qty + it_summary-con_qty. endif. write 121 sy-vline. write: 122 '0.000' LEFT-JUSTIFIED,

142 sy-vline. clear tot_qty. **** sales val write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 '0.00' LEFT-JUSTIFIED. * tot_val = tot_val + it_summary-con_val. endif. write 121 sy-vline. write: 122 tot_val LEFT-JUSTIFIED, 142 sy-vline. clear tot_val. * skip. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline,

105 sy-vline, 121 sy-vline, 142 sy-vline. ******closing qty write: /1 sy-vline, 2 'Closing Stock', 16 sy-vline, 17 'Qty' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-cl_qty LEFT-JUSTIFIED. tot_qty = tot_qty + it_summary-cl_qty. endif. write 121 sy-vline. write: 122 tot_qty LEFT-JUSTIFIED, 142 sy-vline. clear tot_qty. **** Closing val write: /1 sy-vline, 16 sy-vline, 17 'Val' , 21 sy-vline. read table it_summary with key grp = 'CM'. if sy-subrc = 0. write 22 it_summary-cl_val LEFT-JUSTIFIED.

tot_val = tot_val + it_summary-cl_val. endif. WRITE 37 sy-vline. read table it_summary with key grp = 'BOP'. if sy-subrc = 0. write: 38 it_summary-cl_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-cl_val. endif. write 57 sy-vline. read table it_summary with key grp = 'RF'. if sy-subrc = 0. write: 58 it_summary-cl_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-cl_val. endif. write 72 sy-vline. read table it_summary with key grp = 'RHF'. if sy-subrc = 0. write: 73 it_summary-cl_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-cl_val. endif. write 88 sy-vline. read table it_summary with key grp = 'SVP'. if sy-subrc = 0. write: 89 it_summary-cl_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-cl_val. endif. write 105 sy-vline. read table it_summary with key grp = 'WS'. if sy-subrc = 0. write: 106 it_summary-cl_val LEFT-JUSTIFIED. tot_val = tot_val + it_summary-cl_val. endif. write 121 sy-vline. write: 122 tot_val LEFT-JUSTIFIED, 142 sy-vline. clear tot_val. * skip. write: /1 sy-vline, 16 sy-vline, 21 sy-vline, 37 sy-vline, 57 sy-vline, 72 sy-vline, 88 sy-vline, 105 sy-vline, 121 sy-vline, 142 sy-vline. uline (142). endform. " DISPLAY_SUMMARY

Das könnte Ihnen auch gefallen