SAP Reports / Programs

RSIWB_XML_IMPORT SAP ABAP Report - Check In XML Documents with Graphics/Entities from Front End into KW







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


Text pool values


Selection Text: P_T_NAME = Technical Name
Selection Text: P_TSTRUN = Test Run
Selection Text: P_STATUS = Status
Selection Text: P_RELEAS = Release
Selection Text: P_PHCL = PHIO Class
Selection Text: P_PERSON = Person Responsible
Selection Text: P_PATH = File Name
Selection Text: P_LOCL = LOIO Class
Selection Text: P_ICID = Icon ID
Selection Text: P_FOLDER = Folder ID
Selection Text: P_EXTENS = Enhancement
Selection Text: P_CFID = Config ID
Title: Check In XML Documents with Graphics/Entities from Front End into KW
Text Symbol: 031 = Relation to DTD LOIO not found
Text Symbol: 032 = Info object DTD LOIO not found
Text Symbol: 033 = Context resolution for DTD LOIO (&1 &2) failed
Text Symbol: 034 = Relation to CONFIG-PHIO not found
Text Symbol: 035 = Error when reading attributes of CONFIG PHIO (&1 &2)
Text Symbol: 036 = Error when reading CONFIG PHIO (&1 &2)
Text Symbol: 037 = Creation of LOIO (&1 &2) for main document failed
Text Symbol: 038 = Creation of PHIO (&1 &2) for main document failed
Text Symbol: 039 = Check-in of document (PHIO &1 &2) failed
Text Symbol: 040 = Creation of LOIO (&1 &2) for UNPARSED_OBJECT &3 failed
Text Symbol: 041 = Creation of PHIO(&1 &2) for UNPARSED_OBJECT &3 failed
Text Symbol: 042 = Storage of content (PHIO &1 &2) failed with sy-subrc: &3
Text Symbol: 043 = Required attribute &1 of PHIO class &2 not provided
Text Symbol: 044 = Error in entity resolution
Text Symbol: 045 = XML document not available (PHIO &1 &2)
Text Symbol: 046 = Import completed without errors
Text Symbol: 030 = Error during conversion to XSTRING (file &)
Text Symbol: 001 = Info Object Properties
Text Symbol: 002 = Info Object Class (LOIO, PHIO)
Text Symbol: 003 = Objects transferring from front end...
Text Symbol: 004 = Document resolution running...
Text Symbol: 005 = Storage in KPro running...
Text Symbol: 006 = Upload failed
Text Symbol: 007 = Errors:
Text Symbol: 008 = There is more than one config file below the DTD file





Text Symbol: 009 = More than one component found in config PHIO (&1 &2)
Text Symbol: 010 = Config file contains errors: Parser errors
Text Symbol: 011 = not found
Text Symbol: 012 = Invalid Parameters:
Text Symbol: 013 = L_ACCESS_INFO Has No Entries for CONFIG-PHIO (&1 &2)
Text Symbol: 014 = SAP Icon
Text Symbol: 015 = The required attribute &1 of LOIO class &2 is not provided
Text Symbol: 016 = LOIO of icons folder not found
Text Symbol: 017 = PHIO of icons folder not found
Text Symbol: 018 = KW Icons Cannot Be Loaded
Text Symbol: 019 = Icon & Added
Text Symbol: 020 = New version of PHIO (&1 &2) cannot be created
Text Symbol: 021 = New PHIO:
Text Symbol: 022 = DMWB Error with Class &
Text Symbol: 023 = For more error messages, see the application log (SLG1)
Text Symbol: 024 = Serious error occurred for entity reference &
Text Symbol: 025 = Error Occurred in CONFIG Processing
Text Symbol: 026 = Error occurred in document processing
Text Symbol: 027 = Parameter ''Config-ID'' not found in CONFIG
Text Symbol: 028 = Error in attribute determination for class &
Text Symbol: 029 = Error in document processing (application of CONFIG rules)


INCLUDES used within this REPORT RSIWB_XML_IMPORT

INCLUDE IWBCONST.


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:

SDOK_LOG_MESSAGE call function 'SDOK_LOG_MESSAGE' exporting * subobject = 'XML_IMPORT' msgty = 'E' msgid = '1R' msgno = '401' msgv1 = g_message(50) msgv2 = g_message+50(50) msgv3 = g_message+100(50) msgv4 = g_message+150(50) msg_probclass = '2'.

SDOK_LOG_WRITE_TO_DB call function 'SDOK_LOG_WRITE_TO_DB'.

