Skip to Content

Create Custom Mass Activity for your Program – Config

Huge data has always been a constraint in IS-U. Some examples of huge data are FICA Docs, Invoices, Billing Documents, etc. SAP has provided the concept of “Mass Activity” to process the huge chunk of data in mass. But the mass activity is not available for all business processes specially if the process is handle through a custom z-report. But here comes the SAP’s amazing ability to adapt and this gives an option to create a custom mass activity to handle these scenarios.

While creating Payment Scheme for an account, sometimes users don’t include all open debit items for the account. Therefore, all debit items do not have clearing restriction ‘R’ on them. Our business process wanted to have clearing restriction ‘R’ on all open debit items irrespective of whether these items were included while creating payment scheme or not. thus z-program was created to select all open debit items of all accounts with an active payment scheme.

This program runs on a daily basis and usually takes 4-5 hours. The program definitely needed some improvement in execution timings. After the parallel functionality implementation, this report completes in 10-15 minutes which is a huge timing gain.

In this article, you’ll learn how to do all basic configuration required to create Mass Activity. In next series of article I’ll include all the coding part required for mass activity to run successfully and I’ll update this article once the next article is ready.

1. Create two new events in FQEVENTS to handle intervals and variants

Go to SM30 and maintain table TFKFBM.

3.JPG

Now, create two new z-events as below. One event will be used to handle variant and one to handle intervals.

2.JPG

2. Create a Function Group for the sample function modules mentioned above

11.JPG

3. Create custom Transaction Code to trigger this mass activity.

Go to SE93 and create a custom t-code.

3.JPG

4.JPG

Enter details as below:

Program: SAPLFKKAKTIV2. This is standard program for mass activities.

Screen Number: 999

5.JPG

4. Create Z-Structure to create screen parameters.

In business scenario mentioned above, only payment scheme number will be the selection criteria for Mass Transaction, thus only one structure required for Payment Scheme Range. If instead of range, only Parameter field is required, then this structure is not required.

6.JPG

We’ll then create a Table Type for this structure to be used in actual structure required for mass activity screen.

7.JPG

Now, create the actual structure for the mass activity. Please note that, if only a parameter selection criteria is required on screen, then the above two steps are not required.

8.JPG

Here, field OPBEL will be the Payment Scheme range for selection. Field SIMULATION will confirm if mass activity needs to be run in simulation mode. Field EXLOG defines if extended log is required from Mass Activity results. Last two fields are optional.

5. Define Group Frames for Mass Activities

Config: SPRO > Financial Accounting > Contract Accounts Receivable and Payable > Technical Settings > Define Group Frames for Mass Activities

Chose Application. For Finance Mass Activities, chose FI-CA-MASS.

12.JPG

Select FI-CA-MASS and got to Group box. Create a new Group Box and give following details:

Group Box Number along with Description

Program Name: Give Function Group Program Name which was created in Step 2

Screen: Give Selection Screen Number

13.JPG

6. Define Layout for Mass Activities

This config can be found at SPRO > Financial Accounting > Contract Accounts Receivable and Payable > Technical Settings > Define Layouts for Mass Activities

Create a new Tab Layout.

9.JPG

Create Tab Page Titles

10.JPG

6a. Select Tab 1 – Payment Scheme and click on “Position of Groups on the tab pages”

14.JPG

In Position 1, give group box created above in step 5. For Position 2, use standard group box S0117.

6b. Select Tab 3 – Technical Settings and click on “Position of Groups on the tab pages”

15.JPG

Use standard group boxes as specified in screen shots.

6c. Select Tab 5 – Logs and click on “Position of Groups on the tab pages”

16.JPG

Again, use standard group boxes as specified in screen shots.

OK. Now, all basic configurations are done and lets create a new z mass activity type.

7. Prepare Mass Activities

Config: SPRO > Financial Accounting > Contract Accounts Receivable and Payable > Technical Settings > Prepare Mass Activities

Create a new entry as below and give your mass activity type.

17.JPG

7a: Tab “Events”

18.JPG

Give the Interval and Parameter events create in Step 1.

7b. Tab “Transaction”

19.JPG

Give Transaction code create in Step 3.

7c. Tab “Job Control”

20.JPG

Give a standard Job Category applicable.

7d. Tab “Reconcil. Key”

21.JPG

In this business process, no recon key is required hence No Recon Key check box is selected. In case a recon key is required, Select Mass Posting, give Origin and Reservation Object.

7e. Tab “Structures and Parameters”

22.JPG

This tab controls the selection screen for the mass activity. Give Structure created in step 4.

7f. Tab “Application Log”

23.JPG

Select the desired level of Application log and give app log object.

7g. Tab “Other”

24.JPG

Give the tab layout create in step 6. You have other options to explore as well.

8. Create Parallel Processing Object

25.JPG

Create parallel processing object ZPAYSCHEME.

Your custom mass activity t-code then should look like:

26.JPG

This completes all the basic configuration required to create a mass activity. In my next article, I’ll include the code part required to run the mass activity.

8 Comments
You must be Logged on to comment or reply to a post.