Application Development 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: 

How to use insert statement in module pool programming

Former Member
0 Kudos

Hi all,

i have created two fields in data base table , and in the screen t'code-se51 (layout) i call table structure.. .. from the screen i want to insert the data and the inserted data will be sit in to my data base table how to write the INSERT statement in the PAI event

Thanks&Regards,

Basha.

1 REPLY 1

Former Member
0 Kudos

Check this program for some info on Push buttons:

1-DEMO_DYNPRO_PUSH_BUTTON

2-DEMO_DYNPRO_MODULE

3-DEMO_DYNPRO_ON_CONDITION

Suppose Your screen is 101

Then in that screen create one push button and assign it a function code.

Now in the PAI of the 101 screen

Create Module for user command

Inside that module checc the sy-ucomm if sy-ucomm eq <Function code of your push button>

Insert the values in database.

&----


*& Module USER_COMMAND_0101 INPUT

&----


  • process after input for screen 0101 *

----


MODULE USER_COMMAND_0101 INPUT.

CASE OK_CODE.

WHEN 'SAVE'.

*Insert the values here

WHEN 'DISP'.

*

ENDCASE.

CLEAR OK_CODE.

ENDMODULE. " USER_COMMAND_0101 INPUT

Regards

Neha

Edited by: Neha Shukla on Dec 3, 2008 1:02 AM

Edited by: Neha Shukla on Dec 3, 2008 1:02 AM

Edited by: Neha Shukla on Dec 3, 2008 1:06 AM