10-01-2008 2:52 PM
Hi,
I am creating GL Account using LSMW with below specifications:
Object 0010 GL A/C Master Record
Method 0001 Hier. structure
Program Name RFBISA00
Program Type B Batch Input
When i am executing the batch input session, i am getting below error:
First record in file GL_GL_GL.lsmw.conv is not a session record (type 0)
Please let me know the solution..
Thanks
Piyush
10-01-2008 3:01 PM
hi,
you need to populate structure BGR00 in your LSMW which is the batch input control data
for example....
STYPE Batch Input Interface Record Type = '0'
XKEEP Indicator: Keep Batch Input Session After Processing ? = 'X'
NODATA No Batch Input Exists for this Field '/'
maintain these in your field mapping and conversion rules....
Regards
Stu
10-01-2008 3:11 PM
Hi Stu,
Thanks for the response. Just want to confirm,
Currently i am using method 0002 i.e. flat structure.
So how to create the structure for BGR00.
Thanks
10-01-2008 3:14 PM
Hi,
So you have now changed from method 0001 (as in your original post) - do you still get the same error?
Regards
Stu..
10-01-2008 3:18 PM
Hi Stu...
By mistake i posted Method as 0001 .I am suing only 0002 Flat structure and getting the error.
Thanks
10-01-2008 3:21 PM
If you are using the Flat strucutre option (002) than you will get only one structure to maintain your relationship.
So, your source structure will also be a flat. You need to include all your required fields in the soruce structure in step 2 and in step 4 you need to assign fields to Flast structure BSKX.
If you use the 001 - hierarchical strcutre than you need to have atleast one counter which will connect it to other structures.
In this blog, I have explianed the RFBIBL00 for LSMW. It has the hierarchical structure.
Regards,
Naimesh Patel
10-01-2008 3:29 PM
Hi Naimesh,
I check your blog, its really good.
Kindly can you please help me for method 0002 Flat structure ).
I am using below fields and assigning to BSKX structure.
SAKNR C(010) G/L Account
BUKRS C(004) Company Code
KTOKS C(004) Account Group
XPLACCT C(001) P&L statement acct
GVTYP C(002) P&L Statement Acct Type
XBILK C(001) Balance Sheet Account
TXT20_SKAT C(020) Short Text
TXT50_SKAT C(050) G/L Acct Long Text
XOPVW C(001) Open Item Management
XKRES C(001) Line item display
DZUAWA C(003) Sort key
FSTAG C(004) Field status group
But i am getting the error. Can you please tell me the solution.
hanks
10-01-2008 3:29 PM
Hi,
To see the relevant fields you need to switch the layout in the LSMW 'field mappings and conversion rules'.
menu
extras -> layout
select the technical fields checkbox and then the batch input fields appear in the mapping. You can then add the relevant values
Regards
Stu