SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

RV130005 SAP ABAP Report - Agreement Archiving: Write program for object SD_AGREEM







RV130005 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 RV130005 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 RV130005. "Basic submit
SUBMIT RV130005 AND RETURN. "Return to original report after report execution complete
SUBMIT RV130005 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_BOST_A = only final settlement rebate
Selection Text: P_BOST_F = only final settlement agrmnts
Selection Text: P_BOST_K = only final settlement agrmnts
Selection Text: P_DAT1 = Past period
Selection Text: P_DAT2 = Past date
Selection Text: P_LIS1 = Log without agreements
Selection Text: P_LIS2 = Log with agreements
Selection Text: P_PROT = Create log
Selection Text: P_RDATE = Archiving key date
Selection Text: P_TAGE = Past period in days
Selection Text: P_TEST = Deletion run in test mode
Selection Text: REMARK = Comment for archiving session
Selection Text: S_BOART = Agreement type
Selection Text: S_EKORG = Purchasing organization
Selection Text: S_KNUMA = Agreement
Selection Text: S_SPART = Division
Selection Text: S_SPARTE = Division
Selection Text: S_VKORG = Sales organization
Selection Text: S_VKORGE = Sales organization
Selection Text: S_VTWEG = Distribution channel
Selection Text: S_VTWEGE = Distribution channel
Selection Text: P_ATEST = Archiving in test run
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: P_ABTY_B = Promotion
Selection Text: P_ABTY_A = Rebate agreement - Sales
Title: Agreement Archiving: Write program for object SD_AGREEM
Text Symbol: 007 = Agreements in purchasing
Text Symbol: 006 = Sales promotions without promo assignment
Text Symbol: 005 = promotion incl. assigned sales promotions
Text Symbol: 004 = @04@ Only final settlement status
Text Symbol: 003 = Rebate agreement - Sales
Text Symbol: 002 = Agreements in sales
Text Symbol: 001 = Program selections
Text Symbol: 200 = Agreement
Text Symbol: 132 = Data for archive file:
Text Symbol: 120 = Archived agreements:





Text Symbol: 119 = Key date:
Text Symbol: 118 = Delete:
Text Symbol: 117 = Program options
Text Symbol: 114 = Quota archived/selected documents:
Text Symbol: 113 = Specifications for run time procedure
Text Symbol: 112 = Duration:
Text Symbol: 111 = End:
Text Symbol: 110 = Start time:
Text Symbol: 109 = To be archived (incl. assigned sales promotions)
Text Symbol: 108 = Number of agreements selected:
Text Symbol: 023 = Index Cleanup
Text Symbol: 099 = ********************************************************************************************
Text Symbol: 100 = Log for archiving agreements
Text Symbol: 101 = Start the write program:
Text Symbol: 103 = Archive file is created
Text Symbol: 104 = Do not create archive file
Text Symbol: 105 = Start deletion program in deletion mode
Text Symbol: 107 = Data for archive file created
Text Symbol: 008 = Vendor agreement
Text Symbol: 303 = SAP Release
Text Symbol: 302 = SAP system
Text Symbol: 301 = Created on
Text Symbol: 300 = Archive file
Text Symbol: 211 = Ov. Agree.
Text Symbol: 210 = S
Text Symbol: 209 = Description
Text Symbol: 208 = Date to
Text Symbol: 207 = Date from
Text Symbol: 206 = POrg
Text Symbol: 205 = Bl
Text Symbol: 204 = DC
Text Symbol: 203 = SOrg
Text Symbol: 202 = Ap
Text Symbol: 201 = t
Text Symbol: 022 = Sales quote (Central payment)
Text Symbol: 021 = Data for document creation
Text Symbol: 019 = Deadline
Text Symbol: 018 = Daily
Text Symbol: 017 = Residence time





Text Symbol: 016 = Deletion program will not be started
Text Symbol: 015 = with list of agreements
Text Symbol: 014 = W/o list of agreements
Text Symbol: 013 = Note:
Text Symbol: 012 = Create log for archiving session
Text Symbol: 011 = Run Delete Program in Test Mode Only
Text Symbol: 010 = Archiving as test run, no archive file will be created
Text Symbol: 009 = Archiving key date


INCLUDES used within this REPORT RV130005

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:

RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING REPORT = 'RV130005' SELTEXT = 'X' 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 RV130005 or its description.