19 - Additional ABAP Concepts
19 - Additional ABAP Concepts
1
Where Used List
▪ SAP provided a where used list functionality to check the used places of an ABAP object.
Where used list in SE11 transaction code
2
TADIR and TFDIR Tables
3
Conversion Routines
▪ Conversion Routines are used to convert the values from external display format to
▪ They are the part of the domain and are the function modules.
4
Hot Key in Search Help
▪ The hot key permits the user to select an elementary search help from the collective
search help by passing it directly in the input field with the short notation.
▪ This can save time if the user frequently looks for values using the same search help.
▪ The shortcut must be entered in the input field according to the following convention -
=HK.S1.S2.S3 etc. where HK = hot key and S1, S2,S3 are the restrictions.
5
Hot Key in Search Help (Contd.)
▪ If the hot key is entered without restrictions (=HK), the dialog box for restricting values
appears.
▪ If restrictions are defined, the dialog box for restricting values does not appear and the
▪ If exactly one hit is found, the hit list is not displayed. The values of the hits that are
6
Search Help Exit - Introduction
▪ This function module is used to write the logic for the search help.
▪ We make a copy of this search help exit and create our own search help exit.
7
Search Help Exit - Pre-defined Parameters
8
Search Help Exit - CallControl Steps
▪ The various callcontrol steps in search help exit process are as follows:
SELONE - Select one of the elementary search helps. This step is applicable for
▪ With the help of change document log we can track the changes made to that
document.
▪ The SAP standard program to display the change document log is ‘RSSCD100’.
1
0
Steps to Create Change Document Log for Z Tables
▪ The various steps to generate a change document log for Z tables are as follows:
Select the change document checkbox in the data element for the respective fields of
the table.
Create a change document object for the Z table using transaction code SCDO.
When we generate the change document object, SAP generates a function module
automatically.
1
1
Steps to Create Change Document Log for Z Tables(Contd.)
The naming convention of the generated function module is : change document object
name_WRITE_DOCUMENT.
The N(new) parameter of the generated function module is used for insert log, O(old)
parameter is used for delete log , N(new) and O(old) both are used for update log.
1
2
CURSOR
table.
1
3
SAP Memory and ABAP Memory
▪ Refer to the attached sheet for the detailed explanation of SAP memory and ABAP
memory.
Microsoft Excel
Worksheet
1
4
Update Function Module - Introduction
▪ An update function module is a function module having the processing type ‘Update
▪ The purpose of update function module is to COMMIT all the changes at once or
▪ The syntax to call a update function module is - CALL FUNCTION <name of the function
1
5
Update Function Module - Introduction(Contd.)
▪ During program execution, when the system reaches the statement CALL FUNCTION
<name of the function module> IN UPDATE TASK, the function module is not executed
immediately.
▪ This actual execution of update work process is triggered by the COMMIT WORK
statement.
1
6
Update Function Module - Introduction(Contd.)
1
7
Update Function Module - Important Points
▪ Update function module does not support changing and exporting parameters.
▪ Never write COMMIT WORK in the update function module otherwise system throws
runtime error.
1
8
Update Function Module - Important Points
▪ Update function module does not support changing and exporting parameters.
▪ Never write COMMIT WORK in the update function module otherwise system throws
runtime error.
1
9
Displaying Data of More than 128 Characters in ALV
▪ If the length of the data is more than 128 characters, we can display the data on a
separate screen.
▪ The various steps to display the ALV data on a separate screen are as follows:
2
0
Displaying Data of More than 128 Characters in ALV(Contd.)
Create the object of text edit class CL_GUI_TEXTEDIT and pass container object as the
parent.
2
1
Background Jobs - Introduction
▪ The background jobs are the non-interactive jobs in the SAP system that perform their
▪ Once the background job is defined, the system makes sure that it runs the defined job
at a specific time.
2
2
Background Jobs - Introduction(Contd.)
▪ Background jobs run in the background without any user input and can be scheduled to
▪ They are used to reduce the manual efforts and automate the process.
2
3
Background Jobs - Transaction Codes
2
4
Background Jobs - Classification
2
5
Background Jobs - Classification
1. Class A( High Priority) - Some tasks are urgent or critical and must be scheduled with
class A priority job. Class A priority jobs reserves one or more background work
processes.
2. Class B( Medium Priority) - Once class A jobs are completed , class B job will start
3. Class C(Low Priority) - Class C job runs after both class A and class B jobs are completed.
2
6
Background Jobs - Status
1. Scheduled
2. Released
3. Ready
4. Active
5. Finished
6. Cancelled
2
7
Background Jobs - Status
1. Scheduled - Scheduled status means that all steps required to create the job are
completed but the start conditions like start date, end date frequency etc. are still not
defined.
2. Released - Released status means that all the steps including start conditions that are
2
8
Background Jobs - Status(Contd.)
3. Ready - Ready status means that a job is completely ready for execution but still not
running because it has been put in a queue by the job scheduler. The job is waiting for
4. Active - Active status means that a job is currently active and running. We cannot
2
9
Background Jobs - Status(Contd.)
5. Finished - Job is executed successfully. It means the desired task is completed without
any error.
6. Cancelled - There are two possibilities when a job is cancelled. The administrator
cancelled forcefully cancelled the job or there might be some issue with job. We can
check the reason for the same with the help of job logs.
3
0
Background Jobs - Function Modules/ABAP Statements
3
1
Comparison of ABAP Statement SUBMIT and FM JOB_SUBMIT
▪ With SUBMIT, we can specify selection criteria for an ABAP report dynamically, when
the background job is submitted whereas with JOB_SUBMIT, we can only specify an
3
2
Number Range
3
3
Number Range - Steps
Use the function module : NUMBER_GET_NEXT in the program to get the next available
3
4
AUTHORITY-CHECK
▪ These authorization objects are assigned to the user which enables the respective users
3
5
AUTHORITY-CHECK - Terminologies
Authorization field - An authorization object has the authorization field which is used to
Imp point : Object class has authorization objects and authorization object has
authorization fields.
3
6
AUTHORITY-CHECK - Transaction Codes
3
7
AUTHORITY-CHECK - Steps
3. Creating authorization object which contains authorization fields under object class
Imp point : steps(4-6) - creation of role through PFCG transaction code, assigning the
authorization object to the role and assigning the role to the user is done by SAP basis
person/system administrator.
3
9
AUTHORITY-CHECK - SAP_ALL
▪ It means that a user with this profile can perform all tasks in the SAP System.
▪ The user which is having SAP_ALL authorization has the rights to administer the SAP
system.
▪ In projects, it is recommended to have only one user with this SAP_ALL authorization,
rest all users have the authorizations based upon their roles.
4
0
Validations
▪ Validations are used to validate the values that are entered in the SAP
system.
▪ When we enter the data the integration manager validates the data
4
2
Substitutions
prerequisites.
code ABC and cost center XYZ, the system substitutes the value X for
payment method.
4
4
Validations/Substitutions : Application Area & Callup Point
Application Area
Callup Points
4
5
Validations/Substitutions : Application Area
▪ Application area specifies the general application area for which the validation or
substitution is defined.
▪ Every application area has 2 digit character code which is called as application area
code.
4
6
Validations/Substitutions : Callup Points
▪ Callup points specifies the exact location of validation or substitution in that application
area.
▪ Every callup point has 4 digit number code which is called as callup point code.
▪ Example - 0001 is a 4 digit code for callup point document header for application area
financial accounting(FI).
Imp point: For the same application area and callup point, if both are implemented, the
Choose the application area and callup point for the validation.
Define the prerequisite statement, which determines whether or not the data should be
checked.
Define the messages that will appear if a check statement is found to be false during
validation.
4
9
Transaction Code , Tables and Function Modules for Validations
5
0
Steps to Create a Substitution
Choose the application area and callup point for the validation.
Define the prerequisite statement, which determines whether or not the substitution
needs to be performed.
5
2
Transaction Code , Tables and Function Modules for Substitutions
5
3
Standard Text
▪ It is a reuseable text which can be used in smartforms, scripts, ABAP code etc.
▪ A standard text is identified by text name, language, text id and text object.
▪ The tables to store the standard text are STXH(standard text header) and STXL(standard
▪ The standard function module used to save and read the standard text are SAVE_TEXT
and READ_TEXT.
5
4
Adding Standard Text/Include Text to Transport Request
▪ The various steps to add the standard text to the transport request are as follows:
Pass the transport request task and name of the standard text.
5
5
Adding Report Variant to Transport Request
▪ The various steps to add the report variant to the transport request are as follows:
Pass the report name , variant name and click on to execute button.
One pop-up appears for the selection of the variants. Click on to ok button.
5
6
Adding Report Variant to Transport Request(Contd.)
▪ We can follow the below mentioned steps also to add a report variant to transport
request.
Click on to variant button. One screen appears having program name and variant.
After that follow the same steps which is mentioned in the previous slide.
5
7
SE63 Translation Export(Adding Translation to Transport Request)
▪ The various steps to add the translation to the transport request are as follows:
Target Language - Choose the target language. There is an option to choose the
Transport Request - We can create the new transport request or pass the existing
5
8
SE63 Translation Export(Adding Translation to Transport Request)
Time period - We can pass the processing date/delta date and system considers the
Execute the transaction code and the translated text stores in the transport request.
5
9
SAP ABAP Learning Sources/SAP ABAP Reference Material
▪ HELP.SAP.COM
▪ OPEN SAP
▪ Learning Hub
6
0
Thank You
6
1