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

Need help in list processing

Former Member
0 Likes
494

hello,

my requirement is that on the basic list i am displaying something then i have checkboxes on the basic list ,i select the records to be displayed in a window.

now when i come back to my basic list i want the checked records to be disabled for input i.e. user should not be able to check the same records again

My query is how do i disable these records on basic list.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
468

When you process a record set a flag in the internal table. If the flag is set do not write out the checkbox field.

3 REPLIES 3
Read only

Former Member
0 Likes
469

When you process a record set a flag in the internal table. If the flag is set do not write out the checkbox field.

Read only

Former Member
0 Likes
468

following code may help :

DATA TEXT(20).

START-OF-SELECTION.

PERFORM WRITE_AND_HIDE USING SPACE SPACE.

AT LINE-SELECTION.

CASE TEXT.

WHEN 'List index'.

PERFORM WRITE_AND_HIDE USING 'X' SPACE.

WHEN 'User command'.

PERFORM WRITE_AND_HIDE USING SPACE 'X'.

WHEN OTHERS.

SUBTRACT 2 FROM SY-LSIND.

PERFORM WRITE_AND_HIDE USING SPACE SPACE.

ENDCASE.

CLEAR TEXT.

FORM WRITE_AND_HIDE USING P_FLAG_LSIND P_FLAG_UCOMM.

WRITE / 'SY-LSIND:'.

PERFORM WRITE_WITH_COLOR USING SY-LSIND P_FLAG_LSIND.

TEXT = 'List index'.

HIDE TEXT.

WRITE / 'SY-UCOMM:'.

PERFORM WRITE_WITH_COLOR USING SY-UCOMM P_FLAG_UCOMM.

TEXT = 'User command'.

HIDE TEXT.

IF SY-LSIND > 0.

WRITE / 'PICK here to go back one list level'.

ENDIF.

ENDFORM.

FORM WRITE_WITH_COLOR USING P_VALUE

P_FLAG_POSITIVE.

IF P_FLAG_POSITIVE = SPACE.

WRITE P_VALUE COLOR COL_NORMAL.

ELSE.

WRITE P_VALUE COLOR COL_POSITIVE.

ENDIF.

ENDFORM.

Sameer

Read only

0 Likes
468

hey guys thnx for replayin to my query so quickly!!!