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

set curser

former_member659396
Participant
0 Likes
537

Dear Friends

I am working on module pool.

I have provided check box to few fields.

when i click check box field goes to enable mode but problem is that when i tick on check box curser is not coming to that field.Please suggest something following is my coding for check box.

C3 is check box.

IF C3 = 'X'.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 1.

GET CURSOR FIELD WA-SLB1_FROM.

MODIFY SCREEN.

ENDIF.

ELSEIF C3 = ''.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 0.

CLEAR SCREEN-NAME.

MODIFY SCREEN.

CLEAR WA-SLB1_FROM.

ENDIF.

ENDIF.

4 REPLIES 4
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
517

hi,

IF C3 = 'X'.
IF SCREEN-NAME = 'WA-SLB1_FROM'.
SCREEN-INPUT = 1.
GET CURSOR FIELD 'WA-SLB1_FROM'. "----> give in single quotes
MODIFY SCREEN.
ENDIF.
ELSEIF C3 = ''.
IF SCREEN-NAME = 'WA-SLB1_FROM'.
SCREEN-INPUT = 0.
CLEAR SCREEN-NAME.
MODIFY SCREEN.
CLEAR WA-SLB1_FROM.
ENDIF.
ENDIF.

Thansk

Read only

Former Member
0 Likes
517

Hi,

Dnt give second elseif condition jst try else like

IF C3 = 'X'.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 1.

GET CURSOR FIELD WA-SLB1_FROM.

MODIFY SCREEN.

ENDIF.

ELSE.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 0.

CLEAR SCREEN-NAME.

MODIFY SCREEN.

CLEAR WA-SLB1_FROM.

ENDIF.

ENDIF.

regards

Mudit

Read only

Former Member
0 Likes
517

Hi,

Kindly go through this link below:

http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm

It might be helpful for you

Regrds

Mansi

Read only

Former Member
0 Likes
517

Hi,,

Check this code

IF C3 = 'X'.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 1.

GET CURSOR FIELD 'WA-SLB1_FROM'.

MODIFY SCREEN.

ENDIF.

ELSEIF C3 = ' '.

IF SCREEN-NAME = 'WA-SLB1_FROM'.

SCREEN-INPUT = 0.

CLEAR SCREEN-NAME.

MODIFY SCREEN.

CLEAR WA-SLB1_FROM.

ENDIF.

ENDIF.

Thanks

Kalyan