Sie sind auf Seite 1von 16

*&---------------------------------------------------------------------* *& Report ZFI_INCOME_EXPENDITURE *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZFI_INCOME_EXPENDITURE MESSAGE-ID icc-kr NO STANDARD PAGE

HEADING.

TABLES: skc1a, skb1, skat, t001, t041c, bseg, bkpf, sscrfields. DATA : g_save(1) g_repid gx_variant g_variant g_exit(1)

"G/L account sales segment derived from GLDB "G/L account master (company code) "G/L account (chart of accounts: description) "Company Codes "Reasons for reverse posting "needed for net.increase elimination "just needed for month selection

TYPE LIKE LIKE LIKE TYPE

c, sy-repid, disvariant, disvariant, c.

"reportname

*--- Variables for holding amounts types : begin of ty_itab, E_AMT_P TYPE WRBTR, name1(75), E_AMT_C type wrbtr, I_AMT_P TYPE WRBTR, name2(75), I_AMT_C type wrbtr, IND(2), end of ty_itab. DATA : itab TYPE STANDARD TABLE OF ty_itab, wa_ITAB TYPE ty_itab. DATA : v_fm TYPE rs38l_fnam.

*********************************************** data records ********* list ******************************** DATA: BEGIN OF list, saknr LIKE skc1a-saknr, txt50 LIKE skat-txt50, curr LIKE skc1a-hwaer, END OF list. *********************************************** internal tables ******* output_list ****************** DATA: BEGIN OF output_list OCCURS 100,

**

**

saknr LIKE txt50 LIKE wa_umxxs LIKE wa_umxxh LIKE wa_umxxk LIKE wa_lasts LIKE wa_lasth LIKE wa_bebal LIKE curr LIKE END OF output_list.

skc1a-saknr, skat-txt50, skc1a-um01k, skc1a-um01k, skc1a-um01k, skc1a-um01k, skc1a-um01k, skc1a-um01k, skc1a-hwaer,

******** except_list ************************ DATA: except_list LIKE output_list OCCURS 0. DATA: umxxs LIKE skc1a-um01s, "variable for debit fields umxxh LIKE skc1a-um01h, "variable for credit fields umxxk LIKE skc1a-um01k, "varible for ending balance bebal LIKE skc1a-um01k, "variable for begining balance cnt LIKE sy-index, "loop counter for begining balance linecount LIKE sy-dbcnt, "Line counter output table date_string(10) TYPE c, "date string-format per_head(12) TYPE c, "list period in header headli1(30) TYPE c, "column headline last Period found TYPE i, "line counter sthfound TYPE i, curren LIKE t001-waers. " currency format DATA: ok_code TYPE sy-ucomm. * Variable *expenditure data : g_ppcm type umxxs, g_cpcm type umxxs, g_ppms type umxxs, Staff [See Note 1] g_cpms type umxxs, Staff [See Note 1] g_pee type umxxs, g_cee type umxxs, g_prent type umxxs , g_crent type umxxs , g_prcf type umxxs, 04012 g_crcf type umxxs, 04012 g_pscb type umxxs, g_cscb type umxxs, g_pirt type umxxs, g_cirt type umxxs, g_pdpt type umxxs, g_cdpt type umxxs, g_pcaw type umxxs, g_ccaw type umxxs, g_plwa type umxxs, g_clwa type umxxs, g_ppda type umxxs, s g_cpda type umxxs, s g_pdex type umxxs, g_cdex type umxxs,

" pre Payment to Chairperson and Members " cur Payment to Chairperson and Members " pre Payment to and Provision for members of " cur Payment to and Provision for members of " " " " " pre cur pre cur pre Establishment Expenses [See Note 2] Establishment Expenses [See Note 2] Rent Rent Research & Consultation Fees 404010+4 404010+4

" cur Research & Consultation Fees " " " " " " " " " " " pre cur pre cur pre cur pre cur pre cur pre

Seminars,Conference, Publications, etc. Seminars,Conference, Publications, etc. interest interest Depreciation Depreciation Capital Assets Written Off Capital Assets Written Off Loss on Write Off of Asset Loss on Write Off of Asset Provison for doubtful debts and advance

