Hi Subhadra,
Why don't you use ROUTINE instead of FORMULA?
Example:
IF SOURCE_FIELDS-MATERIAL = '0001'.
RESULT = 'A1'.
ELSEIF SOURCE_FIELDS-MATERIAL = '0002'.
RESULT = 'A2'.
ENDIF.
That serves as your guide..Just post here for other problems..
Regards,
Loed