Create an extension for the basic idoc type and then.
Find the process code for the idoc type.
Find the processing function module for that process code.
Find the appropriate function exit in that function module.
Code in the exit to add an additional qualifier.
Refer this thread for more info:
Hope thisll give you idea!!
<b>Pl... award the points.</b>
"Some are wise and some are otherwise"