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

Can LSMW use customer specific mapping program?

Former Member
0 Likes
317

Can LSMW use customer specific mapping program?

I have created a LSMW project to migrate various objects (Material, pricing conditions, conditions) for our new division. I want to add another object – Purchasing Info records. We already have a customer specific mapping program that prepares the data for SXDB to complete the migration. After creating the new object in LSMW, I looked in step 1 (Maintain object attributes) but couldn’t see anywhere convenient to put the program name.

I know that LSMW provides a mapping facility of it’s own, but can I avoid reinventing the wheel and instead own specific program?

Slath

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
287

Hi,

I am afraid, that is not possible. It is possible to create your own BDC recording but not the way you want to do. LSMW needs to know your source and target structures and then you do the mapping from source to target within LSMW. It stores this mapping information in several tables and unless LSMW has those entries, it will not be able to generate the mapping(conversion) program. Also, LSMW creates a 'read' file and later a 'converted' file. Your mapping program may not be doing that, which means LSMW cannot execute it in later steps to actually create the Purchase Info Records.

You will have to create your own BI or DI program or a business object and a BAPI, or an IDOC type and message type and then publish it to standard SAP, then may be it will be possible. But that will be lot of work, instead use the standard one availble to you.

If you want to use your existing code then, when you get to the mapping part of it, just cut and paste the logic specific to each field in the appropriate place, or don't do any individual field mapping, but just paste all the mapping logic in the ENDOF_RECORD_ section.

Regards,

Srinivas

1 REPLY 1
Read only

Former Member
0 Likes
288

Hi,

I am afraid, that is not possible. It is possible to create your own BDC recording but not the way you want to do. LSMW needs to know your source and target structures and then you do the mapping from source to target within LSMW. It stores this mapping information in several tables and unless LSMW has those entries, it will not be able to generate the mapping(conversion) program. Also, LSMW creates a 'read' file and later a 'converted' file. Your mapping program may not be doing that, which means LSMW cannot execute it in later steps to actually create the Purchase Info Records.

You will have to create your own BI or DI program or a business object and a BAPI, or an IDOC type and message type and then publish it to standard SAP, then may be it will be possible. But that will be lot of work, instead use the standard one availble to you.

If you want to use your existing code then, when you get to the mapping part of it, just cut and paste the logic specific to each field in the appropriate place, or don't do any individual field mapping, but just paste all the mapping logic in the ENDOF_RECORD_ section.

Regards,

Srinivas