SAP Reports / Programs

CLEAN_REQREQ_UP SAP ABAP Report - cleans the reqreq entrys up according to the core system







CLEAN_REQREQ_UP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report CLEAN_REQREQ_UP reads table BBP_DOCUMENT_TAB and ch ecks if the relevant follow-on document has been created for an SRM document...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 CLEAN_REQREQ_UP 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 CLEAN_REQREQ_UP. "Basic submit
SUBMIT CLEAN_REQREQ_UP AND RETURN. "Return to original report after report execution complete
SUBMIT CLEAN_REQREQ_UP 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: LOGSYS_P = Logical system
Selection Text: REFNO_P = Backend document number
Selection Text: REQNO_P = Shopping cart number
Title: cleans the reqreq entrys up according to the core system
Text Symbol: 001 = SPOOL_RQ_WRITE_BAPI_IMPORTS
Text Symbol: 100 = Abort caught for BBP_DOCUMENT_TAB entry:


INCLUDES used within this REPORT CLEAN_REQREQ_UP

INCLUDE CLEAN_REQREQ_UP_TOP . "


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:

ENQUEUE_E_REQREQ_CLEANER CALL FUNCTION 'ENQUEUE_E_REQREQ_CLEANER' EXPORTING mode_bbp_clean_lock = 'E' client = sy-mandt the_lock = 'X' * X_THE_LOCK = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

SPOOL_RQ_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_RQ_WRITE_BAPI_IMPORTS' EXPORTING reqno = selarea-reqno requis_number = requis_number EXCEPTIONS internal_error = 1 retry_later = 2 OTHERS = 3.

SPOOL_PD_RQ_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_PD_RQ_WRITE_BAPI_IMPORTS' EXPORTING iv_reqno = selarea-reqno iv_rq_number = requis_number EXCEPTIONS internal_error = 1 retry_later = 2 OTHERS = 3.

SPOOL_PO_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_PO_WRITE_BAPI_IMPORTS' EXPORTING reqno = selarea-reqno po_number = po_number EXCEPTIONS internal_error = 1 retry_later = 2 OTHERS = 3.

SPOOL_PD_PO_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_PD_PO_WRITE_BAPI_IMPORTS' EXPORTING iv_reqno = selarea-reqno iv_po_number = po_number EXCEPTIONS internal_error = 1 retry_later = 2 OTHERS = 3.

SPOOL_RS_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_RS_WRITE_BAPI_IMPORTS' EXPORTING reqno = selarea-reqno res_number = res_number EXCEPTIONS internal_error = 1 OTHERS = 2.

SPOOL_PD_RS_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_PD_RS_WRITE_BAPI_IMPORTS' EXPORTING iv_reqno = selarea-reqno iv_rs_number = res_number EXCEPTIONS internal_error = 1 retry_later = 2 OTHERS = 3.

SPOOL_OR_WRITE_BAPI_IMPORTS CALL FUNCTION 'SPOOL_OR_WRITE_BAPI_IMPORTS' EXPORTING reqno = selarea-reqno EXCEPTIONS internal_error = 1 OTHERS = 2.

BBP_PD_PO_ACT_VAL_UPDATE CALL FUNCTION 'BBP_PD_PO_ACT_VAL_UPDATE' EXPORTING iv_po_number = selarea-reqno EXCEPTIONS po_locked = 2 internal_error = 2 OTHERS = 2.

BBP_PD_SC_RESET_BUFFER CALL FUNCTION 'BBP_PD_SC_RESET_BUFFER'.

BBP_DELETE_FROM_DOCUMENT_TAB CALL FUNCTION 'BBP_DELETE_FROM_DOCUMENT_TAB' IN UPDATE TASK TABLES i_deleted_docs = selsuccessful.

BBP_DELETE_FROM_DOCUMENT_TAB CALL FUNCTION 'BBP_DELETE_FROM_DOCUMENT_TAB' IN UPDATE TASK TABLES i_deleted_docs = selsuccessful.



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