‎2006 Oct 16 10:47 AM
Hi experts,
I want a simple Dialog program code..I have created on Ztable.. I want to insert ,delete,update the records by Dialog program.. There is four push buttons like insert, update, delete, exit.If I choose insert button the record should be inserted to ztable..How can I do it in Dialog program ? can anyone give idea in coding.
thanks
‎2006 Oct 16 10:51 AM
I would rather suggest you to go for table maintenance generator.
If you want ot do a table maintenance: then you can follow the steps given in the foolowing link:
If you still want the module pool way of doing things, firt get your basics right using
Programs in se38 (Type demodynpro and use f4 help).
Regards,
Ravi
‎2006 Oct 16 10:51 AM
Hi,
Have a look at these good links-
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://fuller.mit.edu/tech/dialog_programming.html
http://www.sappoint.com/abap/dptc1.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
<b>check sample code.</b>
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/abap.htm
http://www.allsaplinks.com/dialog_programming.html
Mark useful answers.
Cheers
Alfred
‎2006 Oct 16 10:53 AM
Hello,
Check the report <b>demo_dynpro_push_button</b>.
In this case there are 4 pustbuttons.
Modify the screen text as per ur requiremnt and change the screen fileds with ur Ztable fields.
Then use the commands like INSERT,UPDATE,DELETE of the database.
If useful reward.
vasanth
‎2006 Oct 16 11:04 AM
I have designed the screen as per our requirement. And coded like below one..i have created Tcode also..activated screen,program,Tcode and all..But while excecting TCODE ..it is not working..Have a look on this code and modify it...
data: okcode like sy-ucomm,
fcode like okcode.
&----
*& Module ZG_PAI INPUT
&----
text
----
MODULE ZG_PAI INPUT.
fcode = okcode.
clear okcode.
case fcode.
when 'SA'.
insert ztab .
when 'UP'.
update ztab.
when 'DE'.
delete ztab.
when 'EX'.
leave program.
endcase.
ENDMODULE. " ZG_PAI INPUT
&----
*& Module STATUS_1300 OUTPUT
&----
text
----
MODULE STATUS_1300 OUTPUT.
SET PF-STATUS '123'.
SET TITLEBAR '123'.
ENDMODULE. " STATUS_1300 OUTPUT
&----
*& Module USER_COMMAND_1300 INPUT
&----
text
----
MODULE USER_COMMAND_1300 INPUT.
fcode = okcode.
case fcode.
when 'SA'.
insert ztab .
when 'UP'.
update ztab.
when 'DE'.
delete ztab.
when 'EX'.
leave program.
endcase.
ENDMODULE. " USER_COMMAND_1300 INPUT
‎2006 Oct 16 11:06 AM
HI Thomos,
Did you save the T-code PROGRAM AND SCREEN ( Dialog Treansaction ) while creating a T-Code ???
Regards,
Santosh