SAP Reports / Programs

RV130007 SAP ABAP Report - Agreement archiving: Reload program for Objekt SD_AGREEM







RV130007 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving condition records is carried out using the 'ARCHIVE DEVELOPMENT KIT' (ADK)...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 RV130007 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

MEBR - Archive Rebate Arrangements


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 RV130007. "Basic submit
SUBMIT RV130007 AND RETURN. "Return to original report after report execution complete
SUBMIT RV130007 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_BOART = D Agreement type
Selection Text: P_TEST = Reload run in test mode
Selection Text: P_PROT = Create protocol
Selection Text: P_BOST_F = Only fully settled agreements
Selection Text: P_BOST_A = Only fully settled rebate
Selection Text: P_ABTY_K = Agreement - Purchasing Vendor
Selection Text: P_ABTY_F = Agreement - Purchasing Cust.
Selection Text: P_ABTY_C = Sales deal
Selection Text: S_VTWEGE = Distribution channel
Selection Text: S_VTWEG = D Distribution channel
Selection Text: S_VKORGE = Sales organization
Selection Text: S_VKORG = D Sales organization
Selection Text: S_SPARTE = Division
Selection Text: S_SPART = D Division
Selection Text: S_KNUMA = D Agreement
Selection Text: S_EKORG = D Purchasing organization
Selection Text: P_ABTY_B = Promotion
Selection Text: P_ABTY_A = Rebate agreement - Sales
Title: Agreement archiving: Reload program for Objekt SD_AGREEM
Text Symbol: 002 = Agreements in sales
Text Symbol: 003 = Rebate agreement - Sales
Text Symbol: 004 = @04@ Only final settlement status
Text Symbol: 005 = promotion incl. assigned sales promotions
Text Symbol: 006 = Sales promotions without promo assignment
Text Symbol: 007 = Agreements in purchasing
Text Symbol: 008 = Vendor agreement
Text Symbol: 035 = Error generating FORM with return code:
Text Symbol: 116 = Number of table entries in KODAT (condition table)
Text Symbol: 117 = Number of table entries in KONAIND (Index of sales promotions)
Text Symbol: 115 = Number of table entries in KONH (condition header):
Text Symbol: 114 = Number of table entries in EBOX (index settlement documents):
Text Symbol: 113 = Number of table entries in EKBO (index agreements in purchasing)
Text Symbol: 112 = Number of table entries in WAKHIND (index of trade promotions)
Text Symbol: 111 = Number of table entries in KONA (agreements)
Text Symbol: 109 = End log for reloading archived agreements
Text Symbol: 100 = Log for reloading archived agreements
Text Symbol: 099 = ********************************************************************************************
Text Symbol: 200 = Agreement





Text Symbol: 153 = Durat:
Text Symbol: 152 = End:
Text Symbol: 151 = Start time:
Text Symbol: 150 = Spec. for run time procedure
Text Symbol: 132 = Data for archive file
Text Symbol: 210 = L
Text Symbol: 211 = Ov. Agree.
Text Symbol: 300 = Archive file:
Text Symbol: 301 = Created on:
Text Symbol: 302 = SAP system:
Text Symbol: 303 = SAP Release:
Text Symbol: 202 = Ap
Text Symbol: 203 = SOrg
Text Symbol: 204 = DC
Text Symbol: 205 = Bl
Text Symbol: 206 = POrg
Text Symbol: 207 = Date from
Text Symbol: 208 = Date to
Text Symbol: 209 = Description
Text Symbol: 201 = t
Text Symbol: 011 = Parameters for program flow
Text Symbol: 012 = Test run, data not reloaded
Text Symbol: 013 = Enhance log with agreement data
Text Symbol: 014 = Data on archive data read
Text Symbol: 016 = The agreement does not meet the selection requirements
Text Symbol: 017 = Object is copied to a new archive in real session
Text Symbol: 018 = Next archiving object
Text Symbol: 022 = Sales quote
Text Symbol: 001 = Program selections


INCLUDES used within this REPORT RV130007

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:

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = ARCH_HANDLE.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = ARCH_WHANDLE.

RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING REPORT = 'RV130007' SELTEXT = 'X' * DYN_RANGE = NEWPAGE = ' ' TABLES SEL_TAB = SELECTION_TAB.



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