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 +internal table

Former Member
0 Likes
942

Hi guru's,

Can any one tell me how to declare global internal tables for validation for handling errors . New to lsmw kindly help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

hi,

u can add in the step

Maintain Field Mapping and Conversion Rules->Extras->Layout->Global Data Definition

steps for LSMW: detail documnets:

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

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

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

https://websmp207.sap-ag.de/lsmw

if helpful don't forgot to give points

4 REPLIES 4
Read only

Former Member
0 Likes
689

in lsmw u can't declare global variables. lsmw is used to upload data and may be to validate some data and the upload to SAP....

if u need global internla tables, the concept is go for a program in SE38 and use a BDC for the same.

Read only

Former Member
0 Likes
689

Hi

To create Global Variables you can use do the coding in the step

Maintain Field Mapping and Conversion Rules->Extras->Layout->Global Data Definition

This will allow you to do programming in the conversion stage but will not allow you to any coding in the processing stage.

The errors which come during the processing of the LSMW will be generated by SAP itself

Please raise only one post for the same question.Close your other post.

Read only

Former Member
0 Likes
689

Hi,

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:

<b>Here you can declare in teh global definitions part</b>

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 teh needfu.

Hope this helps you.

Read only

Former Member
0 Likes
690

hi,

u can add in the step

Maintain Field Mapping and Conversion Rules->Extras->Layout->Global Data Definition

steps for LSMW: detail documnets:

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

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

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

https://websmp207.sap-ag.de/lsmw

if helpful don't forgot to give points