hope this helps. This is very close to real code, just missing assigment statements for the putright,exp1,etc.
like exp1="09/09/2002"
Create a button with this code in the click event. id=1 is IBM, Id=2 = wmt for example.
Call Tws1.reqMktData(1, "IBM", secType, exp1, strike, PutRight...