SAP Reports / Programs | Material Categories | Defense Forces and Public Security | Material Categories(IS-DFS-OF-MPO) SAP IS

/ISDFPS/MPO_DATA_MIG SAP ABAP Report - Data Migration for iPPE Workbench







/ISDFPS/MPO_DATA_MIG is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to transfer material planning object data from a non-SAP system to the system, so that it is available in the Authorized Materials and Material Packages application...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 /ISDFPS/MPO_DATA_MIG 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

/ISDFPS/MPO_MIG - Migration Data for iPPE Workbench


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 /ISDFPS/MPO_DATA_MIG. "Basic submit
SUBMIT /ISDFPS/MPO_DATA_MIG AND RETURN. "Return to original report after report execution complete
SUBMIT /ISDFPS/MPO_DATA_MIG 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: DOCONLY = D .
Selection Text: RELEASE = Release Documents
Selection Text: MODELL = Create Models
Selection Text: MATV = Material Owners
Selection Text: KLASS = Classify Nodes
Selection Text: DELETE = Delete Classification
Selection Text: CONDOC = Link Node with Document
Title: Data Migration for iPPE Workbench
Text Symbol: 080 = Create Models
Text Symbol: 081 = Subscribing Org.Area
Text Symbol: 082 = Delta Filling
Text Symbol: 083 = Matl Group Material No. and Nodes Not Same
Text Symbol: 084 = Alternative does not exist, deletion not possible
Text Symbol: 085 = Alternative already exist, delete first
Text Symbol: 086 = Reading from Database Server
Text Symbol: 087 = Read from Front End
Text Symbol: 088 = Migration Run Starting, Run No.:
Text Symbol: 089 = Read Data
Text Symbol: 090 = Material Owner
Text Symbol: 091 = Start migration
Text Symbol: 092 = No errors found during processing
Text Symbol: 093 = There were errors and warnings - see log
Text Symbol: 079 = Delete
Text Symbol: 078 = Transfer Components
Text Symbol: 077 = Status Not Approved
Text Symbol: 076 = No Status Entry To Determine
Text Symbol: 075 = Delete
Text Symbol: 074 = For long text maintenence, second text field must not be filled
Text Symbol: 073 = Maint. Long Text
Text Symbol: 072 = Maintain Node Texts
Text Symbol: 071 = Error when creating material owner
Text Symbol: 070 = Material Owner Not in Table
Text Symbol: 069 = Delete Node Class.
Text Symbol: 068 = Node Classification
Text Symbol: 067 = Documents
Text Symbol: 066 = Create Doc. Incl. BOM w/o Class.
Text Symbol: 094 = Component already created in BOM
Text Symbol: 122 = Material no. does not exist; skipping item (otherwise termination)





Text Symbol: 121 = Deleted Data Records
Text Symbol: 120 = MPO to be deleted does not have "obsolete" status
Text Symbol: 119 = Links to force elements still exist
Text Symbol: 118 = Status seq. error
Text Symbol: 117 = Status sequence incorrect; check
Text Symbol: 116 = Matlno. does not exist
Text Symbol: 115 = Error: Object ID
Text Symbol: 114 = No MARM record to determine
Text Symbol: 113 = MPO to be deleted does not exist
Text Symbol: 112 = Processing error; see text in log
Text Symbol: 111 = Run No.:
Text Symbol: 110 = Restart
Text Symbol: 109 = Run number only in the case of restart; input ignored
Text Symbol: 108 = Loaded DRs
Text Symbol: 107 = Incorrect DRs
Text Symbol: 106 = Read DRs
Text Symbol: 105 = Additional part to be changed does not exist
Text Symbol: 104 = Node does not exist
Text Symbol: 103 = No Document Type to Determine
Text Symbol: 102 = No Document Status to Determine
Text Symbol: 101 = Last Imported Data Record
Text Symbol: 100 = Error deleting the subscribing org. areas
Text Symbol: 099 = Node Type
Text Symbol: 098 = Status
Text Symbol: 097 = MPO = Component, Recursion
Text Symbol: 096 = Material with Material Type & Must Not Be Assigned to MPOs
Text Symbol: 095 = Data Is Being Checked Only; No Database Update
Text Symbol: 032 = To Create Alternatives
Text Symbol: 031 = for component node number:
Text Symbol: 030 = for transaction
Text Symbol: 029 = for class type
Text Symbol: 028 = for document type
Text Symbol: 027 = Create Documents
Text Symbol: 026 = Create iPPE Nodes
Text Symbol: 025 = Char. does not exist
Text Symbol: 024 = Record unsuitable for node
Text Symbol: 023 = for material owner
Text Symbol: 022 = for auth. materials
Text Symbol: 021 = for models





