SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | SAP Query(BC-SRV-QUE) SAP BC

MS38AF10 SAP ABAP INCLUDE - documentation and ABAP source code







MS38AF10 is a standard ABAP INCLUDE 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 MS38AF10 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 MS38AF10. "Basic submit
SUBMIT MS38AF10 AND RETURN. "Return to original report after report execution complete
SUBMIT MS38AF10 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MS38AF10

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:

RSAQ_CHECK_OBJECT_NAME call function 'RSAQ_CHECK_OBJECT_NAME' exporting workspace = act_workspace object_name = qname object_type = 'Q' exceptions illegal_name = 1 illegal_namespace = 2 others = 3.

RSAQ_CHECK_OBJECT_NAME call function 'RSAQ_CHECK_OBJECT_NAME' exporting workspace = act_workspace object_name = qname object_type = 'Q' exceptions illegal_name = 1 illegal_namespace = 2 others = 3.

RSAQSUL_SELECT_FUNC_AREA call function 'RSAQSUL_SELECT_FUNC_AREA' exporting sul_workspace = act_workspace sul_transcode = 'SQ01' sul_usergroup = rs38r-bgnum sul_queryname = qname importing sul_cancel = pf3flag sul_func_area = headsg-clas.

RSAQ_REPORT_NAME call function 'RSAQ_REPORT_NAME' exporting workspace = act_workspace usergroup = dbbn-num query = qname importing reportname = headqu-repid.

RS_SLDB_SHOW call function 'RS_SLDB_SHOW' exporting name_imp = headqu-logdb exceptions object_not_found = 2 object_not_specified = 3.

RSAQSUL_SELECT_FUNC_AREA call function 'RSAQSUL_SELECT_FUNC_AREA' exporting sul_workspace = act_workspace sul_queryname = ' ' sul_transcode = 'SQ01' sul_usergroup = rs38r-bgnum importing sul_cancel = pf3flag sul_func_area = sgname.

RS_VARIANT_EXISTS call function 'RS_VARIANT_EXISTS' exporting report = repid_batch variant = l_variant importing r_c = l_subrc exceptions others = 1.

GET_PRINT_PARAMETERS call function 'GET_PRINT_PARAMETERS' exporting report = repid_batch mode = 'BATCH' importing out_parameters = %_print out_archive_parameters = %_archive valid = l_valid.

JOB_OPEN call function 'JOB_OPEN' exporting jobname = l_job_name importing jobcount = l_job_numb exceptions others = 1.

JOB_SUBMIT call function 'JOB_SUBMIT' exporting jobname = l_job_name jobcount = l_job_numb report = repid_batch variant = l_variant authcknam = sy-uname priparams = %_print arcparams = %_archive exceptions others = 1.

BP_START_DATE_EDITOR call function 'BP_START_DATE_EDITOR' exporting stdt_dialog = 'Y' stdt_input = ls_startspecs stdt_opcode = lo_btc_edit_startdate importing stdt_modify_type = l_start_modify_flag stdt_output = ls_startspecs exceptions others = 1.

BP_JOB_DELETE call function 'BP_JOB_DELETE' exporting jobcount = l_job_numb jobname = l_job_name exceptions others = 0.

