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
Below is a list of transaction codes which are relevant to this SAP report
SDV2 - Expired Contracts
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.
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
INCLUDE RVREUSE_GLOBAL_DATA.
INCLUDE SD_REPO_DATA.
INCLUDE SD_REPO_F00P.
INCLUDE SD_REPO_F00V.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.