0

How to configure a save button in order to press it and the info that is entered on the screen to be saved in a specific database table?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Korca95
  • 1
  • 1
  • 6
  • Could you be more specific? Where is this button, in alv, in dynpro screen ? Is the db table a sap table or it is in other independent database ? – Oguz Jan 18 '18 at 10:19
  • Its in dynpro screen, the table is an internal table that I created on my own to store the data thats gained from a join that I did – Korca95 Jan 18 '18 at 10:25

1 Answers1

1

When you double clicked your button in the layout screen, you will see and fcode area thatenter image description here you should give a function name.

Then in the screen PAI events user comment section, you can define the what button will do. You should modify your db table, under that button fcode name case. enter image description hereenter image description here

Here is a tutorial about module pool development.

You can check these links for table control tutorials: 1, 2.

Oguz
  • 1,867
  • 1
  • 17
  • 24
  • in this case I'm trying to Save the information that I've written in the corresponding fields of the dialog box. (Id CODE ,Name,Surname) When I click the button I need that info to be registered on my table control. Thats what I'm trying to do – Korca95 Jan 18 '18 at 10:46
  • Edit your question then, because it says, modifying a database table, not a table control. – Oguz Jan 18 '18 at 10:48