" cur Provison for doubtful debts and advance " pre Development Expenditure " cur Development Expenditure

g_ppex type umxxs, g_cpex type umxxs, g_poex type umxxs, g_coex type umxxs, g_peie type umxxs, he year carried down g_ceie type umxxs. he year carried down * Income

" " " " "

pre cur pre cur pre

Promotional Expenditure Promotional Expenditure Other Expenses Other Expenses Excess of Income Over Expendiutre for t

" cur Excess of Income Over Expendiutre for t

data : g_pgr type umxxs, g_cgr type umxxs, g_pr type umxxs, g_cr type umxxs, g_plcf type umxxs, g_clcf type umxxs, g_psurf type umxxs, g_csurf type umxxs, g_pregfi type umxxs, g_cregfi type umxxs, g_pregfa type umxxs, g_cregfa type umxxs, g_pregfb type umxxs, g_cregfb type umxxs, g_pregft type umxxs, g_cregft type umxxs, g_pregfr type umxxs, Fees g_cregfr type umxxs, Fees g_pregir type umxxs, g_cregir type umxxs, g_pregwa type umxxs, g_cregwa type umxxs, g_prenli type umxxs, g_crenli type umxxs, g_prenla type umxxs, g_crenla type umxxs, g_prenlb type umxxs, g_crenlb type umxxs, g_prenlt type umxxs, g_crenlt type umxxs, g_ppfe type umxxs, g_cpfe type umxxs, g_pscbe type umxxs, s etc. g_cscbe type umxxs, s etc. g_pisb type umxxs, n deposits with Scheduled Banks g_cisb type umxxs, n deposits with Scheduled Banks g_piod type umxxs, g_ciod type umxxs, g_pioa1 type umxxs, embers of staff for housing purposes g_cioa1 type umxxs, embers of staff for housing purposes

" " " " " " " "

pre Received cur Received pre Receivable cur Receivable pre Less: Transferred to Capital Fund cur Less: Transferred to Capital Fund pre Surveyors Fees cur Surveyors Fees " pre Registration Fees- Insurer " cur Registration Fees- Insurer " pre Registration Fees - Agents " cur Registration Fees - Agents " pre Registration Fees - Broker " cur Registration Fees - Broker " pre Registration Fees - TPA " cur Registration Fees - TPA " pre Registration Fees - Referral Entity " cur Registration Fees - Referral Entity " " " " " " " " " " " " " " " pre cur pre cur pre cur pre cur pre cur pre cur pre cur pre Registration Of Insurance Repository Registration Of Insurance Repository Registration Of Web Aggregator Registration Of Web Aggregator Renewal of Licences - Insurer Renewal of Licences - Insurer Renewal of License - Agents Renewal of License - Agents Renewal of Licence-Brokers Renewal of Licence-Brokers Renewal of Licence-TPA Renewal of Licence-TPA Penalties,Fines etc. Penalties,Fines etc. Seminar, Conferences and Publication

" cur Seminar, Conferences and Publication " pre Income from investments - Interest o " cur Income from investments - Interest o " pre Interest " cur Interest " pre Interest 504010 " cur Interest 504010 on Deposits on Deposits on Advances i) granted to m on Advances i) granted to m

g_pioa2 type umxxs, g_cioa2 type umxxs, g_pmisi type umxxs, 505013 g_cmisi type umxxs. 505013

" pre Interest on Advances ii) other " cur Interest on Advances ii) other " pre Miscellaneous Income 505010+505011+ " cur Miscellaneous Income 505010+505011+

SELECTION-SCREEN BEGIN OF BLOCK period WITH FRAME TITLE text-001. SELECT-OPTIONS: period FOR bkpf-monat DEFAULT '01' TO '16' OBLIGATORY.

SELECT-OPTIONS: doctype FOR bkpf-blart. PARAMETERS: without AS CHECKBOX. SELECTION-SCREEN END OF BLOCK period. AT SELECTION-SCREEN OUTPUT. *** eliminate unused screen selections LOOP AT SCREEN. IF OR OR OR OR OR OR OR * screen-group3 screen-group4 screen-group4 screen-group4 screen-name screen-name screen-name screen-name = = = = = = = = 'IXS' '003' '012' '013' 'SD_BUKRS-HIGH' 'SD_GJAHR-HIGH' '%_SD_BUKRS_%_APP_%-VALU_PUSH' '%_SD_GJAHR_%_APP_%-VALU_PUSH'.

