cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW - Upload customer data (KNA1)

Former Member
0 Kudos

Hi,

I'm trying to upload customer data from a legacy system using buisness object KNA1 and method CREATEFROMDATA1 (BAPI). At first I discovered that to be able to use business object KNA1 I had to generate an ALE interface in transaction BDBG.

My problem is that when I try to "Maintain Structure Relations" I get following error message:

No target structures could be found

Message no. /SAPDMC/LSMW_OBJ_030001

Shouldn't it be possible to do it this way?

I prefer to use the BAPI method compare to Batch input for following reasons:

- Better performance

- I don't have to think of screen sequences. For example can different account groups mean different screens.

Thanks for help,

Hans

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Hans,

Check in "Maintain Object Attributes" whether the recording name is updated in frame "Object Type and Import Method".

While creatingif you had gone to overview screen and done the recording then this may have got missed out. I faced the same problem but was able to correct it by filling the recording field.

Rajeev

Former Member
0 Kudos

Hi Hans,

Were you able to figure out how to import/specify the target stuctures? I got the same error 'no target structures could be found.' and I am trying to find documents on how to do this?

Thank you,

Lilly

Former Member
0 Kudos

Hi Lilly,

No, I didn't find any solution to the problem. I used batch input recording instead. Not the solution I wanted but I had to finish the job.

Hans

Former Member
0 Kudos

Hans, did you ever come back to this problem and see if you could come up with a solution?

I am facing a similar problem while trying to upload Business Partners into our CRM system. Unfortunately for me, the batch input recording option is not viable, as that takes too long (~95 days to load our data, and can't be run in background). I have been told that I should look to use a BAPI, but am getting errors when trying to specify the field mapping.

Cheers,

Andrew

Former Member
0 Kudos

Hi Hans,

you can use the BAPI

'BAPI_CUSTOMER_CREATEFROMDATA'

for your purpose.

If you need any help in coding tell me.

with regards,

Pravin

Former Member
0 Kudos

Hi Pravin,

Have you actually used 'BAPI_CUSTOMER_CREATEFROMDATA' in LSMW? If so, I'm very happy to learn more about how you did.

I guess you had to generate an ALE interface etc first!?

Regards Hans

Former Member
0 Kudos

Hi Hans,

Please send me your id i will send you

the material how to do through LSMW.

With regards,

Pravin

former_member188685
Active Contributor
0 Kudos

Hi Hans,

i think there is some problem with your steps. did you created the source structure and what about fieldmapping..

for steps refer this document...

http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

Regards

Vijay

Former Member
0 Kudos

Hi Vijay,

I have read the document you are referring to but it doesn't describe how to use a BAPI. I know there are other ways to do this but I think using a BAPI should be the best approach.

Regards Hans

former_member188685
Active Contributor
0 Kudos

Hi,

if you are looking for BAPI then try this BAPI

<b>BAPI_CUSTOMER_CREATEFROMDATA1</b>

regards

Vijay

Former Member
0 Kudos

Hi Vijay,

BAPI_CUSTOMER_CREATEFROMDATA1 is the one I have tried to use as described in my first note.

Regards Hans