Period Closing
Period Closing
com/
http://www.youtube.com/user/MrSharesap
RFOB5200 is a report program in SAP closely linked to transaction code OB52B. They both
work together to manage posting periods within your SAP system's financial accounting (FI)
module.
Here's a breakdown of their functionalities:
• Tcode OB52B (Opening/Closing Posting Periods): This transaction allows you to
define which posting periods are open or closed for specific fiscal years and
company codes. You can set different access levels (intervals) for opening periods:
o Interval 1: Typically used for month-end or year-end closing. You can restrict
access to authorized users only for more control.
o Interval 2: Often used for regular posting processes within a period.
o Interval 3: Primarily for postings from Controlling (CO) to FI.
• Report RFOB5200 (Status of Opening/Closing Posting Periods): This report provides a
clear overview of the current status of your posting periods. It displays information
like:
o Fiscal year
o Company code
o Posting period
o Open/Closed status for each interval (1, 2, 3)
Why are Posting Periods Important?
• Data Integrity: Controlling posting periods ensures data integrity by preventing users
from accidentally posting transactions to closed periods. This helps maintain
accurate financial records.
• Period-End Closing: Opening specific intervals during month-end or year-end closing
allows authorized personnel to post necessary closing entries while restricting
regular transactions.
https://www.linkedin.com/in/mickaelquesnot/
1
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
Create
https://www.linkedin.com/in/mickaelquesnot/
2
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
3
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
4
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
5
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
6
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
7
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
8
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
9
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
Update
https://www.linkedin.com/in/mickaelquesnot/
10
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
11
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
12
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
13
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
14
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
15
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
16
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
17
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
18
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
19
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
There are two main ways to update the TVARVC table in SAP, which stores variant data:
https://www.linkedin.com/in/mickaelquesnot/
20
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
This is the most common and user-friendly method. STVARV allows you to:
* **View existing variants:** This transaction displays all the defined variants for various
programs.
* **Modify existing variants:** You can change the selection options and parameter values
for a specific variant.
* **Create new variants:** Define new variants with desired settings for a program.
For programmatic updates, you can write ABAP code to directly interact with the TVARVC
table. This approach is more technical and requires knowledge of ABAP programming.
Here's a general outline:
* **Identify the variant:** Specify the program name and variant name you want to
update.
* **Prepare update data:** Define the new values for selection options or parameters.
* **Update the table:** Use an UPDATE statement to modify the corresponding entry in
the TVARVC table.
* Make sure you understand the specific variant you're modifying and the impact of the
changes.
* Always test your updates in a development system before implementing them in
production.
* Consider error handling in your ABAP code to manage potential issues during updates.
https://www.linkedin.com/in/mickaelquesnot/
21
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
22
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
23
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
ADD
https://www.linkedin.com/in/mickaelquesnot/
24
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
25
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
Update
https://www.linkedin.com/in/mickaelquesnot/
26
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
27
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
28
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
ABAP program :
REPORT RSAQDVP_TEMPLATE .
*
*---------------------------------------------------------------------*
* declarations
* (insert your declarations in this section)
*---------------------------------------------------------------------*
DATA:
TVARVC TYPE TVARVC,
GV_GJAHR TYPE FTIS_GJAHR,
GV_MONAT TYPE FTIS_MONAT,
IT_DATA TYPE STANDARD TABLE OF TVARVC.
TABLES BKPF.
*-------------------------------------------------------------------*
* selection screen statements
*-------------------------------------------------------------------*
* (define your selection-screen here)
SELECT-OPTIONS :
SO_NAME FOR TVARVC-NAME OBLIGATORY.
PARAMETERS:
P_BUKRS TYPE BKPF-BUKRS OBLIGATORY.
https://www.linkedin.com/in/mickaelquesnot/
29
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
*-------------------------------------------------------------------*
* read data into IT_DATA
*-------------------------------------------------------------------*
* (select your data here into internal table IT_DATA)
SELECT * INTO TABLE IT_DATA FROM TVARVC WHERE NAME IN SO_NAME.
*------------------------------------------------------------*
* output of the data
* (this section can be left unchanged)
*------------------------------------------------------------*
LOOP AT IT_DATA ASSIGNING <STRUC>.
MOVE-CORRESPONDING <STRUC> TO TVARVC.
***LOCK TABLE TVARVC***
CALL FUNCTION 'ENQUEUE_E_LOCK_TVARVC'
EXPORTING
MODE_TVARVC = 'E'
MANDT = SY-MANDT
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
CHECK SY-SUBRC IS INITIAL.
CALL FUNCTION 'FTI_FISCAL_YEAR_MONTH_GET'
EXPORTING
I_BUKRS = P_BUKRS
I_BUDAT = SY-DATUM
IMPORTING
E_GJAHR = GV_GJAHR
E_MONAT = GV_MONAT.
CASE TVARVC-NAME.
WHEN 'ZLFGJA' OR 'FRYE1'.
IF TVARVC-LOW <> GV_GJAHR.
TVARVC-LOW = GV_GJAHR.
***Update variable value in table TVARVC***
UPDATE TVARVC FROM TVARVC.
ENDIF.
WHEN 'ZNPERI' OR 'FRPE1'.
IF TVARVC-LOW <> GV_MONAT.
TVARVC-LOW = GV_MONAT.
***Update variable value in table TVARVC***
UPDATE TVARVC FROM TVARVC.
ENDIF.
WHEN 'FRPE2'.
ADD 1 TO GV_MONAT.
TVARVC-LOW = GV_MONAT.
***Update variable value in table TVARVC***
UPDATE TVARVC FROM TVARVC.
WHEN 'FRYE2'.
IF GV_MONAT = '11'.
https://www.linkedin.com/in/mickaelquesnot/
30
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
TVARVC-LOW = GV_GJAHR + 1.
***Update variable value in table TVARVC***
UPDATE TVARVC FROM TVARVC.
ENDIF.
ENDCASE.
***Unlock table TVARVC***
CALL FUNCTION 'DEQUEUE_E_LOCK_TVARVC'
EXPORTING
MODE_TVARVC = 'E'
MANDT = SY-MANDT.
* !! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
ENDLOOP.
https://www.linkedin.com/in/mickaelquesnot/
31
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
32
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
33
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
34
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
35
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
36
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
37
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
38
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
SM36 WIZARD, also known as SM36WIZ, is a functionality within SAP's SM36 transaction
code used to create background jobs in a user-friendly way. It provides a simplified interface
compared to manually defining jobs through standard SM36 functionalities.
Here's a breakdown of what SM36 WIZARD offers:
Simplified Job Creation:
• SM36 WIZARD presents a step-by-step process to define a background job.
• It guides you through essential details like:
o Job name and description
o Program or report to be executed in the background
o Scheduling options (immediate, periodic, event-driven)
o Variant selection (if applicable)
o Background job user (with appropriate authorization)
Benefits of Using SM36 WIZARD:
• Faster Job Creation: The wizard streamlines the process compared to manual
configuration in SM36, saving time for users.
• Reduced Errors: The step-by-step approach minimizes the risk of missing crucial job
parameters during definition.
• User-Friendly Interface: The wizard offers a more intuitive interface, especially for
users who might not be familiar with advanced background job configurations.
Who Should Use SM36 WIZARD?
• SM36 WIZARD is ideal for users who need to create basic background jobs for
reports, programs, or batch processes.
• It's particularly helpful for occasional users or those who are new to working with
background jobs in SAP.
Limitations of SM36 WIZARD:
• Simpler Configuration: The wizard focuses on basic job parameters. For complex job
scheduling needs or specific job steps, you might need to use the full capabilities of
SM36 for manual configuration.
https://www.linkedin.com/in/mickaelquesnot/
39
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
40
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
41
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
42
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
43
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
44
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
45
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
46
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
47
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
48
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
49
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
In SAP, SM37 is a transaction code used to monitor and manage background jobs.
Background jobs are automated tasks that run in the background without direct user
interaction. They are essential for various tasks within SAP, such as:
• Periodic processing: Jobs can be scheduled to run at specific intervals (daily, weekly,
monthly) for tasks like data archiving, report generation, or data synchronization.
• Batch processing: Large volumes of data can be processed efficiently using
background jobs to avoid impacting system performance during regular user activity.
• Event-driven processes: Jobs can be triggered by specific events within SAP, such as
a document creation or a data change, to automate follow-up actions.
Key functionalities of SM37:
• Job Overview: SM37 provides a list of all background jobs in the system, including
their status (scheduled, running, canceled, finished).
• Job Selection: You can filter the job list based on various criteria like job name,
program name, scheduled date, or job status.
https://www.linkedin.com/in/mickaelquesnot/
50
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
• Job Details: For each job, you can view detailed information like its schedule, variant
(if used), steps involved, and any logs generated during execution.
• Job Control: SM37 allows you to perform actions on background jobs, such as
starting a scheduled job immediately, canceling a running job, or rescheduling a
failed job.
• Job Log: You can access the job log to view detailed information about the job's
execution, including any errors or messages encountered.
Benefits of using SM37:
• Improved Efficiency: By monitoring background jobs, you can ensure that automated
tasks are running smoothly and identify any potential issues that might delay
processes.
• Enhanced Control: SM37 provides control over background jobs, allowing you to
start, cancel, or reschedule them as needed.
• Problem Diagnosis: Job logs in SM37 help diagnose any errors that might occur
during job execution, facilitating troubleshooting and ensuring timely resolution.
Who should use SM37?
• System Administrators: SM37 is crucial for system administrators to monitor the
overall health of background jobs and ensure smooth system operation.
• Functional Consultants: Depending on their area of expertise, functional consultants
might use SM37 to monitor jobs related to their specific modules (e.g., finance,
controlling, materials management).
• End Users: While less common, some end users with specific authorizations might
utilize SM37 to monitor jobs they frequently utilize or troubleshoot basic job-related
issues.
In summary, SM37 is a vital tool for managing and monitoring background jobs in SAP. It
empowers users to ensure the smooth execution of automated tasks, optimize system
performance, and identify potential issues for timely resolution.
https://www.linkedin.com/in/mickaelquesnot/
51
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
52
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
53
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
In SAP, a variant is a custom configuration for a program that allows users to define specific
settings for how the program runs. These variants can be useful for tailoring the program to
different tasks or user needs.
There are a few ways to transport variants in SAP, which involves moving them from one
system to another:
* **Using the ABAP Editor:** This method involves going to the ABAP editor (transaction
SE38) and selecting the variant you want to transport. From the Utilities menu, you can then
choose "Transport Request" and specify the transport request where you want to store the
variant.
* **Using the program RSTRANSP:** This program allows you to directly specify the
program name and variant name you want to transport. It will then create a transport
request for the variant.
* **Manually adding an entry:** For experienced users, there's a way to manually add an
entry for the variant to the transport request. This involves using a specific format that
includes the program name and variant name.
Here are some resources that you might find helpful for learning more about transporting
variants in SAP:
https://www.linkedin.com/in/mickaelquesnot/
54
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
55
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
56
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
57
Mickael QUESNOT © https://s4hclub.com/
http://www.youtube.com/user/MrSharesap
https://www.linkedin.com/in/mickaelquesnot/
58