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

DATA Migration

Former Member
0 Likes
474

Hi,

Can Anyone tell me the set up of LSMW project using IDOC for the following situation:

> Suppose we have two systems:

System1(lower version of SAP)

System2(Higher version of SAP)

> there is HEADER_DATA in system1 and for this there is HDR_DATA1 in System2.And these two has to be mapped.

Now the issue is the field1(1234) of HEADER_DATA has to be converted to field1(abc) and field2(def) in System2.

Hoping for a favorable response.Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

Hi,

By the look of it , I guess you would be talking about example of the house number and street field of earlier versions of SAP where they were stored together as one field whereas now in newer versions there are separate fields of house number and street.

Now let us take the same example say the field A is 4, King st in the source structure and you want to split it into 4 as field1 in the new structure and King st as field2.

What you need to do is assign field A of the source structure to both field1 and field2 of the new structure in the field mapping section of LSMW and use the rule option in LSMW to write code .

For the above example the following code can be used

SPLIT field A at ',' into field1 and field2.

Hope this helps.

3 REPLIES 3
Read only

agnihotro_sinha2
Active Contributor
0 Likes
421

hi,

Not very clear of your situation, but cant it be done in the

Maintain Field Mapping and Conversion Rules

step of LSMW step???

here while mapping the fields use a user function or write a code to split the field content.

Let me know if i m correct.

ags.

Read only

Former Member
0 Likes
422

Hi,

By the look of it , I guess you would be talking about example of the house number and street field of earlier versions of SAP where they were stored together as one field whereas now in newer versions there are separate fields of house number and street.

Now let us take the same example say the field A is 4, King st in the source structure and you want to split it into 4 as field1 in the new structure and King st as field2.

What you need to do is assign field A of the source structure to both field1 and field2 of the new structure in the field mapping section of LSMW and use the rule option in LSMW to write code .

For the above example the following code can be used

SPLIT field A at ',' into field1 and field2.

Hope this helps.

Read only

Former Member
0 Likes
421

Hi,

check the below link for lsmw -- idoc

Regards,

Madhu