field wont be displayed screen-active = 0. ELSEIF screen-name = 'SD_BUKRS-LOW' OR screen-name = 'SD_GJAHR-LOW'.

field is obligatory screen-required = 1. ENDIF. MODIFY SCREEN. ENDLOOP.

************************************************* initialization **** INITIALIZATION. . * clearing CLEAR: umxxs, umxxh, umxxk, cnt, list, date_string, per_head, headli1. REFRESH: output_list, except_list. * set the current year as a default value for the fiscal year sd_gjahr-low = sy-datum.

APPEND sd_gjahr. * initialization list viewer -----------------------g_repid = sy-repid. AT SELECTION-SCREEN. * Period value must be in 1 to 16! IF period-low > '16' OR period-high > '16'. MESSAGE e712. ENDIF. IF NOT period-low IS INITIAL AND period-high IS INITIAL. MOVE period-low TO period-high. ENDIF. * Choose one company code! IF sd_bukrs-low CA '*'. MESSAGE e713. ENDIF. CHECK sscrfields-ucomm = 'ONLI' OR sscrfields-ucomm = 'PRIN' OR sscrfields-ucomm = 'SJOB'.

"when executed only

SELECT SINGLE * FROM t001 WHERE bukrs = sd_bukrs-low. MOVE t001-waers TO curren. * negative posting flag is not set on! IF t001-xnegp <> 'X'. SET CURSOR FIELD sd_bukrs-low. MESSAGE w714 WITH sd_bukrs-low. ELSE. * The result may not be correct because of partial negative posting! SELECT * FROM t041c WHERE xnegp <> 'X'. EXIT. ENDSELECT. IF sy-subrc = 0. MESSAGE w715. ENDIF. ENDIF. *********************************************** start-of-selection ** START-OF-SELECTION. cnt = period-low - 1. * ----------------- GET skb1 ---------GET skb1. * ------------------------------------CLEAR sthfound.

SELECT SINGLE * FROM skat

WHERE spras = sy-langu AND ktopl = t001-ktopl AND saknr = skb1-saknr.

global account data list-saknr = skb1-saknr. list-txt50 = skat-txt50. list-curr = curren.

* ----------------- GET SKC1A --------GET skc1a. * ------------------------------------PERFORM create_list. * the account has been posted sthfound = 1.

* ------------------- GET SKB1 LATE -----GET skb1 LATE. * ---------------------------------------* a non-posting account was detected * and display without non-posting accounts are required IF without = space AND sthfound IS INITIAL. CLEAR output_list. REJECT. "skip to the next record

* a non-posting account was detected * and display with non-posting accounts are required ELSEIF without = 'X' AND sthfound IS INITIAL. * add non-posting account CLEAR output_list. output_list-saknr = skb1-saknr. output_list-txt50 = skat-txt50. output_list-curr = skb1-waers. fill internal table output_list with non-posting accountinfo APPEND output_list. ENDIF. ********************************************* end-of-selection ******* END-OF-SELECTION.

PERFORM BUILD_TABLE. perform get_balance. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING

formname = 'ZFI_INCOME_EXPENDITURE' VARIANT = ' ' DIRECT_CALL = ' ' IMPORTING FM_NAME = v_fm * EXCEPTIONS * NO_FORM = 1 * NO_FUNCTION_MODULE = 2 * OTHERS = 3 . IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. * * CALL FUNCTION v_fm EXPORTING * ARCHIVE_INDEX = * ARCHIVE_INDEX_TAB = * ARCHIVE_PARAMETERS = * CONTROL_PARAMETERS = * MAIL_APPL_OBJ = * MAIL_RECIPIENT = * MAIL_SENDER = * OUTPUT_OPTIONS = * USER_SETTINGS = 'X' year = sd_gjahr-low * IMPORTING * DOCUMENT_OUTPUT_INFO = * JOB_OUTPUT_INFO = * JOB_OUTPUT_OPTIONS = tables itab = itab * EXCEPTIONS * FORMATTING_ERROR = 1 * INTERNAL_ERROR = 2 * SEND_ERROR = 3 * USER_CANCELED = 4 * OTHERS = 5 . IF sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.

