Reg. Data Store In Variable

Hello Pioneers,

Actually I have to store the current / selected value of Production Order , in a variable…How to store the CURRENT /SELECTED Value in that variable ??? Please guide me.

current selected value??

i am not getting exactly what you are asking. storing a value into a variable is just like

str prodId;

prodId = ProdTable.ProdId;

is that you are expecting or something else?

when your cursor is on one of the line in form then you get the selected value directly from the corresponding datasource.

Ex. if you are at sales header then you can directly get the sales id as SalesTable.salesid.