SAP Reports / Programs

TFW_GEN_BO_KEYMAP_TABLE SAP ABAP Report - Generate Key-map Table for a Business Object







TFW_GEN_BO_KEYMAP_TABLE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to configure a business object that has multiple primary keys for tagging by generating a key-map table...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 TFW_GEN_BO_KEYMAP_TABLE 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

TFWKEYGEN - Generate Table for Key Values


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


Text pool values


Title: Generate Key-map Table for a Business Object
Text Symbol: G03 = Test Mode
Text Symbol: G02 = Transport Details
Text Symbol: G01 = Input Information
Text Symbol: 028 = cannot be created due to errors
Text Symbol: 027 = has been created successfully
Text Symbol: 026 = Table:
Text Symbol: 025 = Business Object Name:
Text Symbol: 023 = Invalid development class; Enter a development class that can be changed
Text Symbol: 022 = Invalid development class; Enter a development class that is transportable
Text Symbol: 021 = Invalid development class; Enter a valid development class
Text Symbol: 020 = Table not created. BO contains only one Primary Key
Text Symbol: 018 = Invalid input; Enter the Business Object name
Text Symbol: 017 = Data Element
Text Symbol: 016 = Key
Text Symbol: 015 = Field
Text Symbol: 014 = Table Name:
Text Symbol: 013 = Structure of the Generated Table:
Text Symbol: 012 = Invalid input; Enter the Development Class/Transport Request
Text Symbol: 011 = Key Mapping Table for Tagging
Text Symbol: 007 = Preview the Key-Map Table
Text Symbol: 006 = Transport Request
Text Symbol: 005 = Development Class
Text Symbol: 004 = Generate Transportable Table
Text Symbol: 003 = *Note - Enter the BO for which the BO Key Map needs to be generated
Text Symbol: 002 = Business Object Name


INCLUDES used within this REPORT TFW_GEN_BO_KEYMAP_TABLE

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:

SWO_OBJTYPE_EXIST CALL FUNCTION 'SWO_OBJTYPE_EXIST' EXPORTING objtype = lv_objtype EXCEPTIONS objtype_not_found = 1 OTHERS = 2.

TRINT_DEVCLASS_GET CALL FUNCTION 'TRINT_DEVCLASS_GET' EXPORTING iv_devclass = pv_dev IMPORTING es_tdevc = ls_tdevc EXCEPTIONS devclass_not_found = 1.

TRINT_CHECK_DU_EDIT CALL FUNCTION 'TRINT_CHECK_DU_EDIT' EXPORTING iv_devclass = pv_dev EXCEPTIONS no_du_changeable = 1.

TR_REQUEST_CHOICE CALL FUNCTION 'TR_REQUEST_CHOICE' EXPORTING iv_suppress_dialog = abap_true iv_request_types = '*' iv_request = pv_tr iv_no_owner_check = abap_true iv_lock_objects = abap_true it_e071 = lt_e071 EXCEPTIONS invalid_request = 1 invalid_request_type = 2 user_not_owner = 3 no_objects_appended = 4 enqueue_error = 5 recursive_call = 7 OTHERS = 8.

SWO_QUERY_KEYFIELDS CALL FUNCTION 'SWO_QUERY_KEYFIELDS' EXPORTING objtype = lv_objtype TABLES info = lt_info.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = ls_info-refstruct fieldname = ls_info-reffield langu = sy-langu TABLES dfies_tab = lt_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = ' ' wi_tadir_pgmid = ls_tadir_imp-pgmid wi_tadir_object = ls_tadir_imp-object wi_tadir_obj_name = ls_tadir_imp-obj_name wi_tadir_author = sy-uname wi_tadir_devclass = iv_dev_class wi_set_genflag = 'X' EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = 'X' wi_tadir_pgmid = ls_tadir_imp-pgmid wi_tadir_object = ls_tadir_imp-object wi_tadir_obj_name = ls_tadir_imp-obj_name wi_tadir_devclass = iv_dev_class EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25.

DDIF_TABL_PUT CALL FUNCTION 'DDIF_TABL_PUT' EXPORTING name = ls_table_head-tabname dd02v_wa = ls_table_head dd09l_wa = ls_tabl_tech TABLES dd03p_tab = lt_struc_field EXCEPTIONS tabl_not_found = 1 name_inconsistent = 2 tabl_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6.

DDIF_TABL_ACTIVATE CALL FUNCTION 'DDIF_TABL_ACTIVATE' EXPORTING name = lv_dobjname auth_chk = abap_false EXCEPTIONS not_found = 1 put_failure = 2 OTHERS = 3.

TR_READ_REQUEST CALL FUNCTION 'TR_READ_REQUEST' EXPORTING iv_read_e070 = abap_true iv_trkorr = pv_tr CHANGING cs_request = ls_request EXCEPTIONS error_occured = 1 no_authorization = 2 OTHERS = 3.

TR_REQ_CHECK_OBJECT CALL FUNCTION 'TR_REQ_CHECK_OBJECT' EXPORTING is_object = ls_e071 is_request_header = ls_request_hdr iv_dialog = abap_false iv_release_checks = abap_false EXCEPTIONS invalid_request = 1 invalid_syntax = 2 invalid_object = 3 invalid_transport_properties = 4 invalid_locks = 5 wrong_call = 6 OTHERS = 7.



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