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

Module Pool

Former Member
0 Likes
381

Hie Experts,

I have created a tabstrip with 3 tabs,

In each tab i m displaying a 3 different internal tables using table control with wizard,

i need to modify record and add record to the internal table ,

How is this done?

Thanks in advance:)

1 REPLY 1
Read only

Former Member
0 Likes
357

Hi Bijal,

<b>1.Write one module in the PAI Loop.. Endloop .</b>

LOOP AT it_e1vdewunh .

MODULE move_data.

ENDLOOP.

<b>2.Inside That Module modify the internal table.</b>

MODIFY it_e1vdewunh FROM wa_e1vdewunh INDEX tc_msg-current_line.

IF sy-subrc <> 0.

APPEND wa_e1vdewunh TO it_e1vdewunh .

ENDIF.

3.In User comand of the Screen write code for deleting line and adding line

save_okcode = ok_code.

CLEAR ok_code.

CASE save_okcode.

WHEN 'DEL'.

PERFORM del_tc_msg.

WHEN 'INS'.

PERFORM add_tc_msg.

ENDCASE.

FORM del_tc_msg .

DELETE it_e1vdewunh WHERE sel = 'X'.

IF sy-subrc = 0.

MESSAGE s014(/evuit/msg).

ELSE.

MESSAGE s015(/evuit/msg).

ENDIF.

ENDFORM.

To Add Line

FORM add_tc_msg .

APPEND INITIAL LINE TO it_e1vdewunh.

ENDFORM

You can fill necessary steps to complete it.

Regards

shibu