12-24-2007 5:54 AM
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.
12-24-2007 5:57 AM
*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
12-24-2007 5:57 AM
*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
12-24-2007 6:12 AM
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.
12-24-2007 6:47 AM
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
12-24-2007 9:31 AM
HI MY PRO SOLVE THANKS.
I GAVE 10 POINTS TOO.
I HAVE ANOTHER QUESTION.
HOW CAN I DISABLE A ROW IN TABLE CONTROL.