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 to insert row, delete row and update row

Former Member
0 Likes
4,900

Dear all,

I'm new in dialog programming..need some help here....

I'm creating a Z customized table...

I need to create a dialog screen for this Z table....

Does anyone have example to insert row, delete row and update row from this table control that i have created...

I have seen some SAP example on demo_conn....but the help is very limited.... it just delete from itab but didnt update to the d/b....

I hope a clearer example with some d/b update to the table

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,565

hi,

Check this out

<b>For Inserting a Row</b>

<b>For Deletion of a Row</b>

Regards,

Santosh

14 REPLIES 14
Read only

Former Member
0 Likes
2,566

hi,

Check this out

<b>For Inserting a Row</b>

<b>For Deletion of a Row</b>

Regards,

Santosh

Read only

0 Likes
2,565

Demo program on Table control RSDEMO02

Read only

Former Member
0 Likes
2,565

hi

i am giving you the logic for the delete insert and modify the row from the table try to implement that in your report.

&----


*& Module USER_COMMAND_0200 INPUT

&----


  • text

----


MODULE user_command_0200 INPUT.

CASE sy-ucomm.

WHEN 'SAVE'.

INSERT zvbaktc.

WHEN 'MODIFY'.

UPDATE zvbaktc.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN 'CANCEL'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE. " USER_COMMAND_0200 INPUT

-


&----


*& Module USER_COMMAND_0300 INPUT

&----


  • text

----


MODULE user_command_0300 INPUT.

CASE sy-ucomm.

WHEN 'SHOW'.

*select single vbeln erdat erzet ernam angdt from zvbaktc into itab1

*where vbeln = vbeln.

select * from zvbaktc into table itab where vbeln = vbeln.

loop at itab.

zvbaktc-vbeln = itab-vbeln.

zvbaktc-erdat = itab-erdat.

zvbaktc-erzet = itab-erzet.

zvbaktc-ernam = itab-ernam.

zvbaktc-angdt = itab-angdt.

endloop.

CALL SCREEN 200.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN 'CANCEL'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE. " USER_COMMAND_0300 INPUT

&----


*& Module STATUS_0200 OUTPUT

&----


  • text

----


MODULE status_0200 OUTPUT.

SET PF-STATUS '200'.

SET TITLEBAR '200'.

IF sy-ucomm EQ 'CREATE'.

LOOP AT SCREEN.

IF screen-name = 'MODIFY'.

screen-active = 0.

MODIFY SCREEN .

EXIT.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

" STATUS_0200 OUTPUTENDMODULE. " STATUS_0200 OUTPUT

thanks

mrutyun

Read only

0 Likes
2,565

Dear, Mrutyunjaya Tripathy

I am manage to do until this level,...Can you provide me

snippets where after click SAVE, MODIFY, CREATE, MODIFY...

Those in PAI that related to table control...

Thanks...appreciate....

Read only

Former Member
0 Likes
2,565

hi raiblur,

Can you give me your email id . I will send you a pdf contaning details about the table control and how to insert, delete and update the same.

Thanks and Regards,

Kunal

Read only

0 Likes
2,565

My email is [email protected]

Thanks, appreciated

Read only

0 Likes
2,565

This message was moderated.

Read only

Former Member
0 Likes
2,565

Hi Rayblur,

I have sent the pdf on Table Control , which will help you in inserting, deleting, updating values.

Just check your Yahoo Mail.

Regards,

Kunal.

Note: Please award points if found useful.

Read only

2,565

Dear Kunal,

thanks...I will loook into it....I hope it helps....

btw, if i am using Table control wizard, there are some subroutines codes generated...can it be used as well....?

Read only

Former Member
0 Likes
2,565

Hi,

I have sent u a step by step documentation on the table control.

Regards,

Sumana

Read only

0 Likes
2,565

Dear Sumana,

My email is [email protected]....

Thanks appreciaate....

Read only

0 Likes
2,565

It's seems i havent rcv any documentation in my mail yet........

:<

Read only

0 Likes
2,565

Hi Rayblir,

The table control wizard helps you to implement the table control automaticaaly by avoiding you to write any code. That is the main purpose of a wizard.

Moreover with this wizard, you can just display the comtents of only one table.

So, if and only we have to display the contents of one table, we generally use this wizard otherwise we make use of Table Control.

Thnaks and Regards,

Kunal

Read only

0 Likes
2,565

Kunal, do u send to my email...?

[email protected]