SAP Reports / Programs

SLSPAWR8 SAP ABAP Report - PAW - Test result answer details







SLSPAWR8 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for PAW- Display Test Result Answer Details The user has to fill in the mandatory test info object field on the selection screen...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 SLSPAWR8 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

SL65 - PAW - Export Test Results


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 SLSPAWR8. "Basic submit
SUBMIT SLSPAWR8 AND RETURN. "Return to original report after report execution complete
SUBMIT SLSPAWR8 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_DT_2W = Last 2 weeks
Selection Text: P_DT_3M = Last 3 months
Selection Text: P_DT_ENT =
Selection Text: P_DT_TM = This month
Selection Text: P_DT_TW = This week
Selection Text: P_DT_TY = This year
Selection Text: P_DT_YTD = Year-to-date
Selection Text: P_EV_BEG = Start date
Selection Text: P_EV_END = End date
Selection Text: P_EV_KEY = Event key
Selection Text: P_EV_LOC = Event location
Selection Text: P_EV_SH = Event name
Selection Text: P_EV_SPE =
Selection Text: P_LO_SHT = Location name
Selection Text: SO_EVID = Event ID(s)
Selection Text: SO_LOCID = Location ID(s)
Selection Text: SO_TEST = Test info objects (PHIOs)
Title: PAW - Test result answer details
Text Symbol: 915 = System cannot continue due to incomplete results.
Text Symbol: 916 = Contact your system administrator.
Text Symbol: 919 = Item result selection complete.
Text Symbol: 923 = No restriction mode specified for data selection.
Text Symbol: 925 = Table is empty. Export is not possible.
Text Symbol: 926 = Export information
Text Symbol: 927 = Download details !
Text Symbol: 929 = Sorting..
Text Symbol: 930 = Preparing output...
Text Symbol: 932 = An error occured while trying to authorize access.
Text Symbol: 933 = Information
Text Symbol: 934 = No data has been selected for the specified criteria !
Text Symbol: 935 = Verify that you have all neccessary access rights
Text Symbol: 936 = or contact your system administrator.
Text Symbol: 950 = Selecting Test Structure
Text Symbol: 951 = An error occured while selecting test-structure details !
Text Symbol: 952 = Display of item-results per Subtest or PU will not be possible.
Text Symbol: 953 = Selection of Item:
Text Symbol: 954 = for PET-ID:
Text Symbol: 955 = failed





Text Symbol: 914 = Error occurred during selection of item results.
Text Symbol: 110 = GUI initialization error
Text Symbol: 111 = Error occurred during initialization of GUI display.
Text Symbol: 112 = Note program details and then
Text Symbol: 113 = contact your system administrator.
Text Symbol: 200 = Refresh
Text Symbol: 201 = Test selection
Text Symbol: 202 = Event selection
Text Symbol: 203 = Event dates
Text Symbol: 204 = By location ID
Text Symbol: 206 = By description
Text Symbol: 207 = Short description
Text Symbol: 208 = By event ID
Text Symbol: 209 = Start - end dates
Text Symbol: 210 = -
Text Symbol: 211 = Location short descr.
Text Symbol: 216 = Usage options
Text Symbol: 218 = This week
Text Symbol: 219 = Last 2 weeks
Text Symbol: 220 = This month
Text Symbol: 221 = Last 3 months
Text Symbol: 222 = Year-to-date
Text Symbol: 223 = One year
Text Symbol: 232 = Event not from TEM
Text Symbol: 401 = Test Results
Text Symbol: 402 = Detailed test results breakdown
Text Symbol: 403 = Testform:
Text Symbol: 901 = Specify tests for which data is to
Text Symbol: 902 = be selected and evaluated.
Text Symbol: 904 = Details for specified test(s) could not be found.
Text Symbol: 905 = Verify selection criteria.
Text Symbol: 906 = Test data selection was successful.
Text Symbol: 907 = Specified test(s) have not been offered yet.
Text Symbol: 908 = No participant data available for specified test(s).
Text Symbol: 909 = Event details could not be read.
Text Symbol: 910 = Result details could not be read.
Text Symbol: 911 = Test type details could not be read.
Text Symbol: 912 = Error occurred during data selection.
Text Symbol: 913 = Data selection complete.