Text Symbol: 020 = for addnl parts
Text Symbol: 019 = for documents and document BOMs
Text Symbol: 018 = for creating components
Text Symbol: 017 = for eval. characterics
Text Symbol: 016 = for creating iPPE nodes
Text Symbol: 015 = The document that you are trying to link or release does not exist
Text Symbol: 014 = MPO is already classified
Text Symbol: 013 = Phases document already exists
Text Symbol: 012 = Recursive Relatshp
Text Symbol: 011 = Addnl parts relatshp already exists
Text Symbol: 010 = No short text to find
Text Symbol: 009 = Wrong node type
Text Symbol: 008 = Alternative already exists
Text Symbol: 007 = Material number does not exist
Text Symbol: 006 = Material already assigned to an MPO
Text Symbol: 005 = Force element does not exist
Text Symbol: 004 = Comp./document does not exist as an MPO; record will be skipped
Text Symbol: 003 = PPE node does not exist. Check your entries
Text Symbol: 002 = PPE node already exists. Check your entries
Text Symbol: 001 = Transfer iPPE and Structures Workbench Data
Text Symbol: 033 = To Create Free Text Items
Text Symbol: 065 = Create Document w/o Classification
Text Symbol: 064 = Create w.Class.
Text Symbol: 063 = Create Node w/o Classification
Text Symbol: 062 = Document Status
Text Symbol: 061 = Document Type
Text Symbol: 060 = C:\mydata\bw\daten\mpo1_1.txt
Text Symbol: 059 = Variant
Text Symbol: 058 = Error posting models for node
Text Symbol: 057 = Error creating models for node
Text Symbol: 056 = Error posting authorized materials
Text Symbol: 055 = Error when creating or changing authorized materials
Text Symbol: 054 = Error posting additional parts
Text Symbol: 053 = Error creating additional parts
Text Symbol: 052 = Error creating document BOMs
Text Symbol: 051 = Error assigning components
Text Symbol: 050 = Error assigning free-text items as components
Text Symbol: 049 = Error classifying node; see log
Text Symbol: 048 = Error posting short text



Text Symbol: 047 = Error creating short text; see log
Text Symbol: 046 = Test
Text Symbol: 045 = Log
Text Symbol: 044 = Upd. Run
Text Symbol: 043 = for node type that is to be created as an addnl part
Text Symbol: 042 = For Addnl Part Number
Text Symbol: 041 = Special Runs (if Required)
Text Symbol: 040 = Transfer Auth. Materials (Structures Workbench)
Text Symbol: 039 = Addnl Master Data Transfer for Node
Text Symbol: 038 = Create or Link Documents
Text Symbol: 037 = Maintain Node with or Without Classification
Text Symbol: 036 = Object & Locked
Text Symbol: 035 = To Create Authorized Materials
Text Symbol: 034 = to create MPOs as components


INCLUDES used within this REPORT /ISDFPS/MPO_DATA_MIG

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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = filepc1 FILETYPE = 'ASC' HAS_FIELD_SEPARATOR = ' ' READ_BY_LINE = 'X' IMPORTING FILELENGTH = flength TABLES DATA_TAB = EXCEPTIONS file_open_error = 1.

