Thanks a lot Harsha... for your valuable info...
--- Harry Deshpande <[EMAIL PROTECTED]> wrote:
> Hi Akash!
>

>
> 1.      As to SQL locks ... I am just guessing..however,
> I do feel that
> this is a case of SQL locks on (most likely)
> inventory tables, which
> will slow down your processing time drastically.
> 2.      Any class which inherits runBaseBatch can be run
> in batch mode.
> When you run Sales invoice, the variable 'parmId' is
> generated even
> before you go into the salesEditLines form. When you
> put this job to
> batch this variable is stored in the database.
>

>
> Now the class 'batchRun' is responsible for running
> the batch.
>

>
> Take a look at following code in method 'runJob' of
> class 'batchRun'
>

>
>             runBaseBatch = batch.object(); <- this
> creates an instance
> of the class.
>

>
>             infolog.updateViewSet(runBaseBatch);
>

>
>             runBaseBatch.unpack(batch.parameters);
> <- this will get all
> the saved variables from the databse including
> ParmId
>

>
>             info();
>

>
>             runBaseBatch.parmInBatch(true);
>
>           
> runbaseBatch.setCreatedByUserId(batch.createdBy);
>
>             runBaseBatch.run(); <- this will run the
> class instance
> generated above
>

>
> Now if you set this batch for recurrence the
> variables like parmId are
> reused over and over.  Which means your
> salesParmTable will have most of
> the invoices generated by a single parmid.
>

>
> What you will have to do is to create a method in
> runJob like
> 'changeParametersAkash' and call this in method
> 'runJob' between unpack
> statement and run statement (as above). Then
> recompile the system. This
> will make class SalesFormLetter_Invoice inherit this
> particular method.
> Now overwrite this method in SalesFormLetter_invoice
> to change parmId
> i.e. to get a new parmId.
>

>
> I have logged this call on the support system in my
> previous company.
>

>
> Regards
>

>
> harshawardhan
>

>
>   _____ 
>
> From: akash malohatra [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, 7 June 2004 5:49 p.m.
> To: [EMAIL PROTECTED]
> Subject: RE: [development-axapta] Batch processing
> for Salesorder
> Invoicing
>

>
> Hi Harry,
> Thanks for the info.
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion
> Toolbar.
> Now with Pop-Up Blocker. Get it for free!
>
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
>
--------------------------------------------------------------------~->
>
>

> Yahoo! Groups Links
>
> http://groups.yahoo.com/group/development-axapta/
>
>      [EMAIL PROTECTED]
>




     
     
           
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to