Hi
To capture the prompts values entered at query run time.
=UserResponse( "Prompt Text") Like ("Enter Values for Sales ID")
Will give the prompt entered value.
=PromptSummary()
Will give the list of prompts entered at Query run time.
Pleaas find the below link.
http://bobjblog.wordpress.com/tag/userresponse/
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp5_ffc_en.pdf