FORM create_list. READ TABLE output_list WITH KEY saknr = skc1a-saknr. * * nothing found IF sy-subrc > 2. add new header information output_list-saknr = skc1a-saknr. output_list-txt50 = list-txt50. output_list-curr = list-curr.

initialize reporting amounts CLEAR: output_list-wa_umxxs, output_list-wa_umxxh, output_list-wa_bebal, output_list-wa_umxxk, output_list-wa_lasts, output_list-wa_lasth. APPEND output_list. ENDIF.

* read SKC1A data from period-low to period-high DO period-high TIMES VARYING umxxs FROM skc1a-um01s NEXT skc1a-um02s VARYING umxxh FROM skc1a-um01h NEXT skc1a-um02h VARYING umxxk FROM skc1a-um01k NEXT skc1a-um02k. * CHECK sy-index >= period-low. summarize output_list-wa_umxxs = output_list-wa_umxxs + umxxs. output_list-wa_umxxh = output_list-wa_umxxh + umxxh. ENDDO. * update output_list-wa_lasts = output_list-wa_lasts + umxxs. output_list-wa_lasth = output_list-wa_lasth + umxxh. output_list-wa_umxxk = output_list-wa_umxxk + umxxk. * determine the starting balance IF period-low = '01'. bebal = skc1a-umsav. ELSE. DO cnt TIMES VARYING bebal FROM skc1a-um01k NEXT skc1a-um02k. ENDDO. ENDIF. output_list-wa_bebal = output_list-wa_bebal + bebal. * end bebal * change output_list MODIFY TABLE output_list. ENDFORM. "create_list *&---------------------------------------------------------------------* *& Form BUILD_TABLE *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form BUILD_TABLE . WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Payment to Chairperson and Members'.

wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Grant in Aid'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Payment to and Provision for Members to staff'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Received'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = '[see note 1]'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Receivable'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Establishment Expenses [See note 2]'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Less Transferred to capital Fund'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Rent'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = ''. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Research & Consultation Fees'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Fees'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''.

WA_ITAB-NAME1 = 'Seminars,Conference,Publiaction,etc.'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Interest [See Note 3]'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Surveyors Fee'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Depreciation'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees-Insurer'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Capital Assets Written Off'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees-Agents'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Loss On Write Off of Assets'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees-Broker'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Provision for doubtful debts and Advances'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees-TPA'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB.

WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Development and Expenditure'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration Fees-Referral Entity Fees'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Promotion Expenditure'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration of Insurance Repositry'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Other Expenses'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Registration of Web Aggregator'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-IND = 'NN'. append wa_itab to itab. " space

WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'Excess of Income Over Expenditure for'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = ' '. wa_itab-i_amt_c = ''. wa_itab-ind = 'BB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = 'the year carrid down'. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Renewal Fees '. wa_itab-i_amt_c = ''. wa_itab-ind = 'BB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''.

wa_itab-i_amt_p = ''. wa_itab-name2 = 'Renewal of Licences - Insurer'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Renewal of License - Agents'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Renewal of Licence-Brokers'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Renewal of Licence-TPA'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Other'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NB'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Penalties,Fines etc.'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''.

wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Seminar, Conferences and Publications etc.'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Income from investments - Interest on deposits with Scheduled B anks'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Interest on Deposits'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Interest on advances wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB.

'.

WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'i) granted to members of staff for housing purposes'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'ii) Others'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB.

WA_ITAB-E_AMT_P = ''. WA_ITAB-NAME1 = ''. wa_itab-e_amt_c = ''. wa_itab-i_amt_p = ''. wa_itab-name2 = 'Miscellaneous Income'. wa_itab-i_amt_c = ''. wa_itab-ind = 'NN'. APPEND WA_ITAB TO ITAB. CLEAR WA_ITAB. WA_ITAB-IND = 'NN'. APPEND WA_ITAB TO ITAB. " SPACE

