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

Controlling UI Action on save

Former Member
0 Likes
532

Dear experts,

I have a module pool program.It is fully developed and functionally working quite well.

I have one problem as follows.

When i push save button, an autoseries number is generated and records are generated on some header

and detail tables.Now as i see the number and press save once more other duplicate record gets created

with another new series number and sequence goes further on pressing save button everytime.

This behaviour is wrong.

The behaviour which i anticipate is that once a number is generated and information is saved,

all entry fields must be refresh to capture new entries on grid (Detail) as well as on header.

Presently i have control things some how that when i push save,records are added to table and with that i used

' leave program'.But this is not looking good as control must be trsansffered back after save action.

Plz help.

1 ACCEPTED SOLUTION
Read only

PedroGuarita
Active Contributor
0 Likes
500

You can use "LEAVE TO TRANSACTION ..." if you MP is called by a transaction code. This way all fields are refreshed.

2 REPLIES 2
Read only

PedroGuarita
Active Contributor
0 Likes
501

You can use "LEAVE TO TRANSACTION ..." if you MP is called by a transaction code. This way all fields are refreshed.

Read only

0 Likes
500

I am using subscreen,i thought it will not happen but it works !!.Thanx