SAP Reports / Programs

SDCONT02 SAP ABAP Report - Expired contracts







SDCONT02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report generates a list of all the open contracts that correspond to your selection criteria, and that will have expired by the current date...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 SDCONT02 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

SDV2 - Expired Contracts


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


Text pool values


Expired contracts
Selection Text: S_VTWEG = Distribution channel
Selection Text: S_VKORG = Sales organization
Selection Text: S_SPART = Division
Selection Text: S_PARVW = Partner function
Selection Text: S_MATNR = Material number
Selection Text: S_KUNDE = Partners
Selection Text: S_ERNAM = Created by
Selection Text: S_BLART = Document type
Title: Expired contracts
Text Symbol: 005 = SP
Text Symbol: 004 = Organizat. Data
Text Symbol: 003 = Addit. data
Text Symbol: 002 = Item data
Text Symbol: 001 = Doc. data


INCLUDES used within this REPORT SDCONT02

INCLUDE RVREUSE_GLOBAL_DATA.
INCLUDE SD_REPO_DATA.
INCLUDE SD_REPO_F00P.
INCLUDE SD_REPO_F00V.


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:

SD_LDB_DATA_GET CALL FUNCTION 'SD_LDB_DATA_GET' EXPORTING ldbname = 'SD_SALES_DOCUMENT' TABLES callback = callback selections = seltab EXCEPTIONS ldb_not_reentrant = 1 ldb_incorrect = 2 ldb_already_running = 3 ldb_error = 4 ldb_selections_error = 5 ldb_selections_not_accepted = 6 variant_not_existent = 7 variant_obsolete = 8 variant_error = 9 free_selections_error = 10 callback_no_event = 11 callback_node_duplicate = 12 OTHERS = 13.

SD_ALV_LIST CALL FUNCTION 'SD_ALV_LIST' EXPORTING view = viewname trvog = trvog IMPORTING zuart = vbcom-zuart name_dazu = vbcom-name_dazu stat_dazu = vbcom-stat_dazu nachlesen = nachl.



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