CLSE_SELECT_CABN_VIA_NAME CALL FUNCTION 'CLSE_SELECT_CABN_VIA_NAME' EXPORTING CHARACTERISTIC = merkmalname ** KEY_DATE = SY-DATUM ** BYPASSING_BUFFER = ' ' ** WITH_PREPARED_PATTERN = ' ' ** IMPORTING ** AMBIGUOUS_OBJ_CHARACTERISTIC = TABLES T_CABN = i_cabn EXCEPTIONS NO_ENTRY_FOUND = 1 OTHERS = 2 .

CLFM_GET_AUSP_FROM_BUFFER CALL FUNCTION 'CLFM_GET_AUSP_FROM_BUFFER' EXPORTING object = object classytpe = klart key_date = loc_sttag ptable = table_loc object_is_cuobj = cuobj_flg TABLES exp_ausp = ausp_loc.

CLSE_SELECT_KSSK CALL FUNCTION 'CLSE_SELECT_KSSK' EXPORTING klart = klart mafid = 'O' * objek = record-object objek = kssk_inob-objek key_date = loc_sttag TABLES exp_kssk = kssk_v0 EXCEPTIONS no_entry_found = 1 set_classtype = 2 set_mafid = 3 OTHERS = 4.

CLAP_DDB_UPDATE_CLASSIFICATION CALL FUNCTION 'CLAP_DDB_UPDATE_CLASSIFICATION' EXPORTING pobtab = 'PNODID' class = clas object = record-object classtype = klart meins = ausp_tmp-atawe * mtart = mara-mtart * change_service_number = rcm01_tmp-aennr * date_of_change = loc_sttag EXCEPTIONS allocation_exist = 1 no_authority_type = 2 classytpe_not_def = 3 no_valid_sign_class = 4 no_authority_class = 5 class_status_not_valid = 6 class_date_not_valid = 7 class_not_found = 8 no_multi_classify = 9 foreign_lock = 10 system_failure = 11 unit_incompatible = 12 table_no_multitab = 13 other_change_number = 14 status_read_only = 15 change_kssk_not_allowed = 16 change_ausp_not_allowed = 17 set_aennr = 18 change_nr_not_exist = 19 date_in_past = 20 error_class = 21 error_date_restriction = 22 error_status = 23 mtart_not_exist = 24 mtart_classif_not_allowed = 25.

CTMS_DDB_HAS_VALUES CALL FUNCTION 'CTMS_DDB_HAS_VALUES' EXPORTING assigned_values = 'X' allowed_values = ' ' valid_values = ' ' inconsistent_values = ' ' first_assigned_value = ' ' default_values = ' ' TABLES imp_characteristics = test_api_char exp_values = test_api_value EXCEPTIONS not_found = 1 OTHERS = 2.

CTMS_DDB_SET_VALUE CALL FUNCTION 'CTMS_DDB_SET_VALUE' TABLES imp_values = api_val_i_loc EXCEPTIONS currency_check = 1 date_check = 2 format_check = 3 illegal_internal_baseunit = 4 interval_check = 5 pattern_check = 6 time_check = 7 unit_check = 8 value_not_found = 9 no_valid_dimension = 10 interval_not_allowed = 11 display_mode = 12 characteristic_not_found = 13 value_not_possible = 14 characteristic_enqueue = 15 objectcharacteristic = 16 only_one_value_allowed = 17 characteristic_not_selectable = 18 input_to_long = 19 OTHERS = 20.

CLAP_FETCH_VALUES CALL FUNCTION 'CLAP_FETCH_VALUES' EXPORTING object = ausp_tmp-objek classtype = ausp_tmp-klart EXCEPTIONS OTHERS = 1.

CLAP_DDB_SAVE_CLASSIFICATION CALL FUNCTION 'CLAP_DDB_SAVE_CLASSIFICATION' EXPORTING with_commit = 'X' ** importing ** updatflag = update_ok EXCEPTIONS OTHERS = 1.

