jfoster02
Member
I need to apply a line level discount to each detail record in the P4210 program. I added a form exit in the sales order detail revisions form that will call the Price history (P4074). I only want to display the P4074 program once to get the discount from the user, but dont show the form for the remaining detail records while using the program to calculate the discount.
Ive managed to loop through all the detail records and apply the discount that was given to the first record. But for each subsequent detail record the P4070 displays. The user then has to hit the OK button for each record. I have added a push button OK in the write grid line after but it still displays the form for each record.
Believe it or not i can get this to work in debug mode but not while running without debug. I think it has something to do with my placement of the push button OK but ive tried everywhere.
Any help would be greatly appreciated, Jeff
Ive managed to loop through all the detail records and apply the discount that was given to the first record. But for each subsequent detail record the P4070 displays. The user then has to hit the OK button for each record. I have added a push button OK in the write grid line after but it still displays the form for each record.
Believe it or not i can get this to work in debug mode but not while running without debug. I think it has something to do with my placement of the push button OK but ive tried everywhere.
Any help would be greatly appreciated, Jeff