SAP Reports / Programs | Cross-Application Components | General Application Functions | Generating, Monitoring for Mass Data Archiving Solutions(CA-GTF-TS-GMA) SAP CA

AFX_WORKBENCHF04 SAP ABAP INCLUDE - FORMS: Processing Routines







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


Text pool values


Title: FORMS: Processing Routines


INCLUDES used within this REPORT AFX_WORKBENCHF04

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:

AFX_F4_OBJECT CALL FUNCTION 'AFX_F4_OBJECT' CHANGING c_object = c_afx_object EXCEPTIONS no_object_selected = 1 internal_error = 2 OTHERS = 3.

AFX_DB_OBJECT_GET CALL FUNCTION 'AFX_DB_OBJECT_GET' EXPORTING i_afx_object = l_object IMPORTING e_str_afx_object = c_str_object e_tab_object_tree_x = c_tab_object_tree_x EXCEPTIONS not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'AFX-Objekt anlegen'(001) text_question = l_text_question display_cancel_button = ' ' IMPORTING answer = l_answer.

POPUP_GET_VALUES_USER_CHECKED CALL FUNCTION 'POPUP_GET_VALUES_USER_CHECKED' EXPORTING formname = 'CB_CHECK_OBJECT_INSERT' popup_title = text-004 programname = l_repid IMPORTING returncode = l_answer TABLES fields = l_tab_fields EXCEPTIONS error_in_fields = 0 OTHERS = 0.

AFX_DB_TREEDEF_GET CALL FUNCTION 'AFX_DB_TREEDEF_GET' IMPORTING e_tab_treedef = l_tab_treedef EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_DB_OBJECT_TREE_INSERT CALL FUNCTION 'AFX_DB_OBJECT_TREE_INSERT' EXPORTING i_str_object = l_str_object i_str_objectt = l_str_objectt i_tab_treedef = l_tab_treedef EXCEPTIONS insert_failed = 1 OTHERS = 2.

AFX_DB_OBJECT_TREE_GET_X CALL FUNCTION 'AFX_DB_OBJECT_TREE_GET_X' EXPORTING i_afx_object = l_str_object-object IMPORTING e_tab_object_tree_x = c_tab_object_tree_x EXCEPTIONS not_found = 1 OTHERS = 2.

POPUP_GET_VALUES_USER_BUTTONS CALL FUNCTION 'POPUP_GET_VALUES_USER_BUTTONS' EXPORTING formname = 'CB_CHECK_OBJECT_DELETE' programname = l_repid popup_title = text-004 ok_pushbuttontext = 'Löschen'(007) icon_ok_push = l_icon IMPORTING returncode = l_answer TABLES fields = l_tab_fields EXCEPTIONS error_in_fields = 0 OTHERS = 0.

AFX_DB_OBJECT_IS_DELETABLE CALL FUNCTION 'AFX_DB_OBJECT_IS_DELETABLE' EXPORTING i_afx_object = l_object IMPORTING e_flg_is_deletable = l_flg_is_deletable EXCEPTIONS not_found = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'AFX-Objekt löschen'(006) text_question = l_text_question display_cancel_button = ' ' IMPORTING answer = l_answer.

AFX_DB_OBJECT_DATA_DELETE CALL FUNCTION 'AFX_DB_OBJECT_DATA_DELETE' EXPORTING i_object = l_object EXCEPTIONS delete_failed = 1 OTHERS = 2.

AFX_DB_OBJECT_TREE_DELETE CALL FUNCTION 'AFX_DB_OBJECT_TREE_DELETE' EXPORTING i_afx_object = l_object EXCEPTIONS delete_failed = 1 OTHERS = 2.

SWC_ELEMENT_SET * CALL FUNCTION 'SWC_ELEMENT_SET' * EXPORTING * element = 'AFX_OBJECT' * field = i_str_object-object * TABLES * container = l_tab_container * EXCEPTIONS * type_conflict = 1 * OTHERS = 2.

SWC_ELEMENT_SET * CALL FUNCTION 'SWC_ELEMENT_SET' * EXPORTING * element = 'AFX_OBJECT_TEXT' * field = i_str_object-objtext * TABLES * container = l_tab_container * EXCEPTIONS * type_conflict = 1 * OTHERS = 2.

AFX_DB_OBJECT_DATA_GET_LIST * CALL FUNCTION 'AFX_DB_OBJECT_DATA_GET_LIST' * EXPORTING * i_object = i_str_object-object * IMPORTING * e_tab_object_data = c_tab_object_data * EXCEPTIONS * not_found = 1 * OTHERS = 2.

AFX_DB_OBJECT_IDATA_GET_LIST * CALL FUNCTION 'AFX_DB_OBJECT_IDATA_GET_LIST' * EXPORTING * i_object = i_str_object-object * IMPORTING * e_tab_object_item_data = c_tab_object_idata * EXCEPTIONS * not_found = 0 * OTHERS = 0.

AFX_DB_OBJDATA_KEY_GET_LIST_X * CALL FUNCTION 'AFX_DB_OBJDATA_KEY_GET_LIST_X' * IMPORTING * e_tab_objdata_key_x = l_tab_objdata_key_x * EXCEPTIONS * not_found = 1 * OTHERS = 2.

AFX_DB_OBJDATA_TYP_GET_LIST_X * CALL FUNCTION 'AFX_DB_OBJDATA_TYP_GET_LIST_X' * IMPORTING * e_tab_objdata_typ_x = l_tab_objdata_typ_x * EXCEPTIONS * not_found = 1 * OTHERS = 2.

SWF_DOCUMENTATION_AS_HTML_GET





* CALL FUNCTION 'SWF_DOCUMENTATION_AS_HTML_GET' * EXPORTING * docu_object = 'AFX_OBJECT_DATA' * generate_hyperlink = ' ' * TABLES * container = l_tab_container * html_lines = l_tab_htmlline * EXCEPTIONS * documentation_not_found = 1 * OTHERS = 2.

AFX_DB_OBJECT_DATA_GET_LIST CALL FUNCTION 'AFX_DB_OBJECT_DATA_GET_LIST' EXPORTING i_object = i_str_object-object IMPORTING e_tab_object_data = l_tab_object_data EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_DB_OBJECT_IDATA_GET_LIST CALL FUNCTION 'AFX_DB_OBJECT_IDATA_GET_LIST' EXPORTING i_object = i_str_object-object IMPORTING e_tab_object_item_data = l_tab_object_idata EXCEPTIONS not_found = 0 OTHERS = 0.

AFX_DB_OBJDATA_KEY_GET_LIST_X CALL FUNCTION 'AFX_DB_OBJDATA_KEY_GET_LIST_X' IMPORTING e_tab_objdata_key_x = l_tab_objdata_key_x EXCEPTIONS not_found = 1 OTHERS = 2.

AFX_DB_OBJDATA_TYP_GET_LIST_X CALL FUNCTION 'AFX_DB_OBJDATA_TYP_GET_LIST_X' IMPORTING e_tab_objdata_typ_x = l_tab_objdata_typ_x EXCEPTIONS not_found = 1 OTHERS = 2.



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