LSMW-step 9 read data
Dear All,
Kindly find below image i am not able to execute step 9 read data in LSMW
Regards
Rajasekaran
Hi Raja,
Go to 'Maintain source fields' and check for the field for which you have set Type hexadecimal. Change it to C.
Thanks & Regards,
Ramagiri
Similar Messages
-
Hi Experts
Iam getting a problem in lsmw when i try to uplaod leave encashments to 0416 infotype,in the step read data iam getting following message.
Transactions Read: 0
Records Read: 0
Transactions Written: 0
Records Written: 0
i checkd all steps but not able to solve te problem could anyone help me in this regard.
VIjayAre you able to save the file properly ? while saving the t.txt file check all the field. like - Delimiter.
Save your file.
Then assign your file. -
Hi Experts,
I am trying to create a LSMW for ROH type material to create materials for tcode MM01. I have 62 fields to upload but having a problem. When i am passing through step READ DATA i noticed that upto 50 fields it is getting read successfully but from 51th no field data is getting read from my .txt upload file. Let me discuss the problem in details. My 50th field is of size 3 characters. Now if i put value of size 3 characters for that field no data is getting read from 51 to 62 fields. But if i pass a value of say 1 character in the 50th field then, the first 2 characters of 51th field is getting read and the rest is blank. Can anyone explain this ? Please suggest me.
Thanks in advance.
Regards,
SuryaHi Jürgen L. ,
Thanks for your reply.
I have created the source structure using table maintenance. From recording i copied all the required fields and created the table maintenance.
The problem field is : Consumption period: forward and the technical fiieldname is VINT2.
The fields before the problem field are as follows :
MATNR C 18 Material Number
MBRSH C 1 Industry sector
MTART C 4 Material Type
KZSEL_01 C 1 Checkbox
KZSEL_02 C 1 Checkbox
KZSEL_04 C 1 Checkbox
KZSEL_05 C 1 Checkbox
KZSEL_06 C 1 Checkbox
KZSEL_07 C 1 Checkbox
KZSEL_08 C 1 Checkbox
KZSEL_09 C 1 Checkbox
KZSEL_10 C 1 Checkbox
KZSEL_11 C 1 Checkbox
KZSEL_12 C 1 Checkbox
KZSEL_13 C 1 Checkbox
KZSEL_14 C 1 Checkbox
KZSEL_15 C 1 Checkbox
KZSEL_17 C 1 Checkbox
KZSEL_03 C 1 Checkbox
WERKS C 4 Plant
LGORT C 4 Storage Location
VKORG C 4 Sales Organization
VTWEG C 2 Distribution Channel
MAKTX C 40 Material Description (Short Text)
MEINS C 3 Base Unit of Measure
MATKL C 9 Material Group
SPART C 2 Division
MTPOS_MARA C 4 General item category group
GEWEI C 3 Weight Unit
SKTOF C 1 Cash discount indicator
TAXKM_01 C 1 Tax classification material
TAXKM_02 C 1 Tax classification material
MTPOS C 4 Item category group from mate
MTVFP C 2 Checking Group for Availabili
TRAGR C 4 Transportation Group
LADGR C 4 Loading Group
PRCTR C 10 Profit Center
WEBAZ C 3 Goods Receipt Processing Time
DISMM C 2 MRP Type
DISPO C 3 MRP Controller (Materials Pla
DISLS C 2 Lot size (materials planning)
PLIFZ C 3 Planned Delivery Time in Days
FHORI C 3 Scheduling Margin Key for Flo
EISBE C 13 Safety Stock
EISLO C 13 Minimum Safety Stock
PERKZ C 1 Period Indicator
STRGR C 2 Planning strategy group
VRMOD C 1 Consumption mode
VINT1 C 3 Consumption period: backward
Fields after the problem field are as follows :
SBDKZ C 1 Dependent requirements ind
IPRKZ C 1 Period Indicator for Shelf Li
ART_01 C 8 Inspection Type
APA_01 C 1 Preferred Inspection Type
AKTIV_01 C 1 Inspection Type - Material Co
BWTTY C 1 Valuation Category
BKLAS C 4 Valuation Class
VPRSV C 1 Price control indicator
PEINH C 5 Price Unit
EKALR C 1 Material Is Costed with Quant
LOSGR C 13 Lot Size for Product Costing
Regards,
Surya -
Lsmw step by step procedure using batch input method
hi,
lsmw step by step procedure using batch input methodStep-by-Step Guide for using BAPI in LSMW
Note! The screen prints in this article are from ECC 5.0. They may differ slightly in other versions.
Introduction:
This document details the usage of BAPI in LSMW. We have used the example of migration of the purchase order data into SAP.
Pre-requisites:
It is assumed that the reader of this article has the minimum knowledge required on the Business Object, BAPI, Message Types and IDoc Types.
Step-by-Step Procedure:
Details of the BAPI used in this scenario:
Business Object: BUS2012
Method: CreateFromData
Details of Message Type and Basic IDoc Type:
Message Type: PORDCR
Basic IDoc Type: PORDCR02
Lets have a look at the BAPI first, before proceeding to the LSMW:
1. Go to Transaction BAPI
2. Click on Search Button
3. Enter the value BUS2012 and select Obj.type(Technical Object Name
4. Press ENTER
5. Following screen appears:
6. On the left side of the screen, Expand the PurchaseOrder.
7. Select PurchaseOrder and double-click on the same for details.
Building LSMW using BAPI:
1. Go to Transaction LSMW.
2. Enter the Project, Subproject and Object information and click on CREATE.
3. Enter the descriptions for Project, Subproject and Object.
4. Now select Settings à IDoc Inbound Processing
5. IDoc Inbound Processing screen appears. Enter the required details as shown below:
6. Click on Activate IDoc Inbound Processing.
7. Click on Yes when prompted for Activate IDoc Inbound?
8. Hit on Back to return to the main screen.
9. Click on Continue (F8). Following Screen appears:
10. Select the Step 1 Maintain Object Attributes and select Execute.
11. Select the radio button Business Object Method and enter the following details:
Business Object: BUS2012
Method: CreateFromData
Hit ENTER
12. Save and click on BACK button. Following information message is displayed.
13. Now select step 2 Maintain Source Structures and click Execute.
14. In this step, we need to maintain the source structure. In our example, lets consider the example of a file with 2 structures Head and Item data as shown below:
Click on Create and name the source structure as HEADERDATA. Now select HEADERDATA and click on Create again to create the child structure. Following popup appears:
Select Lower Level and click on Continue. Enter the Item data structure name.
Click Save and hit BACK button to go to the main screen.
15. Select step 3 Maintain Source Fields and hit execute.
16. Enter the fields as shown below:
17. Click SAVE and return to main screen.
18. Select step 4 Maintain Structure Relations and click Execute.
Select E1PORDCR and click on CREATE RelationShip. Following screen appears:
Select HEADERDATA and hit ENTER
Similarly do the same for the structure E1BPEKKOA, E1BPEKPOC and E1BPPEKET.
Click Save and return to main screen.
19. Select the step Maintain Field Mapping and Conversion Rules and click on execute. Maintain the Field Mapping as seen below:
20. Select step 7 Maintain Source Files and provide the link for the test file created. (Create a test file with the same structure as defined earlier).
Save and return to main screen.
21. Select the step Assign Files and click on Execute.
Assign the file provided to the source structure. Here the same file is provided for both the structures.
Save and return to the main screen.
22. Select the step Read Data and click on Execute.
Click on Execute.
Return to the main screen.
23. Select the step Display read data and click on execute.
Click on the structure name to get the field level values.
24. Return to main screen and now select Convert Data.
25. Return to the main screen and select Display Converted data.
26. Return to main screen and select Start IDoc generation.
27. Now select the step Start IDoc Processing on the main screen.
28. Return to main screen and click on Create IDoc overview. Here the data record and status records of the IDoc could be viewed
It is given in screen shot.
http://www.****************
http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/LSMW_tutorial.html
http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
Reward points if useful. -
Lsmw error 'Specify Files first' while executing option 'Read Data'.
Hi All,
while trying to create mass users through LSMW, i am gettign the error 'Specify Files first' while executing option 'Read Data'.
I have specified file (.txt), manually created (with'1 tab space' between each term). i have used option 'On the PC(Frontend)'. No error while saving.
Next- i have executed 'Assign Files', where the file appeared automatically.
Next- Here, when i try to execute 'Read Data', i get the error 'Specify Files first'.
Can anyone help in resolving this error.Hello Plaban,
What is your purpose? Are you tring to upload the data with more file variant?
There are two possibilities to make file names more variable:
1.If you choose system dependent file names by setting the according flag (in the first step 'Maintain object attributes'), you can define file names for each system in step 'Specify files' by assigning the files to a specific system ID (with a double-click on the specified file).
2.You can use wildcards in the file names where you can assign several values.
I hope this helps you.
Regards,
Blanca -
LSMW Read Data behaving differently in production and in ECC
Hi All,
I have writte a LSMW for CJ12 longtext and it is working fine in development but in production it giving error message at 13th step as BDC_INSERT, Transaction code .. is invalid and when i try to simulate the issue i found that in Read Data step i found the difference as transactions read in development are 399 where as the transactions read in production are 267 for the same file.And i debugged the Display Read program and observed that the read program used GUI_UPLOAD to read the data from the text file.and there itself the GUI_UPLOAD internal table contains 399 in development and 267 in production.I tried to simulate why this is happening but coldn't figure out.Can any one help me why this has happened.And we are using ECC6 with EHP4 in development and EHP3 in production and it has to upgrade to EHP4.if you are really certain about the source file (I doupt too) then there are only 2 more possibilities
a) your LSMW object is different (transport it again from developement to production, only so you can be sure that LSMW object and source will be the same)
b) a real SAP error because of different release levels. Open a ticket at SAP to get help. -
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?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 -
Hi Experts,
While Specifying the path to upload legacy data in lsmw, i have mentioned the lan server path directly to read flat file from specified network location.
Say example:
beprod4\em\4_Testing_Phase\05_Object\Upload Files\Master Codes\Master Codes.txt
An error message "File '
beprod4\em\4_Testing_Phase\05_Object\Upload Files\'does not exist or is currently locked" is coming up while reading the data from the specified path.
Can you advice me possible reasons for the error and to resolve it.
Thanks,
Kris.Hi,
In LSMW, steps; After Specify File, Did u assign the file in the next step?
Also check if the file exists in the location and is in the same format(Separators..etc) as specified while in the LSMW step: Specify files.
Regards
Shiva -
LSMW - Read Data vs Convert Date for DATES
Hi everybody,
I have a problem with my LSMW for a <b>date field</b>.
In the .txt file it is defined as 01.01.1900.
(I can change it, e.g. make 01011900 but at the end SAP wants to have 01.01.1900 as input)
In the 'Maintain Source Fields' of my LSMW I defined it as a DDMY(010) field.
When 'Reading the Data' you can choose to check Date Value -> YYYYMMDD
When I <u>check</u> it, it gives:
For 'Display Read Data': 19000101
And after 'Convert Data' : 01011900
When I <u>don't check</u> it, it gives:
For 'Display Read Data': 01.01.1900
And after 'Convert Data' : 191.01.0 (?!?)
The fact is that in SAP it needs to be in following format: 01.01.1900 (so DD.MM.YYYY) so none of both solutions is right.
Can anybody tell me how I should configure this LSMW that I can transfer dates properly?
Thank you very much!
Kind Regards,
CarolineHi Caroline,
before doing upload change ur system settings to yyyy.mm.dd (just go to menu bar click on System->user profile->own data in this go for default ) and save it and do log off and log in ,
and then go for source fields and specify the Date field length as 8 char,
and then in mapping step for that particular field write the code as per the below
just change as per ur Target structure and Source structure and field name .
Make sure that in ur input file the Date field is in the format of yyyy.mm.dd
if not as91_ztable-AKTIV is initial.
replace '.' with '' into as91_ztable-AKTIV.
replace '.' with '' into as91_ztable-AKTIV.
condense as91_ztable-AKTIV no-gaps.
BALTD-AKTIV = AS91_ZTABLE-AKTIV.
else.
baltd-aktiv = '/'.
endif.
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
LSMW / In Production, throws me out of SAP at READ DATA - 9th stage
Hi experts,
Am trying to load data via LSMW from text file, my issue is,
When I do this in Production, it just crashes and throws me out of SAP at the "READ DATA" stage,
So, any clue that Why it is so? How to fix it?
thanq
Edited by: Alvaro Tejada Galindo on Feb 27, 2008 12:25 PM
Edited by: Srinivas on Feb 27, 2008 12:29 PM
Edited by: Srinivas on Feb 27, 2008 12:30 PMHi Srinivas,
Strange that this only occurs in Production. Could try to switch on debugging and step forward until the error occurs? Perhaps this gives a clue what the problem might be.
Regards,
John. -
Issue regarding LSMW, not showing all records after Read Data
Dear Experts,
Plz help.. I need to configure a LSMW for ROH material.. so I made recording, n then create a structure.. accordingly.
the problem is.. at the time of reading data from .txt file.at the step of Display Read Data it showing only 50 records, rest are not displaying.. but not showing any error.. so my question to our expert that is their any limitations for reading data... if their.. then how could it be elasticated...
plz suggest..
regards,
sandythe read step has a selection screen where you can define from which to which record you want read.
make sure this selection is empty for a test.
Further check if your source file has more than 50 records.
then make sure that you really read this source file and not any other version (check path and file name in step 7 of LSMW) -
LSMW in ECC6.0 - Read Data Error
Dear SAP Gurus,
I am trying to create an LSMW in ECC6.0 for uploading GL Masters data for Chart of Account. I have got thru till "Read Data"
On Executing "Read Data" I am getting this error
"Loading from front end is not allowed for packed/hexadec. fields"
This comes up even though I had not given "Hexadecimal Lth field" but nothing works and Code Page selected is ASCII (not IBM DOS)
Please Help!
ThanksSorry it doesnt works. I am not in a position to understand as to why this error is coming up at first place.
While specifying the file type I am giving the parameters correctly, that is, I am not giving the Code Page as IBM DOS.
Parameters:
File Contents: Data for One Source Structure
Delimiter: Tabulator
File Structure:
Field Names at Start of File
AND
File Type: Record End Marker (Text File)
Code Page: ASCII -
LSMW - Read Data not showing in Converted Data
Hi,
I am using LSMW to load data from a flat file (via recording). I have it working except I have one issue. When I display the data in read data all fields are showing. No errors popup when I select convert data. When I select display converted data the last few fields are missing. Any ideas why or how to fix this?
Any help is appreciated as I do not know how to proceed.
Thanks,
Annette
Edited by: Annette Ameel on Dec 4, 2008 5:37 PMHI Bush,
Currently I am also facing the same problem. In "display read data" it is showing all the field values. No error msg in "convert data". But only 2 fields are displaying in "display converted data". not showing any values in rest of the fields. Kindly suggest me how you fixed this problem -
Hi all ,
I am trying to create a BOM .
I have a created a file for the header and other file for item data .
after assigning the files of header and item , i am getting problem at Read Data step
It is giving an information message Generation canceled: No field with this name.
My Hierarchy at Assign Files is :
ZBGR00 Batch Input Structure for Session Data
ZBICSK Header Data
Header C:\Documents and Settings\Raj\Desktop\Input\zbom_zbom_header.txt
ZBICSP Item Data
Item C:\Documents and Settings\RajDesktop\Input\zbom_zbom_item.txt
ZBICSU Sub Item Data
Please let me Know the Solution .
Regards,
Rajin the step 5(Maintain Field Mapping and Conversion Rules)
do the syntax check (SHIFT+F2) -
Reading Data from a SQL table to a Logical file on R/3 appl. Server
Hi All,
We would like to create Master Data using LSMW (direct Input) with source files from R/3 Application Server.
I have created files in the'/ tmp/' directory however I do not know how to read data from the SQL table and insert it into the logical file on the R/3 application server.
I am new to ABAP , please let me know the steps to be done to acheive this .
Regards
- AjayHi,
You can find lot of information about Datasets in SCN just SEARCH once.
You can check the code snippet for understanding
DATA:
BEGIN OF fs,
carrid TYPE s_carr_id,
connid TYPE s_conn_id,
END OF fs.
DATA:
itab LIKE
TABLE OF fs,
w_file TYPE char255 VALUE 'FILE',
w_file2 TYPE char255 VALUE 'FILE2'.
SELECT carrid connid FROM spfli INTO TABLE itab.
OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" Server to write data
LOOP AT itab INTO fs.
TRANSFER fs TO w_file. "" Writing the data into the Application server file
ENDLOOP.
CLOSE DATASET w_file.
OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" server to read data
FREE itab.
DO.
READ DATASET w_file INTO fs.
IF sy-subrc EQ 0.
APPEND fs TO itab.
OPEN DATASET w_file2 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. "Appending more data to the file in the
" application server
TRANSFER fs TO w_file2.
CLOSE DATASET w_file2.
ELSE.
EXIT.
ENDIF.
ENDDO.
Regards
Sarves
Maybe you are looking for
-
How can you lock the screen on iPhone in iOS 7 while talking on the phone?
I am struggling to figure out how to lock the screen of my iPhone 5 during a phone call. In iOS 6, I was able to push the top "on/off" button to lock the screen. In iOS 7, I am able to do this ONLY while using the speakerphone. If I push this button
-
Revision: 2296 Author: [email protected] Date: 2008-06-30 07:01:14 -0700 (Mon, 30 Jun 2008) Log Message: Initialized merge tracking for 3.0.3 changes that go back to 3.0.x Property Changed: flex/sdk/branches/3.0.x/
-
Hello I have used the trial version of Dreamweaver and Photoshop; Both have then expired. When I try to purchase an yearly suscribption, during the process, there is step 3 which ask le to enter the serial number, but I do not have access to these nu
-
I am using a PC Windows 7 I have the newest iTunes available and I have a ton of space on my C drive as well as my external HD where my music files are stored.
-
Java2d animating a Ellipse2D object in java
how to animate an Ellipse2D object in java2D? can anyone please help me