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

Issue with LSMW IDOC method

Former Member
0 Likes
509

Hello there,

I am facing an issue while creating a LSMW using IDOC method. I am creating it for PROFIT CENTER upload. My file is having the data as, there can be multiple company codes for one profit center, so my file will have more than one record for single profit center. I have to create only one IDOC per profit center, so I have to create multiple segments in that IDOC for different company codes.

I am not sure how to create multiple segments using LSMW. It will be very helpful, if anyone can tell me how to do it.

Thanks,

Ganesh Khumse

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

Hello Ganesh,

I assume that you are using the IDoc Type PRCMAS02 for the creation of Profit Centers along with Company Code assignment.

In order to be able to extend the Profit Center for Multiple Company Codes, please segregate the source structures into Profit center general data and company code data...along with respective source fields.

In the structure relations, assign the Profit Center General data to the Idoc segments E1KEPCM & E1KEPCT. Then assign the Company Code data to the segment E1KEPCB.

The input file layout expected will be something similar to the below layout...

PCHEAD1

- CCODE1

- CCODE2

PCHEAD2

- CCODE1

- CCODE2

Hope this info resolves your problem.

Pls reward if this answers your query.

With Regards

Vijay Gajavalli

Hello there,

I am facing an issue while creating a LSMW using IDOC method. I am creating it for PROFIT CENTER upload. My file is having the data as, there can be multiple company codes for one profit center, so my file will have more than one record for single profit center. I have to create only one IDOC per profit center, so I have to create multiple segments in that IDOC for different company codes.

I am not sure how to create multiple segments using LSMW. It will be very helpful, if anyone can tell me how to do it.

Thanks,

Ganesh Khumse

1 REPLY 1
Read only

Former Member
0 Likes
419

Hello Ganesh,

I assume that you are using the IDoc Type PRCMAS02 for the creation of Profit Centers along with Company Code assignment.

In order to be able to extend the Profit Center for Multiple Company Codes, please segregate the source structures into Profit center general data and company code data...along with respective source fields.

In the structure relations, assign the Profit Center General data to the Idoc segments E1KEPCM & E1KEPCT. Then assign the Company Code data to the segment E1KEPCB.

The input file layout expected will be something similar to the below layout...

PCHEAD1

- CCODE1

- CCODE2

PCHEAD2

- CCODE1

- CCODE2

Hope this info resolves your problem.

Pls reward if this answers your query.

With Regards

Vijay Gajavalli