JOB_CLOSE call function 'JOB_CLOSE' exporting at_opmode_periodic = ls_startspecs-periodic calendar_id = ls_startspecs-calendarid event_id = ls_startspecs-eventid event_param = ls_startspecs-eventparm event_periodic = ls_startspecs-periodic jobcount = l_job_numb jobname = l_job_name laststrtdt = ls_startspecs-laststrtdt laststrttm = ls_startspecs-laststrttm prddays = ls_startspecs-prddays prdhours = ls_startspecs-prdhours prdmins = ls_startspecs-prdmins prdmonths = ls_startspecs-prdmonths prdweeks = ls_startspecs-prdweeks predjob_checkstat = ls_startspecs-checkstat pred_jobcount = ls_startspecs-predjobcnt pred_jobname = ls_startspecs-predjob sdlstrtdt = ls_startspecs-sdlstrtdt sdlstrttm = ls_startspecs-sdlstrttm startdate_restriction = ls_startspecs-prdbehav strtimmed = l_start_immediate targetsystem = ls_startspecs-instname start_on_workday_not_before = ls_startspecs-notbefore start_on_workday_nr = ls_startspecs-wdayno workday_count_direction = ls_startspecs-wdaycdir exceptions others = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = 'Beenden der Query-Bearbeitung'(700) DIAGNOSE_OBJECT = 'CPE_DATA_LOSS' TEXT_QUESTION = 'Bearbeitung abbrechen?'(705) DEFAULT_BUTTON = '2' DISPLAY_CANCEL_BUTTON = ' ' POPUP_TYPE = 'ICON_MESSAGE_WARNING' IMPORTING ANSWER = antwort.

RSAQSUG_SELECT_USERGROUP call function 'RSAQSUG_SELECT_USERGROUP' exporting sug_workspace = act_workspace sug_superuser = superuser importing sug_usergroup = l_bgnum.

RSAQ_COPY_QUICKVIEW call function 'RSAQ_COPY_QUICKVIEW' exporting * WORKSPACE = usergroup = rs38r-prefx sourcename = rs38r-qnum targetname = rs38r-cqnum * QSEL = ' ' * LOCK_SET = ' ' exceptions quickview_locked = 1 querycatalog_locked = 2 querylistcatalog_locked = 3 target_present = 4 not_found = 5 error = 6 target_name_invalid = 7 not_authorised = 8 others = 9 .

RSAQ_DELETE_QUERY call function 'RSAQ_DELETE_QUERY' exporting workspace = act_workspace usergroup = dbbn-num query = qname qsel = 'X' exceptions user_aborted = 1.

RSAQ_DELETE_QUICKVIEW call function 'RSAQ_DELETE_QUICKVIEW' exporting * WORKSPACE = * USERGROUP = quickview = qname qsel = 'X' " prompt.

RSAQ_USERDATA





call function 'RSAQ_USERDATA' importing p_userdata = l_userdata.

RSAQ_USERDATA call function 'RSAQ_USERDATA' exporting p_read_only = space importing p_userdata = userdata.

RSAQ_USERDATA call function 'RSAQ_USERDATA' exporting p_component = 'V' p_read_only = space importing p_userdata = userdata.

RSAQWFD_SHOW_FIELD_DOCU call function 'RSAQWFD_SHOW_FIELD_DOCU' exporting wfd_fieldname = dbsf-name wfd_type = dbsf-type wfd_out_length = dbsf-oleng wfd_decimals = dbsf-decimals wfd_curry_flag = dbsf-curry tables wfd_dban = dban wfd_dbsg = dbsg.

RSAQ_LOCAL_FIELD call function 'RSAQ_LOCAL_FIELD' exporting i_mode = 'S' i_fieldname = dblf-name i_groupname = space importing o_changed = changeflag tables io_clogqu = clogqu io_dbop = dbop io_dbsn = dbsn io_dbfr = dbfr io_dblf = dblf io_dblc = dblc io_dbld = dbld io_dbse = dbse io_dbgr = dbgr io_dbli = dbli io_dbff = dbff io_dbfm = dbfm io_dbvh = dbvh io_dbvs = dbvs io_dbrh = dbrh io_dbrl = dbrl io_dbpt = dbpt io_dbct = dbct io_qutext = qutext io_clogsg = clogsg io_dbsa = dbsa io_dbsf = dbsf io_dbsg = dbsg io_dban = dban io_dbjt = dbjt io_dbjc = dbjc io_dbzt = dbzt io_dbzc = dbzc io_dbzl = dbzl io_dbpa = dbpa io_dbwr = dbwr io_dbar = dbar io_dbft = dbft io_sgtext = sgtext changing io_headqu = headqu io_maxqu_tindx = maxqu_tindx io_headsg = headsg io_maxsg_tindx = maxsg_tindx exceptions others = 1.

