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: 

modifying the field and inserting into the database

Former Member
0 Kudos

hi

i am working on modulepool programming...here i have to display material related data i.e. material number,material name,quantity,price and others...

here the data must be displayed in changeable format and when i change the quantity and press save button the new quantity must be written in the database.

kindly let me know how can i resolve this..thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

As per my understanding, you have to call the API's or Function Modules to save the data once the SAVE Button is pressed.

The general flow of the program will as follows : SAVE --> PAI --> Check the Ok Code and then based on that you need to call the Code to make a save to the Database.

Process Before Output.

Module GUI_LOAD.

Process After Input.

Module process_function_code.

Also, make sure you make the proper validation before you call the final Database call.

Hope this helps.

Thanks,

Samantak.

4 REPLIES 4

Former Member
0 Kudos

Hi,

As per my understanding, you have to call the API's or Function Modules to save the data once the SAVE Button is pressed.

The general flow of the program will as follows : SAVE --> PAI --> Check the Ok Code and then based on that you need to call the Code to make a save to the Database.

Process Before Output.

Module GUI_LOAD.

Process After Input.

Module process_function_code.

Also, make sure you make the proper validation before you call the final Database call.

Hope this helps.

Thanks,

Samantak.

0 Kudos

Hi

thanks for the reply...

can u please let me know how can i display the particular quantity column in editable format...

0 Kudos

Hi,

In the PBO Event of the Screen you can put the code in one of the module which will enable/disable the quantity column.

The pseudo code is as follows:

LOOP AT SCREEN.

IF Screen- name = 'Column Name'.

screenname-input = 1.

modify screen.

ENDIF.

ENDLOOP.

Have a look at the ABAPDOCU Transaction Code for example code.

Hope this will help.

Thanks,

Samantak.

0 Kudos

thanks alot