2006 Apr 25 6:24 AM
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
2006 Apr 25 6:30 AM
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
2006 Apr 25 6:30 AM
2006 Apr 25 6:37 AM
2006 Apr 25 6:45 AM
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
2006 Apr 25 6:50 AM
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....
2006 Apr 25 6:47 AM
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
2006 Apr 25 6:51 AM
2014 Jun 04 7:52 AM
2006 Apr 25 6:54 AM
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.
2006 Apr 25 7:00 AM
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....?
2006 Apr 25 7:00 AM
Hi,
I have sent u a step by step documentation on the table control.
Regards,
Sumana
2006 Apr 25 7:02 AM
2006 Apr 25 7:06 AM
It's seems i havent rcv any documentation in my mail yet........
:<
2006 Apr 25 7:07 AM
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
2006 Apr 25 7:11 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |