I have created a pricing routine.
I wanted to know is there any way by which i can diffenciate whether it is called from VA41, VA42 or some other program by BDC?
U can try to check th SY-TCODE in your routine
check system fields ,
sy-tcode , sy-batch , sy-binpt .
if i will be using the sy-tcode,
even if routine will be called from BDC program,
the tcode will be VA42 not the the program name.