Skip to Content
0
Former Member
Mar 19, 2008 at 01:51 PM

LSMW incorrect target fields length

2796 Views

Hello friends

LSMW creates incorrect converted data table. Particularly, the length of fields in converted data table are incorrect as in example below:

  • Target structure definitions

data:

begin of ZFG2_CH occurs 0,

TABNAME(000030) type C,

TCODE(000020) type C,

KSCHL(000004) type C,

TDLNR(000010) type C,

SHTYP(000004) type C,

LAND1A(000003) type C,

LAND1Z(000003) type C,

LZONEA(000010) type C,

DATAM(000001) type C,

SELKZ_01(000001) type C,

X_VAL(000020) type C,

Y_VAL(000020) type C,

VAL01(000030) type C,

VAL02(000030) type C,

As you can see in this example DATAM is 1 character wide whenever it is 10 characters long because it points to Data field in __.__.____ format. So it converts '17.06.2007' into '1'. But when I run the report it generates error saying:

- Formatting error in the field SEL_DATE; see next message

- Enter date in the format __.__.____'

Can you please help me to fix this problem because in LSMW there is a place to define Source data fields length but there is no place to define converted data fields length.

Best Regards.