Error: Vendor and Material Import tasks fail
Hi gurus.
Our CLM Vendor and Material imports tasks have been working fine until recently when we experienced the error:
Data Import Service: File: Material20150401-101647-817.xml is corrupt and cannot be imported
We have not done changes to either CLM/PI/ERP. Please can you shed some light what's causing this error? Thanking you in advance.
HI
which version and service pack you are using ?
we are using V9-SP19.
In SP16 SAP has fix an issue with Vendor import.
check this :
Fix has been done to handle the processing of Payment Term field for Vendor import. Vendor XML import file should contain a field tag as
<PAY_TERM></PAY_TERM> with desired value specified within the tag.
this might be an issue.
Thanks
kanchan
Similar Messages
-
What is procedure for creating new vendor and material master data in ABAP
What is procedure for creating new vendor and material master data in ABAP .
see below code which is used for creation of vendor master as well as extension...
*& Report ZFC_VENDOR_CREATE *
REPORT ZFC_VENDOR_CREATE LINE-SIZE 100
NO STANDARD PAGE HEADING
MESSAGE-ID ZZ.
TABLES
TABLES : SSCRFIELDS. " Fields on selection screens
CONSTANTS
DATA : C_SPLIT TYPE C VALUE '#'. " Used for Has Separator in GUI_UPLAOD
TYPES
Int'table to hold Vendor Master Data
TYPES : BEGIN OF TY_VENDOR_MASTER,
FLAG TYPE C, " Update Flag
LIFNR TYPE LIFNR, " Vendor Number
BUKRS TYPE BUKRS, " Company Code
KTOKK TYPE KTOKK, " Account Group
ANRED TYPE ANRED, " Title
NAME1 TYPE NAME1_GP, " Name1
NAME2 TYPE NAME2_GP, " Name2
SORTL TYPE SORTL, " Search Term 1
SORT2 TYPE AD_SORT2UL, " Search Term 2
STRAS TYPE STRAS_GP, " Street
PSTLZ TYPE PSTLZ, " Postal Code
ORT01 TYPE ORT01_GP, " City
REGIO TYPE REGIO, " Region
LAND1 TYPE LAND1_GP, " Country
SPRAS TYPE SPRAS, " Language
VBUND TYPE RASSC, " Trading Partner
BANKS TYPE BANKS, " Country
BANKL TYPE BANKK, " Bank Key
BANKN TYPE BANKN, " Bank Account
BKONT TYPE BKONT, " Bank Control Key
BANKA TYPE BANKA, " Name of Bank
AKONT TYPE AKONT, " Reconciliation Account
FDGRV TYPE FDGRV, " Cash Management Group
ZTERM TYPE DZTERM, " Payment Terms
REPRF TYPE REPRF, " Check Double Invoice
ZWELS TYPE DZWELS, " Payment Methods
XPORE TYPE XPORE, " Pay all items separately
END OF TY_VENDOR_MASTER,
Int'table to hold Vendor Extend Data
BEGIN OF TY_VENDOR_EXTEND,
FLAG TYPE C, " Update Flag
LIFNR TYPE LIFNR, " Vendor Number
BUKRS TYPE BUKRS, " Company Code
KTOKK TYPE KTOKK, " Account Group
REF_LIFNR TYPE LIFNR, " Reference Vendor Number
REF_BUKRS TYPE BUKRS, " Reference Company Code
AKONT TYPE AKONT, " Reconciliation Account
FDGRV TYPE FDGRV, " Cash Management Group
ZTERM TYPE DZTERM, " Payment Terms
REPRF TYPE REPRF, " Check Double Invoice
ZWELS TYPE DZWELS, " Payment Methods
XPORE TYPE XPORE, " Pay all items separately
END OF TY_VENDOR_EXTEND,
Int'table to hold Error Records Data
BEGIN OF TY_ERROR,
MSG(200) TYPE C, " To hold Message
LIFNR TYPE LIFNR, " Vendor Number
BUKRS TYPE BUKRS, " Company Code
END OF TY_ERROR.
DATA (Simple Fields)
DATA : W_COUNT TYPE I, " Variable to hold count of Records
W_SUCC_REC TYPE I, " No. of Success Records
W_SUCC_REC1 TYPE I, " No. of Updated Records
W_ERR_REC TYPE I, " No. of Error Records
w_noupdate_rec type i. " No. of Records not Changed
INTERNAL TABLES
Int'table to hold uploaded data from File
DATA : IT_VENDOR_MASTER TYPE STANDARD TABLE OF TY_VENDOR_MASTER,
WA_IT_VENDOR_MASTER TYPE TY_VENDOR_MASTER,
IT_VENDOR_EXTEND TYPE STANDARD TABLE OF TY_VENDOR_EXTEND,
WA_IT_VENDOR_EXTEND TYPE TY_VENDOR_EXTEND,
WA_IT_BDCDATA TYPE BDCDATA,
IT_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
WA_IT_MESSTAB TYPE BDCMSGCOLL,
IT_MESSTAB TYPE STANDARD TABLE OF BDCMSGCOLL,
IT_ERROR TYPE STANDARD TABLE OF TY_ERROR,
WA_IT_ERROR TYPE TY_ERROR,
it_error_fk01 type standard table of ty_error,
wa_it_error_fk01 type ty_error,
it_error_fk02 type standard table of ty_error,
wa_it_error_fk02 type ty_error,
it_succ_rec1 type standard table of ty_error,
wa_it_succ_rec1 type ty_error,
it_noupdate type standard table of ty_error,
wa_it_noupdate type ty_error.
FLAGS
DATA : FL_FLAG1 TYPE C, " Flag to check error upload file
FL_FLAG2 TYPE C, " Flag to hold value
FL_FLAG3 TYPE C, " Flag to hold value
FL_FLAG4 TYPE C. " Flag to hold value
SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-001,
POSITION POS_LOW.
PARAMETERS : P_FILE(128) DEFAULT 'C:\UPLOAD.TXT' OBLIGATORY.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-002,
POSITION POS_LOW.
PARAMETERS : P_VENMAS RADIOBUTTON GROUP R1 DEFAULT 'X'.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-003,
POSITION POS_LOW.
PARAMETERS : P_VENEXT RADIOBUTTON GROUP R1.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-004,
POSITION POS_LOW.
PARAMETERS : P_MODE(1) DEFAULT 'N'.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-005,
POSITION POS_LOW.
PARAMETERS : P_GROUP(12) DEFAULT 'ZFC_VENDOR_C' OBLIGATORY.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN : BEGIN OF LINE,
COMMENT 1(30) TEXT-016,
POSITION POS_LOW.
PARAMETERS : P_GROUP1(12) DEFAULT 'ZFC_VENDOR_U' OBLIGATORY.
SELECTION-SCREEN : END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
Form to get file path for upload of data
PERFORM GET_FILE_PATH.
AT SELECTION-SCREEN ON BLOCK B1.
Form to Validate data specified on Selection Screen
CHECK SSCRFIELDS-UCOMM EQ 'ONLI'.
PERFORM VALIDATE_DATA.
START - OF - SELECTION
START-OF-SELECTION.
IF P_VENMAS = 'X'.
Form to upload data from Presentation Server for Vendor Master
PERFORM UPLOAD_DATA TABLES IT_VENDOR_MASTER.
IF FL_FLAG1 NE 'X'.
SORT IT_VENDOR_MASTER BY LIFNR BUKRS KTOKK.
DELETE IT_VENDOR_MASTER WHERE LIFNR = ' '
AND BUKRS = ' '
AND KTOKK = ' '.
Form to process data for Vendor Master
PERFORM INSERT_VENDOR_MASTER_DATA.
ENDIF.
ELSEIF P_VENEXT = 'X'.
Form to upload data from Presentation Server for Vendor Extend
PERFORM UPLOAD_DATA TABLES IT_VENDOR_EXTEND.
IF FL_FLAG1 NE 'X'.
SORT IT_VENDOR_EXTEND BY LIFNR BUKRS KTOKK.
DELETE IT_VENDOR_EXTEND WHERE LIFNR = ' '
AND BUKRS = ' '
AND KTOKK = ' '.
Form to process data for Vendor Master
PERFORM CHK_AND_INS_VENDOR_EXTEND_DATA.
ENDIF.
ENDIF.
END - OF - SELECTION
END-OF-SELECTION.
IF FL_FLAG1 NE 'X'.
FORMAT COLOR 7.
WRITE:/2 TEXT-O01. " Total Number of records read :
FORMAT COLOR OFF.
WRITE:40 W_COUNT.
FORMAT COLOR 7.
WRITE:/2 TEXT-O02. " Total Number of Success records :
FORMAT COLOR OFF.
WRITE:40 W_SUCC_REC.
FORMAT COLOR 7.
WRITE:/2 TEXT-O07. " Total Number of Updated records :
FORMAT COLOR OFF.
WRITE:40 W_SUCC_REC1.
FORMAT COLOR 7.
WRITE:/2 TEXT-O08. " Total Number of Unchanged records :
FORMAT COLOR OFF.
WRITE:40 W_noupdate_REC.
FORMAT COLOR 7.
WRITE:/2 TEXT-O03. " Total Number of Error records :
FORMAT COLOR OFF.
WRITE:40 W_ERR_REC.
if not it_succ_rec1 is initial.
skip 1.
perform display_changed_report.
endif.
if not it_noupdate is initial.
skip 1.
perform display_nochange_report.
endif.
IF NOT IT_ERROR IS INITIAL.
SKIP 3.
Form to display error data
PERFORM DISPLAY_ERROR_REPORT.
ENDIF.
IF FL_FLAG2 = 'X'.
SKIP 2.
FORMAT COLOR 4.
WRITE:/2 TEXT-O04. " BDC Session Name for Creation (FK01) :
FORMAT COLOR OFF.
WRITE:40 P_GROUP.
perform display_error_report_fk01.
ENDIF.
IF FL_FLAG3 = 'X'.
SKIP 2.
FORMAT COLOR 4.
WRITE:/2 TEXT-O09. " BDC Session Name for Updation (FK02) :
FORMAT COLOR OFF.
WRITE:40 P_GROUP1.
perform display_error_report_fk02.
ENDIF.
ENDIF.
*& Form GET_FILE_PATH
This form is used to get the specified path for uploading of data from
flat file with the help of F4 function key
FORM GET_FILE_PATH .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = P_FILE.
ENDFORM. " GET_FILE_PATH
*& Form VALIDATE_DATA
This form is used to validate the data given by user on the Selection
Screen and the appropriate message is been displayed when an wrong
entry is inputted
FORM VALIDATE_DATA .
IF SY-BATCH EQ 'X'.
CLEAR SSCRFIELDS-UCOMM.
MESSAGE E001(ZZ) WITH TEXT-011.
" Excel file not to be used in Batch Mode
ENDIF.
IF P_MODE NE 'A' AND P_MODE NE 'N' AND P_MODE NE 'E'.
MESSAGE E001(ZZ) WITH TEXT-012.
" Session Mode should be either A or N or E
ENDIF.
ENDFORM. " VALIDATE_DATA
*& Form UPLOAD_DATA
This form is used to upload data from Presentation Server for either
Vendor Master or Vendor Extend
FORM UPLOAD_DATA TABLES P_IT_VENDOR.
DATA : L_FILENAME TYPE STRING,
L_FILETYPE TYPE CHAR10 VALUE 'ASC',
L_HEADER_LENGTH TYPE I VALUE 0,
L_READ_BY_LINE TYPE CHAR01 VALUE 'X'.
MOVE P_FILE TO L_FILENAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = L_FILENAME
FILETYPE = L_FILETYPE
HEADER_LENGTH = L_HEADER_LENGTH
READ_BY_LINE = L_READ_BY_LINE
HAS_FIELD_SEPARATOR = C_SPLIT
TABLES
DATA_TAB = P_IT_VENDOR
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
IF SY-SUBRC <> 0.
MESSAGE I001(ZZ) WITH TEXT-006 L_FILENAME.
MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
FL_FLAG1 = 'X'.
ELSEIF P_IT_VENDOR[] IS INITIAL.
MESSAGE I001(ZZ) WITH TEXT-014. " Uploaded File contains no data
FL_FLAG1 = 'X'.
ENDIF.
ENDFORM. " UPLOAD_DATA
*& Form INSERT_VENDOR_MASTER_DATA
This form is used to process BDC data for Vendor Master
FORM INSERT_VENDOR_MASTER_DATA .
DATA : L_LIFNR TYPE LIFNR.
CLEAR : L_LIFNR.
sort it_vendor_master by flag.
LOOP AT IT_VENDOR_MASTER INTO WA_IT_VENDOR_MASTER.
W_COUNT = W_COUNT + 1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_IT_VENDOR_MASTER-LIFNR
IMPORTING
OUTPUT = WA_IT_VENDOR_MASTER-LIFNR.
if wa_it_vendor_master-flag = 'A'.
SELECT SINGLE LIFNR
FROM LFB1
INTO L_LIFNR
WHERE LIFNR = WA_IT_VENDOR_MASTER-LIFNR
AND BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
IF SY-SUBRC EQ 0.
WA_IT_ERROR-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
WA_IT_ERROR-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
WA_IT_ERROR-MSG = TEXT-015.
APPEND WA_IT_ERROR TO IT_ERROR.
W_ERR_REC = W_ERR_REC + 1.
CLEAR : WA_IT_ERROR, L_LIFNR.
ELSE.
REFRESH IT_BDCDATA.
CLEAR IT_BDCDATA.
PERFORM POPULATE_BDC_DATA_VEN_MASTER.
PERFORM CALL_TRANSACTION.
ENDIF.
CLEAR : WA_IT_VENDOR_MASTER.
elseif wa_it_vendor_master-flag = 'C'.
IF FL_FLAG2 = 'X' and fl_flag4 ne 'X'.
PERFORM CLOSE_BDC_SESSION.
fl_flag4 = 'X'.
ENDIF.
REFRESH IT_BDCDATA.
CLEAR IT_BDCDATA.
PERFORM POPULATE_BDC_DATA_VEN_MASTER.
PERFORM CALL_TRANSACTION_FK02.
CLEAR : WA_IT_VENDOR_MASTER.
elseif wa_it_vendor_master-flag = 'N'.
WA_IT_noupdate-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
WA_IT_noupdate-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
WA_IT_noupdate-MSG = TEXT-018.
APPEND WA_IT_noupdate TO IT_noupdate.
W_noupdate_REC = W_noupdate_REC + 1.
CLEAR : WA_IT_noupdate, WA_IT_VENDOR_MASTER.
endif.
ENDLOOP.
IF FL_FLAG3 = 'X'.
PERFORM CLOSE_BDC_SESSION.
ENDIF.
ENDFORM. " INSERT_VENDOR_MASTER_DATA
*& Form POPULATE_BDC_DATA_VEN_MASTER
This form is used to populate BDC data of Vendor Master
FORM POPULATE_BDC_DATA_VEN_MASTER .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_IT_VENDOR_MASTER-ZTERM
IMPORTING
OUTPUT = WA_IT_VENDOR_MASTER-ZTERM.
IF WA_IT_VENDOR_MASTER-REPRF = 'Y'.
WA_IT_VENDOR_MASTER-REPRF = 'X'.
ENDIF.
IF WA_IT_VENDOR_MASTER-XPORE = 'Y'.
WA_IT_VENDOR_MASTER-XPORE = 'X'.
ENDIF.
if wa_it_vendor_master-flag = 'A'.
PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0105',
BDC_FIELD USING 'RF02K-LIFNR' WA_IT_VENDOR_MASTER-LIFNR,
BDC_FIELD USING 'RF02K-BUKRS' WA_IT_VENDOR_MASTER-BUKRS,
BDC_FIELD USING 'RF02K-KTOKK' WA_IT_VENDOR_MASTER-KTOKK,
BDC_FIELD USING 'BDC_OKCODE' '/00'.
elseif wa_it_vendor_master-flag = 'C'.
PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0106',
BDC_FIELD USING 'RF02K-LIFNR' WA_IT_VENDOR_MASTER-LIFNR,
BDC_FIELD USING 'RF02K-BUKRS' WA_IT_VENDOR_MASTER-BUKRS,
BDC_FIELD USING 'BDC_OKCODE' '=MALL',
BDC_DYNPRO USING 'SAPMF02K' '0106',
BDC_FIELD USING 'RF02K-D0110' 'X',
BDC_FIELD USING 'RF02K-D0120' 'X',
BDC_FIELD USING 'RF02K-D0130' 'X',
BDC_FIELD USING 'RF02K-D0210' 'X',
BDC_FIELD USING 'RF02K-D0215' 'X',
BDC_FIELD USING 'RF02K-D0220' 'X',
BDC_FIELD USING 'BDC_OKCODE' '/00'.
endif.
perform :BDC_DYNPRO USING 'SAPMF02K' '0110',
BDC_FIELD USING 'LFA1-ANRED' WA_IT_VENDOR_MASTER-ANRED,
BDC_FIELD USING 'LFA1-NAME1' WA_IT_VENDOR_MASTER-NAME1,
BDC_FIELD USING 'LFA1-NAME2' WA_IT_VENDOR_MASTER-NAME2,
BDC_FIELD USING 'LFA1-SORTL' WA_IT_VENDOR_MASTER-SORTL,
BDC_FIELD USING 'LFA1-STRAS' WA_IT_VENDOR_MASTER-STRAS,
BDC_FIELD USING 'LFA1-ORT01' WA_IT_VENDOR_MASTER-ORT01,
BDC_FIELD USING 'LFA1-PSTLZ' WA_IT_VENDOR_MASTER-PSTLZ,
BDC_FIELD USING 'LFA1-LAND1' WA_IT_VENDOR_MASTER-LAND1,
BDC_FIELD USING 'LFA1-REGIO' WA_IT_VENDOR_MASTER-REGIO,
BDC_FIELD USING 'LFA1-SPRAS' WA_IT_VENDOR_MASTER-SPRAS,
BDC_FIELD USING 'BDC_OKCODE' '/00',
BDC_DYNPRO USING 'SAPMF02K' '0120',
BDC_FIELD USING 'LFA1-VBUND' WA_IT_VENDOR_MASTER-VBUND,
BDC_FIELD USING 'BDC_OKCODE' '/00',
BDC_DYNPRO USING 'SAPMF02K' '0130',
BDC_FIELD USING 'LFBK-BANKS(01)' WA_IT_VENDOR_MASTER-BANKS,
BDC_FIELD USING 'LFBK-BANKL(01)' WA_IT_VENDOR_MASTER-BANKL,
BDC_FIELD USING 'LFBK-BANKN(01)' WA_IT_VENDOR_MASTER-BANKN,
BDC_FIELD USING 'BDC_OKCODE' '=BANK',
BDC_DYNPRO USING 'SAPLBANK' '0100',
BDC_FIELD USING 'BNKA-BANKA' WA_IT_VENDOR_MASTER-BANKA,
BDC_FIELD USING 'BDC_OKCODE' '=ENTR',
BDC_DYNPRO USING 'SAPMF02K' '0130',
BDC_FIELD USING 'BDC_OKCODE' '=ENTR',
BDC_DYNPRO USING 'SAPMF02K' '0210',
BDC_FIELD USING 'LFB1-AKONT' WA_IT_VENDOR_MASTER-AKONT,
BDC_FIELD USING 'LFB1-FDGRV' WA_IT_VENDOR_MASTER-FDGRV,
BDC_FIELD USING 'BDC_OKCODE' '=/00',
BDC_DYNPRO USING 'SAPMF02K' '0215',
BDC_FIELD USING 'LFB1-ZTERM' WA_IT_VENDOR_MASTER-ZTERM,
BDC_FIELD USING 'LFB1-REPRF' WA_IT_VENDOR_MASTER-REPRF,
BDC_FIELD USING 'LFB1-ZWELS' WA_IT_VENDOR_MASTER-ZWELS,
BDC_FIELD USING 'LFB1-XPORE' WA_IT_VENDOR_MASTER-XPORE,
BDC_FIELD USING 'BDC_OKCODE' '=UPDA'.
ENDFORM. " POPULATE_BDC_DATA_VEN_MASTER
*& Form BDC_DYNPRO
This form is used to move data to BDCDATA int'table
FORM BDC_DYNPRO USING PROGRAM TYPE BDC_PROG
DYNPRO TYPE BDC_DYNR.
CLEAR WA_IT_BDCDATA.
WA_IT_BDCDATA-PROGRAM = PROGRAM.
WA_IT_BDCDATA-DYNPRO = DYNPRO.
WA_IT_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_IT_BDCDATA TO IT_BDCDATA.
ENDFORM. " BDC_DYNPRO
*& Form BDC_FIELD
This form is used to move data to BDCDATA int'table
FORM BDC_FIELD USING FNAM TYPE ANY
FVAL TYPE ANY.
CLEAR WA_IT_BDCDATA.
WA_IT_BDCDATA-FNAM = FNAM.
WA_IT_BDCDATA-FVAL = FVAL.
APPEND WA_IT_BDCDATA TO IT_BDCDATA.
ENDFORM. " BDC_FIELD
*& Form CALL_TRANSACTION
This form is used to Call FK01 for processing of data either for
Vendor Master or Vendor Extend. The error records are inserted to
Session which can be processed using SM35
FORM CALL_TRANSACTION .
DATA : L_OPTION TYPE CTU_PARAMS,
L_SUBRC TYPE SYSUBRC.
REFRESH IT_MESSTAB.
CLEAR IT_MESSTAB.
L_OPTION-DEFSIZE = 'X'.
L_OPTION-DISMODE = P_MODE.
L_OPTION-UPDMODE = 'S'.
CALL TRANSACTION 'FK01'
USING IT_BDCDATA
MESSAGES INTO IT_MESSTAB
OPTIONS FROM L_OPTION.
L_SUBRC = SY-SUBRC.
IF L_SUBRC = 0.
W_SUCC_REC = W_SUCC_REC + 1.
ELSE.
IF FL_FLAG2 NE 'X'.
PERFORM OPEN_BDC_SESSION.
FL_FLAG2 = 'X'.
ENDIF.
PERFORM BDC_INSERT.
W_ERR_REC = W_ERR_REC + 1.
PERFORM ERROR_RECORD_DATA.
ENDIF.
ENDFORM. " CALL_TRANSACTION
*& Form OPEN_BDC_SESSION
Form used to open session for Error out Records
FORM OPEN_BDC_SESSION .
DATA : L_USERID TYPE APQ_MAPN, " Variable to hold user-id
L_GROUP TYPE APQ_GRPN. " Variable to hold value
MOVE P_GROUP TO L_GROUP.
MOVE SY-UNAME TO L_USERID.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = L_GROUP
KEEP = SPACE
USER = L_USERID
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-008. " Unable to open BDC Session
ENDIF.
ENDFORM. " OPEN_BDC_SESSION
*& Form BDC_INSERT
This form is used to insert error records to a Session method
FORM BDC_INSERT .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FK01'
TABLES
DYNPROTAB = IT_BDCDATA
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-009. " Unable to Insert Data to BDC Session
ENDIF.
ENDFORM. " BDC_INSERT
*& Form ERROR_RECORD_DATA
This form is used to process the messages for the error records which
will be displayed on the output report
FORM ERROR_RECORD_DATA .
DATA : L_LINES TYPE I,
L_MSG(200) TYPE C.
DESCRIBE TABLE IT_MESSTAB LINES L_LINES.
READ TABLE IT_MESSTAB INTO WA_IT_MESSTAB INDEX L_LINES.
IF SY-SUBRC = 0.
CLEAR L_MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = WA_IT_MESSTAB-MSGID
LANG = SY-LANGU
NO = WA_IT_MESSTAB-MSGNR
V1 = WA_IT_MESSTAB-MSGV1
V2 = WA_IT_MESSTAB-MSGV2
V3 = WA_IT_MESSTAB-MSGV3
V4 = WA_IT_MESSTAB-MSGV4
IMPORTING
MSG = L_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WA_IT_ERROR_fk01-MSG = L_MSG.
ENDIF.
IF P_VENMAS = 'X'.
WA_IT_ERROR_fk01-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
WA_IT_ERROR_fk01-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
ELSEIF P_VENEXT = 'X'.
WA_IT_ERROR_fk01-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
WA_IT_ERROR_fk01-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
ENDIF.
APPEND WA_IT_ERROR_fk01 TO IT_ERROR_fk01.
CLEAR WA_IT_ERROR_fk01.
ENDIF.
ENDFORM. " ERROR_RECORD_DATA
*& Form CLOSE_BDC_SESSION
Form used to close session of the Error Records
FORM CLOSE_BDC_SESSION .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-010. " Unable to Close BDC Session
ENDIF.
ENDFORM. " CLOSE_BDC_SESSION
*& Form CHK_AND_INS_VENDOR_EXTEND_DATA
This form is used to process BDC data for Vendor Extend
FORM CHK_AND_INS_VENDOR_EXTEND_DATA .
DATA : L_LIFNR TYPE LIFNR.
CLEAR : L_LIFNR, fl_flag4.
sort it_vendor_extend by flag.
LOOP AT IT_VENDOR_EXTEND INTO WA_IT_VENDOR_EXTEND.
W_COUNT = W_COUNT + 1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_IT_VENDOR_EXTEND-REF_LIFNR
IMPORTING
OUTPUT = WA_IT_VENDOR_EXTEND-REF_LIFNR.
if wa_it_vendor_extend-flag = 'A'.
SELECT SINGLE LIFNR
FROM LFB1
INTO L_LIFNR
WHERE LIFNR = WA_IT_VENDOR_EXTEND-REF_LIFNR
AND BUKRS = WA_IT_VENDOR_EXTEND-REF_BUKRS.
IF SY-SUBRC NE 0.
WA_IT_ERROR-LIFNR = WA_IT_VENDOR_EXTEND-REF_LIFNR.
WA_IT_ERROR-BUKRS = WA_IT_VENDOR_EXTEND-REF_BUKRS.
WA_IT_ERROR-MSG = TEXT-007.
APPEND WA_IT_ERROR TO IT_ERROR.
W_ERR_REC = W_ERR_REC + 1.
CLEAR : WA_IT_ERROR, L_LIFNR.
ELSE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_IT_VENDOR_EXTEND-LIFNR
IMPORTING
OUTPUT = WA_IT_VENDOR_EXTEND-LIFNR.
SELECT SINGLE LIFNR
FROM LFB1
INTO L_LIFNR
WHERE LIFNR = WA_IT_VENDOR_EXTEND-LIFNR
AND BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
IF SY-SUBRC EQ 0.
WA_IT_ERROR-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
WA_IT_ERROR-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
WA_IT_ERROR-MSG = TEXT-015.
APPEND WA_IT_ERROR TO IT_ERROR.
W_ERR_REC = W_ERR_REC + 1.
CLEAR : WA_IT_ERROR, L_LIFNR.
ELSE.
REFRESH IT_BDCDATA.
CLEAR IT_BDCDATA.
PERFORM POPULATE_BDC_DATA_VEN_EXTEND.
PERFORM CALL_TRANSACTION.
ENDIF.
ENDIF.
CLEAR : WA_IT_VENDOR_EXTEND.
elseif wa_it_vendor_extend-flag = 'C'.
IF FL_FLAG2 = 'X' and fl_flag4 ne 'X'.
PERFORM CLOSE_BDC_SESSION.
fl_flag4 = 'X'.
ENDIF.
REFRESH IT_BDCDATA.
CLEAR IT_BDCDATA.
PERFORM POPULATE_BDC_DATA_VEN_extend.
PERFORM CALL_TRANSACTION_FK02.
CLEAR : WA_IT_VENDOR_EXTEND.
elseif wa_it_vendor_extend-flag = 'N'.
WA_IT_noupdate-LIFNR = WA_IT_VENDOR_extend-LIFNR.
WA_IT_noupdate-BUKRS = WA_IT_VENDOR_extend-BUKRS.
WA_IT_noupdate-MSG = TEXT-019.
APPEND WA_IT_noupdate TO IT_noupdate.
W_noupdate_REC = W_noupdate_REC + 1.
CLEAR : WA_IT_noupdate, WA_IT_VENDOR_EXTEND.
endif.
ENDLOOP.
IF FL_FLAG2 = 'X'.
PERFORM CLOSE_BDC_SESSION.
ENDIF.
if fl_flag3 = 'X'.
PERFORM CLOSE_BDC_SESSION.
ENDIF.
ENDFORM. " CHK_AND_INS_VENDOR_EXTEND_DATA
*& Form POPULATE_BDC_DATA_VEN_EXTEND
This form is used to populate BDC data of Vendor Extend
FORM POPULATE_BDC_DATA_VEN_EXTEND .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WA_IT_VENDOR_EXTEND-ZTERM
IMPORTING
OUTPUT = WA_IT_VENDOR_EXTEND-ZTERM.
IF WA_IT_VENDOR_EXTEND-REPRF = 'Y'.
WA_IT_VENDOR_EXTEND-REPRF = 'X'.
ENDIF.
IF WA_IT_VENDOR_extend-XPORE = 'Y'.
WA_IT_VENDOR_extend-XPORE = 'X'.
ENDIF.
if wa_it_vendor_extend-flag = 'A'.
PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0105',
BDC_FIELD USING 'RF02K-LIFNR' WA_IT_VENDOR_EXTEND-LIFNR,
BDC_FIELD USING 'RF02K-BUKRS' WA_IT_VENDOR_EXTEND-BUKRS,
BDC_FIELD USING 'RF02K-KTOKK' WA_IT_VENDOR_EXTEND-KTOKK,
BDC_FIELD USING 'RF02K-REF_LIFNR'
WA_IT_VENDOR_EXTEND-REF_LIFNR,
BDC_FIELD USING 'RF02K-REF_BUKRS'
WA_IT_VENDOR_EXTEND-REF_BUKRS,
BDC_FIELD USING 'BDC_OKCODE' '/00'.
elseif wa_it_vendor_extend-flag = 'C'.
PERFORM :BDC_DYNPRO USING 'SAPMF02K' '0106',
BDC_FIELD USING 'RF02K-LIFNR' WA_IT_VENDOR_extend-LIFNR,
BDC_FIELD USING 'RF02K-BUKRS' WA_IT_VENDOR_extend-BUKRS,
BDC_FIELD USING 'RF02K-D0210' 'X',
BDC_FIELD USING 'RF02K-D0215' 'X',
BDC_FIELD USING 'BDC_OKCODE' '/00'.
endif.
perform :BDC_DYNPRO USING 'SAPMF02K' '0210',
BDC_FIELD USING 'LFB1-AKONT' WA_IT_VENDOR_EXTEND-AKONT,
BDC_FIELD USING 'LFB1-FDGRV' WA_IT_VENDOR_EXTEND-FDGRV,
BDC_FIELD USING 'BDC_OKCODE' '=/00',
BDC_DYNPRO USING 'SAPMF02K' '0215',
BDC_FIELD USING 'LFB1-ZTERM' WA_IT_VENDOR_EXTEND-ZTERM,
BDC_FIELD USING 'LFB1-REPRF' WA_IT_VENDOR_EXTEND-REPRF,
BDC_FIELD USING 'LFB1-ZWELS' WA_IT_VENDOR_EXTEND-ZWELS,
BDC_FIELD USING 'LFB1-XPORE' WA_IT_VENDOR_extend-XPORE,
BDC_FIELD USING 'BDC_OKCODE' '=UPDA'.
ENDFORM. " POPULATE_BDC_DATA_VEN_EXTEND
*& Form DISPLAY_ERROR_REPORT
This form is used to display the error records on the output screen
FORM DISPLAY_ERROR_REPORT .
IF P_VENMAS = 'X'.
WRITE:/ TEXT-O05. " Error List for Vendor Master
ELSEIF P_VENEXT = 'X'.
WRITE:/ TEXT-O06. " Error List for Vendor Master Extended
ENDIF.
WRITE:/ SY-ULINE(100).
FORMAT COLOR 1.
WRITE:/1 SY-VLINE,
2 TEXT-H01, " Vendor Number
17 SY-VLINE,
18 TEXT-H02, " Company Code
31 SY-VLINE,
32 TEXT-H03, " Error Message
100 SY-VLINE.
FORMAT COLOR OFF.
WRITE:/ SY-ULINE(100).
LOOP AT IT_ERROR INTO WA_IT_ERROR.
FORMAT COLOR 2.
WRITE:/1 SY-VLINE,
2 WA_IT_ERROR-LIFNR,
17 SY-VLINE,
18 WA_IT_ERROR-BUKRS,
31 SY-VLINE,
32 WA_IT_ERROR-MSG,
100 SY-VLINE.
CLEAR : WA_IT_ERROR.
FORMAT COLOR OFF.
ENDLOOP.
WRITE:/ SY-ULINE(100).
ENDFORM. " DISPLAY_ERROR_REPORT
*& Form CALL_TRANSACTION_FK02
Form used to Call Transaction FK02
form CALL_TRANSACTION_FK02 .
DATA : L_OPTION TYPE CTU_PARAMS,
L_SUBRC TYPE SYSUBRC.
REFRESH IT_MESSTAB.
CLEAR IT_MESSTAB.
L_OPTION-DEFSIZE = 'X'.
L_OPTION-DISMODE = P_MODE.
L_OPTION-UPDMODE = 'S'.
CALL TRANSACTION 'FK02'
USING IT_BDCDATA
MESSAGES INTO IT_MESSTAB
OPTIONS FROM L_OPTION.
L_SUBRC = SY-SUBRC.
IF L_SUBRC = 0.
W_SUCC_REC1 = W_SUCC_REC1 + 1.
WA_IT_succ_rec1-MSG = Text-017.
IF P_VENMAS = 'X'.
WA_IT_succ_rec1-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
WA_IT_succ_rec1-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
ELSEIF P_VENEXT = 'X'.
WA_IT_succ_rec1-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
WA_IT_succ_rec1-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
ENDIF.
APPEND WA_IT_succ_rec1 TO IT_succ_rec1.
ELSE.
IF FL_FLAG3 NE 'X'.
PERFORM OPEN_BDC_SESSION_fk02.
FL_FLAG3 = 'X'.
ENDIF.
PERFORM BDC_INSERT_fk02.
W_ERR_REC = W_ERR_REC + 1.
PERFORM ERROR_RECORD_DATA1.
ENDIF.
endform. " CALL_TRANSACTION_FK02
*& Form OPEN_BDC_SESSION_fk02
Form used to Open session for FK02
form OPEN_BDC_SESSION_fk02 .
DATA : L_USERID TYPE APQ_MAPN, " Variable to hold user-id
L_GROUP TYPE APQ_GRPN. " Variable to hold value
MOVE P_GROUP1 TO L_GROUP.
MOVE SY-UNAME TO L_USERID.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = L_GROUP
KEEP = SPACE
USER = L_USERID
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-008. " Unable to open BDC Session
ENDIF.
endform. " OPEN_BDC_SESSION_fk02
*& Form BDC_INSERT_fk02
Form used to insert data into BDC session using FK02
form BDC_INSERT_fk02 .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FK02'
TABLES
DYNPROTAB = IT_BDCDATA
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
WRITE:/ TEXT-009. " Unable to Insert Data to BDC Session
ENDIF.
endform. " BDC_INSERT_fk02
*& Form display_changed_report
Form to display Updated Vendor data
form display_changed_report .
IF P_VENMAS = 'X'.
WRITE:/ TEXT-O10. " Updated List for Vendor Master
ELSEIF P_VENEXT = 'X'.
WRITE:/ TEXT-O11. " Updated List for Vendor Master Extended
ENDIF.
WRITE:/ SY-ULINE(100).
FORMAT COLOR 1.
WRITE:/1 SY-VLINE,
2 TEXT-H01, " Vendor Number
17 SY-VLINE,
18 TEXT-H02, " Company Code
31 SY-VLINE,
32 TEXT-H04, " Message
100 SY-VLINE.
FORMAT COLOR OFF.
WRITE:/ SY-ULINE(100).
LOOP AT IT_succ_rec1 INTO WA_IT_succ_rec1.
FORMAT COLOR 2.
WRITE:/1 SY-VLINE,
2 WA_IT_succ_rec1-LIFNR,
17 SY-VLINE,
18 WA_IT_succ_rec1-BUKRS,
31 SY-VLINE,
32 WA_IT_succ_rec1-MSG,
100 SY-VLINE.
CLEAR : WA_IT_succ_rec1.
FORMAT COLOR OFF.
ENDLOOP.
WRITE:/ SY-ULINE(100).
endform. " display_changed_report
*& Form display_nochange_report
Form to display No Changed data for Vendors
form display_nochange_report .
IF P_VENMAS = 'X'.
WRITE:/ TEXT-O12. " No Changes List for Vendor Master
ELSEIF P_VENEXT = 'X'.
WRITE:/ TEXT-O13. " No Changes List for Vendor Master Extended
ENDIF.
WRITE:/ SY-ULINE(100).
FORMAT COLOR 1.
WRITE:/1 SY-VLINE,
2 TEXT-H01, " Vendor Number
17 SY-VLINE,
18 TEXT-H02, " Company Code
31 SY-VLINE,
32 TEXT-H04, " Message
100 SY-VLINE.
FORMAT COLOR OFF.
WRITE:/ SY-ULINE(100).
LOOP AT IT_noupdate INTO WA_IT_noupdate.
FORMAT COLOR 2.
WRITE:/1 SY-VLINE,
2 WA_IT_noupdate-LIFNR,
17 SY-VLINE,
18 WA_IT_noupdate-BUKRS,
31 SY-VLINE,
32 WA_IT_noupdate-MSG,
100 SY-VLINE.
CLEAR : WA_IT_noupdate.
FORMAT COLOR OFF.
ENDLOOP.
WRITE:/ SY-ULINE(100).
endform. " display_nochange_report
*& Form ERROR_RECORD_DATA1
Form to get Error Message for Changed Vendors
form ERROR_RECORD_DATA1 .
DATA : L_LINES TYPE I,
L_MSG(200) TYPE C.
DESCRIBE TABLE IT_MESSTAB LINES L_LINES.
READ TABLE IT_MESSTAB INTO WA_IT_MESSTAB INDEX L_LINES.
IF SY-SUBRC = 0.
CLEAR L_MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = WA_IT_MESSTAB-MSGID
LANG = SY-LANGU
NO = WA_IT_MESSTAB-MSGNR
V1 = WA_IT_MESSTAB-MSGV1
V2 = WA_IT_MESSTAB-MSGV2
V3 = WA_IT_MESSTAB-MSGV3
V4 = WA_IT_MESSTAB-MSGV4
IMPORTING
MSG = L_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WA_IT_ERROR_fk02-MSG = L_MSG.
ENDIF.
IF P_VENMAS = 'X'.
WA_IT_ERROR_fk02-LIFNR = WA_IT_VENDOR_MASTER-LIFNR.
WA_IT_ERROR_fk02-BUKRS = WA_IT_VENDOR_MASTER-BUKRS.
ELSEIF P_VENEXT = 'X'.
WA_IT_ERROR_fk02-LIFNR = WA_IT_VENDOR_EXTEND-LIFNR.
WA_IT_ERROR_fk02-BUKRS = WA_IT_VENDOR_EXTEND-BUKRS.
ENDIF.
APPEND WA_IT_ERROR_fk02 TO IT_ERROR_fk02.
CLEAR WA_IT_ERROR_fk02.
ENDIF.
endform. " ERROR_RECORD_DATA1
*& Form display_error_report_fk01
Form to display Error Report for Master Vendors (FK01)
form display_error_report_fk01 .
IF P_VENMAS = 'X'.
WRITE:/ TEXT-O05. " Error List for Vendor Master (FK01)
ELSEIF P_VENEXT = 'X'.
WRITE:/ TEXT-O06. " Error List for Vendor Master Extended (FK01)
ENDIF.
WRITE:/ SY-ULINE(100).
FORMAT COLOR 1.
WRITE:/1 SY-VLINE,
2 TEXT-H01, " Vendor Number
17 SY-VLINE,
18 TEXT-H02, " Company Code
31 SY-VLINE,
32 TEXT-H04, " Message
100 SY-VLINE.
FORMAT COLOR OFF.
WRITE:/ SY-ULINE(100).
LOOP AT IT_ERROR_fk01 INTO WA_IT_ERROR_fk01.
FORMAT COLOR 2.
WRITE:/1 SY-VLINE,
2 WA_IT_ERROR_fk01-LIFNR,
17 SY-VLINE,
18 WA_IT_ERROR_fk01-BUKRS,
31 SY-VLINE,
32 WA_IT_ERROR_fk01-MSG,
100 SY-VLINE.
CLEAR : WA_IT_ERROR_fk01.
FORMAT COLOR OFF.
ENDLOOP.
WRITE:/ SY-ULINE(100).
endform. " display_error_report_fk01
*& Form display_error_report_fk02
Form to display Error Report for changed Vendors (FK02)
form display_error_report_fk02 .
IF P_VENMAS = 'X'.
WRITE:/ TEXT-O14. " Error List for Vendor Master (FK02)
ELSEIF P_VENEXT = 'X'.
WRITE:/ TEXT-O15. " Error List for Vendor Master Extended (FK02)
ENDIF.
WRITE:/ SY-ULINE(100).
FORMAT COLOR 1.
WRITE:/1 SY-VLINE,
2 TEXT-H01, " Vendor Number -
Different Pricing Schema in PO and PIR for same vendor and material
Dear Experts,
I am facing an issue related to MM.
I have a vendor and a material under a plant, purchase Org, purchase group.
When we are creating a Purchase Info Record (PIR), it is picking one pricing schema, while when creating PO for same vendor and material, it is picking another different pricing schema.
As per my knowledge, pricing schema in PO is picked as per pricing schema group of Vendor and I believe same applies for PIR as well. I have only one vendor pricing schema group.
Because of this issue, I have to manually key-in condition values in PO for all condition types even though I have maintained a purchase info record.
Please suggest, what can be reason.
Regards,
PraveenHi,
Thanks for clearing my doubts.
However, I stuck-up in another issue.
Problem is that condition type- PB00 is linked with almost all pricing schemas.
Hence, I can't change pricing procedure in condition type- PB00.
Also, I can't include all J* related condition types in RM0002 as well.
Hence, if PB00 remains as RM0002 and I maintain my pricing procedure- ZJIMPO to all J* condition types, still I am not able to create PIR for all J* conditions. Error "Condition type J1CV is not in procedure A M RM0002".
How to handle this issue? Please suggest.
Thanks
Praveen -
Vendor and material assignment
Hi all,
Is there any possibility to assign vendor to materials or material to vendor? our user wants that while taking drop down for vendor in ME21N screen, only vendors who sales materials, mentioned in purchase order, will be listed down.
Any idea to do this?
Best Regards,
AI.Hi Al,
Let me first clear that, vendor and material is possible through the Source List only in case of purchase requisitions i.e. ME51N and not in case of ME21N.
Still it can be achieved through minor ABAP developement. We can add IF statement in the BADI related to ME21N and give the selection criteria as you desired vendor and material combination, so that same material get copied to PO once you use the particular vendor. As its almost like hard coding, this is not very advisable, but if the requirement is stringent then this is one of the possible solution.
Moreover Vendor to material combintation is only possible and not material to vendor. As according to transaction flow one need to enter org data and vendor first before proceeding to the further data entry.
come back in case you need to know more.
bye,
sachin -
Hi Experts
How do we transfer the Vendor and material groups from ECC to SRM
RegardsHi SAP MAN,
We do replicate vendors from backend system to SRM via transaction code BBP_GETVD, and products are replicated through middle ware settings.
These middleware settings are maintained in both ECC and SRM systems.
regards,
IGA. -
Vendor and Material Replication from ECC6 Ehp7 to SRM7.0
Hi Experts,
I am facing an issue with replicating Material and Vendor Master from ECC to SRM system.
ECC system - ECC6.0 Ehp 7 & SRM system - SRM7.0
Middleware setting is done as per Note 720819 and performed the object like DNL_CUST_BASIS3 , DNL_CUST_PROD0, DNL_CUST_PROD1 and found Sucess in SRM R3AM1.
Errors :
1. Material Replication Error in SMW01
Mat. for Initial Download: Table not supported by function
Alternative units of measure are inconsistent; correct the values COM_PRODUCT_UNIT COMM_PR_UNIT
Alternative units of measure are inconsistent; correct the values
Validation error occurred: Module COM_PRODUCT_MAT_VALIDATE, BDoc type PRODUCT_MAT.
2. Vendor Replication Error in BBPGETVD
Backend systems with Release 740 are not supported
Message no. BBP_BUPA002
What are all the compatabilty issues will be faced connecting SAP ECC6 Ehp7 with SRM7.0? Can any one list down.
Please Suggest the valuable comments to resolve the problem as earliest.
Thanks & Regards,
Ramprakash NDear Ramprakash,
Please check below URL for #1.
Alternative units of measure are inconsistent; correct the values in SMW01
Please find the following note which might help you for issue #2.
1313972
1349825
1372175
Thanks
Shuvrajyoti -
MPN, block PO for a vendor and material (not MPN material)
Hello everyone,
I have a doubt regarding MPN process I created a MPN material referencing an internal material. I have a vendor and a manufacturer.
If I create a purchase order with the MPN material (in the line the internal material comes automatically) and vendor and the manufacture is blocked by QM status (MP01). When I try to save the PO I receive a warning message and I am not able to save the PO. No Issues till now.
The thing is, if I create a PO with the internal material and the vendor I am able to save it, and the MPN material never comes up. And I want to be blocked also in this escenario.
thanks in advance
SebasHi,
If you want that system should not allow user to create PO for the internal material and should only allow the MPN material then you can use Manufacturer's Part Profile in Internal material and MPN material and maintain Approved Manufacturer Part List (AMPL) in MP01.
You have to configure MPN Profile in SPRO > MM > Purchasing > Material Master > Define Manufacturer Part Profile
Here activate "MPN Mandatory" and rest all as per your requirement. -
Unable to work in embedded Excel worksheets, errors out, and forced into task manager
I am unable to work in Excel worksheets embedded Word 2010. I continually get the following errors/warnings: "Microsoft Word can't start the application required to open this object. An error occurred and this feature
is no longer functioning properly. Would you like to repair this feature now?" & " "The program used to create this object is Excel. That program is either not installed on your computer or it is not responding. To edit this object, install Excel or ensure
that any dialog boxes in Excel are closed." After these messages, I click to repair Word and upon a fresh reboot ...the same thing over and over and over again. After going through this procedure, I usually get another warning message regarding "OLE...." which
pops up continually until I "Ctrl-Alt-Del" and stop the Excel item in processes.
Currently I'm on Win7 64 Enterprise OS and 32 Bit Office 2010, Solutions that I have tried: disabling add-ins, updating, installing service packs with no success...
HELP PLEASEEEEEE!!!!Hi,
You disable COM Add-in in Excel or Word ?
This problem might be related to some third-party in Excel,
Close word, and start Excel worksheet.
In Excel, click File menu, click Options >
Add-ins, click Go button in the Manage:
COM Add-ins.
Check if there has any add-ins, clear the checkbox to disable them.
Start Word and try to edit your embedded files. They should now work without a problem.
If the problem does not appear, restart Excel and add one check back each time to the list of Add-In, restart the Excel program, and
repeat the above procedure. Once the issue reappears again, we can determine which add-in causes this problem and then disable it.
Best Regards.
William Zhou
TechNet Community Support -
Hello,
When I try to run a system state backup with this command: wbadmin start systemstatebackup -backuptarget:<drive letter>
I get the error
"Failed to create the shared protection point on the source volumes.
ERROR - Volume Shadow Copy Service operation error (0x8004230f)
The shadow copy provider had an unexpected error while trying to process the specified operation."
I'm not sure how to fix this. I'm logged into the machine as an Administrator.
Windows Server Enterprise 2008 SP2 64-bit
Any suggestions??After I re-registered the dll, I'm still getting the same error in the command window. The DLL registers successfully and the "MS Software Shadow Copy Provider" starts fine.
Two errors in the Event Viewer:
1.)
Log Name: Application
Source: Microsoft-Windows-Backup
Date: 1/21/2014 10:11:25 AM
Event ID: 521
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: mfacs-server-7.gs.umt.edu
Description:
Backup started at '1/21/2014 5:11:11 PM' failed as Volume Shadow copy operation failed for backup volumes with following error code '2155348075'. Please rerun backup once issue is resolved.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Backup" Guid="{1db28f2e-8f80-4027-8c5a-a11f7f10f62d}" />
<EventID>521</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2014-01-21T17:11:25.287Z" />
<EventRecordID>11410</EventRecordID>
<Correlation />
<Execution ProcessID="4964" ThreadID="3528" />
<Channel>Application</Channel>
<Computer>mfacs-server-7.gs.umt.edu</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="BackupTime">2014-01-21T17:11:11.920Z</Data>
<Data Name="ErrorCode">2155348075</Data>
<Data Name="ErrorMessage">%%2155348075</Data>
</EventData>
</Event>
2.)
Log Name: Application
Source: VSS
Date: 1/21/2014 10:11:24 AM
Event ID: 12293
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mfacs-server-7.gs.umt.edu
Description:
Volume Shadow Copy Service error: Error calling a routine on a Shadow Copy Provider {b5946137-7b9f-4925-af80-51abd60b20d5}. Routine details EndPrepareSnapshots({40d86592-3a48-4d38-afab-0e4a7b8bb8f1}) [hr = 0x8000ffff].
Operation:
Executing Asynchronous Operation
Context:
Current State: DoSnapshotSet
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="VSS" />
<EventID Qualifiers="0">12293</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2014-01-21T17:11:24.000Z" />
<EventRecordID>11409</EventRecordID>
<Channel>Application</Channel>
<Computer>mfacs-server-7.gs.umt.edu</Computer>
<Security />
</System>
<EventData>
<Data>{b5946137-7b9f-4925-af80-51abd60b20d5}</Data>
<Data>EndPrepareSnapshots({40d86592-3a48-4d38-afab-0e4a7b8bb8f1})</Data>
<Data>0x8000ffff</Data>
<Data>
Operation:
Executing Asynchronous Operation
Context:
Current State: DoSnapshotSet</Data>
<Binary>2D20436F64653A20434F52534E50534330303030313630392D2043616C6C3A20434F52534E50534330303030313539302D205049443A202030303030323732302D205449443A202030303030343139322D20434D443A2020433A5C57696E646F77735C73797374656D33325C76737376632E6578652020202D20557365723A204E5420415554484F524954595C53595354454D20202020202D205369643A2020532D312D352D3138</Binary>
</EventData>
</Event>
Results of vssadmin list writers:
C:\Windows\system32>vssadmin list writers
vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2005 Microsoft Corp.
Writer name: 'System Writer'
Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
Writer Instance Id: {f3c10044-4938-4d49-9f2d-789c571a6428}
State: [7] Failed
Last error: No error
Writer name: 'SqlServerWriter'
Writer Id: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
Writer Instance Id: {aaa19109-d447-40ec-b71e-2a8fbaed55ad}
State: [7] Failed
Last error: No error
Writer name: 'ASR Writer'
Writer Id: {be000cbe-11fe-4426-9c58-531aa6355fc4}
Writer Instance Id: {f64b2bfa-fd68-4729-bebb-7e281b144fc5}
State: [7] Failed
Last error: No error
Writer name: 'DPM Writer'
Writer Id: {0074a271-4f24-43e0-9ec7-28a44189cb80}
Writer Instance Id: {38646851-4a56-4499-b90c-181a839cae95}
State: [1] Stable
Last error: No error
Writer name: 'Shadow Copy Optimization Writer'
Writer Id: {4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f}
Writer Instance Id: {7ae6130c-b116-44a9-87a4-4b8bee461131}
State: [7] Failed
Last error: No error
Writer name: 'WMI Writer'
Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
Writer Instance Id: {62a5b392-a50f-4703-8c23-acb5590efcd1}
State: [7] Failed
Last error: No error
Writer name: 'BITS Writer'
Writer Id: {4969d978-be47-48b0-b100-f328f07ac1e0}
Writer Instance Id: {1615a920-5ec9-43d0-b6ff-a5b767430623}
State: [1] Stable
Last error: No error
Writer name: 'Registry Writer'
Writer Id: {afbab4a2-367d-4d15-a586-71dbb18f8485}
Writer Instance Id: {f22b72f6-940b-42c9-a824-80858e6f5f5c}
State: [7] Failed
Last error: No error
Writer name: 'COM+ REGDB Writer'
Writer Id: {542da469-d3e1-473c-9f4f-7847f01fc64f}
Writer Instance Id: {4c603239-dd36-4343-aba7-73858e574e39}
State: [7] Failed
Last error: No error
C:\Windows\system32>
Thanks! -
Assignment of Vendor and Material group
Hi All,
Is there any way to assign vendors/material groups to standard industry classifications.
We need to have vendors attached to these new industry groups and further to attach specific material groups and G/L's to these vendors- in that once a material group is selected (in SRM ordering), only the assigned vendors / GL groups will be allowed for selection.
Please let me know if this is possible in SRM 5.0 (by standard or Non standard).
regardsI believe there is a place in maintain supplier data
one field called product category check it up. i believe vendor data tab.
since for eg in ros , you registered vendor in srm via whta product category you can suplly to the organisation.
but no one is using extensively. some customers are using this field for spend analysis report for each vendor what is the spend on thi s particular product category.
which suppliesrs can provide product category
product category are customer specific. fr eg go to dun and brad sheet web page . here you may get a list which supplier can provide what PRODUCT CATEGORY -
Pre-export and post-import tasks
oracle8i/windows 2000 server.
i would like export my database from my organisation and import into my local
machine at home.
what are the precautions,tasks and post tasks
,i have to take during import and export.
c.santhanakrishnan.Why are you exporting your organisations db to import at home? Are you aware of the privacy issues this raises? Do you have approval from your organisation?
Exporting -
o NLS_LANG is set correctly
o Available space on disk
o consistent = y
o recordlength=65535
o direct=y
o log=<logfile_name>
o do you require grants, indexes?
o A feedback for progress,
o But even with consistent = y that is table consistent and there is a probability you may run into a problem with FKs (usually when exporting large amounts of data) and tables in the beginning of the export have child tables near the end of the export which (the child tables) have records inserted during the export which won't have a parent record on import and will be rejected.
Importing -
Some depend on the data volume. Do you want to -
o NLS_LANG is set correctly
o drop, re-create indexes to speed up import
o put the database in NOARCHIVELOG (if possible)
o need to also create public synonyms
o check triggers and if they will fire?
o need to create the schema/user to import (if it doesn't exist in the import database and is not a full export) ?
o do the tablespaces that the export was taken from exist in the import database?
o disable/enable FK constraints
o enough UNDO space
o enough archive log space (if in ARCHIVELOG mode)
oset a buffer (size depends)
o set a feedback to monitor progress (or check rows_processed in v$sql)
o if data already exists in the tables, does it need to be truncated (which raised other issues, constraints etc, take a backup prior to truncate?)
I probably missed stuff too. -
Vendor and Material (MARA and LFA1) linking
Hi ,
I have created a view on top of mara marc and mard for one of my report requirements. Here I have mara-mfrnr field is mapping to manufacurer field in BW. Now I need to restrict the data in to this field by acct group which is available in 0vendor as an attribute and 0manufacturer field is referenced by 0vendor. So when I'm loading the data I want to load only particular vendor acct group data in to this mfrnr field....Is this possible at all?
Please advice
Thanks
Edited by: sam on Nov 17, 2010 2:25 PM>
sam wrote:
> Hi ,
> I have created a view on top of mara marc and mard for one of my report requirements. Here I have mara-mfrnr field is mapping to manufacurer field in BW. Now I need to restrict the data in to this field by acct group which is available in 0vendor as an attribute and 0manufacturer field is referenced by 0vendor. So when I'm loading the data I want to load only particular vendor acct group data in to this mfrnr field....Is this possible at all?
>
> Please advice
>
> Thanks
>
> Edited by: sam on Nov 17, 2010 2:25 PM
1.Rather than working on view ,why don't you load everything to BW(table to flat DSOs) and write business logic in BW side.It will infact be easier and will help in future as well when you want some more changes or filter.
2.Since Your are already loading 0Material_attr .Check if you have that field there.You may enhace it to have the additional info.
Is it essential to restrict accout group??
Whatever you are telling can't be achieved by simple views(because they are static) and you have a dynamic logic.
You have 0Vendor-->referencing 0Manufacturer
-->attribute account group
0material -->attribute 0Manufacturer
You want to restrict all the materials --> who has a manufacturer of particular account group.???
3.Another approach:Load data of 0Vendor to Flat ZVENDSO with keys : Manufacturer & Account Group.(this will be delta enabled fast loading.)
Now :while loading Mara,Marc & Mard View ,use the look up to delete unnecessary data in start routine.
DATA: IT_ZVENDSO LIKE TABLE OF /BIC/AZVEDSO,
WA LIKE LINE OF IT_ZVENDSO.
LOOP AT IT_ZVENDSO in wa.
Delete source_package where manufacturer = wa-manufacturer and account_grp = wa-account_grp.
ENDLOOP.
This will remove unnecessary records.
4.Make an infoset on VIEW DSO & ZVENDSO on keys manufacturer & account group.It will have common keys.
Load data to any infoobject from this infoset.
Regards,
RK -
Single migo for multiple vendors and multiple material
Dear MM Experts,
I have 2 open purchase orders as per below
PO no 01 :- Material : A , Vendor : X
PO no 02 :- Material : B , Vendor : Y
Can we make the single goods receipt for both purchase orders even having different vendor and material.
If yes then How ? and if no then Why ?
Please advice me.
Thanks & Regards,
Sandeep.I have not read about or seen any reason why you should not do receipts of many vendors in one MIGO transaction.
The error message can be set to warning or even switched off entirly. SAP would certainly not allow to switch an error to a warning if that could harm accounting documents. At least they would have issued an OSS message outlining what problems can ocur and that they dont take responsibility if make it a warning.
It is not a usual process. at least in my environment each vendor sends individually. But I can imagine to pick the goods from different vendors myself and bring it into the plant. so it can be worth to do a single receipt.
I found one OSS note that mentions (for me) a valid reason for error message by default: the info in the screen may confunse the users.
Note 300711 - Header data of MIGO refers to 1st item
Symptom
During goods receipt for several purchase orders with, for example, different vendors, the header data of Transaction MIGO does not change after you have entered the 2nd purchase order. The system still displays the vendor of the first item.
The system shows this behavior for all fields of the header area which are actually order item data.
Solution
This function corresponds to the design of Transaction MIGO
The item data which is displayed in the header area (as for example, the vendor) refers always to the first item.
It is displayed in the header area to make the work easier for the person who entered the data since this data is often identical for all items and a check of the header area is quicker. If you work with different 'header data' per item you must check the data on the detail of the individual items. -
Importing changlist failed: unknown error has occured
Hello,
while importing a changelist from mas-test to mas-prod-system I get
error in transport service:
Importing changelist failed: unknwon error has occured, trying to reconnect.
I reinstalled the service, connections are ok, but this didn't solve the probelm.
What I have seen is that in the tile set 'imported changelist to be released'
my released changelist is about 25 times there - I think that is not normal.
Does anybody know where the problem could be ?
Thanks GerdHi Gerd,
I don't know how to solve that particular issue but as a workaround I suggest to manually export and import the CL.
In 4.0 use these commands:
1. Export
Transport.exe /DBDars_db /DBUarsadmin /DBP /EXPexport /DIR"C:\temp" /CIDXX43748642B841409C5F03XXXXXXXXXX
where:
/DBD = Dsn of DB
/DBU = Administrator user(ARSAdmin)
/DBP = Password
/EXP = Operation(either export or import)
/DIR = Path to save the files to(during export) as well as path from where to pick up the CLs from(during import)
/CID = ChangelistID to be exported/imported
2. Import
Transport.exe /DBDars_db /DBUarsadmin /DBP /EXPimport /DIR"C:\temp" /CIDXX43748642B841409C5F03CXXXXXXXXX
If you are on .net use the Import / Export Manager. If you need that tool please contact me directly.
Regards
Whity -
HI,
We have Installed OBI Apps V796. Below are the details.
OBI Apps V796
OBIEE 10.1.3.4.1
DAC 10.1.3.4.1
Informatica 8.6.0
We are getting the below error for the task "SDE_ORA_PartyPersonDimension_Customer" when we run the execution plan related to supply chain and order management analytics.
Severity Timestamp Node Thread Message Code Message
ERROR 6/23/2009 8:25:54 PM node01_obiee WRITER_1_*_1 WRT_8229 Database errors occurred:
Database driver error...
Function Name : Execute Multiple
SQL Stmt : INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ".
As a work around we tried by changing the Target load type option to normal(previously it is bulk) and still the task failed. Also tried by enabling the Constraint based loading option and still the tas got failed.
Any suggestions............
As
Regards
Venkatesh.Exactly same problem I'm also facing. The log is not showing any exact error information for the cause. And the surprise thing is when i'm running the debugger its inserting all the records. But when i run the task it is failing. Here is the log.
DIRECTOR> VAR_27028 Use override value [DataWarehouse] for session parameter:[$DBConnection_OLAP].
DIRECTOR> VAR_27028 Use override value [ORA_11_5_10] for session parameter:[$DBConnection_OLTP].
DIRECTOR> VAR_27028 Use override value [ORA_11_5_10.DATAWAREHOUSE.SDE_ORA11510_Adaptor.SDE_ORA_PartyPersonDimension_Customer_Full.log] for session parameter:[$PMSessionLogFile].
DIRECTOR> VAR_27028 Use override value [4] for mapping parameter:[$$DATASOURCE_NUM_ID].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$Hint1].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$Hint2].
DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_ORA_PartyPersonDimension.$$LAST_EXTRACT_DATE].
DIRECTOR> VAR_27028 Use override value [DEFAULT] for mapping parameter:[$$TENANT_ID].
DIRECTOR> TM_6014 Initializing session [SDE_ORA_PartyPersonDimension_Customer_Full] at [Mon Dec 28 19:10:26 2009].
DIRECTOR> TM_6683 Repository Name: [AA_REPOSITORY_SERVICE]
DIRECTOR> TM_6684 Server Name: [AA_INTEGRATION_SERVICE]
DIRECTOR> TM_6686 Folder: [SDE_ORA11510_Adaptor]
DIRECTOR> TM_6685 Workflow: [SDE_ORA_PartyPersonDimension_Customer_Full] Run Instance Name: [] Run Id: [1371]
DIRECTOR> TM_6101 Mapping name: SDE_ORA_PartyPersonDimension_Customer [version 1].
DIRECTOR> TM_6963 Pre 85 Timestamp Compatibility is Enabled
DIRECTOR> TM_6964 Date format for the Session is [MM/DD/YYYY HH24:MI:SS]
DIRECTOR> TM_6703 Session [SDE_ORA_PartyPersonDimension_Customer_Full] is run by 32-bit Integration Service [node01_obiee], version [8.6.1 HotFix6], build [0622].
MANAGER> PETL_24058 Running Partition Group [1].
MANAGER> PETL_24000 Parallel Pipeline Engine initializing.
MANAGER> PETL_24001 Parallel Pipeline Engine running.
MANAGER> PETL_24003 Initializing session run.
MAPPING> CMN_1569 Server Mode: [UNICODE]
MAPPING> CMN_1570 Server Code page: [UTF-8 encoding of Unicode]
MAPPING> TM_6151 The session sort order is [Binary].
MAPPING> TM_6185 Warning. Code page validation is disabled in this session.
MAPPING> TM_6156 Using low precision processing.
MAPPING> TM_6180 Deadlock retry logic will not be implemented.
MAPPING> TM_6307 DTM error log disabled.
MAPPING> TE_7022 TShmWriter: Initialized
MAPPING> DBG_21075 Connecting to database [BIDB], user [AABAW]
MAPPING> CMN_1716 Lookup [Lkp_W_ORA_PARTY_CONTACT_PS] uses database connection [Relational:DataWarehouse] in code page [MS Windows Latin 1 (ANSI), superset of Latin1]
MAPPING> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:26 2009]
MAPPING> TE_7004 Transformation Parse Warning [IIF(ISNULL(CONTACT_PARTY_ID||DATASOURCE_NUM_ID), '', 'Contact')]; transformation continues...
MAPPING> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:26 2009]
MAPPING> TE_7004 Transformation Parse Warning [<<PM Parse Warning>> [||]: operand converted to a string
... IIF(ISNULL(CONTACT_PARTY_ID||>>>>DATASOURCE_NUM_ID<<<<), '', 'Contact')]; transformation continues...
MAPPING> TM_6007 DTM initialized successfully for session [SDE_ORA_PartyPersonDimension_Customer_Full]
DIRECTOR> PETL_24033 All DTM Connection Info: [<NONE>].
MANAGER> PETL_24004 Starting pre-session tasks. : (Mon Dec 28 19:10:26 2009)
MANAGER> PETL_24027 Pre-session task completed successfully. : (Mon Dec 28 19:10:26 2009)
DIRECTOR> PETL_24006 Starting data movement.
MAPPING> TM_6660 Total Buffer Pool size is 12582912 bytes and Block size is 128000 bytes.
READER_1_1_1> DBG_21438 Reader: Source is [DEV01], user [apps]
READER_1_1_1> BLKR_16051 Source database connection [ORA_11_5_10] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
READER_1_1_1> BLKR_16003 Initialization completed successfully.
WRITER_1_*_1> WRT_8146 Writer: Target is database [BIDB], user [AABAW], bulk mode [ON]
WRITER_1_*_1> WRT_8106 Warning! Bulk Mode session - recovery is not guaranteed.
WRITER_1_*_1> WRT_8221 Target database connection [DataWarehouse] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL INSERT statement:
INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,CON_ACTIVE_FLG1,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL UPDATE statement:
UPDATE W_PARTY_PER_DS SET PARTY_TYPE = ?, FST_NAME = ?, FULL_NAME = ?, MID_NAME = ?, LAST_NAME = ?, DEPARTMENT_NAME = ?, CONTACT_ID = ?, CONTACT_TYPE = ?, FAX_PH_NUM = ?, PAGER_NUM = ?, MOBILE_NUM = ?, WORK_PHONE = ?, SEX_MF_CD = ?, ETHNICITY_CD = ?, MARITAL_STAT_CD = ?, BIRTH_DT = ?, BIRTH_PLACE = ?, DEATH_DT = ?, ST_ADDRESS = ?, CITY = ?, STATE = ?, ZIPCODE = ?, COUNTRY = ?, EMAIL_ADDR = ?, JOB_TITLE = ?, ANNL_INCOME = ?, CON_ACTIVE_FLG1 = ?, SUPPRESS_EMAIL_FLG = ?, PROF_TITLE = ?, STATUS_CD = ?, ST_ADDRESS2 = ?, ST_ADDRESS3 = ?, ST_ADDRESS4 = ?, CREATED_BY_ID = ?, CHANGED_BY_ID = ?, CREATED_ON_DT = ?, CHANGED_ON_DT = ?, AUX1_CHANGED_ON_DT = ?, AUX2_CHANGED_ON_DT = ?, AUX3_CHANGED_ON_DT = ?, AUX4_CHANGED_ON_DT = ?, SRC_EFF_TO_DT = ?, DELETE_FLG = ?, TENANT_ID = ?, X_CUSTOM = ?, CUSTOMER_NUM = ? WHERE SRC_EFF_FROM_DT = ? AND DATASOURCE_NUM_ID = ? AND INTEGRATION_ID = ?
WRITER_1_*_1> WRT_8124 Target Table W_PARTY_PER_DS :SQL DELETE statement:
DELETE FROM W_PARTY_PER_DS WHERE SRC_EFF_FROM_DT = ? AND DATASOURCE_NUM_ID = ? AND INTEGRATION_ID = ?
WRITER_1_*_1> WRT_8270 Target connection group #1 consists of target(s) [W_PARTY_PER_DS]
WRITER_1_*_1> WRT_8003 Writer initialization complete.
READER_1_1_1> BLKR_16007 Reader run started.
READER_1_1_1> RR_4029 SQ Instance [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] User specified SQL Query [SELECT b1.party_id, b1.party_type, b1.person_name, b1.person_first_name, b1.person_middle_name, b1.person_last_name, b1.status, b1.phone_area_code, b1.phone_number, b1.address1, b1.address2, b1.address3, b1.address4, b1.postal_code, b1.city, b1.state, b1.country, b1.email_address, b1.date_of_birth, b1.place_of_birth, b1.date_of_death, b1.gender, b1.declared_ethnicity, b1.marital_status, b1.person_title, b1.personal_income, b1.do_not_mail_flag, b1.created_by, b1.creation_date, b1.last_updated_by, b1.last_update_date1 last_update_date, b1.last_update_date2 last_update_date, b1.last_update_date3 last_update_date, b1.party_number, b1.ACCNT_FLG FROM (SELECT per.party_id, pty.party_type, per.person_name, per.person_first_name, per.person_middle_name, per.person_last_name, pty.status, cnp.phone_area_code, cnp.phone_number, pty.address1, pty.address2, pty.address3, pty.address4, pty.postal_code, pty.city, pty.state, pty.country, pty.email_address, per.date_of_birth, per.place_of_birth, per.date_of_death, per.gender, per.declared_ethnicity, per.marital_status, per.person_title, per.personal_income, pty.do_not_mail_flag, per.created_by, per.creation_date, per.last_updated_by, per.last_update_date last_update_date1, pty.last_update_date last_update_date2, cnp.last_update_date last_update_date3, pty.party_number, (CASE WHEN acct.PARTY_ID IS NOT NULL THEN 'Y' END) ACCNT_FLG, MAX (per.person_profile_id) OVER (PARTITION BY per.party_id) max_person_profile_id, per.person_profile_id FROM hz_person_profiles per, hz_parties pty, hz_contact_points cnp, (SELECT a1.party_id, COUNT (1) cnt FROM (SELECT per.party_id FROM hz_person_profiles per UNION ALL SELECT pty.party_id FROM hz_parties pty UNION ALL SELECT --/*+ use_hash(pty cnp) index_ffs(pty, hz_parties_u1)*/ pty.party_id FROM hz_parties pty, hz_contact_points cnp WHERE pty.party_id = cnp.owner_table_id ) a1 GROUP BY party_id) TEMP, hz_cust_accounts acct WHERE per.party_id = TEMP.party_id AND per.party_id = pty.party_id AND pty.party_id = cnp.owner_table_id(+) AND cnp.owner_table_name(+) = 'HZ_PARTIES' AND cnp.contact_point_type(+) = 'PHONE' AND cnp.primary_flag(+) = 'Y' AND acct.PARTY_ID(+) = pty.PARTY_ID) b1 WHERE b1.person_profile_id = b1.max_person_profile_id HAVING COUNT (1) >= 0 GROUP BY b1.party_id, b1.party_type, b1.person_name, b1.person_first_name, b1.person_middle_name, b1.person_last_name, b1.status, b1.phone_area_code, b1.phone_number, b1.address1, b1.address2, b1.address3, b1.address4, b1.postal_code, b1.city, b1.state, b1.country, b1.email_address, b1.date_of_birth, b1.place_of_birth, b1.date_of_death, b1.gender, b1.declared_ethnicity, b1.marital_status, b1.person_title, b1.personal_income, b1.do_not_mail_flag, b1.created_by, b1.creation_date, b1.last_updated_by, b1.last_update_date1, b1.last_update_date2, b1.last_update_date3, b1.party_number, b1.ACCNT_FLG]
READER_1_1_1> RR_4049 SQL Query issued to database : (Mon Dec 28 19:10:26 2009)
WRITER_1_*_1> WRT_8005 Writer run started.
WRITER_1_*_1> WRT_8158
*****START LOAD SESSION*****
Load Start Time: Mon Dec 28 19:10:26 2009
Target tables:
W_PARTY_PER_DS
READER_1_1_1> RR_4050 First row returned from database to reader : (Mon Dec 28 19:10:29 2009)
LKPDP_1> DBG_21312 Lookup Transformation [Lkp_W_ORA_PARTY_CONTACT_PS]: Lookup override sql to create cache: SELECT W_ORA_PARTY_CONTACT_PS.DEPARTMENT AS DEPARTMENT, W_ORA_PARTY_CONTACT_PS.ORG_CONTACT_ID AS ORG_CONTACT_ID, W_ORA_PARTY_CONTACT_PS.CONTACT_NUMBER AS CONTACT_NUMBER, W_ORA_PARTY_CONTACT_PS.JOB_TITLE AS JOB_TITLE, W_ORA_PARTY_CONTACT_PS.DATASOURCE_NUM_ID AS DATASOURCE_NUM_ID, W_ORA_PARTY_CONTACT_PS.CONTACT_PARTY_ID AS CONTACT_PARTY_ID FROM W_ORA_PARTY_CONTACT_PS WHERE CUST_ACCOUNT_ROLE_ID=0 ORDER BY DATASOURCE_NUM_ID,CONTACT_PARTY_ID,DEPARTMENT,ORG_CONTACT_ID,CONTACT_NUMBER,JOB_TITLE
LKPDP_1> TE_7212 Increasing [Index Cache] size for transformation [Lkp_W_ORA_PARTY_CONTACT_PS] from [1048576] to [1392640].
LKPDP_1> TM_6660 Total Buffer Pool size is 609824 bytes and Block size is 65536 bytes.
LKPDP_1:READER_1_1> DBG_21438 Reader: Source is [BIDB], user [AABAW]
LKPDP_1:READER_1_1> BLKR_16051 Source database connection [DataWarehouse] code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
LKPDP_1:READER_1_1> BLKR_16003 Initialization completed successfully.
LKPDP_1:READER_1_1> BLKR_16007 Reader run started.
LKPDP_1:READER_1_1> RR_4049 SQL Query issued to database : (Mon Dec 28 19:10:29 2009)
LKPDP_1:READER_1_1> RR_4050 First row returned from database to reader : (Mon Dec 28 19:10:30 2009)
LKPDP_1:TRANSF_1_1> DBG_21079 Creating Lookup Cache : (Mon Dec 28 19:10:30 2009)
LKPDP_1:READER_1_1> BLKR_16008 Reader run completed.
LKPDP_1:TRANSF_1_1> DBG_21682 Lookup table row count : 3247
LKPDP_1:TRANSF_1_1> DBG_21297 Lookup cache row count : 3238
LKPDP_1:TRANSF_1_1> DBG_21294 Lookup cache creation completed : (Mon Dec 28 19:10:30 2009)
LKPDP_1:TRANSF_1_1> CMN_1671 Created new cache files PMLKUP16713_5_0_1371W32.[dat/idx] in directory E:\Informatica\PowerCenter861\server\infa_shared\Cache for Lookup [Lkp_W_ORA_PARTY_CONTACT_PS].
LKPDP_1:TRANSF_1_1> DBG_21641 Lkp_W_ORA_PARTY_CONTACT_PS: Index cache size = [1392640], Data cache size = [2097152]
WRITER_1_*_1> WRT_8167 Start loading table [W_PARTY_PER_DS] at: Mon Dec 28 19:10:29 2009
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8229 Database errors occurred:
Database driver error...
Function Name : Execute Multiple
SQL Stmt : INSERT INTO W_PARTY_PER_DS(PARTY_TYPE,FST_NAME,FULL_NAME,MID_NAME,LAST_NAME,DEPARTMENT_NAME,CONTACT_ID,CONTACT_TYPE,FAX_PH_NUM,PAGER_NUM,MOBILE_NUM,WORK_PHONE,SEX_MF_CD,ETHNICITY_CD,MARITAL_STAT_CD,BIRTH_DT,BIRTH_PLACE,DEATH_DT,ST_ADDRESS,CITY,STATE,ZIPCODE,COUNTRY,EMAIL_ADDR,JOB_TITLE,ANNL_INCOME,CON_ACTIVE_FLG1,SUPPRESS_EMAIL_FLG,PROF_TITLE,STATUS_CD,ST_ADDRESS2,ST_ADDRESS3,ST_ADDRESS4,CREATED_BY_ID,CHANGED_BY_ID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,DELETE_FLG,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,CUSTOMER_NUM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8425 ERROR: Writer execution failed.
WRITER_1_*_1> WRT_8333 Rolling back all the targets due to fatal session error.
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> CMN_1022 Database driver error...
CMN_1022 []
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8183 Rollback failed for the target [W_PARTY_PER_DS]
WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
WRITER_1_*_1> WRT_8081 Writer run terminated. [Error in loading data to target table [W_PARTY_PER_DS]]
WRITER_1_*_1> WRT_8168 End loading table [W_PARTY_PER_DS] at: Mon Dec 28 19:10:30 2009
WRITER_1_*_1> WRT_8035 Load complete time: Mon Dec 28 19:10:30 2009
LOAD SUMMARY
============
WRT_8036 Target: W_PARTY_PER_DS (Instance Name: [W_PARTY_PER_DS])
WRT_8038 Inserted rows - Requested: 1568 Applied: 1552 Rejected: 0 Affected: 1552
WRITER_1__1> WRT_8043 ****END LOAD SESSION*****
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [W_PARTY_PER_DS], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_SA_ORA_PartyPersonDimension.EXP_PARTY_PERSON], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_SA_ORA_PartyPersonDimension.EXP_PARTY_PERSON], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.EXP_PER_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.EXP_PER_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> CMN_1761 Timestamp Event: [Mon Dec 28 19:10:30 2009]
TRANSF_1_1_1> TM_6085 A fatal error occurred at transformation [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY], and the session is terminating.
TRANSF_1_1_1> DBG_21511 TE: Fatal Transformation Error.
MANAGER> PETL_24031
***** RUN INFO FOR TGT LOAD ORDER GROUP [1], CONCURRENT SET [1] *****
Thread [READER_1_1_1] created for [the read stage] of partition point [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] has completed.
Total Run Time = [3.765415] secs
Total Idle Time = [0.781122] secs
Busy Percentage = [79.255350]
Thread [TRANSF_1_1_1] created for [the transformation stage] of partition point [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY] has completed.
Total Run Time = [1.001440] secs
Total Idle Time = [0.690994] secs
Busy Percentage = [30.999937]
Transformation-specific statistics for this thread were not accurate enough to report.
Thread [WRITER_1_*_1] created for [the write stage] of partition point [W_PARTY_PER_DS] has completed. The total run time was insufficient for any meaningful statistics.
MAPPING> CMN_1793 The index cache size that would hold [3238] rows in the lookup table for [Lkp_W_ORA_PARTY_CONTACT_PS], in memory, is [696320] bytes
MAPPING> CMN_1792 The data cache size that would hold [3238] rows in the lookup table for [Lkp_W_ORA_PARTY_CONTACT_PS], in memory, is [1908736] bytes
MANAGER> PETL_24005 Starting post-session tasks. : (Mon Dec 28 19:10:30 2009)
MANAGER> PETL_24029 Post-session task completed successfully. : (Mon Dec 28 19:10:30 2009)
MAPPING> TE_7216 Deleting cache files [PMLKUP16713_5_0_1371W32] for transformation [Lkp_W_ORA_PARTY_CONTACT_PS].
MAPPING> TM_6018 The session completed with [0] row transformation errors.
MANAGER> PETL_24002 Parallel Pipeline Engine finished.
DIRECTOR> PETL_24013 Session run completed with failure.
DIRECTOR> TM_6022
SESSION LOAD SUMMARY
================================================
DIRECTOR> TM_6252 Source Load Summary.
DIRECTOR> CMN_1740 Table: [SQ_HZ_PERSON_PARTY] (Instance Name: [mplt_BC_ORA_PartyPersonDimension.SQ_HZ_PERSON_PARTY])
Output Rows [1788], Affected Rows [1788], Applied Rows [1788], Rejected Rows [0]
DIRECTOR> TM_6253 Target Load Summary.
DIRECTOR> CMN_1740 Table: [W_PARTY_PER_DS] (Instance Name: [W_PARTY_PER_DS])
Output Rows [1552], Affected Rows [1552], Applied Rows [1552], Rejected Rows [0]
DIRECTOR> TM_6023
===================================================
DIRECTOR> TM_6020 Session [SDE_ORA_PartyPersonDimension_Customer_Full] completed at [Mon Dec 28 19:10:31 2009].
Maybe you are looking for
-
File adapter: lastFiledsOptional = YES
Hi, I have a file adapter that works fine with this setup: <u>Structure:</u> Head,1,Line,* <u>Adapter:</u> Head.lastFieldsOptional = YES Line.lastFieldsOptional = YES But with this setup, i still get the message <i>java.lang.Exception: Consiste
-
Actual Cost Process - ORA-00001
Hi Is the anyone knows this error ORA-00001: Unique constraint (GMF.CM-CMPT_DTL_PK) violated. **** sy_etrap - FATAL_ERROR ****%N%NFunction: gmfaput_cm_cmpt_dtl_insert%N%NStatement: insert from cm_cmpt_dtl_raw%N%NError: ORA-00001: unique constraint (G
-
Error 1 Unable to copy file "obj...
Hi there! I am specifically using Visual Studio 2013:Windows Forms Application version 3.5 and this error log keeps popping up! I keep seeing stuff like visual C#, but how do I fix this? Error Log: Error 1 Unable to copy file "obj\Debug\Project.exe"
-
Creating new task based om completion of previous task in R17
Hi All, Currently in R16, the workflow of creating new task based on "When Modified Record Saved" for Activity entity is not possible. Meaning, for ACTIVITY it is not possible to generate new task based on completion of previous one, for example. Wil
-
Captivate 3 Trial Safe to Install Alongside Captivate 2?
I have XP SP2 and am having a heck of a bad time with Captivate 2 being very unstable. Is it safe to download and use the Captivate 3 trial version without removing Captivate 2?