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: 

HI

Former Member
0 Kudos

I HAVE A TABLE CONTROL WITH COLUMN SATUS FEILD FOR CUSTOMER DETAILS DATABASE TABLE.

I WANT TO MAKE A RECORD IN TABLE CONTROL TO BE INACTIVE IN STAUS RATHER DELETING IT.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

*Modify the Record

if gt_item-cflag = 'X'.

modify gt_item index my_table-current_line.

if sy-subrc eq 0.

modify yvbap from table gt_item.

endif.

endif.

*Awrd POints if useful.

Bhupal

Edited by: Bhupal on Dec 24, 2007 7:02 AM

4 REPLIES 4

Former Member
0 Kudos

*Modify the Record

if gt_item-cflag = 'X'.

modify gt_item index my_table-current_line.

if sy-subrc eq 0.

modify yvbap from table gt_item.

endif.

endif.

*Awrd POints if useful.

Bhupal

Edited by: Bhupal on Dec 24, 2007 7:02 AM

0 Kudos

THANKS FOR REPLYING ME BUT STILL LAST DOUBT

WHAT THIS FEILD MEAN?

gt_item-cflag

yvbap

MY INTERNAL TABLE IS WI_CUST.

DATABASE TABLE IS ZCUST_MASTER.

PLZ HELP ME.

0 Kudos

if WI_CUST-cflag = 'X'. -- > this flag is assigned to the w/ selection field in screen designing. The value is X for the line selected in the table control. U assign 'WI_CUST-CFLAG' for that field in properties of the Table control while designing the screen. Also u have it in ur internal table with 1 character size.

modify WI_CUST index my_table-current_line.

if sy-subrc eq 0.

modify ZCUST_MASTER from table gt_item.

endif.

awrd points if useful

Bhupal

0 Kudos

HI MY PRO SOLVE THANKS.

I GAVE 10 POINTS TOO.

I HAVE ANOTHER QUESTION.

HOW CAN I DISABLE A ROW IN TABLE CONTROL.