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

abdulazeez12
Active Contributor
0 Likes
835

How can we write ABAP code in LSMW? I have a source field which is derived from another field. Is there any possibility of writing code to fetchin LSMW??? pls help.

I have two source fields which take constant values. How can i use these in "Maintain Fixed values" radiobutton? Can i avoid these two fields in the excel sheet whiel uploading when taken as cosntants??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
810

Hi Shakir,

Yes we can code in LSMW as we are doing in ABAP editor but editor is like script editor.

first go to field maping and conversion rules, there is abutton on application toolbar named CHOOSE VARIANT select all check boxes.

now you will get potion for global data definition (header), sub routines(footer) and even you can manipulate the data coming from file.

just double click every editor to code.

Regards,

Krishnendu

6 REPLIES 6
Read only

Former Member
0 Likes
810

Hi

We write our own code in LSMW 5th step

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.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
810

HI,

In the 5th Step, if you Double click on any Move statment under a field, i mean for each field you do the assignment in the 5th Step, then a MOVE command will appear under that field, Double click on that field, then a Line editor will open, there we normally write the code, so, whatever you want to code, you can do that code in the Line editor of that field

Regards

Sudheer

Read only

Former Member
0 Likes
810

hi Shakir

just refer to the link below

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

<b>step by step procedure with screen shots</b>

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

varma_narayana
Active Contributor
0 Likes
810

Hi...

In LSMW ABAP coding can be added in two ways.

1. ABAP coding - in step 5

2. User defined routines (subroutines) - These are reusable. created in Step 6

Reward if Helpful

Read only

Former Member
0 Likes
810

Hi

Goto the Tcode LSMW

Give your report name

At the 5th step that is <i><b>Maintain Field Mapping and Conversion Rules</b></i>

Press F8

Then after that select your field and on the tool bar you can see an option <i><b>Rule</b></i> from there you can apply some of conditions

For creating an LSMW check this

<b>LSMW:</b>

The LSM Workbench is an R/3-based tool that supports You when transferring data from non-SAP systems ("Legacy Systems") to R/3 once or periodically.

The tool supports conversion of data of the legacy system in a convenient way. The data can then be imported into the R/3 system via batch input, direct input, BAPIs or IDocs.

Furthermore, the LSM Workbench provides a recording function that allows to generate a "data migration object" in an entry or change transaction.

The main advantages of the LSM Workbench:

• Part of R/3 and thus independent of individual platforms

• A variety of technical possibilities of data conversion:

• Data consistency due to standard import techniques:

Batch input

Direct input

BAPIs (Business Application Programming Interfaces)

IDocs (Intermediate Documents)

The import technique to be used in an individual case depends on the business object.

• Generation of the conversion program on the basis of defined rules

• Clear interactive process guide

• Interface for data in spreadsheet format

• Creation of data migration objects on the basis of recorded transactions

• Charge-free for SAP customers and SAP partners

<b>check this link</b>

http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

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/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt

http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt

http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf

http://www.sap-img.com/sap-data-migration.htm

http://www.sapgenie.com/saptech/lsmw.htm

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Wor...

<i><u><b>If u want more info on creation of lsmwgive me your mail id i'll send some documents which is having screen shots</b></u></i>

<b><u>LSMW with TABLE CONTROL

Refer the links -</u></b>

Reward all helpfull answers

Regards

Pavan

Read only

Former Member
0 Likes
811

Hi Shakir,

Yes we can code in LSMW as we are doing in ABAP editor but editor is like script editor.

first go to field maping and conversion rules, there is abutton on application toolbar named CHOOSE VARIANT select all check boxes.

now you will get potion for global data definition (header), sub routines(footer) and even you can manipulate the data coming from file.

just double click every editor to code.

Regards,

Krishnendu