# Set Schedules for Report Generation

**YouTube:** [How to Set Schedules and Mandatory Filter Selection for Report Generation?](https://www.youtube.com/watch?v=4Yr5zTRWz3o)

## How to Set Schedules and Mandatory Filter Selection for Report Generation?

In this tutorial, you will learn how to **schedule and control report generation** in Logic ERP.\
This feature allows you to **define when, how, and under what conditions reports can be generated by users**.

***

### Open Report Scheduling Setup

**To begin:**

* Go to the **User Access Module**.
* Open **Set Schedules for Report Generation**.

<figure><img src="/files/aUyXhQEu1pHdL4K9Buin" alt=""><figcaption></figcaption></figure>

This window contains three key tabs:

* **Setup Templates**
* **Assign Reports to Templates**
* **Assign Templates to Users**

***

### Create a Template

Templates act as a **base configuration** for report scheduling.

* Go to **Setup Templates Tab**.
* Click **New**.
* Enter the **Template Name**.

<figure><img src="/files/cqJgRMdLTG5VmgBhnmoL" alt=""><figcaption></figcaption></figure>

* Click **Save**.

**Result:** Template is successfully created.

***

### Assign Reports to Template

Now assign reports to the created template.

* Go to **Assign Reports to Templates Tab**.
* Select the **Template**.
* Click **Allocate Report**.

<figure><img src="/files/TqmWhOVzadu7ajy0HC7z" alt=""><figcaption></figcaption></figure>

**Add Reports:**

* Select the **Report** you want to assign.
* Choose the **Report Configuration(s)**.
* Click **Add** → Click **OK**

<figure><img src="/files/yUzxeC293oIs4cz3EvNc" alt=""><figcaption></figcaption></figure>

* The selected reports are now linked to the template.

***

### Configure Report Settings

Now define rules for each report configuration.

* Press the **Spacebar** in the **Report Setting Column**.

This opens the **Edit Report Schedule Window**.

**Example 1: Basic Configuration**

* Mark required filters:
  * Party
  * Item
  * Company

<figure><img src="/files/b1cvaz4PLfto1oMHBdqJ" alt=""><figcaption></figcaption></figure>

* Set:
  * **Schedule Type:** Any Time
  * **Max Days Limit:** (as required)

<figure><img src="/files/D0oN691AFxXjU3xh9oG8" alt=""><figcaption></figcaption></figure>

* This ensures report cannot be generated without required filters.

**Example 2: Time-Based Restriction**

* Set:
  * **Schedule Type:** Time Between
  * **Time Range:** 10:00 AM – 6:00 PM
  * **Permission:** Allow

<figure><img src="/files/lka06YesfEMiv19BWogy" alt=""><figcaption></figcaption></figure>

* Define:
  * **Max Days Limit:** 2 Days
  * Required Filter: **Party**

<figure><img src="/files/IluGmYYN7nqkFuoksmeu" alt=""><figcaption></figcaption></figure>

* Click **Save**

***

### Assign Template to Users

* Go to **Assign Templates to Users Tab**.
* Select a user by clicking on **"User Selection".**

<figure><img src="/files/L8znBGAs4uQ5nPjhtc9z" alt=""><figcaption></figcaption></figure>

* After selecting the user, refresh the screen and then press the spacebar in the Template column.
* Select the **Template**.

<figure><img src="/files/4GPsAxUjaDXhxCZgoVMF" alt=""><figcaption></figcaption></figure>

* Click **Save**

**Result:** Template is successfully assigned to the user.

***

### Log In as Assigned User

* Log out and log in with the **same user**.

The assigned template settings will now be applied.

***

## Implement Report Generation (Validation Rules)

**Scenario 1: Missing Required Filters**

* Try generating a report without selecting required filters.

**Result:**

* System shows message:

> *"Party must be selected before creating a Report"*

<figure><img src="/files/X97US8fVVwBosLlBnhTU" alt=""><figcaption></figcaption></figure>

**Scenario 2: Valid Report Generation**

* Select all required filters:
  * Party, Item, Company
* Generate report

**Result:** Report is generated successfully.

***

## Implement Time & Date Restrictions

**Case 1: Time Restriction**

* Generate report within **10:00 AM – 6:00 PM**
* Allowed

**Case 2: Exceeding Date Limit**

* Try selecting more than **2 days range**

<figure><img src="/files/vyPXEy38wSkfan11YqYi" alt=""><figcaption></figcaption></figure>

**Result:** System restricts report generation

#### Correct Approach:

* Select **2-day range**
* Select required **Party Filter**
* Generate report

**Result:** Report is generated successfully.

***

## Key Benefits of Report Scheduling

* Control report access by user
* Enforce required filters before generation
* Restrict report usage by time and date
* Improve system performance and discipline
* Enhance data security and compliance

***

### Final Outcome

You have successfully learned how to:

* Create **Report Templates**
* Assign **Reports to Templates**
* Configure **Report Rules & Restrictions**
* Assign templates to **Users**
* Control report generation effectively

Your system is now optimized for **secure and controlled report management**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/set-schedules-for-report-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
