Function Module for GL open Items
Is there function module to find out Open Item for any GL, like we have Fn Module for Vendor and Customer open items.
No there's is one, but you can use the same concept to get the open item for a certain date just like for vendor and customer.
The open item are the open items posted on the date <date> and the cleared items posted on the date <date> but cleared after <date>, so:
DATA: T_GL_ITEMS LIKE STANDARD TABLE OF BSIS.
* Open Items SELECT * FROM BSIS INTO TABLE T_GL_ITEMS WHERE BUKRS = ... AND HKONT = .... AND BUDAT <= <DATE>. * Clear items: SELECT * FROM BSAS APPENDING TABLE T_GL_ITEMS WHERE BUKRS = ... AND HKONT = .... AND AUGDT > <DATE> AND BUDAT <= <DATE>.