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

Problem in Customer Master Upload using LSMW

Former Member
0 Likes
553

Hi,

I am using LSMW direct input method to upload customer master. I have used ZSOURCE structure as parent structure and for multilple entries like Bank details and contact details i have used other child structure like ZBANK and ZCONTACT. I am using separate flat file for Bank and contact details. But while executing 'Read Data' step, i am getting a error like 'Generation canceled: No field with this name'. I am not using KUNNR i.e. customer number as input fields- system will internally generate this field value. I hope this is because we need to include common field in bank and contact details test file to link with header records so that system can groups these records as a single record for customer X on the basis of the key field.

Can some one help me out pls..

Hi,

I am using LSMW direct input method to upload customer master. I have used ZSOURCE structure as parent structure and for multilple entries like Bank details and contact details i have used other child structure like ZBANK and ZCONTACT. I am using separate flat file for Bank and contact details. But while executing 'Read Data' step, i am getting a error like 'Generation canceled: No field with this name'. I am not using KUNNR i.e. customer number as input fields- system will internally generate this field value. I hope this is because we need to include common field in bank and contact details test file to link with header records so that system can groups these records as a single record for customer X on the basis of the key field.

Can some one help me out pls..

2 REPLIES 2
Read only

Former Member
0 Likes
475

Hi,

LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.

check that single charecter field, if that is X that means the header record is processed, and do the items.

and, this is another way, try this out also

YOu can do this in "Define Source Structures" step,

the HEADER is defined first,

then the DETAIL below the HEADER.

add the fields to the structures.

Both should have some common key field

Please take care that the name of the common field is the same.

Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.

Read only

0 Likes
475

Hi,

Thanks for your mail. I know this genral concept of parent and child hierarchy and there should be atleast one common field between this structure. But in my case, the only common field is KUNNR- cust number. But i am not inputting this number from input file- rather this SAP generated. So what would be the common field for uploading multiple ba nk records for a single customer.

Also, can you pls elaborate a bit the concept of flag indicator ?