/ISDFPS/CPPE_MPO_CREATE CALL FUNCTION '/ISDFPS/CPPE_MPO_CREATE' EXPORTING I_OBJECT = node_input i_nurdok = nurdok i_saveprot = saveprot IMPORTING SUBRC = subrc tables i_record = record changing i_count = lcount.

/ISDFPS/CMTART_READ_ALL CALL FUNCTION '/ISDFPS/CMTART_READ_ALL' IMPORTING ET_CMTART = lt_cmtart.

GUID_CREATE * CALL FUNCTION 'GUID_CREATE' * IMPORTING * ev_guid_22 = lf_guid.

CV200_DB_DRAD_UPDATE CALL FUNCTION 'CV200_DB_DRAD_UPDATE' IN UPDATE TASK TABLES pt_drad_new = i_drad pt_drad_old = o_drad.

ENQUEUE_ECKSSKXS call function 'ENQUEUE_ECKSSKXS' EXPORTING klart = klart class = clas mafid = 'O' objek = record-object EXCEPTIONS foreign_lock = 1 system_failure = 2.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = ls_pnmpo-mdm_plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC * ) EXPORTING DEFAULTOPTION = 'Y' TEXTLINE1 = text_1 TEXTLINE2 = text_2 TITEL = text_3 * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' IMPORTING ANSWER = answer. "#EC * )

HELP_VALUES_GET_AND_RETURN_TAB CALL FUNCTION 'HELP_VALUES_GET_AND_RETURN_TAB' EXPORTING * CUCOL = 0 * CUROW = 0 * DISPLAY = ' ' SELECTFIELD = 'ISTAT' TABLENAME = 'TJ02T' WRITE_SELECTFIELD_IN_COLOURS = 'X' * USE_USER_DEFINED_FIELDS = ' ' * NO_SCROLL = ' ' * TITEL = ' ' * MARK_ALL_BY_DEFAULT = ' ' * RETURN_PRESEL_VALUES = ' ' IMPORTING RETURNCODE = RETCO TABLES FULL_TABLE = intstat_tab SELECTION_TAB = intstat_ret * USER_FIELDS = * USER_MARKED_VALUES = EXCEPTIONS NO_TABLEFIELDS_IN_DICTIONARY = 1 * NO_TABLESTRUCTURE_GIVEN = 2 * FIELD_NOT_IN_DDIC = 3 * MORE_THEN_ONE_SELECTFIELD = 4 * NO_SELECTFIELD = 5 * OTHERS = 6 .

/ISDFPS/CPPE_MPO_CREATE CALL FUNCTION '/ISDFPS/CPPE_MPO_CREATE' EXPORTING I_OBJECT = node_input i_nurdok = nurdok i_saveprot = saveprot IMPORTING SUBRC = subrc tables i_record = record changing i_count = lcount.

/ISDFPS/CPPE_MPO_STATUS CALL FUNCTION '/ISDFPS/CPPE_MPO_STATUS' EXPORTING I_OBJECT = l_node i_vorgang = l_const i_saveprot = saveprot IMPORTING SUBRC = subrc TABLES i_record = record.

/ISDFPS/CPPE_MPO_KLASSIF CALL FUNCTION '/ISDFPS/CPPE_MPO_KLASSIF' EXPORTING I_CLASS = clas I_KLART = klart i_dele = delete i_object = object_class i_table = e_table IMPORTING SUBRC = subrc.

/ISDFPS/CPPE_MPO_DELETE CALL FUNCTION '/ISDFPS/CPPE_MPO_DELETE' EXPORTING I_OBJECT = node_input i_nurdok = nurdok i_saveprot = saveprot IMPORTING SUBRC = subrc tables i_record = record changing i_count = dcount.



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 /ISDFPS/MPO_DATA_MIG or its description.