SAP Reports / Programs | Financial Accounting | Asset Accounting | Line Item Settlement of AUC(FI-AA-AA-TR-SL) SAP FI

MA12BS2I SAP ABAP INCLUDE - documentation and ABAP source code







MA12BS2I is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MA12BS2I into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MA12BS2I. "Basic submit
SUBMIT MA12BS2I AND RETURN. "Return to original report after report execution complete
SUBMIT MA12BS2I VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MA12BS2I

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

AMDS_MULTIPLE_DOCUMENTS_SHOW CALL FUNCTION 'AMDS_MULTIPLE_DOCUMENTS_SHOW' EXPORTING it_faa_document = lt_faa_acc_doc iv_xdisplay_only = abap_true IMPORTING ev_ucomm = hlp_ucomm.

AMDS_MULTIPLE_DOCUMENTS_SHOW CALL FUNCTION 'AMDS_MULTIPLE_DOCUMENTS_SHOW' EXPORTING it_faa_document = lt_faa_acc_doc iv_xdisplay_only = abap_false IMPORTING ev_ucomm = hlp_ucomm.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr t_accda = lt_accda EXCEPTIONS error_message = 1 OTHERS = 2.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXPORTING i_reset_messages = abap_true EXCEPTIONS a_message = 1 e_message = 2 OTHERS = 3.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' exporting send_if_one = space i_use_grid = 'X'.

AMUP_DOCNUMBER_DETERMINE CALL FUNCTION 'AMUP_DOCNUMBER_DETERMINE' EXPORTING i_bukrs = ld_bukrs i_gjahr = ld_gjahr i_awtyp = ls_acchd-awtyp i_aworg = ls_acchd-aworg i_awsys = ls_acchd-awsys IMPORTING e_belnr = ld_awref.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awref = ld_awref i_aworg = ls_acchd-aworg i_awtyp = ls_acchd-awtyp i_awsys = ls_acchd-awsys EXCEPTIONS error_message = 01.

AUC_SETTLEMENT_POST CALL FUNCTION 'AUC_SETTLEMENT_POST' EXPORTING ak = auak TABLES aa = xauaa ab = xauab ao = xauao as = xauas av = xauav ai = xauai EXCEPTIONS error_occurred = 01.

AM_FI_BELEGNUMMER_AUSGEBEN CALL FUNCTION 'AM_FI_BELEGNUMMER_AUSGEBEN' EXPORTING i_awsys = t000-logsys i_awtyp = con_awtyp_aibu i_aworg = ls_acchd-aworg i_awref = ls_acchd-awref EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr t_accda = lt_accda.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 0.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

AMDP_MESSAGE_SEND CALL FUNCTION 'AMDP_MESSAGE_SEND' TABLES t_return = lt_bapiret2 EXCEPTIONS OTHERS = 4.

AMUP_DOCNUMBER_DETERMINE CALL FUNCTION 'AMUP_DOCNUMBER_DETERMINE' EXPORTING i_bukrs = ld_bukrs i_gjahr = ld_gjahr i_awtyp = ls_acchd-awtyp i_aworg = ls_acchd-aworg i_awsys = ls_acchd-awsys IMPORTING e_belnr = ld_awref.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awref = ld_awref i_aworg = ls_acchd-aworg i_awtyp = ls_acchd-awtyp i_awsys = ls_acchd-awsys EXCEPTIONS error_message = 01.

AUC_DOCUMENT_POST CALL FUNCTION 'AUC_DOCUMENT_POST' EXPORTING i_auak = auak TABLES as = xauas av = xauav ai = xauai.

AM_FI_BELEGNUMMER_AUSGEBEN





CALL FUNCTION 'AM_FI_BELEGNUMMER_AUSGEBEN' EXPORTING i_awsys = t000-logsys i_awtyp = con_awtyp_aibu i_aworg = ls_acchd-aworg i_awref = ld_awref EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MA12BS2I or its description.