2009 Jun 17 1:01 PM
Hi gurus,
I have a field in table MSEG called meins and its datatype is UNIT and length is 3.Can you please suggest how should be type declaration corresponding to UNIT length 3 in ABAP program.I am facing problem because i have declared a constant of type string length 3 and when i am trying to move data from that constant to IDOC segment feild (MEINS having dataelement as MEINS, i.e. type UNIT 3). It is giving some numeric convertion exception.
Thanks
2009 Jun 17 1:09 PM
You can declare a constant of type unit as well
Data X type unit.
OR
data x type meins.
2009 Jun 17 1:04 PM
2009 Jun 17 1:09 PM
You can declare a constant of type unit as well
Data X type unit.
OR
data x type meins.
2009 Jun 17 1:14 PM
u can either use the data element used in the field of the table or the table field ref for declaring ur data type/const.
constants: gc_meins type MEINS value '<>'.
or
constants: gc_meins type MSEG-MEINS value '<>'.
2009 Jun 17 1:18 PM
Hi,
Check what is the data type of the IDoc field to which you are moving the data to and declare it as the same.
If it is character, consider unpack statment before moving it.
regards,
Advait
2009 Jun 18 6:09 AM