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 does not write data

Former Member
0 Likes
1,322

Hello

I'm trying to create an lsmw project for Inpection Plan (QP01) and when I get to the READ DATA this pops out

-


LSM Workbench: Import Data For Z_TEST, Z_QM, Z_INSPLAN2

02/26/2010 - 10:31:14

File(s) Read: C:\Documents and Settings\rog1234\Desktop\INS_HEADER.txt

C:\Documents and Settings\rog1234\Desktop\INS_CHARACTERISTICS.txt

C:\Documents and Settings\rog1234\Desktop\INS_MATERIAL.txt

C:\Documents and Settings\rog1234\Desktop\INS_OPERATIONS.txt

File Written: Z_TEST_Z_QM_Z_INSPLAN2.lsmw.read

Source Structure Read Written Not Written

ZINSCHAR 1 0 1

ZOPERATIONS 1 0 1

ZMATERIAL 1 1 0

ZHEADER 1 1 0

Transactions Read: 1

Records Read: 2

Transactions Written: 1

Records Written: 2

-


The program only writes for two structures. Why doesn't it write for the others?

3 REPLIES 3
Read only

Former Member
0 Likes
568

Hi,

Go to step Maintain Source Fields .

press FIELDS WITH SAME NAME.

For eg: if you have two strucutre A and B like

structure A: MATNR, WERKS, COUNTRY

Structure B: MATNR, TEXT .

If you press FIELDS WITH SAME NAME it will highlight MATNR since its common in both the structure.

If you have same material number in both files then only the records are read from both the structure otherwise it wont.

FOR EG:

Data for A: 1 plant1 india

2 plant2 india

Data B: 1 abc

in this above case 2 records in structure A will be read

and 1 record in B will read since record for material number 2 is not in B data file.

Hope it helps.

Regards,

Shanmugavel

Read only

0 Likes
568

But I'm only testing the lsmw for now. I'm just trying to upload one record, just so I can see if it works

I am using four structures and I assigned a file for each one of them. When I go to the read data step only the first two structures had their data written

Edited by: obie villamosa on Feb 26, 2010 4:04 PM

Read only

Former Member
0 Likes
568

Hi,

All the 4 files has data. If yes can you provide the data ?

Regards,

Shanmugavel