SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM06BV47 SAP ABAP Report - Archiving of Purchase Requisitions: Preprocessing Program







RM06BV47 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RM06BV47 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 RM06BV47. "Basic submit
SUBMIT RM06BV47 AND RETURN. "Return to original report after report execution complete
SUBMIT RM06BV47 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: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_PRETST = D .
Selection Text: P_PREPRD = D .
Selection Text: ER_WERKS = D .
Selection Text: ER_EKGRP = D .
Selection Text: ER_BSART = D .
Selection Text: ER_BANFN = D .
Selection Text: ER_BADAT = D .
Selection Text: ER_CDAT = One-Step Procedure
Title: Archiving of Purchase Requisitions: Preprocessing Program
Text Symbol: 043 = Deletion indicator can be set
Text Symbol: 042 = Deletion Indicator Set
Text Symbol: 041 = Purchase requisition could not be blocked
Text Symbol: 038 = Related purchase order not billed yet
Text Symbol: 037 = Requested quantity is not completely ordered
Text Symbol: 036 = Minimum residence time is not over yet
Text Symbol: 035 = Item category finds no entry in application-specific Customizing
Text Symbol: 034 = User has no authorization for document type &
Text Symbol: 033 = User has no authorization for purchasing group &
Text Symbol: 032 = User has no authorization for purchasing organization &
Text Symbol: 031 = User has no authorization for plant &
Text Symbol: 027 = Setting of deletion indicator in BAdI refused
Text Symbol: 024 = &1 of &2 purchase requisition items processed
Text Symbol: 021 = Read Purchase Requisitions
Text Symbol: 003 = Option
Text Symbol: 002 = Restrictions
Text Symbol: 001 = Purch. Requisition


INCLUDES used within this REPORT RM06BV47

INCLUDE FMMEXDIR.
INCLUDE ARCH_PREPROC_PRG_STANDARD2.


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:

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'MM_EBAN' IMPORTING commit_count_for_delete_prg = cust_commit_count.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-021 i_output_immediately = 'X' IMPORTING e_progress_sent = g_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = g_processed i_total = g_lines IMPORTING e_progress_sent = g_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_EMEBANE CALL FUNCTION 'DEQUEUE_EMEBANE' EXPORTING banfn = l_banfn.

ENQUEUE_EMEBANE CALL FUNCTION 'ENQUEUE_EMEBANE' EXPORTING banfn = -banfn EXCEPTIONS foreign_lock = 2 system_failure = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -banfn i_msgtype = '2' i_text = l_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = l_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = l_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = l_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = l_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = text-035.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = text-036.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = text-037.

SD_VBUK_SELECT CALL FUNCTION 'SD_VBUK_SELECT' EXPORTING i_document_number = wa_ebkn-vbeln IMPORTING e_vbuk = l_vbuk EXCEPTIONS document_not_found = 0.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = text-038.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '2' i_text = l_detail_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '02' i_text = text-027.

MD_SET_KZEAR_RESB CALL FUNCTION 'MD_SET_KZEAR_RESB' EXPORTING rsnum = l_eban-rsnum.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '1' i_text = text-042.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = l_posid i_msgtype = '1' i_text = text-043.

DEQUEUE_EMEBANE CALL FUNCTION 'DEQUEUE_EMEBANE' EXPORTING banfn = l_banfn.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-024 i_processed = g_processed i_total = g_lines i_output_immediately = 'X'.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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