IMPORT_FROM_ZIP SAP Method Import test cases from a ZIP-file









Below is documentation, parameters and attributes of ABAP Method IMPORT_FROM_ZIP within SAP class IF_FDT_TEST_TOOL. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_FDT_TEST_TOOL into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method IMPORT_FROM_ZIP can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method IMPORT_FROM_ZIP

.

NameTypeData TypeDescriptionDefault Value
IV_FILTER_FUNCTION_IDImportingTYPE
IF_FDT_TYPES=>ID
Restrict import to a specific function
IV_MODEImportingTYPE
IMPORT_MODE
Import mode
IV_TARGET_FUNCTION_IDImportingTYPE
IF_FDT_TYPES=>ID
Try to import to target function
IV_ZIPImportingTYPE
XSTRING
ZIP-file content
ETS_TEST_CASEExportingTYPE
TS_TEST_CASE
Imported Test Cases
ETS_TEST_CASE_FAILExportingTYPE
TS_TEST_CASE
Test Cases that could not be imported
ET_MESSAGEExportingTYPE
IF_FDT_TYPES=>T_MESSAGE
Messages



Exceptions of Method IMPORT_FROM_ZIP

CX_FDT - FDT: Abstract Exception Class

Example ABAP coding


DATA: lo_class TYPE REF TO IF_FDT_TEST_TOOL.
DATA: lv_ETS_TEST_CASE TYPE TS_TEST_CASE,
lv_ETS_TEST_CASE_FAIL TYPE TS_TEST_CASE,
lv_ET_MESSAGE TYPE IF_FDT_TYPES=>T_MESSAGE,
lv_IV_FILTER_FUNCTION_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_MODE TYPE IMPORT_MODE,
lv_IV_TARGET_FUNCTION_ID TYPE IF_FDT_TYPES=>ID,
lv_IV_ZIP TYPE XSTRING,
lv_other TYPE c.

CALL METHOD lo_class=>IMPORT_FROM_ZIP(
EXPORTING
IV_FILTER_FUNCTION_ID = lv_IV_FILTER_FUNCTION_ID
IV_MODE = lv_IV_MODE
IV_TARGET_FUNCTION_ID = lv_IV_TARGET_FUNCTION_ID
IV_ZIP = lv_IV_ZIP
IMPORTING
ETS_TEST_CASE = lv_ETS_TEST_CASE
ETS_TEST_CASE_FAIL = lv_ETS_TEST_CASE_FAIL
ET_MESSAGE = lv_ET_MESSAGE ).

Links to Related Class(s)

IF_FDT_T...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!