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

Dialog program

Former Member
0 Likes
718

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

5 REPLIES 5
Read only

Former Member
0 Likes
674

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

Read only

Former Member
0 Likes
674

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

Read only

0 Likes
674

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

Read only

0 Likes
674

HI Thomos,

Did you save the T-code PROGRAM AND SCREEN ( Dialog Treansaction ) while creating a T-Code ???

Regards,

Santosh