APPL_LOG_DISPLAY call function 'APPL_LOG_DISPLAY' exporting object = sdoki_al_object DATE_FROM = g_start_date TIME_FROM = g_start_time * DATE_TO = SY-DATUM * TIME_TO = SY-UZEIT * TITLE_SELECTION_SCREEN = ' ' * TITLE_LIST_SCREEN = ' ' * COLUMN_SELECTION = '11112221122 ' suppress_selection_dialog = 'X' exceptions others = 1.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = 0 text = 'Objekte werden vom Frontend übertragen...'(003).

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = 30 text = 'Dokument-Auflösung läuft...'(004).

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = 70 text = 'Speichern im KPro läuft...'(005).

IW_C_PH_CLASS_VSP_GET CALL FUNCTION 'IW_C_PH_CLASS_VSP_GET' EXPORTING IV_CLASS = p_phio-class * IV_UPLOAD_DOWNLOAD = 'U' IMPORTING EV_VSP_NAME = lv_VSP_NAME.

SCMS_BINARY_TO_XSTRING





call function 'SCMS_BINARY_TO_XSTRING' exporting input_length = l_size importing buffer = p_xstr tables binary_tab = l_data_table[] exceptions others = 1.

SDOK_CLASS_TO_RELATIONS_GET call function 'SDOK_CLASS_TO_RELATIONS_GET' exporting class = p_class relation_class = sdoki_recl_dtd_model tables result = l_dtd_models[] exceptions others = 1.

SDOK_LOIO_PHYSICAL_OBJECT_GET call function 'SDOK_LOIO_PHYSICAL_OBJECT_GET' exporting object_id = l_dtd_loio importing physical_object = l_dtd_phio tables context = l_context[] * phio_properties = exceptions others = 1.

SDOK_PHIO_FROM_RELATIONS_GET call function 'SDOK_PHIO_FROM_RELATIONS_GET' exporting object_id = l_dtd_phio relation_class = sdoki_recl_fragment_config tables result = l_configs[] exceptions others = 1.

SDOK_PHIOS_FILE_PROPERTIES_GET call function 'SDOK_PHIOS_FILE_PROPERTIES_GET' tables components = l_components[] bad_objects = l_bad_objects[].

SDOK_PHIO_LOAD_CONTENT call function 'SDOK_PHIO_LOAD_CONTENT' exporting object_id = l_config_phio raw_mode = 'X' tables file_access_info = l_access_infos[] file_content_binary = l_config_table[] exceptions others = 1.

SCMS_BINARY_TO_XSTRING call function 'SCMS_BINARY_TO_XSTRING' exporting input_length = l_size importing buffer = l_cf_xstr tables binary_tab = l_config_table[] exceptions others = 1.

IW_C_PH_CLASS_VSP_GET CALL FUNCTION 'IW_C_PH_CLASS_VSP_GET' IMPORTING EV_VSP_NAME = lv_VSP_NAME.

SDOK_UNIQUE_ID_GET call function 'SDOK_UNIQUE_ID_GET' importing unique_id = l_guid.

SDOK_LOIO_CREATE call function 'SDOK_LOIO_CREATE' exporting object_class = p_loio-class object_unique_id = p_loio-objid tables properties = p_loio_attrs[] exceptions others = 1.

SDOK_PHIO_CREATE call function 'SDOK_PHIO_CREATE' exporting object_class = p_phio-class object_unique_id = p_phio-objid tables properties = p_phio_attrs[] to_relations = l_relations[] exceptions others = 1.

IW_C_PH_CLASS_VSP_GET CALL FUNCTION 'IW_C_PH_CLASS_VSP_GET' EXPORTING IV_CLASS = p_phio-class * IV_UPLOAD_DOWNLOAD = 'U' IMPORTING EV_VSP_NAME = lv_VSP_NAME.

SDOK_PHIO_XML_SAVE call function 'SDOK_PHIO_XML_SAVE' exporting phio_id = p_phio loio_id = p_loio component = l_component content = l_doc_xstr xml_mode = 'FEUH' VSCAN_PROFILE = lv_VSP_NAME exceptions not_existing = 1 bad_properties = 2 missing_properties = 3 bad_relations = 4 not_authorized = 5 exception_in_exit = 6 no_structure = 7 xml_error = 8 BLOCKED_BY_POLICY = 9 others = 10.

SDOK_LOIO_CREATE call function 'SDOK_LOIO_CREATE' exporting object_class = l_loio-class object_unique_id = l_loio-objid tables properties = l_loio_attrs[] exceptions others = 1.

SDOK_PHIO_CREATE call function 'SDOK_PHIO_CREATE' exporting object_class = l_phio-class object_unique_id = l_phio-objid tables properties = l_phio_attrs[] to_relations = l_relations[] exceptions others = 1.

SCMS_XSTRING_TO_BINARY call function 'SCMS_XSTRING_TO_BINARY' exporting buffer = l_unparsed_entry-xstring importing output_length = l_size tables binary_tab = l_bin_table[].

