mbdave
10th June 2009, 12:23
Hi,

Some of MMT Session in baan when opened for adding a record in Header by opening more than 1 instance then on clicking Save of any one MMT session it Saves all the other MMt session to.

For e.g. If click new button on Sales order header and write values in each filed and then without saving we open another Sales order session. After entering all the values in each fiels of the next sales order session and may be some more instance of Sales order. Now if we Click Save on any of the one insatnce of Sales order header it Saves all the Session which were oopened independently with values added in each field.

_Ralph_
10th June 2009, 20:15
I can not sure you about sales order. But according to your relates.. This is totally possible to create, using Process Change Manager(PRCM) functions.

Here is a sample code, extracted from ERP LN Programmers Guide


function extern set.status()
{
db.retry.point()

select tisfc001.*
from tisfc001 for update
where tisfc001._index1 = {:...}
as set with 1 rows
selectdo
...
dal.update("tisfc001", ttisfc001, retval, true, db.retry)
endselect

commit.transaction()

prcm.notify("tisfc001")
| All sessions that use this table as main. Will be notified...

}

mbdave
15th June 2009, 07:19
Hello Sir,

Thank! for your comment, last week we invetigated and found that because of the usef of code prcm.notify it was forcing all other instance of Sales order to get saved. However we now are using the same prcm.notify with some checks and is working now.

Thank you very much for your feddback