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

TABLE CONTROL

Former Member
0 Likes
404

Hello

i have a Table Control with feild select with chk boxes when i select a rec it shd post the rec after posting the record the chk box should not appear in Table control for the feild which it has posted but it is appearing in my Table Control.

any suggestion

points for sure

3 REPLIES 3
Read only

Former Member
0 Likes
388

Hi

Can i have ur part of coding plz

Regards

Pavan

Read only

former_member491305
Active Contributor
0 Likes
388

Hi,

Have one more flag in your structure of the table control and set that flag = 'X' when you successflly post that record.And then in pBO do like this.

PROCESS BEFORE OUTPUT.

MODULE tc2_change_tc_attr.

LOOP AT it_marc INTO x_marc WITH CONTROL tc2 CURSOR tc2-current_line.

MODULE tc2_get_lines.

ENDLOOP.

MODULE tc2_get_lines OUTPUT.

g_tc2_lines = sy-loopc.

IF x_marc-sel = 'X' and x_marc-fg_post = 'X'.

*---->x_marc-fg_post -flag has to be set as 'X' when you post the document

LOOP AT SCREEN.

IF screen-name = 'X_MARC-SEL'.

screen-active = 0.

screen-output = 0.

screen-input = 0.

screen-invisible = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

ENDMODULE. "TC2_GET_LINES OUTPUT

Read only

jaideeps
Product and Topic Expert
Product and Topic Expert
0 Likes
388

hi,

i couldnt get ur query properly...

ok..for hiding the field..use

screen-active = 0.(invisible..)

thanks

jaideep

*reward points if useful..