SAP Function SMB_UIE_FIN_OPEN_ITEMS - Open Items Positions

Parameter Reference Type Length Default Optional Text
IV_CCODE BUKRS C 4 Company Code
IV_DISPCUR WAERS C 5 X Currency Key
IV_PLANCUR WAERS C 5 X Currency Key

Parameter Reference Type Length Text
ET_CURR SMB_UIE_CURR_TT h 5 Currency list
ET_CUST_MEMO SMB_UIE_CREDIT_MEMO_BAL_TT h 43 Credit Memos for Open Items
ET_CUST_OPENITEM SMB_UIE_OPEN_ITEM_CUST_EXP_TT h 25 Open Items for Customers
ET_VEND_MEMO SMB_UIE_CREDIT_MEMO_BAL_TT h 43 Credit Memos for Open Items
ET_VEND_OPENITEM SMB_UIE_OPEN_ITEMS_VENDORS_TT h 26 internal tab for structure vendors compcode,fiscyr,trans

Functionality
This function module is related to the Open Items Position Part of theHouse Bank Monitoring project.It calls four function Modules , whichare:
SMB_UIE_FIN_OPEN_ITEM_CUST
SMB_UIE_FIN_OPEN_ITEMS_VENDORS
SMB_UIE_FIN_CREDIT_MEMO_CUST
SMB_UIE_FIN_CREDIT_MEMO_VEND.
It returns the values for "Total Accmumulated Balance" for Open Items ofboth Customers and Vendors as well as the "Amount" for Credit Memo forCustomer and Vendor .
The user needs to provide Compcode and the Currency (display or Planning) as the input to view all the outputs.
Incase both the Planning and Display currency are given as inputs thenthe Output is in display Currency for those rows which have the currencysame as Planning Currency .

Example
INPUT :
IV_CCODE - 1000
IV_DISPCUR (OPTIONAL ) - EUR
IV_PLANCUR (OPTIONAL ) -
OUTPUT :
ET_CUST_OPENITEM:
BUKRS GJHARS WAERS DISP_CURR WRBTR
1000 - EUR EUR24, 832.74
ET_VEND_OPENITEM:
COMPCODE FISC CURRENCY D AMOUNT_OF_TRANSDISP_CURR
1000 2010 USD H10,638.30 EUR
1000 2010 EUR H1,494.72 EUR
ET_CUST_MEMO:
BUKRS BNKKO GRUPPEB DISPW DMSHB DISPC
1000 280001 A1DI EUR 1.000,00EUR
1000 - A6DI EUR 215,310.00EUR
ET_VEND_MEMO:
BUKRS BNKKO GRUPPEB DISPW DMSHB DISPC
1000 - A1DI EUR 1.000,00EUR
ET_CURR:
CHF
EUR
USD

Notes
If wrong input is given like a non existing company code, then itdisplays "no data available".
If only company code is given as input without mentioning the display orplanning currency then the output will be zero.