12-02-2008 7:03 PM
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.
12-02-2008 7:30 PM
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