SAP Reports / Programs | Environment, Health and Safety | Basic Data and Tools(EHS-BD) SAP EHS

REHSBCW_ACR_ALE_PHRMAS_CHECK SAP ABAP INCLUDE - REHSBCWACRALEPHRMASCHECK







REHSBCW_ACR_ALE_PHRMAS_CHECK 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 REHSBCW_ACR_ALE_PHRMAS_CHECK 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 REHSBCW_ACR_ALE_PHRMAS_CHECK. "Basic submit
SUBMIT REHSBCW_ACR_ALE_PHRMAS_CHECK AND RETURN. "Return to original report after report execution complete
SUBMIT REHSBCW_ACR_ALE_PHRMAS_CHECK 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 REHSBCW_ACR_ALE_PHRMAS_CHECK

INCLUDE CBUI01.
INCLUDE CBUI07.


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:

C147_JOKER_SAP_TO_SQL CALL FUNCTION 'C147_JOKER_SAP_TO_SQL' EXPORTING i_srcstr = lv_phrid IMPORTING e_dststr = lv_phrid.

C147_JOKER_SAP_TO_SQL CALL FUNCTION 'C147_JOKER_SAP_TO_SQL' EXPORTING i_srcstr = lv_catpin IMPORTING e_dststr = lv_catpin.

BAPI_BUS1091_GETLIST CALL FUNCTION 'BAPI_BUS1091_GETLIST' EXPORTING phrase = '*' catalogue = lv_catpin TABLES return = lt_return phrase_list = lt_phrase_list.

RFC_READ_TABLE CALL FUNCTION 'RFC_READ_TABLE' DESTINATION lv_dest_rfc EXPORTING query_table = 'ESTPS' TABLES fields = lt_fields data = lt_data EXCEPTIONS table_not_available = 1 table_without_data = 2 option_not_valid = 3 field_not_valid = 4 not_authorized = 5 data_buffer_exceeded = 6 OTHERS = 7.

FREE_SELECTIONS_RANGE_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE' EXPORTING field_ranges = lt_field_ranges IMPORTING where_clauses = lt_where_clauses.

C147_JOKER_SAP_TO_SQL CALL FUNCTION 'C147_JOKER_SAP_TO_SQL' EXPORTING i_srcstr = lv_catpin IMPORTING e_dststr = lv_catpin.

RFC_READ_TABLE CALL FUNCTION 'RFC_READ_TABLE' DESTINATION lv_dest_rfc EXPORTING query_table = 'ESTPH' TABLES OPTIONS = lt_sel_tab fields = lt_fields data = lt_data EXCEPTIONS table_not_available = 1 table_without_data = 2 option_not_valid = 3 field_not_valid = 4 not_authorized = 5 data_buffer_exceeded = 6 OTHERS = 7.

BAPI_BUS1091_GETLIST CALL FUNCTION 'BAPI_BUS1091_GETLIST' DESTINATION lv_dest_rfc_param-value EXPORTING phrase = '*' catalogue = lv_ctpn_src TABLES return = lt_return phrase_list = lt_phrase_list_src.

BAPI_BUS1091_GETDETAIL CALL FUNCTION 'BAPI_BUS1091_GETDETAIL' EXPORTING scenario = espap_info_only_scenario flg_phrase_header = true flg_phrase_text = true flg_phrase_references = true flg_phrase_selectionset = true flg_selectionset = true TABLES return = lt_return phrase_header = lt_phr_head phrase_text = lt_phr_text phrase_references = lt_phrase_ref phrase_selectionset = lt_phr_sect selectionset = lt_selectionset.

BAPI_BUS1091_GETDETAIL CALL FUNCTION 'BAPI_BUS1091_GETDETAIL' DESTINATION i_dest_rfc EXPORTING scenario = espap_info_only_scenario flg_phrase_header = true flg_phrase_text = true flg_phrase_references = true flg_phrase_selectionset = true flg_selectionset = false TABLES return = lt_return phrase_header = lt_phr_head_src phrase_text = lt_phr_text_src "#EC ENHOK phrase_references = lt_phrase_ref_src phrase_selectionset = lt_phr_sect_src.

C146_PHRASE_KEY_BUILD CALL FUNCTION 'C146_PHRASE_KEY_BUILD' EXPORTING i_catpin = ls_phrase_header-phrlib i_phrid = ls_phrase_header-phrase IMPORTING e_phrkey = lv_objectkey.



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