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: 

Best Performance in my custom transaction

Former Member
0 Kudos

Hi,

I want ask a thing:

I'm trying to entry some materials via Purchase Order and i have simulate a inbound delivery access for custom transaction.

My operations are:

Creation of Batch

Split Position with Batch

Pack Furniture

Create OT for Forniture

EM of Forniture

The first 3 operation are Batch-Input of vl32n.

Between each operation I have insert a "WAIT UP to 4 second" to not raise exception but my transaction go very slow.

IF i go down the time of wait up the process doesn't work.

How I can improve the performance?

Thanks to all.

1 REPLY 1

brad_bohn
Active Contributor
0 Kudos

WAIT UP to 4 second" to not raise exception

Why is that? You shouldn't use the WAIT or an ENQUEUE_SLEEP call unconditionally. Yuo don't know if it's necessary or even that the lag time is long enough. Check for the lock release using the enqueue function in a short DO loop. Calling 'WAIT' that many times is not very good either - each time you're forcing a roll in/roll out.