RSAQ_LOCAL_FIELD call function 'RSAQ_LOCAL_FIELD' exporting i_mode = 'C' i_fieldname = space i_groupname = dbsa-numb importing o_changed = changeflag tables io_clogqu = clogqu io_dbop = dbop io_dbsn = dbsn io_dbfr = dbfr io_dblf = dblf io_dblc = dblc io_dbld = dbld io_dbse = dbse io_dbgr = dbgr io_dbli = dbli io_dbff = dbff io_dbfm = dbfm io_dbvh = dbvh io_dbvs = dbvs io_dbrh = dbrh io_dbrl = dbrl io_dbpt = dbpt io_dbct = dbct io_qutext = qutext io_clogsg = clogsg io_dbsa = dbsa io_dbsf = dbsf io_dbsg = dbsg io_dban = dban io_dbjt = dbjt io_dbjc = dbjc io_dbzt = dbzt io_dbzc = dbzc io_dbzl = dbzl io_dbpa = dbpa io_dbwr = dbwr io_dbar = dbar io_dbft = dbft io_sgtext = sgtext changing io_headqu = headqu io_maxqu_tindx = maxqu_tindx io_headsg = headsg io_maxsg_tindx = maxsg_tindx exceptions others = 1.

RSAQ_LOCAL_FIELD call function 'RSAQ_LOCAL_FIELD' exporting i_mode = 'U' i_fieldname = dblf-name i_groupname = space importing o_changed = changeflag tables io_clogqu = clogqu io_dbop = dbop io_dbsn = dbsn io_dbfr = dbfr io_dblf = dblf io_dblc = dblc io_dbld = dbld io_dbse = dbse io_dbgr = dbgr io_dbli = dbli io_dbff = dbff io_dbfm = dbfm io_dbvh = dbvh io_dbvs = dbvs io_dbrh = dbrh io_dbrl = dbrl io_dbpt = dbpt io_dbct = dbct io_qutext = qutext io_clogsg = clogsg io_dbsa = dbsa io_dbsf = dbsf io_dbsg = dbsg io_dban = dban io_dbjt = dbjt io_dbjc = dbjc io_dbzt = dbzt io_dbzc = dbzc io_dbzl = dbzl io_dbpa = dbpa io_dbwr = dbwr io_dbar = dbar io_dbft = dbft io_sgtext = sgtext changing io_headqu = headqu io_maxqu_tindx = maxqu_tindx io_headsg = headsg io_maxsg_tindx = maxsg_tindx exceptions others = 1.

RSAQHLI_HANDLE_LIST_ID call function 'RSAQHLI_HANDLE_LIST_ID' exporting hli_report = report importing hli_qlid = ql_id exceptions hli_no_lists = 1 hli_lock = 2.

RSAQ_SUBMIT_QUERY_REPORT call function 'RSAQ_SUBMIT_QUERY_REPORT' exporting queryreport = act_repid variante = headqu-quvariant exceptions only_with_variant = 1 variant_not_exist = 2 others = 3.

RSAQ_SUBMIT_QUERY_REPORT call function 'RSAQ_SUBMIT_QUERY_REPORT' exporting queryreport = act_repid variante = rs38r-variant exceptions only_with_variant = 1 variant_not_exist = 2 others = 3.

RSAQ_SUBMIT_QUERY_REPORT call function 'RSAQ_SUBMIT_QUERY_REPORT' exporting queryreport = act_repid variante = rs38r-variant exceptions variant_not_exist = 1 others = 2.

RS_VARIANT_SCREEN call function 'RS_VARIANT_SCREEN' exporting report = repid_var rname_visible = 'X' query = sys_variant importing variant = variant_var.

RSAQ_RENAME_QUICKVIEW call function 'RSAQ_RENAME_QUICKVIEW' exporting * workspace = usergroup = state=>usergroup oldname = rs38r-qnum newname = rs38r-cqnum exceptions quickview_locked = 1 not_found = 2 others = 3.