IW_C_PH_CLASS_VSP_GET CALL FUNCTION 'IW_C_PH_CLASS_VSP_GET' EXPORTING IV_CLASS = l_phio-class * IV_UPLOAD_DOWNLOAD = 'U' IMPORTING EV_VSP_NAME = lv_VSP_NAME.

SDOK_PHIO_STORE_CONTENT call function 'SDOK_PHIO_STORE_CONTENT' exporting object_id = l_phio VSCAN_PROFILE = lv_VSP_NAME tables file_access_info = l_file_info_table[] file_content_binary = l_bin_table[] exceptions NOT_EXISTING = 1 NOT_ALLOWED = 2 NOT_AUTHORIZED = 3 NO_CONTENT = 4 BAD_STORAGE_TYPE = 5 BLOCKED_BY_POLICY = 6 others = 7.

IW_C_PH_CLASS_VSP_GET CALL FUNCTION 'IW_C_PH_CLASS_VSP_GET' EXPORTING IV_CLASS = l_phio_icon-class * IV_UPLOAD_DOWNLOAD = 'U' IMPORTING EV_VSP_NAME = lv_VSP_NAME.

SDOK_LOIO_ATTRIBUTES_GET call function 'SDOK_LOIO_ATTRIBUTES_GET' exporting class = p_loio-class tables attributes = l_class_attrs[] exceptions others = 0.




SDOK_PHIO_ATTRIBUTES_GET call function 'SDOK_PHIO_ATTRIBUTES_GET' exporting class = p_phio-class tables attributes = l_class_attrs[] exceptions others = 0.

IW_C_CONTEXT_SET call function 'IW_C_CONTEXT_SET' exporting iwb_state = l_status release = l_release industry = l_extension refresh_context = space tables context = p_phio_attrs[].

IWB_XML_IO_LOIO_ATTRS_CHANGE call function 'IWB_XML_IO_LOIO_ATTRS_CHANGE' exporting object_id = p_loio root_id = p_root_loio xml_properties = l_xml_attrs[] changing properties = p_loio_attrs[] exceptions others = 0.

IWB_XML_IO_PHIO_ATTRS_CHANGE call function 'IWB_XML_IO_PHIO_ATTRS_CHANGE' exporting object_id = p_phio root_id = p_root_phio xml_properties = l_xml_attrs[] changing properties = p_phio_attrs[] exceptions others = 0.

IW_C_EDIT_PROCESS_INFO_GET call function 'IW_C_EDIT_PROCESS_INFO_GET' exporting edit_process = p_edit_process loio_class = p_loio_class importing error_msg = l_err_msg tables objects = l_oepp_objects[].

SDOK_LOIO_PHYSICAL_OBJECT_GET call function 'SDOK_LOIO_PHYSICAL_OBJECT_GET' exporting object_id = l_loio importing physical_object = p_phio tables context = l_context[] exceptions others = 1.

SDOK_PHIO_LOAD_CONTENT call function 'SDOK_PHIO_LOAD_CONTENT' exporting object_id = p_phio tables file_access_info = p_components[] file_content_binary = p_binaries[] exceptions others = 1.

SCMS_XSTRING_TO_BINARY call function 'SCMS_XSTRING_TO_BINARY' exporting buffer = l_xstring append_to_table = 'X' importing output_length = l_length tables binary_tab = p_binaries[].

SDOK_PHIO_STORE_NEW_VERSION call function 'SDOK_PHIO_STORE_NEW_VERSION' exporting object_id = p_phio VSCAN_PROFILE = iv_VSP_NAME importing new_object_id = l_phio_new tables file_access_info = p_components[] file_content_binary = p_binaries[] exceptions others = 1.

SDOK_CLASS_PROPERTIES_SET call function 'SDOK_CLASS_PROPERTIES_SET' exporting class = p_locl tables properties = l_properties[] exceptions others = 1.

SDOK_CLASS_PROPERTIES_SET call function 'SDOK_CLASS_PROPERTIES_SET' exporting class = p_phcl tables properties = l_properties[] exceptions others = 1.

SDOK_M_IOCL_TABULATION_GET call function 'SDOK_M_IOCL_TABULATION_GET' exporting class = l_folder_class tables tabulation = l_tabulation[] exceptions others = 1.

SDOK_M_ENTS_MSPC_GET call function 'SDOK_M_ENTS_MSPC_GET' tables entities = l_entities[] entsmspc = l_modelspaces[].

IW_C_EXTENSION_GET call function 'IW_C_EXTENSION_GET' exporting extension_id = l_extension extension_release = l_release exceptions others = 1.



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