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
589

Hi,

I have a problem to delete a row from Table control.

I have used this following code :

READ TABLE my_control-cols INTO wa_col WITH KEY screen-input = '1'.

IF SY-SUBRC = 0.

LOOP AT internal_table INTO DEMO_CONN WHERE MARK = 'X'.

DELETE internal_table.

ENDLOOP.

ENDIF.

it's not working, can anyone give me a response.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
562

Hi Said..use Delete Internal_table from Demo_conn.

See wat happens ???

You should first make sure whether your record is collected in Demo_conn (work area) or not.

I am sure it will solve your query.

Reward points if it does.

Dev.

6 REPLIES 6
Read only

Former Member
0 Likes
562

where u are calling this Module?

u have to call in PAI

ref: this program

DEMO_DYNPRO_TABCONT_LOOP_AT

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
562

Hi

Hope there are some demo programs by SAP for Table Controls.

Try :

DEMO_DYNPRO_TAB* in se38.

Regards,

Sreeram

Read only

Former Member
0 Likes
563

Hi Said..use Delete Internal_table from Demo_conn.

See wat happens ???

You should first make sure whether your record is collected in Demo_conn (work area) or not.

I am sure it will solve your query.

Reward points if it does.

Dev.

Read only

Former Member
0 Likes
562

Try this logic

READ TABLE my_control-cols INTO wa_col WITH KEY screen-input = '1'.

clear demo_conn.

IF SY-SUBRC = 0.

DEMO_CONN-MARK = 'X'.

DELETE table internal_table from demo_conn.

ENDIF.

Message was edited by:

Naveena M

Read only

Former Member
0 Likes
562

Hi,

when 'DEL_ROW'.

get cursor line sel_line.

if sel_line <> 0.

delete <itab> index sel_line.

endif.

rgds,

bharat.

Read only

Former Member
0 Likes
562

TRY TO DECLARE A VARIABLE TYPE C

LET IT BE BOX.

IN LAYOUT OF TABLE CONTROL WE AS A SEL OPTION GIVE THE SAME NAME...BOX.

THEN IN PAI WRITE CODING.....

IF BOX = 'X'.

DELETE <ITAB> WHERE <CONDITION>...

ENDIF.