SAP Reports / Programs

SDBANF02 SAP ABAP Report - Selection: Comparison of Orders with Purchase Requisitions and POs







SDBANF02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Use this program when working with third-party items or items with individual purchase orders in sales...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

VA07 - Compare Sales - Purchasing (Order)


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 SDBANF02. "Basic submit
SUBMIT SDBANF02 AND RETURN. "Return to original report after report execution complete
SUBMIT SDBANF02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_ETYPE = Deviation category
Selection Text: S_VBELN = Order
Title: Selection: Comparison of Orders with Purchase Requisitions and POs
001 Order Item SLine PReq Item POrd.item Outcome


INCLUDES used within this REPORT SDBANF02

INCLUDE RVVBTYP.


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:

SD_VBUP_SELECT CALL FUNCTION 'SD_VBUP_SELECT' EXPORTING I_DOCUMENT_NUMBER = EBKN-VBELN I_ITEM_NUMBER = EBKN-VBELP IMPORTING E_VBUP = VBUP EXCEPTIONS ITEM_NOT_FOUND = 01.

SD_VBAP_SELECT CALL FUNCTION 'SD_VBAP_SELECT' EXPORTING I_DOCUMENT_NUMBER = EBKN-VBELN I_ITEM_NUMBER = EBKN-VBELP IMPORTING E_VBAP = VBAP EXCEPTIONS ITEM_NOT_FOUND = 01.

MMPUR_EKBE_READ_EBELN_EBELP CALL FUNCTION 'MMPUR_EKBE_READ_EBELN_EBELP' EXPORTING PI_EBELN = EKPO-EBELN PI_EBELP = EKPO-EBELP PI_BYPASSING_BUFFER = SPACE PI_REFRESH_BUFFER = SPACE TABLES PTO_EKBE_PO = LT_EKBE EXCEPTIONS NO_RECORDS_REQUESTED = 1 OTHERS = 2.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING INPUT = DA_MENGE " KZMEINH = ' ' MATNR = VBAP-MATNR MEINH = EKPO-MEINS MEINS = VBAP-MEINS " NO_OUTPUT = ' ' IMPORTING * addko = * meins = OUTPUT = DA_MENGE * umren = * umrez = EXCEPTIONS CONVERSION_NOT_FOUND = 01 INPUT_INVALID = 02 MATERIAL_NOT_FOUND = 03 MEINH_NOT_FOUND = 04 MEINS_MISSING = 05 NO_MEINH = 06 OUTPUT_INVALID = 07 OVERFLOW = 08.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING INPUT = DA_MENGE " KZMEINH = ' ' MATNR = VBAP-MATNR MEINH = EKPO-MEINS MEINS = VBAP-MEINS " NO_OUTPUT = ' ' IMPORTING OUTPUT = DA_MENGE EXCEPTIONS CONVERSION_NOT_FOUND = 01 INPUT_INVALID = 02 MATERIAL_NOT_FOUND = 03 MEINH_NOT_FOUND = 04 MEINS_MISSING = 05 NO_MEINH = 06 OUTPUT_INVALID = 07 OVERFLOW = 08.



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