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

Help needed to write a dialog program

Former Member
0 Likes
439

Hello ABAP Gurus,

I am very much new to ABAP Programming.

Can anybody help me to write a simple Dialog Program ??

I have a database table.

I have created a screen with screen painter, and kept some input fields & a push button in it.

I want to fill the database table with the data entered into the fields on the screen.

When the user enters the data and presses the PUSH BUTTON then that data record should be stored into the Database table.

So what kinda code I have to write in PAI (Process After Input), to achieve this functionality ??

The help will be greatly appreciated.

Thanks in advance

Best regards

Ravi

Edited by: Ravi Kiran on Oct 28, 2009 2:17 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
414

Please SEARCH in SCN before posting. You will find lots of threads with examples and explanations for the same basic requirement

2 REPLIES 2
Read only

Former Member
0 Likes
415

Please SEARCH in SCN before posting. You will find lots of threads with examples and explanations for the same basic requirement

Read only

Former Member
0 Likes
414

It's easy:

In PAI you have do an insert into a database table, following the steps:

1.on PAI create a module: for exemple Zwrite_table.

2. inside Zwrite_table code as follow:

move var1 to wa_table-var1.

move var2 to wa_table-var2.

move var3 to wa_table-var3. etc etc

insert table ztable from wa_table.

P.s. ztable is a database table.

wa_table is a structure that have the same structure of ztable.

var1 var2 var3 etc is a variable inside your dynpro.

regards,

Roberto.