SAP Reports / Programs | Materials Management | Invoice Verification(MM-IV) SAP MM

MM08AFB0 SAP ABAP INCLUDE - documentation and ABAP source code







MM08AFB0 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 MM08AFB0 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 MM08AFB0. "Basic submit
SUBMIT MM08AFB0 AND RETURN. "Return to original report after report execution complete
SUBMIT MM08AFB0 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 MM08AFB0

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:

MMPUR_EKBE_ARRAY_READ CALL FUNCTION 'MMPUR_EKBE_ARRAY_READ' EXPORTING PI_REFRESH_BUFFER = 'X' TABLES PTI_EKBE_KEY = XEKBEL * PTO_EKBE = EXCEPTIONS NO_RECORDS_REQUESTED = 1 OTHERS = 2 .

MMPUR_EKBZ_ARRAY_READ CALL FUNCTION 'MMPUR_EKBZ_ARRAY_READ' EXPORTING PI_REFRESH_BUFFER = 'X' TABLES PTI_EKBZ_KEY = XEKBEL * PTO_EKBZ = EXCEPTIONS NO_RECORDS_REQUESTED = 1 OTHERS = 2 .

MR_INVOICE_DOCUMENT_READ CALL FUNCTION 'MR_INVOICE_DOCUMENT_READ' EXPORTING I_BELNR = BL_BELNR I_GJAHR = BL_GJAHR IMPORTING E_RBKP = RBKP TABLES T_RSEG = XRSEG EXCEPTIONS EXIT = 01 NOT_FOUND = 02.

BELEGPOSITION_LESEN CALL FUNCTION 'BELEGPOSITION_LESEN' EXPORTING BUKRS = BKPF-BUKRS BELNR = BKPF-BELNR GJAHR = BKPF-GJAHR TABLES XBSEG = T_BSEG EXCEPTIONS NOT_FOUND = 1.

BELEGPOSITION_LESEN CALL FUNCTION 'BELEGPOSITION_LESEN' EXPORTING BUKRS = BKPF-BUKRS BELNR = BKPF-BELNR GJAHR = BKPF-GJAHR TABLES XBSEG = XBSEG EXCEPTIONS NOT_FOUND = 1.

ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' EXPORTING EBELN = EKKO-EBELN EBELP = EKPO-EBELP WEBRE = 'X' TABLES XEKBE = XEKBE XEKBES = XEKBES XEKBEZ = XEKBEZ XEKBNK = XEKBNK XEKBZ = XEKBZ.

ME_READ_ITEM_INVOICE CALL FUNCTION 'ME_READ_ITEM_INVOICE' EXPORTING DISPLAY = 'X' IEKKO = EKKO EBELP = EBELP RE_KURSF = XBKPF-KURSF RE_WAERS = XBKPF-WAERS RE_WWERT = XBKPF-WWERT I_VORGANG = 'RL' TABLES XEK08RN = XEK08RN XEK08BN = XEK08BN TEKSEL = XEKSEL EXCEPTIONS NOT_FOUND_ANY = 1 NOT_FOUND_ONE = 2 NOT_VALID_ONE = 3 NOT_VALID_ANY = 4.

ME_READ_COND_INVOICE CALL FUNCTION 'ME_READ_COND_INVOICE' EXPORTING I_EBELN = EBELN I_EBELP = EBELP I_LIFNR = F_LIFNR RE_WAERS = XBKPF-WAERS I_EKKI = ' ' RE_WWERT = XBKPF-WWERT TABLES XEK08BN = XEK08BN.

MRM_VALIDITY_PERIOD_CHECK CALL FUNCTION 'MRM_VALIDITY_PERIOD_CHECK' EXPORTING I_KDATB = XEK08RN-KDATB I_KDATE = XEK08RN-KDATE I_DATE = SY-DATLO I_WERKS = XBSEG-WERKS IMPORTING E_DAYS = XPOSTAB-DTAGE.

MRM_VALIDITY_PERIOD_CHECK CALL FUNCTION 'MRM_VALIDITY_PERIOD_CHECK' EXPORTING I_KDATB = XEK08RN-KDATB I_KDATE = XEK08RN-KDATE I_DATE = SY-DATLO I_WERKS = XBSEG-WERKS IMPORTING E_DAYS = XPOSTAB-DTAGE.



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 MM08AFB0 or its description.