‎2007 May 16 10:28 AM
How to get LSMW code? if any body knows ,please reply .
Thanks in advance
‎2007 May 16 10:38 AM
Hi,
For coding in LSMW,you need to select from the steps of LSWM, check the View source code step, you will be taken to a code which starts from \XXXX, u can go into the change mode of that code and alter the code as per your requirement, but before doing code changes check out your assignments and mappings.
Regds,
Younus
<b>Reward Helpful Answers!!!</b>
‎2007 May 16 10:30 AM
Hello,
1. Maintain Attributes:
Here you have to choose the second option and you can do the recording how this should work. Then assign the same to the Batch Input Recording name.
2. Maintain Source structure:
Create a structure name
3. Maintain Source field:
In this you have to create a structure same as taht of the input file
eg: name
age
sex
4. Maintain structure relations:
This will link the structure to the input file.
5. Maintain field mapping and conversion rules:
Here is the place where you can do coding, depending upon the code you have written or assignment you have done the values will get picked up from the file and get processed.
6. Maintain field mapping and conversion rules:
If you have any fixed values you can define here.
7. Specify files:
Specify the input file path and type.
8. Assign files:
This will assign ur file to the Input file
9. Read Data:
This will read ur data from teh file.
10. Dispaly Read Data:
You can see the uploaded data
11. Convert Data
This will convert the data to the corresponding format for processing
12. Display Converted data:
13. Create batch input session
Here this will create a batch input session for processing
14. Run Batch Input session:
By clicking on the session and process the same you can do the needful.
We can write code to LSMW.
**********Check the following link:
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
Regards,
Deepu.K
‎2007 May 16 10:30 AM
‎2007 May 16 10:38 AM
Hi,
For coding in LSMW,you need to select from the steps of LSWM, check the View source code step, you will be taken to a code which starts from \XXXX, u can go into the change mode of that code and alter the code as per your requirement, but before doing code changes check out your assignments and mappings.
Regds,
Younus
<b>Reward Helpful Answers!!!</b>
‎2007 May 16 10:40 AM
Hai,
If you want to write any function or if u want to write any reusable code in subroutines u can do that in the 6th step. If you want to put any constants or conditions also u can do it in the same step..
Regards,
Padmam.