‎2009 May 27 12:56 PM
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.
‎2009 May 29 7:29 PM
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.
‎2009 May 27 2:26 PM
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.
‎2009 May 29 7:29 PM
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.
‎2009 May 30 7:46 AM