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 Error while reading the data from the flat file??????

Former Member
0 Likes
9,815

Hi all,

I am doing LSMW and I have got a error while reading the data from the flat file which is present in Desktop. The file is .xls type and I saved as tab delimitor file. When I run the READ DATA step of the LSMW, I get the error which say GENERATION CANCELLED: REASON: SYNTAX ERRORS. I clicked the help tab and it says MESSAGE NO:/SAPDMC/LSMW_OBJ_070031.

Let me know what can be the problem. I checked my source structure and target structure, everything looks fine, but I cant read the data????

I will really appreciate your input and award points.

Thanks and waiting for your reply.

-Ken C

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,820

Hello Ken,

Please do the following. In LSMW after you select your project, sub-project and object, you go to the next screen, where you do all your source structure definition, mapping etc with a bunch of readiobuttons. In the application toolbar, you will see a button 'Personal Menu'. Press that and in the subsequent pop-up screen, select the checkbox for 'Display Read Program' and press enter.

Now you should be able to see an additional readiobutton with the same description. Double click on that and it will take you to the program. Do a syntax check on that program and see where it points to for this error. If you cannot resolve it based on that information, please let us know what the syntax check error is .

Srinivas

Hi all,

I am doing LSMW and I have got a error while reading the data from the flat file which is present in Desktop. The file is .xls type and I saved as tab delimitor file. When I run the READ DATA step of the LSMW, I get the error which say GENERATION CANCELLED: REASON: SYNTAX ERRORS. I clicked the help tab and it says MESSAGE NO:/SAPDMC/LSMW_OBJ_070031.

Let me know what can be the problem. I checked my source structure and target structure, everything looks fine, but I cant read the data????

I will really appreciate your input and award points.

Thanks and waiting for your reply.

-Ken C

9 REPLIES 9
Read only

Former Member
0 Likes
3,821

Hello Ken,

Please do the following. In LSMW after you select your project, sub-project and object, you go to the next screen, where you do all your source structure definition, mapping etc with a bunch of readiobuttons. In the application toolbar, you will see a button 'Personal Menu'. Press that and in the subsequent pop-up screen, select the checkbox for 'Display Read Program' and press enter.

Now you should be able to see an additional readiobutton with the same description. Double click on that and it will take you to the program. Do a syntax check on that program and see where it points to for this error. If you cannot resolve it based on that information, please let us know what the syntax check error is .

Srinivas

Read only

0 Likes
3,820

Hi Srinivas,

Thanks for your helpful answer. I have awarded the points and thanks once again.

Also, I have a question which I have put forward to the forum regarding the Batch input. Please give your input...

Regards,

-Ken.

Read only

0 Likes
3,820

Can you please close the post as this is answered?

Regards,

Srinivas

Read only

0 Likes
3,820

Hello Srinivas,

I am Venu here. I have got the same error while uploading a file. You said that an extra radio button appears and doubble click on it and check the syntax. Idid not seen any button. Can you please guide me where i can see the extra button and how to check the syntax? I have checked the box displayread data.

Thanks in adv.

Venu.

Read only

Former Member
0 Likes
3,820

I get the same error when I run the READ DATA step. I tried running the Generate/Display read program (activating the option in the user menu) and get the same error again - "syntax errors". I have no way to know where the error is.

I will appreciate any help.

Thanks,

Ivá

Read only

3,820

Hi Ivan,

I had the same problem, but found the solution:

Re: LSMW Read Data error

In LSMW 5th step i.e. mapping, please press the check syntax push button. If you see the message "The conversion program could be generated successfully." then you will not encounter such problem.

After I pressed the check syntax button, it showed me the syntax errors and I could correct them...

regards,

jozef

Read only

former_member770065
Discoverer
0 Likes
3,820

Hi Jozef

It got solved. Thank You..

Read only

snowgirl
Discoverer
0 Likes
3,820

Hi jaiminiks ;

I have the same error would you tell me how you solved it.

thnx

Read only

0 Likes
3,820

Hi Snow girl,

I checked the syntax in the program and everything was OK. I got the message: The conversion program could be generated successfully

In my case there was an issue with the format of my CSV file, the coding was set as ANSI instead of UTF-8, and somehow the information was not being read correctly.

I hope it helps,