Skip to main content

Batch by Field (Tables)

Batch by Field (Tables)

Introduction​

Batch by field lets you split the extraction of a table node into several smaller sub-extractions (by date or by the values of a field), instead of pulling everything in a single call to SAP. It's useful to:

  • Avoid timeouts or performance issues on large tables.
  • Spread the extraction load across several RFC calls instead of just one.

Important: on table nodes, batch by field does not generate separate files. All sub-extractions are combined (merged) into a single output file. The option to generate several files ("split") only exists on Report-type nodes — it doesn't apply here.


Configuration​

Enable the section​

Turn on the Enable batching switch inside the "Batch by field" block, in the node's source configuration.

Enable the section

Choose the type: Date or String​

Only one batch can be configured per node, of a single type: Date or String. You cannot combine types or create two batches on the same node. Switching type clears the fields specific to the other type (ranges, values, selected field, etc.).

Choose Date or String type

Splits a date range using a date-type field from the table (SAP considers DATS, DATE, DATN and DATUM as date types). Each sub-range builds a field >= 'from' AND field <= 'to' condition, which is added with AND to the rest of the filters already defined on the node, and triggers its own sub-extraction against SAP.

Date field​

Select the date field to split by. Only fields the table reports as date type appear in the list.

Select the date field

Date mode​

There are three modes available:

Standard​

Set a global From / To range (YYYYMMDD format) and the split frequency (Batch every): Day, Week, Month, Quarter or Year. Crestone automatically builds the sub-ranges within that period according to the chosen frequency — for example, with From=20240101, To=20241231 and Batch every=Month, it generates one sub-range per month of the year (~12 sub-extractions).

Standard mode: From, To and Batch every

Custom​

Manually enter the ranges separated by comma, in YYYYMMDD-YYYYMMDD format. For example:

20240301-20240410, 20240411-20240531

Each range in the list generates an independent sub-extraction. A range that isn't in the from-to form is discarded (it doesn't stop the extraction, but it isn't executed either).

Custom mode: comma-separated ranges

Dynamic​

Set only the From date (YYYYMMDD) and the frequency (Batch every); there's no To field. The upper bound of the range is automatically resolved to today's date at the moment of each execution (not when the node is saved), so the range always runs from From up to the day the extraction is triggered.

Dynamic mode: From and Batch every, no To

The node shows an estimate of how many sub-extractions will be generated based on the chosen mode and frequency (for example: "~12 sub-extractions (one per month) → 1 merged file").


Save​

With the Enable batching switch on and the type/mode configured, click Save to save the configuration on the node. If you turn the switch off, the batch configuration is removed from the node automatically (there's no need to click Save for that).

Save the batch configuration


Behavior summary​

  • Batch by field on table nodes always merges all sub-extractions into a single final file — there's no option to generate several separate files (that only applies to Report nodes).
  • Only one batch can be active per node, of a single type (Date or String).
  • The conditions generated by the batch are added (AND) to the rest of the filters already defined on the node — they don't replace them.
  • In Dynamic mode (both for dates and in String's dynamic "Values source") the values are resolved on every execution, not when the node is saved.