SAP Reports / Programs | Sales and Distribution | Sales(SD-SLS) SAP SD

SDBANF01 SAP ABAP Report - Adjustment sales-purchasing (selection using organizational data)







SDBANF01 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 SDBANF01 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

VA08 - Compare Sales - Purchasing (Org.Dt.)


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 SDBANF01. "Basic submit
SUBMIT SDBANF01 AND RETURN. "Return to original report after report execution complete
SUBMIT SDBANF01 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_VKORG = Sales organization
Selection Text: S_VKGRP = Sales group
Selection Text: S_VKBUR = Sales office
Selection Text: S_ETYPE = Deviation category
Title: Adjustment sales-purchasing (selection using organizational data)
Text Symbol: 202 = Sales office
Text Symbol: 203 = Sales group
Text Symbol: 204 = Sched. line
Text Symbol: 205 = Item
Text Symbol: 206 = The purchase order should be deleted
Text Symbol: 207 = The order item is not defined for a purchase requistion
Text Symbol: 208 = The delivery deadline in the order is fixed
Text Symbol: 300 = Start a selection run first
Text Symbol: S01 = Organizational data
Text Symbol: S02 = Selection run:
Text Symbol: S03 = Date
Text Symbol: S04 = Name
Text Symbol: S05 = Order
Text Symbol: S06 = to
Text Symbol: S07 = Time
Text Symbol: S08 = Number of operations
Text Symbol: S09 = Deviation categories to be output are restricted
Text Symbol: S10 = Doc. From
Text Symbol: S11 = Doc. To
Text Symbol: S12 = Sign
Text Symbol: S13 = Output
Text Symbol: S14 = More Text Exists
Text Symbol: 001 = The order item does not exist
Text Symbol: 002 = The order schedule line does not exist
Text Symbol: 003 = The order item has another purchase requisition:
Text Symbol: 004 = The order item is active, the purchase requisition has been deleted
Text Symbol: 005 = The order item has been rejected, the purchase requisition is active
Text Symbol: 006 = Material in order is different from material in purchase requisition
Text Symbol: 007 = The order item is not defined for a purchase requistion
Text Symbol: 008 = Different quantity in sales order and purchase requisition
Text Symbol: 009 = Different plant in sales order and purchase requisition
Text Symbol: 010 = The following item has the same purchase requisition:
Text Symbol: 011 = Different dates in order and purchase requisition:





Text Symbol: 012 = Different dates in order and purchase requisition (fix):
Text Symbol: 013 = Different dates in order and purchase requisition:
Text Symbol: 014 = Different dates in order and purchase requisition (fix):
Text Symbol: 015 = The system could find no deviations
Text Symbol: 105 = The order item has been rejected, the purchase order is active
Text Symbol: 106 = Different material in sales order and purchase order
Text Symbol: 108 = Confirmed quantity in sales order is different to PO quantity
Text Symbol: 109 = Different plant in sales order and purchase order
Text Symbol: 110 = The purchase req. for the purchase order has been deleted
Text Symbol: 111 = The current purchase requisition for the order item is:
Text Symbol: 112 = The current purchase requisition for the order item is:
Text Symbol: 113 = Order quantity differs from total quantity ordered:
Text Symbol: 114 = Check for other active purchase orders available
Text Symbol: 115 = Required quantity in sales order is different to PO quantity
Text Symbol: 201 = Sales organization
001 Order Item SLine PReq Item POrd.item Outcome


INCLUDES used within this REPORT SDBANF01

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:

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = lv_report is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_events = gt_events[] i_tabname_header = gc_headtab i_tabname_item = gc_itemtab is_keyinfo = ls_keyinfo it_except_qinfo = gt_iconinfo TABLES t_outtab_header = gt_head[] t_outtab_item = gt_item[].

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_report it_fieldcat = gt_fieldcat it_events = gt_events[] TABLES t_outtab = gt_item[] EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = gc_sdbanf01_str CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = gt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_report is_layout = ls_layout it_fieldcat = lt_fieldcat[] it_events = lt_events[] TABLES t_outtab = gt_sel_history[] EXCEPTIONS program_error = 1 OTHERS = 2.

MMPUR_REQUISITION_DISPLAY CALL FUNCTION 'MMPUR_REQUISITION_DISPLAY' EXPORTING im_banfn = gt_item-banfn im_change = 'X' EXCEPTIONS OTHERS = 1.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = gt_item-ebeln i_edit = 'X' EXCEPTIONS OTHERS = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_list_commentary.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_list_commentary.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_list_commentary.






REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = lv_report i_callback_pf_status_set = gc_pf_status_text_set i_callback_top_of_page = gc_text_top_of_list it_fieldcat = lt_fieldcat i_screen_start_column = 10 i_screen_start_line = 10 i_screen_end_column = 100 i_screen_end_line = 20 TABLES t_outtab = lt_text EXCEPTIONS program_error = 1 OTHERS = 2.



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