SD_CREATE_TEST_DATA 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 SD_CREATE_TEST_DATA into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: S_VBELN = Sales document number
Title: Create test data
INCLUDE SD_CREATE_TEST_DATA_01.
No SAP DATABASE tables are accessed within this REPORT code!
BAPISDORDER_GETDETAILEDLIST CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST' EXPORTING i_bapi_view = orderview TABLES sales_documents = h_vbeln order_headers_out = t_sdhd order_items_out = t_sdit order_schedules_out = t_sdhedu order_business_out = t_sdbusi order_partners_out = t_sdpart.
ALE_SALESORDER_CREATEFROMDAT2 CALL FUNCTION 'ALE_SALESORDER_CREATEFROMDAT2' EXPORTING orderheaderin = da_sdhd1 TABLES orderitemsin = a_sditm orderpartners = a_parnr orderschedulesin = a_schdl receivers = h_rec EXCEPTIONS error_creating_idocs = 1 OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid i_grid_title = gv_title is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = gc_save is_variant = gs_variant TABLES t_outtab = gt_output_doc EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_struct CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.