Application Development and Automation 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: 
Read only

Clear screen cursor field value

Former Member
0 Likes
1,318

Hi all,

I want to clear the value of the cursor field on screen. Presently I am using:

GET CURSOR FIELD g_cursorfield.

CLEAR g_cursorfield.

But it clear the cursor field but not the field value.

how it works.

Please suggest.

Thanks

Sanket sethi

7 REPLIES 7
Read only

Former Member
0 Likes
1,034

Hi Sanket

Have you tried Set Parameter id for this.

Regards

Neha

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,034

hi,

try like this

data : fval type i.
GET CURSOR FIELD g_cursorfield field fval.
CLEAR :  g_cursorfield,
               fval..

Thanks & Regards

Read only

0 Likes
1,034

I also want to set the changed value on the screen.

Read only

0 Likes
1,034

Try this :

GET CURSOR FIELD g_cursorfield Value g_value.

Clear: g_value,

g_cursorfield .

Regards

Neha

Read only

Former Member
0 Likes
1,034

hi dont know whether it works but give try.

GET CURSOR FIELD g_cursorfield.

CLEAR (g_cursorfield). "run time detemination of variable name

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,034

You may try something like

* Définition
DATA fieldname TYPE fieldname.
FIELD-SYMBOLS <field> TYPE ANY.
* Execution
GET CURSOR FIELD fieldname.
ASSIGN (fieldname) TO <field>.
CHECK sy-subrc EQ 0.
CLEAR <field>.

But did i understand your question ?

Regards

Read only

Former Member
0 Likes
1,034

This message was moderated.