‎2008 May 31 9:00 AM
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.
‎2008 May 31 10:51 AM
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
‎2008 May 31 10:51 AM
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
‎2008 Jun 01 11:57 AM