SAP Reports / Programs

RHADHOC0 SAP ABAP Report - Ad Hoc Query








RHADHOC0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for -> FOR SAP INTERNAL USE ONLY ! <- ..see full standard documentation available for this report. Also check out 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 RHADHOC0 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

PQAH - Ad Hoc Query


ABAP code to call this SAP report using the submit statement

SUBMIT RHADHOC0. "Basic submit

SUBMIT RHADHOC0 AND RETURN. "Return to original report after report execution complete

SUBMIT RHADHOC0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user

See more syntax options for the ABAP SUBMIT statement

Contribute (Add Comments)
Below is the basic information available for SAP report RHADHOC0 and is provided for your convenience to access as and when required. Although the 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 RHADHOC0 or its description.

INCLUDES used within this REPORT:

No INCLUDES are used within this REPORT code!


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:

HR_GET_TEXT_FOR_OBJECTS CALL FUNCTION 'HR_GET_TEXT_FOR_OBJECTS' EXPORTING begda = begda endda = endda CHANGING pernr_tab = objects[] * APLNO_TAB = * SOBID_TAB = EXCEPTIONS wrong_dates = 1 OTHERS = 2.

RSAQ_SAP_QUERY_INTERNAL CALL FUNCTION 'RSAQ_SAP_QUERY_INTERNAL' EXPORTING workspace = wspace usergroup = usergroup infoset = infoset * QUERY = ' ' ad_hoc = 'X' * ROLE = ' ' wbo = ' ' change_ws = 'X' change_ug = 'X' * ASSIGN_USER = 'X' no_save = no_save no_open = no_open object_set_in = object_set_in fix_evaluation_set = lockplst selection_params_in = selection_params EXCEPTIONS internal_error = 1 OTHERS = 2.

RSAQ_IMPORT_USERGROUP_CATALOG CALL FUNCTION 'RSAQ_IMPORT_USERGROUP_CATALOG' EXPORTING i_wspace = workspace * I_ALL = ' ' * I_NO_SYST = ' ' * IMPORTING * O_HEADBG = * O_MAXBG_TINDX = TABLES * O_DBBG = o_dbbs = dbbs o_dbbn = dbbn * O_BGTEXT = EXCEPTIONS OTHERS = 1.


Text pool values


Title: Ad Hoc Query
Text Symbol: 100 = Expert mode
Text Symbol: 101 = Standard mode
Text Symbol: 102 = Error while saving query
Text Symbol: 106 = Overwrite
Text Symbol: 107 = Gener. ad hoc query variant
Text Symbol: 108 = This query already exists. Do you want to overwrite it?
Text Symbol: 109 = Save query
Text Symbol: 110 = Number of
Text Symbol: 111 = Statistics



Text Symbol: 112 = Ranking list
Text Symbol: 113 = Prepare output
Text Symbol: 114 = Start output report
Text Symbol: 115 = Functional groups
Text Symbol: 117 = could not be saved as selection
Text Symbol: 118 = is not based on logical database
Text Symbol: 200 = Hide tree
Text Symbol: 201 = Show tree
Text Symbol: 210 = Main screen
Text Symbol: 211 = Selection
Text Symbol: 212 = Output fields