endform. " BUILD_TABLE *&---------------------------------------------------------------------* *& Form GET_BALANCE *&---------------------------------------------------------------------* * text *----------------------------------------------------------------------* * --> p1 text * <-- p2 text *----------------------------------------------------------------------* form GET_BALANCE . loop at output_list. * case output_list-saknr. EXPENDITURE

* Payment to Chairperson and Members when '0000406010' or '0000407011' or '0000407010'. g_ppcm = g_ppcm + output_list-wa_bebal. g_cpcm = g_cpcm + output_list-wa_umxxk. *Payment to and Provision for members of Staff [See Note 1] when '0000400010' or '0000400018' or '0000400020' or '0000401223' or '0000400021' or '0000400025'. g_ppms = g_ppms + output_list-wa_bebal. g_cpms = g_cpms + output_list-wa_umxxk. * Establishment Expenses [See Note 2] * Rent when '0000402037'. g_prent = output_list-wa_bebal. g_crent = output_list-wa_umxxk. *Research & Consultation Fees when '0000404010' or '0000404012'.

g_prcf = g_prcf + output_list-wa_bebal. g_crcf = g_crcf + output_list-wa_umxxk. *Seminars,Conference, Publications, etc. when '0000402028'. g_pscb = g_pscb + output_list-wa_bebal. g_cscb = g_cscb + output_list-wa_umxxk. * Depreciation when '0000405215' or '0000405225' or '0000405230' or '0000405235' or '0000405240' or '0000405245' or '0000405250'. g_pdpt = g_pdpt + output_list-wa_bebal. g_cdpt = g_cdpt + output_list-wa_umxxk. * Promotional Expenditure when '0000406010' or '0000407011' or '0000407010'. g_ppex = g_ppex + output_list-wa_bebal. g_cpex = g_cpex + output_list-wa_umxxk. * Other Expenses when '0000408011' or '0000408012' or '0000401121' or '0000401231'. g_poex = g_poex + output_list-wa_bebal. g_coex = g_coex + output_list-wa_umxxk. * Income * Surveyors Fees WHEN '0000501017'. g_psurf = output_list-wa_bebal. g_csurf = output_list-wa_umxxk. * Registration Fees- Insurer 501011 WHEN '0000501011'. g_pregfi = output_list-wa_bebal. g_cregfi = output_list-wa_umxxk. * Registration Fees - TPA when '0000501012' . g_pregft = output_list-wa_bebal. g_cregft = output_list-wa_umxxk. * Registration Fees - Referral Entity Fees when '0000501012'. g_pregfr = output_list-wa_bebal. g_cregfr = output_list-wa_umxxk. * Registration Of Insurance Repository when '0000501019'. g_pregir = output_list-wa_bebal. g_cregir = output_list-wa_umxxk. 501018

* Registration Of Web Aggregator when '0000501020'. g_pregwa = output_list-wa_bebal. g_cregwa = output_list-wa_umxxk. * Renewal of Licences - Insurer when '0000501015'. g_prenli = output_list-wa_bebal. g_crenli = output_list-wa_umxxk. *Renewal of License - Agents 501016 when '0000501016'. g_prenla = output_list-wa_bebal. g_crenla = output_list-wa_umxxk. * Renewal of Licence-Brokers 501014

when '0000501014'. g_prenlb = output_list-wa_bebal. g_prenlb = output_list-wa_umxxk. * Renewal of Licence - TPA when '0000501013'. g_prenlt = output_list-wa_bebal. g_Crenlt = output_list-wa_umxxk. * Penalties,Fines etc. 505012 WHEN '0000505012'. g_ppfe = output_list-wa_bebal. g_Cpfe = output_list-wa_umxxk. * Interest on Deposits 503010 501013

WHEN '0000503010'. g_piod = output_list-wa_bebal. g_Ciod = output_list-wa_umxxk. WHEN '0000504010'. * i) granted to members of staff for housing purposes 504010 g_pioa1 = output_list-wa_bebal. g_Cioa1 = output_list-wa_umxxk. WHEN '0000505010' OR '0000505011' OR '0000505013'. g_pmisi = output_list-wa_bebal. g_pmisi = output_list-wa_umxxk. ENDCASE. endloop. endform. " GET_BALANCE

Das könnte Ihnen auch gefallen