BAPI extension is used to update custom fields of a table (ex: MARA).
BAPI extension out is used to retrieve custom fields of a table.
see example: http://www.sapnuts.com/tutorials/Update-custom-fields-using-BAPI-extension.html

Related questions