SAP Reports / Programs | Sales and Distribution | Sales | Basic Functions(SD-SLS-GF) SAP SD

SD_CREATE_TEST_DATA SAP ABAP Report - Create test data







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


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 SD_CREATE_TEST_DATA. "Basic submit
SUBMIT SD_CREATE_TEST_DATA AND RETURN. "Return to original report after report execution complete
SUBMIT SD_CREATE_TEST_DATA 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_VBELN = Sales document number
Title: Create test data


INCLUDES used within this REPORT SD_CREATE_TEST_DATA

INCLUDE SD_CREATE_TEST_DATA_01.


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:

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.



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