Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW Read Data shortdump

Former Member
0 Likes
3,127

Hi guys..

I'm currently testing out on LSMW

I'm trying to create new material for transaction MM01.

But when i click on Step 9: Read Data

i get a shortdump

What happened?

The current ABAP program had to be terminated becaus

ABAP processor detected an internal system error.

The current ABAP program "/1CADMC/SAP_LSMW_READ_0000

because the ABAP

processor discovered an invalid system state.

1: SQL error

2: Invalid value in call

3: Screen number in header (field DNUM) and in ID

4: Internal error in the database interface

8: Memory filled (used up)

16: Buffer too small for data

32: Unkown table in call

64: Invalid selection

128: Object with this key exists more than once

Here is my source Fields

Source Fields

MM01SS MM01 Source Structure

MATNR C(018) Material

MBRSH C(001) Industry Sector

MTART C(004) Material Type

MEINS C(003) Base Unit Of Measure

MAKTX C(040) Material Description

Below are links to the field mapping stuff

<a href="http://img93.imageshack.us/img93/4043/1ju0.jpg">Screen shot 1</a>

<a href="http://img167.imageshack.us/img167/3240/2rn4.jpg">Screen shot 2</a>

the dummy.txt is having :

MATNR MBRSH MTART MEINS MAKTX

AC26 I aa BAG xxx1

AC27 I bb BAG xxx2

AC28 I aa BAG xxx3

AC29 I bb BAG xxx4

AC30 I aa BAG xxx5

AC31 I bb BAG xxx6

AC32 I aa BAG xxx7

AC33 I bb BAG xxx8

AC34 I aa BAG xxx9

AC35 I bb BAG xxx10

AC36 I aa BAG xxx11

AC37 I bb BAG xxx12

AC38 I aa BAG xxx13

AC39 I bb BAG xxx14

AC40 I aa BAG xxx15

AC41 I bb BAG xxx16

AC42 I aa BAG xxx17

AC43 I bb BAG xxx18

AC44 I aa BAG xxx19

AC45 I bb BAG xxx20

AC46 I aa BAG xxx21

AC47 I bb BAG xxx22

AC48 I aa BAG xxx23

Did i leave out anything?

12 REPLIES 12
Read only

former_member283648
Participant
0 Likes
2,059

Hi,

The reasons that i could guess are 2.

1. Your input file contains some fields with values which dont match with the data type that u have declared in your source structure. Normally you dont get any errors saying type conversion failed.

2. You dont have authorization to access the logical file names that you have mentioned to write the data that you have read.

Hope this helps u.

Read only

Former Member
0 Likes
2,059

oh yea, one more thing , the file assigning part

Files

Legacy Data On the PC (Frontend)

Test data C:\Documents and Settings\XXXXXXX\Desktop\dummy.txt

Data for One Source Structure (Table)

Separator Tabulator

Field Names at Start of File

With Record End Indicator (Text File)

Code Page ASCII

Legacy Data On the R/3 server (application server)

Imported Data File for Imported Data (Application Server)

Imported Data TEST_CREATE_MATERIAL.lsmw.read

Converted Data File for Converted Data (Application Server)

Converted Data TEST_CREATE_MATERIAL.lsmw.conv

Wildcard Value Value for Wildcard '*' in File Name

Read only

0 Likes
2,059

Hi,

May be check once if u have authorization to access the file <b>TEST_CREATE_MATERIAL.lsmw.read</b>

Read only

0 Likes
2,059

Hi

Sorry but how do i check that?

Read only

0 Likes
2,059

sorry but its actually this error message

What happened?

The current ABAP program had to be terminated because the

ABAP processor detected an internal system error.

The current ABAP program "/1CADMC/SAP_LSMW_READ_00000099" had to be terminated

because the ABAP

processor discovered an invalid system state.

1: SQL error

2: Invalid value in call

3: Screen number in header (field DNUM) and in ID differ

4: Internal error in the database interface

8: Memory filled (used up)

16: Buffer too small for data

32: Unkown table in call

64: Invalid selection

128: Object with this key exists more than once

Read only

Former Member
0 Likes
2,059

Hi,

Seems you are doing LSMW from a very short span of time, u will come across these kind of problems very often, in your case, goto Application server and search for file containing /1CADMC/SAP_LSMW_READ_0000(conv) and delete it and repeat from the 6th step, it will be solved.

Cheers...

Santosh.

P.S. Mark usefull Points

Read only

0 Likes
2,059

Hi thanks for your post..

but.erm..Where is it again? Transaction AL11? can't seem to find it

Read only

former_member283648
Participant
0 Likes
2,059

Hi,

You can check that if your file is there in the transaction AL11. It will be in the directory DIR_SAPUSERS ./. Also make sure the source structure data types and the file you are feeding in are same.

Read only

0 Likes
2,059

hi guys,

I've tried looking everywhere but no avail.

The source structure data types and the file are the same.

Read only

0 Likes
2,059

Hi guys,

After trying out some stuff at STEP 7(Specify Files)

I've change from

AC_CREATE_MATERIAL.lsmw.read

AC_CREATE_MATERIAL.lsmw.conv

to one of my friend's lsmw

CW_CREATE_MATERIAL.lsmw.read

CW_CREATE_MATERIAL.lsmw.conv.

And it works. I manage to read the file from local pc.

But after trying again, I'm getting this message.

MR3: SAP System Message:

Work process re-started, session terminated.

Is there something wrong with my AC_CREATE_MATERIAL.lsmw.read? or .conv?

Read only

0 Likes
2,059

Each time i try to create my own imported data for lsmw

It always says

Unable to write to/read file.

"AC_CREATE_MATERIAL.lsmw.read"

Operating system message: No space left on device

Read only

Former Member
0 Likes
2,059

Hi ,

I encountered 'DATASET_CANT_CLOSE' instead when reading data file.

What happened?

The current program, "/1CADMC/SAP_LSMW_READ_00000097", had to be terminated because a capacity limit has been reached.

Error analysis

An exception occurred. This exception will be dealt with in more detail

below. The exception, assigned to the class 'CX_SY_FILE_CLOSE', was not caught,which led to a runtime error. The reason for this exception is:

This is probably due to a very large dataset, for which there are

insufficient resources in your installation.

The file "ZAC_CUST_REC.lsmw.read" could not properly be closed by the operating

system.

The probable cause is that data sets buffered by the operating system

after they were passed by the ABAP Processor in a previously processed

TRANSFER statement were supposed to be written to the database before

the file was closed. This could not be completed properly because not

enough room was available in the file system.

File: " "

Error number: 28

Error text: "No space left on device"

What i understand from the error message is that the system has ran out of space....am i right ?