08-20-2007 1:13 PM
Hi all,
I m trying to use at cursor-selection in module pool. Some buddy suggested me to use, function code "CS" and function type "S" for fields..
but how can we define function codes for fields... it's strange...
Ples let me know in simple ur written language, demo of at cursor-selection pleas.
<b>have ur points.</b>
cheers.
pradeep.phogat@gmail.com
08-20-2007 1:22 PM
08-20-2007 1:16 PM
Hi See the lionks below :
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
Reward point if helpful.
Regards.
Srikanta Gope
08-20-2007 1:21 PM
Hi,
what do you mean by:
come on abapers.....n have ur points
Is this your question?
Regards, Dieter
08-20-2007 1:21 PM
hI....
Calling Modules after Cursor Selection
You can specify that a module should only be called if the cursor is positioned on a particular screen element. To do this, use the statement
<b>MODULE <mod> AT CURSOR-SELECTION.</b>
The module <mod> is called whenever the function code of the user action is CS with function type S. If you use this statement,<b> it is best to assign the function code CS to function key F2. This also assigns it to the mouse double-click.</b>
The module is called in the sequence in which it occurs in the flow logic. It does not bypass the automatic input checks. Data is transported from screen fields in the order in which it is defined by the FIELD statements. The function code is empty, and neither SY-UCOMM nor the OK_CODE field is affected. You can also combine this MODULE statement with the FIELD statement:
<b>FIELD <f> MODULE <mod> AT CURSOR-SELECTION.</b>
<b>Reward if Helpful</b>
08-20-2007 1:22 PM