Application Development 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: 

LSMW - Problem in cost center uploading

Former Member
0 Kudos

hi all,

i am trying to upload cost center through LSMW

<b>Business Object BUS0012

Method CREATEMULTIPLE

Message Type COSTCENTER_CREATEMULTIPLE</b>

in the 4th step i am getting error message.

<b>"No target structure could be found".</b>

if u have any idea , let me know .

Points will awarded for sure , if its usefull

Thanks and regards

JK

9 REPLIES 9

Former Member
0 Kudos

Hi Jay,

In 2nd step first u sholud be creat source structure than

3rd step u shoul difine all structure fileds than process 4th step.

automatically this step is processed..

Reward is usefull.

thanks..

0 Kudos

hi nagaraj patil

Thanks for the reply.

i created like that only ,

2nd step i created the structure

and in 3rd step i defined all the structure

even though i m not able to process the 4ht step.

0 Kudos

CHECK ur yahoo id.

Message was edited by:

Pattan Naveen

0 Kudos

hello pattan naveen,

i m getting the error message when i execute that step only.

when i try to assign its telling <b>"Target structure could not be found"</b>.

0 Kudos

hi jaya,

is it not necessary to take the basic type.

leave ur id.

i will send u the simple documentation related to LSMW with BAPI (with screen shot).

might be u can resolve ur problem by seeing this.

Thanks

null

0 Kudos

hi pattanNaveen ,

i did not take any basic type..

u just try this .. it will take only two min .

use LSMW

give the projet name etc ..

in the 1st step

select Businees Object Method (BAPI)

Business Object BUS0012

Method CREATEMULTIPLE

Message Type COSTCENTER_CREATEMULTIPLE

Basic Type COSTCENTER_CREATEMULTIPL

then in 2nd step create the structures

then in 3rd step give the values for the structures created in the 2nd step

now run the 4th step u will get the error message.

"Target structures could not be found"

is the error message.

let me know how to correct it.

Thanks and regards

JK

0 Kudos

My id are ,

      • removed ***

Thanks yar ...

Edited by: Rob Burbank on Oct 7, 2009 9:40 AM

0 Kudos

Hi JK,

The reason is Idoc Basic Type COSTCENTER_CREATEMULTIPL does not exist in your system. Please check in WE30.

The segments available in Basic type appear as target structure. As the Idoc does not exist, we are getting error "Target structures could not be found".

You can follow the below steps to create Idoc type.

1. Go to transaction BAPI

2. Click on Alphabetical tab and locate the object Cost center(Bus0012 )

3. Place the cursor on Costcenter --->CrateMultiple method . you can see the ALE message type COSTCENTER_CREATEMULTIPLE. Double click on message type , this will take you to BDBG screen.

The screen appears with default values stated below

Object/Interface Type BUS0012

Method CREATEMULTIPLE

4. Click on Display Interface button to see if already Idoc type & message type exists.

In the next screen you may get the following results

Message type

COSTCENTER_CREATEMULTIPLE

COSTCENTER_CREATEMULTIPLE already exists

IDoc type

COSTCENTER_CREATEMULTIPLE01

COSTCENTER_CREATEMULTIPLE01 does not exist

Function Module for Outbound ALE

ALE_COSTCENTER_CREATEMULTIPLE

ALE_COSTCENTER_CREATEMULTIPLE does not exist

Function Module for Inbound ALE

IDOC_INPUT_COSTCENTER_CREATEMU

IDOC_INPUT_COSTCENTER_CREATEMU does not exist

5. Go back and press create button. You may get the following error

For object BUS0012 and method CREATEMULTIPLE the message type COSTCENTER_CREATEMULTIPLE already exists

This is because ALE interface has not been completely generated for this BAPI Bus0012.

6. Unless you delete the existing incomplete interface, you cannot generate a new interface. So Delete the existing interface(press Delete button)

Then create new interface by pressing Create button.

You will get a popup with default names. Change the names as you required.

7. Once this is done successfully, finally release the Idoc segment(WE31) and Idoc type(WE30) from menu Edit -> Set release.

You can now use this newly created Idoc type and message type in your LSMW.

Please revert if you face any problem while doing the above steps.

Regards,

Savitha

Former Member
0 Kudos

Hi JK!

I have exactly the same problem - did you ever found a solution for this problem?

Thanks in advance,

Frank