05-11-2008 10:37 AM
hi,
we can compare values of fields using where condition,if condition etc.,
but is there a chance of comparing data types & field lengths of two fields.
05-11-2008 1:12 PM
sure you can. If you know the name of the data element that is been used, you can determine the type and length from data dictionary (table DD03L, not sure though).
If it has to be dynamically, you can use the (SUB) classes CL_ABAP_TYPEDESCR..
05-12-2008 12:06 AM
Hi Sari,
sure you can. Use the DESCRIBE FIELD statement or Run Time Type Identification.
Look at http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb3145358411d1829f0000e829fbfe/frameset.htm
Cheers
Graham Robbo