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
Below is a list of transaction codes which are relevant to this SAP report
VA07 - Compare Sales - Purchasing (Order)
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.
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
INCLUDE RVVBTYP.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SDBANF02 - Selection: Comparison of Orders with Purchase Requisitions and POs SDBANF02 - Selection: Comparison of Orders with Purchase Requisitions and POs SDBANF01 - Adjustment sales-purchasing (selection using organizational data) SDBANF01 - Adjustment sales-purchasing (selection using organizational data) SDB9FDB2 - DB2-z/OS: Catalog modifications (>= v9.1) SDB9FDB2 - DB2-z/OS: Catalog modifications (>= v9.1)