2005 May 23 5:03 PM
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
2005 May 23 5:16 PM
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
2005 May 23 5:51 PM
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
2005 May 23 5:51 PM
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
2005 May 23 7:22 PM
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
2005 May 23 7:38 PM
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
2005 May 23 8:11 PM
2005 May 24 8:27 AM
Which error message do you get and when?
Have you tried specifying first a file on the PC (frontend)?
2005 May 24 2:44 PM
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
2005 May 24 3:13 PM
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
2005 May 23 5:34 PM
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