SAP Reports / Programs

RWPOB001 SAP ABAP Report - documentation and ABAP source code







RWPOB001 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RWPOB001 is used to cancel purchase orders...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 RWPOB001 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

WPO1 - Close Back Orders


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


Text pool values


Close Purchase Orders
Selection Text: XTEST = Test Mode
Selection Text: XTEILWE = No Partial Deliveries Made
Selection Text: XPROT = Display Flow Log
Selection Text: XLOEKZ = Deletion Indicator
Selection Text: XFREI = Released Purchase Orders Only
Selection Text: XELIKZ = "Delivery Completed" Indicator
Selection Text: XBELEG = No Follow-On Documents Exist
Selection Text: S_WERKS = Receiving Plant
Selection Text: S_RESWK = Supplying Plant
Selection Text: S_MATNR = Material Number
Selection Text: S_MATKL = Material Group
Selection Text: S_LWTYP = Supplying Plant Type
Selection Text: S_LIFNR = Vendor Number
Selection Text: S_FRGKE = Release
Selection Text: S_EKORG = Purchasing Organization
Selection Text: S_EKGRP = Purchasing Group
Selection Text: S_EINDT = Delivery Date
Selection Text: S_BSART = Document Type
Selection Text: S_BETYP = Plant Category
Selection Text: S_BEDAT = Document Date
Selection Text: INT = Internal Purchase Order
Selection Text: EXT = External Purchase Order
Text Symbol: 013 = Application Settings
Text Symbol: 012 = General Settings
Text Symbol: 010 = Close Purchase Order
Text Symbol: 009 = Log
Text Symbol: 008 = Further Restrictions
Text Symbol: 007 = Extended Rules
Text Symbol: 006 = Purchase Orders Selection Criteria
Text Symbol: 005 = Set Deletion Indicator
Text Symbol: 004 = Set Delivery Completed Flag
Text Symbol: 003 = What Order Status Would you Like to Set?
Text Symbol: 002 = Criteria at Item Level
Text Symbol: 001 = Criteria at Header Level


INCLUDES used within this REPORT RWPOB001

INCLUDE RWPOBTOP . " GLOBAL DATA
INCLUDE RWPOBLAY.


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:

WPOCS_SELECT_POS CALL FUNCTION 'WPOCS_SELECT_POS' EXPORTING EXTERNB = ext BETYP = s_betyp lwtyp = s_lwtyp ELIKZ = xelikz LOEKZ = xloekz I_OPCODE = opcode BOB = 'X' TABLES S_WERKS = s_werks S_EKORG = s_ekorg S_EKGRP = S_EKGRP S_LIFNR = S_LIFNR S_RESWK = S_RESWK S_EINDT = S_EINDT S_MATNR = S_MATNR S_BSART = S_BSART S_MATKL = S_MATKL S_BEDAT = S_BEDAT CHANGE_ITEM_BOB = bopo EXCEPTIONS NO_SEL_DATA_FOUND = 1 NO_REL_DATA_FOUND = 2.

WPOCP_SAVE_CHANGED_PO_DATA CALL FUNCTION 'WPOCP_SAVE_CHANGED_PO_DATA' EXPORTING I_DO_COMMIT = 'X' I_CHECK_DATA_ONLY = 0 I_ITEMS_PER_PROCESS = 1000 TABLES CHANGING_HEADERS = changing_header CHANGING_ITEMS = changing_items E_ERROR_MESSAGES = messages EXCEPTIONS ERROR_IN_APPLICATION = 1 ERROR_IN_DATA = 2 OTHERS = 3.

WPOCP_SAVE_CHANGED_PO_DATA CALL FUNCTION 'WPOCP_SAVE_CHANGED_PO_DATA' EXPORTING I_DO_COMMIT = 'X' I_CHECK_DATA_ONLY = 2 I_ITEMS_PER_PROCESS = 1000 TABLES CHANGING_HEADERS = changing_header CHANGING_ITEMS = changing_items E_ERROR_MESSAGES = messages EXCEPTIONS ERROR_IN_APPLICATION = 1 ERROR_IN_DATA = 2 OTHERS = 3.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = log_header IMPORTING E_LOG_HANDLE = p_log_handle EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_LOG_HANDLE = p_log_handle I_S_MSG = l_s_msg EXCEPTIONS LOG_NOT_FOUND = 1 MSG_INCONSISTENT = 2 LOG_IS_FULL = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_LOG_HANDLE = p_log_handle I_S_MSG = l_s_msg EXCEPTIONS LOG_NOT_FOUND = 1 MSG_INCONSISTENT = 2 LOG_IS_FULL = 3 OTHERS = 4.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING I_S_LOG_FILTER = l_s_log_filter EXCEPTIONS INTERNAL_ERROR = 2 NO_DATA_AVAILABLE = 3 NO_AUTHORITY = 4 OTHERS = 5.



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