RSAQ_RENAME_QUERY call function 'RSAQ_RENAME_QUERY' exporting workspace = act_workspace usergroup = rs38r-bgnum old_query = rs38r-qnum new_query = rs38r-cqnum exceptions query_locked = 1 not_found = 2 cancelled = 3 others = 4.

RSAQSUG_SELECT_USERGROUP call function 'RSAQSUG_SELECT_USERGROUP' exporting sug_workspace = act_workspace sug_superuser = superuser sug_show_only = 'X' importing sug_usergroup = l_bgnum.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = 'Beenden der Query-Bearbeitung'(700) DIAGNOSE_OBJECT = 'BC_SRV_QUE_TXT_BEENDEN_QUERY' TEXT_QUESTION = 'Query vorher sichern?'(710) DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = 'X' * POPUP_TYPE = IMPORTING ANSWER = l_flag_q_to_save.

RSAQSFN_SELECT_FIELD_NAMES call function 'RSAQSFN_SELECT_FIELD_NAMES' importing sfn_cancel = pf3flag tables sfn_dbsf = dbsf sfn_sgtext = sgtext sfn_seldbsf = sel_dbsf.

RSAQSQU_SELECT_QUERY call function 'RSAQSQU_SELECT_QUERY' exporting squ_workspace = act_workspace squ_user_group_in = bgruppe squ_complete = 'X' squ_tcode = tcode importing squ_query_out = query squ_user_group_out = bgruppe squ_rcode = pf3flag.

SAP_QUERY_AD_HOC call function 'SAP_QUERY_AD_HOC' exporting i_workspace = ws_standard i_usergroup = dbbn-num i_query = l_qname.

SAP_QUERY_DEVELOPMENT call function 'SAP_QUERY_DEVELOPMENT' exporting i_usergroup = dbbn-num i_query = l_qname.




RSAQSQU_SELECT_QUERY call function 'RSAQSQU_SELECT_QUERY' exporting squ_workspace = act_workspace squ_user_group_in = bgruppe squ_complete = space squ_tcode = tcode squ_hflag = hflag importing squ_query_out = query squ_user_group_out = bgruppe squ_rcode = pf3flag.

RSAQ_WORKSPACE_HANDLER call function 'RSAQ_WORKSPACE_HANDLER' changing p_ws = act_workspace.

RS_VARIANT_CATALOG call function 'RS_VARIANT_CATALOG' exporting report = report importing sel_variant = variant exceptions others = 1.

DYNP_VALUES_READ call function 'DYNP_VALUES_READ' " Lesen der Feldwerte exporting dyname = 'SAPMS38R' dynumb = '0057' tables dynpfields = f4_feldtab.

RSAQ_QUICK_VIEW_USER_GROUP call function 'RSAQ_QUICK_VIEW_USER_GROUP' exporting i_workspace = ws_standard i_user = rs38r-bname i_read_only = c_true importing o_user_group = rs38r-prefx exceptions illegal_workspace = 1 illegal_user = 2 number_catalog_locked = 3 usergroup_catalog_locked = 4 no_user_group = 5 others = 6.

RSAQSQU_SELECT_QUERY call function 'RSAQSQU_SELECT_QUERY' exporting squ_workspace = ws_standard squ_user_group_in = rs38r-prefx squ_complete = space squ_tcode = 'SQ00' squ_hflag = 'X' importing squ_query_out = rs38r-qnum.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-j03 DIAGNOSE_OBJECT = 'BC_SRV_QUE_TXT_ZIELREP_EXIST' TEXT_QUESTION = text-j02 DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' START_COLUMN = 25 START_ROW = 6 * POPUP_TYPE = IMPORTING ANSWER = l_answer.

BP_JOB_DELETE call function 'BP_JOB_DELETE' exporting jobcount = i_job_numb jobname = i_job_name exceptions others = 0.



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