/SAPSRM/TEST_TOOL_PROGRAM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for SRM Test Tool : You can use the SRM Test Tool to create SRM ánd Backend documents and associated follow-on documents and to display existing documents with document flow...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 /SAPSRM/TEST_TOOL_PROGRAM into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
/SAPSRM/TEST_TOOL - SRM Test Tool - Start
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.
Selection Text: S_VAR = Variant
Selection Text: SRMDOC = SRM Document number
Selection Text: SC_DATUM = Document creation date
Selection Text: PDO = with PDO Layer (SRM 6.0)
Selection Text: MERKEN = Park
Selection Text: FOLGEPO = Backend document number
Selection Text: DIS_BUS = Business Object
Selection Text: DESCRP = Description
Selection Text: DEBUGGEN = Debugging mode
Selection Text: CLEAN = Cleaner/Status start
Title: SRM Test Tool Program
Text Symbol: PR2 = in the productiv system?
Text Symbol: PRK = only park
Text Symbol: PRP = User &1 confirmed to create documents with Test Tool in PRD system
Text Symbol: PRT = Test in productive system
Text Symbol: REJ = Rejected
Text Symbol: REL = Released
Text Symbol: RFX = Display RFx
Text Symbol: RTP = With WFL
Text Symbol: SHC = Shopping Cart test
Text Symbol: SHO = SRM documents display
Text Symbol: STA = Stat
Text Symbol: TEM = Template
Text Symbol: TRB = Trans to B
Text Symbol: TRE = Transfer E
Text Symbol: WFL = Workflow Testing
Text Symbol: APP = In Approv.
Text Symbol: CLE = Start cleaner
Text Symbol: COM = Complete
Text Symbol: COR = To be cor.
Text Symbol: CRE = Create Document
Text Symbol: CRT = Created
Text Symbol: CTL = Control
Text Symbol: CTR = Display Contract
Text Symbol: DBE = Delete BE
Text Symbol: DBR = Del. ERROR
Text Symbol: DEB = Debugging mode
Text Symbol: DEL = Deleted
INCLUDE BBP_PD_CON.
No SAP DATABASE tables are accessed within this REPORT code!
BBP_PROCDOC_RESET_BUFFER CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = local_system EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_object_id = itab-sc_nr IMPORTING e_header = lt_e_header TABLES e_item = gt_item.
BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_object_id = itab-ctr_nr IMPORTING e_header = ls_ctr_header TABLES e_item = gt_ctr_item.
BBP_PD_PO_GETDETAIL CALL FUNCTION 'BBP_PD_PO_GETDETAIL' EXPORTING i_object_id = itab-belnr IMPORTING e_header = ls_po_header TABLES e_item = gt_po_item.
BBP_PD_BID_GETDETAIL CALL FUNCTION 'BBP_PD_BID_GETDETAIL' EXPORTING i_object_id = itab-bid_nr IMPORTING e_header = gs_bid_header TABLES e_item = gt_bid_items.
BBP_PD_QUOT_GETDETAIL CALL FUNCTION 'BBP_PD_QUOT_GETDETAIL' EXPORTING i_object_id = lv_ang_nr IMPORTING e_header = gs_quot_header TABLES e_item = gt_quot_items.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = percent text = itab-variante.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_object_id = itab-sc_nr IMPORTING e_header = lt_e_header TABLES e_item = gt_item.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_object_id = itab-sc_nr IMPORTING e_header = lt_e_header TABLES e_item = gt_item.
BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_object_id = s_ctr-low i_with_itemdata = 'X' IMPORTING e_header = ls_ctr_header TABLES e_item = lt_ctr_item.
POPUP_DISPLAY_MESSAGE CALL FUNCTION 'POPUP_DISPLAY_MESSAGE' EXPORTING * TITEL = msgid = '/SAPDMC/LSMW_OBJ_010' msgty = 'W' msgno = '004'.
BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING i_object_type = dis_bus i_description = descrp i_create_date = sc_datum i_with_closed = 'X' i_without_company_check = 'X' TABLES e_pdlist = lt_pdlist e_messages = le_messages.
BBP_PD_PO_GETDETAIL CALL FUNCTION 'BBP_PD_PO_GETDETAIL' EXPORTING i_object_id = folgepo1 TABLES e_header_rel = lt_e_header_rel.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING i_guid = ls_e_header_rel-guid_a IMPORTING e_header = lt_e_header.
BBP_PD_OBJREL_READ_VIA_REF CALL FUNCTION 'BBP_PD_OBJREL_READ_VIA_REF' EXPORTING iv_objectkey = folgepo TABLES et_header = lt_be_header.
BBP_PD_OBJREL_READ_VIA_REF CALL FUNCTION 'BBP_PD_OBJREL_READ_VIA_REF' EXPORTING iv_objectkey = folgepo iv_object_type = 'BUS2105' TABLES et_header = lt_be_header.
RH_MESSAGE_GET CALL FUNCTION 'RH_MESSAGE_GET' EXPORTING arbgb = lv_arbgb msgnr = lv_msgnr msgv1 =
-msgv1 msgv2 = -msgv2 msgv3 = -msgv3 msgv4 = -msgv4 IMPORTING msgtext = -message EXCEPTIONS message_not_found = 1 "#EC NEEDED OTHERS = 2. "#EC NEEDED
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gc_progid i_structure_name = '/SAPSRM/TT_BBP_PDS_MESSAGES' i_client_never_display = 'X' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = v_repid * i_callback_pf_status_set = 'SET_STATUS' " leh 070813 * i_callback_user_command = 'USER_COMMAND' " leh 070813 is_layout = layout it_fieldcat = fieldcat i_save = 'X' TABLES t_outtab = gt_messages EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = v_repid i_internal_tabname = 'ITAB' i_client_never_display = 'X' i_inclname = '/SAPSRM/TEST_TOOL_PROG_TOP' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = v_repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = layout it_fieldcat = fieldcat i_save = 'X' TABLES t_outtab = itab EXCEPTIONS program_error = 1 OTHERS = 2.
BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_object_id = lv_obj_id i_object_type = lv_obj_type IMPORTING e_header = es_header.
/SAPSRM/TT_WFL_OLD CALL FUNCTION '/SAPSRM/TT_WFL_OLD' EXPORTING sc_nr = itab-sc_nr debuggen = debuggen.
BBP_PD_CTR_RESET_BUFFER CALL FUNCTION 'BBP_PD_CTR_RESET_BUFFER'.
BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_object_id = itab-ctr_nr i_with_itemdata = 'X' IMPORTING e_header = ls_ctr_header TABLES e_item = lt_ctr_item.
BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING i_item_ext_demid = lv_ext_demid TABLES e_pdlist = lt_e_pdlist e_messages = lt_message.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = local_system EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.
OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = local_system EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2.
SALI_MT_GET_TID_BY_NAME CALL FUNCTION 'SALI_MT_GET_TID_BY_NAME' EXPORTING mt_full_name = wa_monitor IMPORTING tid = wa_tid EXCEPTIONS unable_to_expand_name = 1 name_not_found = 2 communication_failure = 3 other_problem = 4 internal_error = 5 wrong_segment = 6 internal_failure_sals = 7 OTHERS = 8.
CALL FUNCTION 'SALC_MT_GET_AID_BY_TID' TABLES tid = lt_tid tid_rc_tidaid = lt_aid.
SALR_AL_READ_ALERT_BY_AID CALL FUNCTION 'SALR_AL_READ_ALERT_BY_AID' TABLES aid = lt_aids alerts_salr = lt_alerts.
BBP_MESSAGE_READ CALL FUNCTION 'BBP_MESSAGE_READ' EXPORTING i_msgid = it_messages-msgid i_msgno = it_messages-msgno IMPORTING e_message_text = it_messages-message.
BBP_PDH_MESSAGE_CONVERT CALL FUNCTION 'BBP_PDH_MESSAGE_CONVERT' EXPORTING i_message = it_messages IMPORTING e_message_text = lv_message.
BBP_PROCDOC_CHECK CALL FUNCTION 'BBP_PROCDOC_CHECK' EXPORTING i_guid = lv_hguid TABLES e_messages = lte_messages.
BBP_PD_SC_RESET_BUFFER CALL FUNCTION 'BBP_PD_SC_RESET_BUFFER'.
BBP_PD_SC_GETDETAIL CALL FUNCTION 'BBP_PD_SC_GETDETAIL' EXPORTING * I_GUID = i_object_id = itab-sc_nr * I_ATTACH_WITH_DOC = ' ' i_with_itemdata = 'X' IMPORTING e_header = ls_header * EV_IS_PD = et_attach = let_attach TABLES e_item = gt_item e_account = let_account e_partner = let_partner * E_CONFIRM = e_longtext = let_logtext e_limit = let_limit e_orgdata = let_orgdata e_tax = let_tax * E_PRIDOC = * E_MESSAGES = * E_ACTVAL = * E_ACC_ACTVAL = * E_HEADER_REL = * E_ITMLIM_REL = e_status = le_status.
BBP_PD_SC_TRANSFER_MULTI CALL FUNCTION 'BBP_PD_SC_TRANSFER_MULTI' EXPORTING is_transfer_action = ls_transfer_action iv_object_type = c_po it_attach = let_attach TABLES it_header = sc_header it_item = sc_item it_account = let_account it_partner = let_partner it_longtext = let_logtext it_status = le_status it_limit = let_limit it_org = let_orgdata it_tax = let_tax it_pridoc = let_pridoc it_doc_descr = let_doc_descr ct_reflist = ct_reflist et_messages = let_messages * ET_HEADER = * ET_ITEM = .
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = v_repid i_internal_tabname = 'ITAB' i_client_never_display = 'X' i_inclname = '/SAPSRM/TEST_TOOL_PROG_TOP' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING it_fieldcat = fieldcat.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' info = text-i01 IMPORTING result = gv_icon_space EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' info = text-i01 IMPORTING result = gv_icon_green EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_YELLOW' info = text-i02 IMPORTING result = gv_icon_yellow EXCEPTIONS OTHERS = 0.
ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_RED' info = text-i03 IMPORTING result = gv_icon_red EXCEPTIONS OTHERS = 0.
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 /SAPSRM/TEST_TOOL_PROGRAM or its description.
/SAPSRM/TEST_TOOL_PROGRAM - SRM Test Tool Program /SAPSRM/TEST_TOOL_PROGRAM - SRM Test Tool Program /SAPSRM/TEST_DATA_UPLOAD - SRM Test Tool: Upload Program for Test Data /SAPSRM/TEST_DATA_UPLOAD - SRM Test Tool: Upload Program for Test Data /SAPSRM/SW_ACTIVATION - Activate Switches /SAPSRM/SW_ACTIVATION - Activate Switches