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
556

hi experts,

i need to have a table control in my screen, & i need to allow user to enter values into it. after entering values, i need to insert them into db table.

hope the question is clear.

plz some one help me to slove this.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

Check the program:

REPORT RSDEMO02.

Regards

Kannaiah

5 REPLIES 5
Read only

Former Member
0 Likes
514

Check the program:

REPORT RSDEMO02.

Regards

Kannaiah

Read only

Former Member
0 Likes
513

HI

The question is pretty clear , but are you looking for a complete code here?

Read only

Former Member
0 Likes
513

Hi Mytri,

Please refer to the following sample programes in se38.

These has got all the concepts, refer to the program which suits ur requirement..

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

For any further help revert back to me.

Regards,

Nishant

Read only

Former Member
0 Likes
513

You want user can change the data onto the Table control and want to save it into the database.

After display the table control as output,Change the data and when save it,The PAI event is triggered.

Modify the internal table and then modify the database table.

LOOP AT itab.

MODULE MODIFY.

ENDLOOP.

And in module modify,

MODIFY itab INDEX tablecontrol-CURRENT_LINE.

IF SY-SUBRC <> 0.

APPEND itab.

ENDIF.

data : wa_itab like itab.

case ok_code.

WHEN 'SAVE'.

SELECT SINGLE *

FROM DB

INTO WA_itab

WHERE..................... .

WA_itab_(Field_name) = itab-(Field_name)

MODIFY DB FROM WA_itab.

Read only

Former Member
0 Likes
513

hi all,

thanks for ur replies.