Find Error in LSMW
Hi Friends,
during the creation of Materila in LSMW I get the following error.
'An error has occurred assigning data (E1BP_MARA )'
In WE02 I can not find any additional Info to find the reason.
only
"An error has occured when carrying out this operation, possibly due to
an incorrect data type or data format in the segment E1BP_MARA."
In E1BP_MARA I have about 40 fields and is dificault to find the wrong field.
Does somebody has a solution for this?
Thank you very much in advance.
Rg. Jimbob.
In WE02 after providing in your message type and basic type execute it .Check for the control record having status 51(red,error) than check with the record what error does it throws ?Check for the error in status record it states the error clearly alternately you can check in BD87 transaction also.Revert Back to forum if you still face any issues.
Regards
Somnath
Similar Messages
-
hi all
how can we trap errors in lsmw tool?hi,
u can get the log after u process the session
when u go to sm35 u will find the log there u will get the summery of the process in that if u choose only errors to display to then u will get only errors occured in it.
u can refer this thread also, it will give an idea also.
Re: errors record handling in LSMW
Rgds
Anver
<i>if hlped pls mark points</i> -
Did not find error in message but message is in error
Hi dears,
i got a synchronous message in error.and i checked that in SXMB_MONI.Where its original message is recorded and its response message is in error category of 'Request Message Mapping' .with no error id.
i want to find exact error in its Trace and in error.
can you explain why i am unable to find the exact error ? kindly reply to me.
Thanks and Regards,
Sumit GuptaHi Michal,
Thanks for your information.but i am working in production system and not authorized to check the mapping error.
i can not find error in error and in trace.
have u encountered any times situation like this.then how had u resolved that issue. kindly guide me.
Thanks and Regards,
Sumit Kumar -
Error in LSMW while specifying file for Material Cassification and Info Rec
Hi Friends,
I'm getting an error in LSMW while specifying file for Material Cassification and Info Record using batch input method.
The error message i'm getting is:
"Length of physical file name 'R2R_33_PURCH_INFR_1_PIR_CREATE.lsmw.conv' cannot be longer than 30 characters
Message no. /SAPDMC/LSMW_OBJ_060049"
I tried changing the file name but that is not working out. Please help.
Thanks,
AmitHi,
Just try this,
Go to LSMW, Specify file option, use display/change (Ctrl+F1)
Select the converted data and double click, change the file name there,
You will be getting it as "'R2R_33_PURCH_INFR_1_PIR_CREATE"
Just trim this to "'R2R_33_PUR_INF_1_PIR_CRE" and try...
Regards
Merwyn -
Hi,
I am getting error while creating LSMW for ME11, No QM info record exists for vendor xxxx.
How will I know for vendor QM info record to be maintained.
Smithathis problem has actually nothing to do with LSMW, you get the same error without LSMW
In your material master QM view is a control key, and based on the cusotmizing of the control key it requires a Q-info record. -
Error in LSMW getting return code 6
Hi all,
i Am getting a Error in LSMW getting return code 6 , after asign a file , in the read data step i am getting the error , please help me it is very urgent,
sridharHi,
If the Sy-Subrc is 0 then Success, if the Sy-SUBRC is 4 then failure, if the Sy-SUBRC = 6 then the user might be not access to read the file
AUTHORITY-CHECK sets SY-SUBRC to 0 if the user has the necessary authorization, otherwise 4, 8, 12, 16, 24, 28, 32, or 36 depending on the cause
Regards
Sudheer -
Hi Experts,
How can we handle errors in LSMW..(Using Batch input recording method in LSMW)..If any error comes will it allow to craete session?..
Regardshi
good
LSMW creates a file of all the input records that failed. Look at the error log and see why it failed. Fix the problem (config/data/etc.) then reprocess the records that failed.
thanks
mrutyun^ -
Help please! Another Finder Error
Hi,
The script below is designed to backup files from the source area to the backup area preserving the folder hierarchy. While I’m sure it could be written better, it seems to work until it encounters a particular folder containing a file, when I get the following Finder error shown below. At this point it has already done approximately 60 files in about 10 folders. If I remove the file from the folder the script will continue processing a further 300 files and sub-folders before getting the same error on another folder/file.
Can someone explain what the error means? Any comments or suggestions to improve the script would be welcome.
tell application "Finder"
get every item of folder (alias "Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl:")
{alias "Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl:Pen Testing Brief 2005.doc"}
"Can't make alias \"Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl::Pen Testing Brief 2005.doc\" into type «class alst»."
-- Backup Script.
-- This script will attempt to backup the specified folder(s) and all sub-folders to the external disk
-- drive. It duplicates the folder sub-folder hierarchy in the backup area.
-- If a previous backup of the file exists in the backup directory it is renamed to
-- 'filename-yy-mm-dd (hhmmss).extension' where yy-mm-dd and hhmmss are taken from
-- the modification date of the file in the backup directory.
on run
-- Get the path to the desktop for the log file.
set desktopPath to (path to desktop from user domain) as string
-- Get the current date and time formatted.
set thisDateAndTime to get current date
tell me
formatDateAndTime(thisDateAndTime)
set thatDateAndTime to result
end tell
-- Compile the name for the log file.
set backupLogPath to desktopPath & "Backup Log" & thatDateAndTime & ".txt"
-- Create and open the log file.
try
set backupLogFile to (open for access file backupLogPath with write permission)
end try
set backupLog to backupLogFile
-- Write a starting message to the log file.
set logMsg to "Backup Starting..." as string
append2BackupLog(logMsg)
-- Define the global variables.
global backupLog -- The file specification of the backup log file.
global backupPath -- Top level folder for the backup.
global topSourceFolder -- The top level source folder name without the proceeding path.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Define the backup folder to receive the backups.
set backupPath to "ANDY:Business:Backups:" as text
-- Define the folder to be backed up (the source folder).
set sourceFolder to (path to home folder from user domain) as text
set sourceFolder to (sourceFolder & "Documents:NetXxx II:")
set topSourceFolder to "NetXxx II" as text
-- Process the folder.
processAFolder(sourceFolder)
-- All done so write a final entry, close the log file and return.
set logMsg to "Backup Ending..."
append2BackupLog(logMsg)
close access backupLogFile
end run
-- This routine process each file in the specified folder.
on processAFolder(theFolder)
-- Declare the global variables we reference.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Write a message to the log file that we are processing the folder.
set logMsg to "Processing folder " & theFolder
append2BackupLog(logMsg)
tell application "Finder"
-- Get a list of everything in the specified folder.
set allItems to every item of folder theFolder as alias list
repeat with eachItem in allItems
-- Check if this is a folder file.
set fileInfo to info for eachItem
set thisClass to kind of fileInfo as text
if thisClass is equal to "Folder" then
-- We have a another folder so do a recursive call.
tell me
processAFolder(eachItem)
end tell
else
-- Store the file information we will need in processAFile() in the global variables.
set fileName to eachItem as text
set sourceFileName to name of fileInfo as text -- Get the file name but not the path.
set sourceFileExtension to name extension of fileInfo as text -- Get the file extension.
-- Now process the file.
tell me
processAFile(fileName)
end tell
end if
end repeat
end tell
end processAFolder
-- This routine processes the specified file.
on processAFile(fileName)
-- Define the global variables referenced in this script.
global topSourceFolder -- The top folder to be backed up.
global backupPath -- The top folder in the backup area.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Get the folder paths from topSourceFolder downwards to the current folder.
set currentBackupFolderPath to ""
set folderTree to ""
set addFolder to false
set savedTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
tell application "Finder"
repeat with iFolder in text items of fileName
set thisFolder to iFolder as text
if (thisFolder is equal to topSourceFolder) then
set addFolder to true -- We are now at the top of the tree so start adding the folder names to the folder tree.
end if
if thisFolder is equal to sourceFileName then
set addFolder to false -- As its the current file name we don't want it in the folder tree.
end if
if addFolder is true then
-- While were at it check that the folder exists in the backup area.
set backupFolder to backupPath & folderTree & thisFolder
set backupFolderExists to (folder backupFolder exists)
if backupFolderExists is equal to false then
-- It does not exist so create the folder in the backup area.
set backupFolderPath to backupPath & folderTree as file specification
make new folder at folder backupFolderPath with properties {name:thisFolder}
end if
-- Add the folder to the folder tree.
set folderTree to folderTree & thisFolder & ":"
end if
end repeat
set AppleScript's text item delimiters to savedTID
-- Set the backup folder path.
set backupFolder to (backupPath & folderTree)
-- check if the files exist
set sourceFileExists to (file fileName exists)
set backupFileExists to (file sourceFileName of folder backupFolder exists)
-- Backup the file to the required backup folder.
if sourceFileExists and not backupFileExists then
-- File did not exist in the backup directory so copy it there.
duplicate file fileName to folder backupFolder
-- Write a log file entry for the file.
set logMsg to "Backup of " & fileName
tell me
append2BackupLog(logMsg)
end tell
else
-- Both files exist, so check if the file in the source folder is newer.
if (modification date of file fileName) > (modification date of file sourceFileName of folder backupFolder) then
-- We need to rename the old backup file before we make a backup copy of the newer file.
set thisDateAndTime to modification date of file sourceFileName of folder backupFolder
-- Get the current date and time formatted.
tell me
formatDateAndTime(thisDateAndTime)
set thatDateAndTime to result
end tell
-- We need to get the file name minus the extension.
set oldTID to AppleScript's text item delimiters -- Get the current text item delimiters (TIDs).
set AppleScript's text item delimiters to {"."} -- Set them to ".".
set justFileName to first text item of sourceFileName -- Get the filename before the "."
set AppleScript's text item delimiters to oldTID -- Restore the TIDs to what they were.
-- Build the new file name for the old backup file.
set newFileName to justFileName & thatDateAndTime & "." & sourceFileExtension
-- Rename the file in the backup area and take a copy of the newer file.
set name of file (sourceFileName as text) of folder backupFolder to newFileName
duplicate file fileName to folder backupFolder
-- Write the log file entry's for the file rename and the file backup.
tell me
set logMsg to "Renamed old backup file to " & newFileName
append2BackupLog(logMsg)
set logMsg to "Backup of " & fileName
append2BackupLog(logMsg)
end tell
end if
end if
end tell
end processAFile
-- Format the specified date & time into a string of the form "dd-mm-yy (hhmmss)".
on formatDateAndTime(thisDateAndTime)
set dateString to short date string of thisDateAndTime
set timeString to time string of thisDateAndTime
set fileDateString to "" as text
repeat with iWord in words of dateString
set fileDateString to fileDateString & "-"
if length of iWord is 2 then
set fileDateString to fileDateString & iWord as text
end if
if length of iWord is 1 then
-- Pad single digits out with a leading zero.
set fileDateString to fileDateString & "0" & iWord as text
end if
end repeat
-- Format the time into "(hhmmss)".
set fileTimeString to " (" as text
repeat with iTime in words of timeString
set fileTimeString to fileTimeString & iTime as text
end repeat
set fileTimeString to fileTimeString & ")" as text
-- Set the return parameter to the result and return.
set thatDateAndTime to fileDateString & fileTimeString
end formatDateAndTime
-- This routine writes the specified message to the end of the log file.
-- NOTE - the log file is assumed to be already open with write access.
on append2BackupLog(logMsg)
global backupLog -- Global variable that defines the path to the log file.
-- Get the current date and time formatted.
set dateString to short date string of (get current date) & space & time string of (get current date)
try
write (dateString & " " & logMsg & return as text) to backupLog starting at eof
end try
end append2BackupLog
15" MacBook Pro 2.16GHz, 2GB Ram Mac OS X (10.4.8)Hello
I was forced to stop my running script so I was able to look at your script/
Here is a modified version. I didn't check it.
-- Backup Script.
-- This script will attempt to backup the specified folder(s) and all sub-folders to the external disk
-- drive. It duplicates the folder sub-folder hierarchy in the backup area.
-- If a previous backup of the file exists in the backup directory it is renamed to
-- 'filename-yy-mm-dd (hhmmss).extension' where yy-mm-dd and hhmmss are taken from
-- the modification date of the file in the backup directory.
on run
-- Get the path to the desktop for the log file.
set desktopPath to (path to desktop from user domain) as string
-- Get the current date and time formatted.
set thisDateAndTime to get current date
set thatDateAndTime to my formatDateAndTime(thisDateAndTime)
-- Create and open the log file.
try
set backupLogFile to (open for access file (desktopPath & "Backup Log" & thatDateAndTime & ".txt") with write permission)
on error
display dialog "something failed !"
end try
set backupLog to backupLogFile
-- Write a starting message to the log file.
my append2BackupLog("Backup Starting..." as string)
-- Define the global variables.
global backupLog -- The file specification of the backup log file. -- Is it correct to define backupLog as global AFTER setting its value ???
global backupPath -- Top level folder for the backup.
global topSourceFolder -- The top level source folder name without the proceeding path.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Define the backup folder to receive the backups.
set backupPath to "ANDY:Business:Backups:" as text
-- Define the folder to be backed up (the source folder).
set topSourceFolder to "NetXxx II" as text
-- Process the folder.
my processAFolder(((path to home folder from user domain) as text) & "Documents:" & topSourceFolder & ":")
-- All done so write a final entry, close the log file and return.
my append2BackupLog("Backup Ending...")
close access backupLogFile
end run
-- This routine process each file in the specified folder.
on processAFolder(theFolder)
-- Declare the global variables we reference.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Write a message to the log file that we are processing the folder.
my append2BackupLog("Processing folder " & theFolder)
tell application "Finder"
-- Get a list of everything in the specified folder.
set allItems to every item of folder theFolder as alias list
repeat with eachItem in allItems
-- Check if this is a folder file.
if (class of item eachItem) is folder then
-- We have a another folder so do a recursive call.
my processAFolder(eachItem as text)
else
-- Store the file information we will need in processAFile() in the global variables.
set eachItem to eachItem as alias
set sourceFileName to name of eachItem -- Get the file name but not the path.
set sourceFileExtension to name extension of eachItem -- Get the file extension.
-- Now process the file.
my processAFile(eachItem as text)
end if
end repeat
end tell
end processAFolder
-- This routine processes the specified file.
on processAFile(fileName)
-- Define the global variables referenced in this script.
global topSourceFolder -- The top folder to be backed up.
global backupPath -- The top folder in the backup area.
global sourceFileName -- Source file name but not the path.
global sourceFileExtension -- Get the file extension.
-- Get the folder paths from topSourceFolder downwards to the current folder.
set currentBackupFolderPath to ""
set folderTree to ""
set addFolder to false
set savedTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {":"}
tell application "Finder"
repeat with iFolder in text items of fileName
set thisFolder to iFolder as text
if (thisFolder is equal to topSourceFolder) then set addFolder to true -- We are now at the top of the tree so start adding the folder names to the folder tree.
if thisFolder is equal to sourceFileName then set addFolder to false -- As its the current file name we don't want it in the folder tree.
if addFolder is true then
-- While were at it check that the folder exists in the backup area.
set backupFolder to backupPath & folderTree & thisFolder
set backupFolderExists to (folder backupFolder exists)
if backupFolderExists is equal to false then
-- It does not exist so create the folder in the backup area.
set backupFolderPath to backupPath & folderTree as file specification
make new folder at folder backupFolderPath with properties {name:thisFolder}
end if
-- Add the folder to the folder tree.
set folderTree to folderTree & thisFolder & ":"
end if
end repeat
set AppleScript's text item delimiters to savedTID
-- Set the backup folder path.
set backupFolder to (backupPath & folderTree)
-- check if the files exist
set sourceFileExists to (file fileName exists)
set backupFileExists to (file sourceFileName of folder backupFolder exists)
-- Backup the file to the required backup folder.
if sourceFileExists and not backupFileExists then
-- File did not exist in the backup directory so copy it there.
duplicate file fileName to folder backupFolder
-- Write a log file entry for the file.
my append2BackupLog("Backup of " & fileName)
else
-- Both files exist, so check if the file in the source folder is newer.
if (modification date of file fileName) > (modification date of file sourceFileName of folder backupFolder) then
-- We need to rename the old backup file before we make a backup copy of the newer file.
set thisDateAndTime to modification date of file sourceFileName of folder backupFolder
-- Get the current date and time formatted.
set thatDateAndTime to my formatDateAndTime(thisDateAndTime)
-- We need to get the file name minus the extension.
set oldTID to AppleScript's text item delimiters -- Get the current text item delimiters (TIDs).
set AppleScript's text item delimiters to {"."} -- Set them to ".".
set justFileName to first text item of sourceFileName -- Get the filename before the "."
set AppleScript's text item delimiters to oldTID -- Restore the TIDs to what they were.
-- Build the new file name for the old backup file.
set newFileName to justFileName & thatDateAndTime & "." & sourceFileExtension
-- Rename the file in the backup area and take a copy of the newer file.
set name of file (sourceFileName as text) of folder backupFolder to newFileName
duplicate file fileName to folder backupFolder
-- Write the log file entry's for the file rename and the file backup.
my append2BackupLog("Renamed old backup file to " & newFileName)
my append2BackupLog("Backup of " & fileName)
end if
end if
end tell
end processAFile
-- Format the specified date & time into a string of the form "dd-mm-yy (hhmmss)".
on formatDateAndTime(thisDateAndTime)
set dateString to short date string of thisDateAndTime
set timeString to time string of thisDateAndTime
set fileDateString to "" as text
repeat with iWord in words of dateString
set fileDateString to fileDateString & "-" & text -2 thru -1 of ("0" & iWord)
end repeat
-- Format the time into "(hhmmss)".
set fileTimeString to " (" as text
repeat with iTime in words of timeString
set fileTimeString to fileTimeString & iTime as text
end repeat
set fileTimeString to fileTimeString & ")" as text
-- Set the return parameter to the result and return.
return fileDateString & fileTimeString
end formatDateAndTime
-- This routine writes the specified message to the end of the log file.
-- NOTE - the log file is assumed to be already open with write access.
on append2BackupLog(logMsg)
global backupLog -- Global variable that defines the path to the log file.
-- Get the current date and time formatted.
set dateString to short date string of (get current date) & space & time string of (get current date)
try
write (dateString & " " & logMsg & return as text) to backupLog starting at eof
end try
end append2BackupLog
Yvan KOENIG (from FRANCE samedi 3 mars 2007 21:23:33) -
I am unable to open my Finder. error -10810 appears saying "The application Finder can't be opened". Any suggestions, I'm stumped! {I'm on a new iMac 10.6.8} thank you!
Hi,
have a look here http://reviews.cnet.com/8301-13727_7-10365239-263.html for possible solutions.
Hope it helps
Stefan -
Error in LSMW : Enter a Valid Value
Dear All,
I am Creating a LSMW for MM01 Transaction using Direct Batch Input Method
I got an error in LSMW while I start uploading saying "Enter a Valid Value" .
I am selecting 14 Views in a single LSMW.
Basic Data1 / Data2 , Purchasing , Foreign Trade : Import Data, MRP1,2,3 , General Plant 1/2 , Accounting 1 & 2 , Costing 1 & 2.
Can anybody tell me why I am getting that error.
Thanks in Advance.
TulasiPerform theses steps
- In LSMW read and convert only one entry from file
- go to SM35 -> select your session with that one entry
- select process , option process/foreground
- choose process
You will have that batch input run in the foreground, so you can see all the values entered to certain input fields and all the actions which take place in that screens. This way you should see which step excatly creates the error.
Regards
Marcin -
What happens?. Unable to find error text for this exception
I4m trying to open a workbook and before doing anything it shows me the message "Unable to find error text from this exception", after this, it appears another one "attempt to open workbook failed". Help me to find why i4m not able to open the workbook, which could be the reason.
Thanks in advance.I think this has something to do with the folders that
you are using? Have you renamed an old folder and then
recreated another folder as its replacement?
Christopher -
Error- Unable to find error text for this exception
Hi all,
I am facing the following problem in discoverer ,Please give me your advice.
while I am trying to open the workbook I am getting the following error
"Unable to find error text for this exception"
Could you please tell me how I can find why this warning is come ? or how I can solve this warning.
if I ignore this warning then the workbook is failing to open.
thanks and regards
senthil kumarHi,
Are you getting this problem with the Desktop, Plus or Viewer editions? It could be that the database is generating the exception. You will need to trace the database session to see the error.
Rod West -
Where to fix errors in lsmw?
where to fix errors in lsmw?
hi sunil
refer the following link
it will give u full step by step process for lsmw
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
In the field mappings and conversion rules,
in the global section,define an internal table.
data : begin of it_errors occurs 0,
desc type string,
end of it_errors.
and where ever you have wrong or empty values for the fields,populate error there to the internal table.
for example, if Material no is blank,i have to give err msg
IF NOT MATMAS_MRPVIEW-MATNR IS INITIAL.
BMM00-MATNR = MATMAS_MRPVIEW-MATNR.
else.
IT_ERROR-DESC = 'Material no is empty'.
append it_error.
SKIP_RECORD. "to skip further processing of this error record.
ENDIF.
like this you populate all the error records to that IT_ERRORS internal table.
and finally download it using GUI_DOWNLOAD in the event
'__END_OF_PROCESSING__'
there is another way also, you can create a Session in the LSMW, and record the error records in the session then process the error records in the session
regards
navjot
reward and close all ur threads
Message was edited by:
navjot sharma -
Hi all How take care of errors in LSMW..
HI all,
Can you people help where we are correcting errors in LSMW . How we have handle errors in LSMw.
regards,
anilreddy.Hi Anil,
Please chk this thread. You will get the answer.
ERROR HANDLING IN LSMW
<b>Reward Points if Useful</b>
Regards
Gokul -
SQL Extended Events for finding errors
SQL Extended Events for finding errors, how to find out more than SQL text, like the stored procedure?
SQL 2012, 2008 and 2005 (not much 2005)
We had an agent job that was not completing and was not giving any errors. Turned out that too large a number was being SET into an integer field. We set up a SQL Extended Events based on the following URL. It gave us the SQL text and that did help. BUt
how could we have done even more to find the error? Is there a way to find the stored procedure? Because the SQL text was pretty generic. What else can be used to find errors that are not being reported back to the agent job?
http://www.brentozar.com/archive/2013/08/what-queries-are-failing-in-my-sql-server/Hi,
Are you able to manually execute the stored procedure? How many steps are there in this job?
You may create a test job with only one step running this stored procedure and test the result.
As Kalman suggested, please check the relative message in job history and event viewer.
Thanks.
Tracy Cai
TechNet Community Support
Maybe you are looking for
-
How to set up database for form application in app. server 10g r2
Hi Friends and Bgrant. I get user compiled fmb file. I did not find componant in app. server. However, I can see form server ment with 3 subitem : form compiler, formmigration and run form on the web. The form application is supported by database. Ot
-
I have accumulated a lot of junk while using Windows 7 for a while, and I'd like a fresh start. Normally I would just delete the partition and reinstall. However, the only Windows licenses I have are a Windows XP license, and a Windows 7 UPGRADE Lice
-
Hi All, I am getting the attached error, when Refreshing the Report in Web Intelligence. However, I am able to Successfully Create and Refresh the Same report in WEBI RICH CLIENT. I am able to successfully run the query in "Teradata SQL Assistant" I
-
I was opening my laptop and the e in "Lenovo" on the left hand side broke off and sliced my thumb pretty good. I put a band-aid on it but I was pretty surprised how this happened. Has anyone else had trouble with their branding breaking off? Link to
-
I just upgraded to yosemite and when i reopened safari it keeps on crashing
these are the specs of my macbook. when i upgraded to yosemite and reopen my safari it keeps on crashing. help with this predicament please thanks! much appreciated