SAP Business One Knowledge Base | MTC Systems

How to Use the “RecurringTransactionService” Object in SAP Business One SDK

Written by MTC Systems | Jan 26, 2017 1:10:00 PM

Have you heard about the “RecurringTransactionService” Object yet?

We in SAP Business One Support think you might like to know more about this!

We know that certain business transactions are repeated on a regular basis. For example, every month a company orders a stack of photocopy paper from their vendor. 

In SAP Business One, you can define templates for such recurring transactions using regular sales and purchasing document drafts. The templates contain the required business partner, item, accounting, and shipping information as well as the recurrence details.

Starting from SAP Business One Version 9.2 PL05, you can use the “RecurringTransactionService” Object to do the following: 

  1. Get a list of all available recurring transactions.
  2. Get information about a particular recurring transaction.
  3. Remove a set of recurring transactions.
  4. Execute a set of recurring transactions.

 

The variables that need to be defined first are:

 

Then you can use these code snippets:


1. Get a List of all available recurring transactions

2. Get Information about a particular recurring transaction


3. Remove/Delete a set of recurring transactions


4. Execute a set of recurring transactions


You can copy these code snippets from the original SAP Community article.

Note: The creation of the Recurring Transaction Template can only be done manually via SAP Business One Client.

 

Source:https://www.linkedin.com/pulse/how-use-recurringtransactionservice-object-sap-business-kennedy/