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

transfer data table control to .....

Former Member
0 Likes
562

hello,

In layout used with multiple rows & coloums with sel.mode ..

In table control having 4 fileds created data dictionary.

here i entered data in table control in 4 fields in 6 lines.

now i want save the data in data dictionary while pressing ctrl + s.

i dont know logic.

please tell me logic.

how to transfer the it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

hi Suresh,

There are loop in PAI & PBO for your table control.

now In PAI - loop you has to write code for saving data of table control in to your database.

for your table control there is internal table . assume itis itab and for that work area is wa_itab.

now here i am giving code to you.

and database table name is tbl_data

LOOP AT itab INTO wa_itab.

if ok_code = 'save'.

INSERT INTO tbl_data VALUES wa_itab.

endif.

ENDLOOP.

at the time of saving whatever your data of table control it will transfer into your internal table . and with help of that you are inserting data.

i hope so ur problem will be solved.

regards,

Vipul

2 REPLIES 2
Read only

Former Member
0 Likes
544

hi Suresh,

There are loop in PAI & PBO for your table control.

now In PAI - loop you has to write code for saving data of table control in to your database.

for your table control there is internal table . assume itis itab and for that work area is wa_itab.

now here i am giving code to you.

and database table name is tbl_data

LOOP AT itab INTO wa_itab.

if ok_code = 'save'.

INSERT INTO tbl_data VALUES wa_itab.

endif.

ENDLOOP.

at the time of saving whatever your data of table control it will transfer into your internal table . and with help of that you are inserting data.

i hope so ur problem will be solved.

regards,

Vipul

Read only

0 Likes
543

thank u vipul kumar.