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

Syntax error while doing Convert data in LSMW

Former Member
0 Likes
1,779

Hi experts,

I am using direct input method for uploading customer master records. After display read data step, when i click Convert data button, i get a runtime error saying that:

the data object "LEGACY_CUSTOMER_MASTER" has no component called "OLD_CUST_NO", but there is a component called "SAP_CUST_NO".

But actually we do not need OLD_CUST_NO field, so i did not include it while maintaining source fields. Someone plz help. I urgently need to resolve this.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,066

hi,

You will have to create the lsmw again to do it without OLD_CUST_NO. If you want to progress with the same lsmw program, then you will have to add the OLD_CUST_NO field. In the flat file dont give value for the field. leave it empty.

regards

Gokul

Reward Points if useful

5 REPLIES 5
Read only

Former Member
0 Likes
1,067

hi,

You will have to create the lsmw again to do it without OLD_CUST_NO. If you want to progress with the same lsmw program, then you will have to add the OLD_CUST_NO field. In the flat file dont give value for the field. leave it empty.

regards

Gokul

Reward Points if useful

Read only

0 Likes
1,066

Thanks for the reply Gokul. But in my current LSMW also, I have not created OLD_CUST_NO source field. Still the standard program gives a syntax error. I can add this field in the flat file, but how do i maintain it in step 3, i.e. maintain source fields because while creating lsmw using standard input, i have already included only required source fields.

Read only

0 Likes
1,066

hi,

Why dont u try the Batch Input (recording) method?

regards

Gokul

Read only

Former Member
0 Likes
1,066

just use step generate conversion program in that just go for syntax check,.

by seeing just change the lsmw as per the needs.

Thanks

Read only

Former Member
0 Likes
1,066

Hi ,

I think you have declared the filed old_cust_no in the maintain field mapping step may be in global declaration or in the mapping section of hte field. Without the use of filed OLD_CUST_NO you wont get the syntax error. Check the sysntax error in field mapping step and delete the unwanted field.Check the filed mapping section carefully based on the error.

Thanks.