Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

come on abapers.....n have ur points

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

See the program DEMO_DYNPRO_ON_CONDITION

Max

4 REPLIES 4

Former Member
0 Kudos

Hi,

what do you mean by:

come on abapers.....n have ur points

Is this your question?

Regards, Dieter

varma_narayana
Active Contributor
0 Kudos

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>

Former Member
0 Kudos

Hi

See the program DEMO_DYNPRO_ON_CONDITION

Max