INCLUDES used within this REPORT SLSPAWR8

INCLUDE: SLSPEWI2.


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_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = p_repid TABLES selection_table = sel_tab.

SLS_CUST_GET_PLAN_VARIANT CALL FUNCTION 'SLS_CUST_GET_PLAN_VARIANT' IMPORTING p_plvar = v_plvar.

SLS_MISC_SET_SELECTION_DATES CALL FUNCTION 'SLS_MISC_SET_SELECTION_DATES' EXPORTING p_dt_tw = p_dt_tw p_dt_2w = p_dt_2w p_dt_tm = p_dt_tm p_dt_3m = p_dt_3m p_dt_ytd = p_dt_ytd p_dt_ty = p_dt_ty IMPORTING p_begin_date = v_ev_sel_begin_date p_end_date = v_ev_sel_end_date.

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_infoline1 = 'Specify tests for which data is to '(901) p_infoline2 = 'be selected and evaluated.'(902) .

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_title = 'Information'(933) p_infoline1 = 'No data has been selected for the specified criteria !'(934) p_infoline2 = 'Verify that you have all neccessary access rights'(935) p_infoline3 = 'or contact your system administrator.'(936)

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = p_text.

SLS_MISC_SHOW_MESSAGE_TAB CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB' TABLES p_messages = it_messages.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'SLS_DLRES' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = pit_lv_fc.

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_title = text-110 p_infoline1 = text-111 p_infoline2 = text-112 p_infoline3 = text-113.

SLS_PR_GET_RESULTS_BY_TEST CALL FUNCTION 'SLS_PR_GET_RESULTS_BY_TEST' EXPORTING p_restriction_mode = v_select_mode p_event_short = p_ev_sh p_location_short = p_lo_sht p_start_date = v_ev_sel_begin_date p_end_date = v_ev_sel_end_date p_include_subtest = 'Y' p_include_pu = 'Y' TABLES p_phios = it_test_select p_location_ids = it_location_ids p_event_ids = it_event_ids test_results = it_tres EXCEPTIONS no_tests_specified_for_process = 1 no_tests_found = 2 no_test_performances_found = 3 no_participants_for_tests = 4 event_not_found_for_xet = 5 problem_selecting_result_data = 6 error_selecting_test_type_data = 7 restriction_mode_not_specified = 8 error_reading_authorizations = 9 OTHERS = 10.

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_infoline1 = lv_text1 p_infoline2 = lv_text2.

SLS_PR_GET_ITEM_RESULTS_VECTOR CALL FUNCTION 'SLS_PR_GET_ITEM_RESULTS_VECTOR' TABLES p_petids = lit_petids p_item_results = it_ires EXCEPTIONS no_petid_specified = 1 error_during_ritem_select = 2 error_selecting_item_details = 3 error_selecting_imc = 4 error_selecting_irate = 5 error_selecting_ilc1 = 6 error_selecting_ilc2 = 7 error_selecting_rmc = 8 OTHERS = 9.

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_infoline1 = 'Error occurred during selection of item results. '(914)

SLS_TST_GET_STRUCTURE_INFO CALL FUNCTION 'SLS_TST_GET_STRUCTURE_INFO' TABLES p_testids = lit_testid p_test_structure = it_tstru EXCEPTIONS no_testids_specified = 1 error_selecting_test_structure = 2 OTHERS = 3.

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_infoline1 = text-951 p_infoline2 = text-952.

DOWNLOAD * CALL FUNCTION 'DOWNLOAD' * EXPORTING ** BIN_FILESIZE = ' ' ** CODEPAGE = ' ' * filename = 'ResultsMaster.dat'

SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_title = 'Export information '(926) p_infoline1 = 'Table is empty. Export is not possible. '(925)

DOWNLOAD * CALL FUNCTION 'DOWNLOAD' * EXPORTING ** BIN_FILESIZE = ' ' ** CODEPAGE = ' ' * filename = 'ItemResults.dat'




SLS_MISC_SHOW_MESSAGE CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE' EXPORTING p_title = 'Export information '(926) p_infoline1 = 'Table is empty. Export is not possible. '(925)



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