2007 Mar 19 1:59 PM
Hello friends,
I have the following requirement. There is a custom Z table and there are 4 fields inside the table. When i change a field, i have an event before_save_database, where i go and update the value of the 4th field if field 3 changes. On display it shows data was saved although the 4th fields still has the old value.
Only when SM30 is entered is the new value for field 4 seen.
I want it to display the new value in the first run itself when the message comes 'Data is saved'. Kindly mention how the following can be achieved.
Regards,
Jaydeep.
2007 Mar 19 2:06 PM
i´m not a 100% sure that i got your requirements, but i think it´s a commit problem.
if you enter SM30 you have a dynpro change, which means you loose your dialog work process.
This again leads to an implicit commit on your DB.
now i would try to do an manual commit and see if your problem still exists.
i´m not a 100% sure that i got your requirements, but i think it´s a commit problem.
if you enter SM30 you have a dynpro change, which means you loose your dialog work process.
This again leads to an implicit commit on your DB.
now i would try to do an manual commit and see if your problem still exists.
2007 Mar 19 2:04 PM
Hi,
From SE11 create the table and Table Maintenance Generator.
From the table Maintenance generator screen you can define your own EVENTS from the Menu:ENVIRONMENT-> MODIFICATION->EVENTS
define your own custom events and write your code and check.
Reward if useful.
regards,
Anji
2007 Mar 19 2:06 PM
i´m not a 100% sure that i got your requirements, but i think it´s a commit problem.
if you enter SM30 you have a dynpro change, which means you loose your dialog work process.
This again leads to an implicit commit on your DB.
now i would try to do an manual commit and see if your problem still exists.
2007 Mar 19 2:20 PM
Hi Florian,
Even i was thinking on similar lines.
I did a manual 'COMMIT WORK' also, but doesnt solve the problem
Pls suggest some other alternative.
Regards,
Jaydeep
2007 Mar 19 2:07 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |