SAP Function SMB_UIE_FIN_OPEN_ITEM_CUST - Open Items for Customers

Parameter Reference Type Length Default Optional Text
IV_COMPCODE BUKRS C 4 Company Code
IV_DISPLAY_CURRENCY WAERS C 5 X Currency Key
IV_PLANNING_CURRENCY WAERS C 5 X Currency Key

Parameter Reference Type Length Text
ET_ACCUMULATED_BALANCE SMB_UIE_OPEN_ITEM_CUST_EXP_TT h 25 Open Items for Customers

Functionality
The function module allows the user to view the total accumulatedbalance for the customer. The Accumulated balance is displayed in"Display Currency" or "Planning Currency", for the Company code providedas input by the User. IF the user specifies the currency in which he/shewants to view the balance, this is called as the "display currency. TheCurrency in which the amount is stored in the Database table is calledas the "Planning Currency". The selection criteria for the accumulatedbalance are the Company code and Fiscal Year. If Display currency ischosen to view the amount then all the amount rows for that companycodes are selected and converted to the display currency. If planningcurrency is chosen to view the balance then only rows which have thecurrency same as planning (local) currency are chosen. The TotalAccumulated balance is calculated by crediting or debiting the balanceaccordingly.

Example
INPUT
Company code - 1000
Display currency (optional) - EUR
Planning Currency (optional) -
OUTPUT
Comp_code Fiscal year Trans curr Total Accumulated balDisp_curr
1000 2010 EUR 45.778
,18- EUR
1000 2010 USD 10.638
,30 EUR

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 it requests for the currency input.