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

Regarding LSMW

Former Member
0 Likes
1,436

HI,

I am new to this field.I want to know when I am using Standard Program(DI) in LSMW how exactly would a Source file look like.For eg., Customer has BGROO,BKN00,BKNA1 as structures.So I could manage till step 'Specify File'.But once it comes to that step I want to know how should be the file structure.I am just trying to learn.So if someone could pass me a sample file it will be of gr8 help else you could guide me in making it myself.

Thanks

Regards,

Vijay

HI,

I am new to this field.I want to know when I am using Standard Program(DI) in LSMW how exactly would a Source file look like.For eg., Customer has BGROO,BKN00,BKNA1 as structures.So I could manage till step 'Specify File'.But once it comes to that step I want to know how should be the file structure.I am just trying to learn.So if someone could pass me a sample file it will be of gr8 help else you could guide me in making it myself.

Thanks

Regards,

Vijay

10 REPLIES 10
Read only

Former Member
0 Likes
1,263

Hi Vijay,

The source file doesn't not need to be the same as the structures of the standard program. You can use a self-defined file layout, in the step define source fields.

In the field mapping step you can link these input fields to the corresponding structures (BKNA1, ...). You can also have a look at following site: http://service.sap.com/lsmw

In the specify file section you can define different kinds of input files: text files (space delimited, tab delimited, ...). But I suggest to use a simple input structure first and try to perform the read data section afterwards to see if the file is read correctly.

Regards,

Kris

Read only

0 Likes
1,263

Hi Kris,

I have tried doing LSMW using IDOCS,Recording and BAPI.In three of them I specified a general file.Lemme be more clear.

Let us take I am doing Vendor Data then I gave all mandatory fileds in a note padwith 3 or 4 dummy entries.

Name Land Telephone Currency PurchOrg Accountgroup

But now when I am using Standard progrom for customer Can i give smae file.But standard Program Specifically syas it needs a format.

Rgrds,

Vijay

Read only

0 Likes
1,263

Hi Kris and Ankur,

I have tried doing LSMW using IDOCS,Recording and BAPI.In three of them I specified a general file.Lemme be more clear.

Let us take I am doing Vendor Data then I gave all mandatory fileds in a note padwith 3 or 4 dummy entries.

Name Land Telephone Currency PurchOrg Accountgroup

But now when I am using Standard progrom for customer Can i give smae file.But standard Program Specifically syas it needs a format.

Rgrds,

Vijay

Read only

0 Likes
1,263

hi vijay ,

have u mapped the structures in LSMW with the file coloumns ?

I think it is asking bcoz mapping of LSMW structures with file is still incomplete.

Regards,

Ankur

Read only

0 Likes
1,263

HI Ankur,

I have maintained Source Struct and Source Fileds and maintained the relation too.In Filed mapping coversion for time being I didn't do any conversion just specified few constant values.And now once i come to 'specify file' step i have to give a sample file.There i am stuck.weather to give any arbit file having the structure i have mentioned above or how exactly a sample file should be.I mapped DEBI1 and DEBI2 to the required structures.LIke DEBI1 to BGR00,BKN00,BKNA1,BKNB1 and DEBI2 to BKNVK.

Rgrds,

Jyoti

Read only

0 Likes
1,263

We are so far not able to Solve.

Regards,

Vijay

Read only

0 Likes
1,263

Which error message do you get and when?

Have you tried specifying first a file on the PC (frontend)?

Read only

0 Likes
1,263

HI Kris,

I gave The File and got the .read and .conv file.I created the file with respect to DEBI1 structure and thus assigned it to DEBI1 only.Once I create a Session I get session 'Being Created' in status but the session cannot be processed furthur.

Regards,

Vijay

Read only

0 Likes
1,263

Hi Vijay,

When performing steps read data and convert data check if the number of processed record is different from 0.

Note: the read and convert step are obligatory before executing/creating the batch input session.

Regards,

Kris

Read only

Former Member
0 Likes
1,263

hi vijay,

The file structure could be according to ur choice,which includes Tab-Delimited , Semicolon-Delimited, Comma-Delimited, Space-Delimited file .

U can easily create(convert) such file with MS-Excel .

A sample could be :

assume it to be a comma-delimited file

name,id "coloumn name

Anx,341 "data line 1

jain,123 "data line 2

Hope it will help u.

Regards,

Ankur