0% found this document useful (0 votes)
3 views53 pages

SAP Python 2

Uploaded by

doranalabhargava
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views53 pages

SAP Python 2

Uploaded by

doranalabhargava
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SAP ABAP Crash Course

Thank you for purchasing this Interview Preparation Kit!


Off-Campus Jobs
@9347300709
1. SAP Basics
● What is SAP?
● SAP Modules (MM, SD, FICO, PP, HR)
● SAP Architecture (Presentation, Application, Database Layer)
● SAP GUI
● SAP Landscape (DEV, QA, PROD)
● Client Concept

2. ABAP Fundamentals
● Data Types
● Variables & Constants
● Operators
● Control Statements
○ IF-ELSE
○ CASE
○ DO
○ WHILE
○ LOOP

3. Internal Tables
● Standard Table
● Sorted Table
● Hashed Table
● Work Area
● Header Line
● Read Table
● Append
● Modify
● Delete

4. Modularization
● Includes
● Subroutines
● Function Modules
● Methods

5. Data Dictionary (DDIC)


● Tables
● Domains
● Data Elements
● Structures
● Views
● Search Helps
● Lock Objects

6. Reports
● Classical Reports
● Interactive Reports
● Events
○ START-OF-SELECTION
○ END-OF-SELECTION

7. ALV Reports
● Simple ALV
● OO ALV
● Field Catalog
● Layout

8. Smart Forms & SAP Scripts


● Smart Forms
● SAP Scripts
● Adobe Forms (Basics)

9. Dialog Programming
● Screen Painter
● Menu Painter
● PBO
● PAI

10. Enhancements
● User Exits
● Customer Exits
● BADI
● Enhancement Points

11. BDC
● Session Method
● Call Transaction Method

12. Data Migration


● LSMW
● BAPI

13. OOPS ABAP


● Class
● Object
● Inheritance
● Polymorphism
● Encapsulation
● Interfaces

14. SAP HANA Basics


● CDS Views
● AMDP
● Code Pushdown

15. Frequently Used T-Codes


● SE11
● SE38
● SE37
● SE80
● SE24
● SE93
● SM37
● ST22
● SU01

16. Important Interview Questions


● Difference between Structure and Internal Table
● Types of Internal Tables
● BDC vs BAPI
● Smart Forms vs SAP Scripts
● User Exit vs BADI
● Function Module vs Method
● CDS View Advantages

17. Quick Revision


● 50 One-Line Interview Answers
● Important T-Codes
● Most Asked Concepts
Python Crash Course
1. Python Basics
● Introduction to Python
● Features of Python
● Python Installation
● Python Syntax
● Comments

2. Variables & Data Types


● Variables
● int
● float
● string
● boolean
● type()

3. Input & Output


● input()
● print()
● String Formatting
● f-strings

4. Operators
● Arithmetic Operators
● Relational Operators
● Logical Operators
● Assignment Operators
● Membership Operators

5. Conditional Statements
● if
● if-else
● if-elif-else
● Nested if

6. Loops
● for loop
● while loop
● break
● continue
● pass

7. Strings
● String Methods
● Slicing
● Concatenation
● String Functions

8. Lists
● Create List
● Append
● Insert
● Remove
● Sort
● Reverse
● List Comprehension

9. Tuples
● Creating Tuples
● Tuple Methods
● Tuple vs List

10. Sets
● Create Set
● add()
● remove()
● union()
● intersection()

11. Dictionaries
● Key-Value Pairs
● Access Values
● Update Values
● Dictionary Methods

12. Functions
● Function Definition
● Parameters
● Return Statement
● Lambda Functions
● Recursion

13. Exception Handling


● try
● except
● finally
● raise

14. File Handling


● Read Files
● Write Files
● Append Files
● with open()

15. OOPs in Python


● Class
● Object
● Constructor
● Inheritance
● Polymorphism
● Encapsulation
● Abstraction

16. Modules & Packages


● Import Module
● Built-in Modules
● User Defined Modules

17. Important Libraries


● NumPy
● Pandas
● Matplotlib
● Requests

18. SQL with Python


● MySQL Connection
● CRUD Operations
● Fetch Data

19. Coding Practice


● Palindrome
● Factorial
● Prime Number
● Fibonacci Series
● Reverse String
● Armstrong Number

20. Python Interview Questions


● List vs Tuple
● Deep Copy vs Shallow Copy
● *args vs **kwargs
● Lambda Function
● Generator vs Iterator
● Exception Handling
● OOP Concepts

21. Quick Revision


● 50 Python One-Line Answers
● Frequently Asked Programs
● Important Built-in Functions
Accenture Interview Q&A
HR Questions
1. Tell me about yourself.

Answer Structure:

● Name
● Education
● Skills
● Internship/Experience
● Project
● Career Goal

2. Why do you want to join Accenture?

● Global company
● Learning opportunities
● Latest technologies
● Career growth

3. Why should we hire you?

● Quick learner
● Strong technical skills
● Team player
● Positive attitude

4. What are your strengths?

● Problem-solving
● Adaptability
● Communication
● Teamwork

5. What are your weaknesses?

● Mention a small weakness


● Explain improvement efforts

6. Where do you see yourself in 5 years?

● Skilled software engineer


● Leadership responsibilities
● Continuous learning

7. Are you willing to relocate?

● Yes

8. Are you comfortable with shifts?


● Yes

9. Can you work under pressure?

● Yes, by prioritizing tasks and managing time effectively.

10. Do you have any questions for us?

● Training process?
● Growth opportunities?
● Team structure?

Python

● List vs Tuple
● Dictionary
● Lambda Function
● Exception Handling
● OOP Concepts
● File Handling
● Generators

SQL

● Primary Key
● Foreign Key
● Joins
● Aggregate Functions
● Group By
● Having
● Subqueries
● Second Highest Salary

SAP ABAP

● Internal Tables
● Work Area
● BDC
● BAPI
● ALV Report
● Smart Forms
● User Exit
● BADI
● CDS Views

Custom Software Engineering Questions


1. What is SDLC?
● Software Development Life Cycle.

2. SDLC Phases

● Requirement Gathering
● Design
● Development
● Testing
● Deployment
● Maintenance

3. What is Agile?

● Iterative software development methodology.

4. What is Scrum?

● Agile framework with sprints.

5. What is a Sprint?

● Fixed development cycle (1–4 weeks).

6. What is Version Control?

● Managing code changes.

7. What is Git?

● Version control tool.

8. Git Commands

● git init
● git clone
● git add
● git commit
● git push
● git pull

9. What is API?

● Interface for communication between applications.

10. What is REST API?

● Web service using HTTP methods.

11. HTTP Methods

● GET
● POST
● PUT
● DELETE

12. Difference Between GET and POST

● GET retrieves data.


● POST sends data.

13. What is Debugging?

● Finding and fixing errors.

14. Types of Testing

● Unit Testing
● Integration Testing
● System Testing
● UAT

15. What is Cloud Computing?

● Delivering services over the internet.

Situation-Based Questions
Team Conflict

"I listen to all team members, understand the issue, and work together to find a solution."

Tight Deadline

"I prioritize tasks, focus on critical work, and coordinate with the team."

Learning New Technology

"I quickly learn through documentation, practice, and guidance from experienced members."

Project Failure

"I analyze mistakes, learn from them, and improve future performance."

Frequently Asked Accenture Questions


1. Tell me about yourself.
2. Why Accenture?
3. Explain your project.
4. Explain OOP concepts.
5. What is Agile?
6. What is SQL Join?
7. What is API?
8. What are your strengths?
9. Are you willing to relocate?
10. Any questions for us?
Coding & SQL Practice
Top 25 Coding Programs (Must Practice)
Basic Programs
1. Hello World
2. Even or Odd Number
3. Positive or Negative Number
4. Largest of Three Numbers
5. Leap Year Check

Loop Programs
6. Factorial
7. Fibonacci Series
8. Multiplication Table
9. Sum of N Numbers
10. Reverse a Number

Number Programs
11. Prime Number
12. Armstrong Number
13. Palindrome Number
14. Perfect Number
15. Strong Number

String Programs
16. Reverse String
17. Palindrome String
18. Count Vowels
19. Count Words
20. Remove Spaces

Array/List Programs
21. Find Largest Element
22. Find Smallest Element
23. Sort Array
24. Remove Duplicates
25. Second Largest Number

B. Top 10 Coding Patterns


Star Patterns
1. Right Triangle
2. Inverted Triangle
3. Pyramid
4. Diamond
5. Square Pattern

Number Patterns
6. Number Triangle
7. Floyd's Triangle
8. Pascal Triangle

Character Patterns
9. Alphabet Triangle
10. Character Pyramid

C. SQL Topics
Basics
● SELECT
● WHERE
● ORDER BY
● GROUP BY
● HAVING

Constraints
● Primary Key
● Foreign Key
● Unique Key
● Not Null

Joins
● Inner Join
● Left Join
● Right Join
● Full Join
● Self Join

Functions
● COUNT()
● SUM()
● AVG()
● MAX()
● MIN()

Advanced
● Subqueries
● Views
● Indexes
● Stored Procedures
● Triggers

D. Top 20 SQL Queries


Employee Table Questions
1. Fetch all employees
SELECT * FROM Employee;

2. Fetch employee names only


SELECT name FROM Employee;

3. Employees with salary > 50000


SELECT * FROM Employee
WHERE salary > 50000;

4. Sort by salary
SELECT * FROM Employee
ORDER BY salary DESC;

5. Count employees
SELECT COUNT(*) FROM Employee;

6. Highest salary
SELECT MAX(salary) FROM Employee;

7. Lowest salary
SELECT MIN(salary) FROM Employee;

8. Average salary
SELECT AVG(salary) FROM Employee;

9. Second highest salary


SELECT MAX(salary)
FROM Employee
WHERE salary <
(SELECT MAX(salary) FROM Employee);

10. Third highest salary


SELECT DISTINCT salary
FROM Employee
ORDER BY salary DESC
LIMIT 1 OFFSET 2;

11. Duplicate Records


SELECT name, COUNT(*)
FROM Employee
GROUP BY name
HAVING COUNT(*) > 1;

12. Delete Duplicate Records

(Important Interview Question)

13. Inner Join Example


SELECT *
FROM Employee e
INNER JOIN Department d
ON e.dept_id = d.dept_id;

14. Left Join Example


SELECT *
FROM Employee e
LEFT JOIN Department d
ON e.dept_id = d.dept_id;

15. Employees in IT Department


SELECT *
FROM Employee
WHERE department='IT';

16. Top 5 Salaries


SELECT *
FROM Employee
ORDER BY salary DESC
LIMIT 5;

17. Employees Joined This Year


18. Employees Without Department

19. Total Salary by Department

20. Department Wise Employee Count

E. Coding Interview Tips


Before Writing Code
● Understand problem
● Identify inputs & outputs
● Think of edge cases

While Coding
● Use meaningful variable names
● Handle exceptions
● Optimize logic

After Coding
● Dry run
● Check test cases
● Verify output

F. Frequently Asked Accenture Coding Questions


1. Palindrome
2. Prime Number
3. Armstrong Number
4. Fibonacci Series
5. Reverse String
6. Anagram
7. Remove Duplicates
8. Second Largest Element
9. Missing Number in Array
10. Count Vowels
Projects & Project Explanation
SAP ABAP Projects
Project 1: Employee Management System
Technologies

● SAP ABAP
● Internal Tables
● ALV Reports
● Smart Forms

Features

● Add Employee
● Update Employee
● Delete Employee
● Generate Employee Reports

Interview Explanation

"Developed an Employee Management System using SAP ABAP. Used Internal Tables for data
processing, ALV Reports for displaying employee information, and Smart Forms for report
generation."

Project 2: Sales Order Report


Technologies

● ABAP
● ALV
● Data Dictionary

Features

● Fetch Sales Orders


● Customer Details
● Export Reports

Interview Explanation

"Created an ALV-based Sales Order Report to display customer and sales order details
efficiently with filtering and sorting options."

Project 3: Inventory Management Report


Technologies

● SAP ABAP
● Internal Tables
● Function Modules

Features

● Stock Tracking
● Material Details
● Inventory Reports

Interview Explanation

"Developed an inventory tracking report that helps monitor material stock levels and generates
inventory summaries."

B. Python Projects
Project 1: Student Management System
Technologies

● Python
● MySQL

Features

● Add Student
● Update Student
● Delete Student
● Search Student

Interview Explanation

"Developed a Student Management System using Python and MySQL to manage student
records and perform CRUD operations."

Project 2: Library Management System


Technologies

● Python
● MySQL

Features
● Add Books
● Issue Books
● Return Books
● Search Books

Interview Explanation

"Built a Library Management System to automate book issue and return processes while
maintaining book records."

Project 3: Attendance Management System


Technologies

● Python
● Flask
● MongoDB

Features

● Attendance Tracking
● User Login
● Report Generation

Interview Explanation

"Developed an attendance tracking application using Flask and MongoDB to record and
manage attendance data."

C. Your Resume Project (Important)


Voice Based Attendance and Task Management System
Technologies

● Python
● Flask
● MongoDB
● Speech Recognition

Problem Statement

Manual attendance systems are time-consuming and prone to errors.

Solution
A voice-enabled system that records attendance and manages tasks through speech
commands.

Features

● Voice Attendance
● Task Creation
● Task Tracking
● User Authentication
● Database Storage

Interview Explanation (1 Minute)

"My final year project is Voice Based Attendance and Task Management System. The project
was developed using Python, Flask, MongoDB, and Speech Recognition. The main objective is
to automate attendance and task management through voice commands. Users can mark
attendance, create tasks, and track task progress using speech input. MongoDB is used for
storing data, while Flask provides the web interface. This project improved accuracy, reduced
manual effort, and enhanced user convenience."

D. Project Questions Frequently Asked


1. Explain your project.

2. What was your role?

3. Why did you choose this project?

4. What technologies were used?

5. What challenges did you face?

6. How did you overcome those challenges?

7. What is the project architecture?

8. What is the database used?

9. Future enhancements?

10. What did you learn from this project?

E. Project Architecture Explanation


Front End
● HTML
● CSS
● JavaScript

Backend
● Python Flask

Database
● MongoDB / MySQL

Flow
User → UI → Flask Backend → Database → Response

F. Project Quick Revision


SAP Project
● ALV Report
● Internal Tables
● Smart Forms

Python Project
● CRUD Operations
● Flask
● Database Connectivity

Final Year Project


● Voice Recognition
● Flask
● MongoDB
● Attendance Automation
100 Most Asked Accenture Interview
Questions
1. Tell me about yourself.
I am a Computer Science graduate with skills in SAP ABAP, Python, SQL, and software
development.

2. Why Accenture?
Accenture provides excellent learning opportunities and career growth.

3. Why should we hire you?


I am a quick learner with strong technical and problem-solving skills.

4. What are your strengths?


Adaptability, teamwork, and problem-solving.

5. What are your weaknesses?


I sometimes focus too much on details, but I manage it effectively.

6. Are you willing to relocate?


Yes.

7. Are you willing to work in shifts?


Yes.

8. Where do you see yourself in 5 years?


As a skilled software professional in a leadership role.

9. What motivates you?


Learning new technologies and solving challenges.

10. What is your biggest achievement?


Successfully completing projects and internships.

SAP ABAP Questions


11. What is SAP?
SAP is an ERP software used to manage business processes.

12. What is ABAP?


ABAP is SAP's programming language.

13. What is a Data Dictionary?


A central repository for database objects.

14. What is a Domain?


It defines technical properties of a field.

15. What is a Data Element?


It provides semantic meaning to a field.

16. What is an Internal Table?


A temporary table stored in memory.

17. Types of Internal Tables?


Standard, Sorted, and Hashed.

18. What is a Work Area?


A single record holder for table processing.

19. What is ALV?


ABAP List Viewer for displaying reports.

20. What is Smart Forms?


A tool used for creating formatted outputs.

21. What is BDC?


Batch Data Communication for data upload.

22. What is BAPI?


Business Application Programming Interface.

23. What is a Function Module?


Reusable code stored centrally.

24. What is a User Exit?


Customer-specific enhancement point.

25. What is BADI?


Business Add-In for enhancements.

26. What is LSMW?


Legacy System Migration Workbench.

27. What is CDS View?


Core Data Services view for SAP HANA.

28. What is SAP HANA?


An in-memory database platform.

29. Difference between BDC and BAPI?


BDC simulates screens; BAPI directly accesses business objects.

30. Difference between User Exit and BADI?


BADI supports object-oriented enhancements.

Python Questions
31. What is Python?
A high-level programming language.

32. What is a List?


An ordered mutable collection.

33. What is a Tuple?


An ordered immutable collection.

34. Difference between List and Tuple?


Lists are mutable; tuples are immutable.

35. What is a Dictionary?


A key-value pair collection.

36. What is a Set?


An unordered unique collection.

37. What is a Function?


A reusable block of code.

38. What is Lambda Function?


An anonymous one-line function.

39. What is Recursion?


A function calling itself.

40. What is Exception Handling?


Handling runtime errors using try-except.

41. What is Inheritance?


Acquiring properties from another class.

42. What is Polymorphism?


One interface with multiple forms.

43. What is Encapsulation?


Binding data and methods together.

44. What is Abstraction?


Showing essential details only.

45. What is a Constructor?


A special method executed during object creation.

46. What is File Handling?


Reading and writing files.

47. What is a Module?


A Python file containing code.

48. What is a Package?


A collection of modules.

49. What is *args?


Used for variable-length arguments.

50. What is **kwargs?


Used for variable-length keyword arguments.

SQL Questions
51. What is SQL?
A language used to manage databases.

52. What is a Primary Key?


Uniquely identifies records.

53. What is a Foreign Key?


Creates a relationship between tables.

54. What is a Candidate Key?


A possible primary key.

55. What is a Composite Key?


Combination of multiple columns.

56. What is a Join?


Combines data from multiple tables.

57. Types of Joins?


Inner, Left, Right, Full.

58. What is an Inner Join?


Returns matching records from both tables.

59. What is a Left Join?


Returns all left table records.

60. What is Group By?


Groups rows with similar values.

61. What is Having?


Filters grouped records.

62. Difference between Where and Having?


WHERE filters rows; HAVING filters groups.

63. What is a Subquery?


A query inside another query.

64. What is Normalization?


Reducing data redundancy.

65. What is Denormalization?


Adding redundancy for performance.

66. What is a View?


A virtual table.

67. What is an Index?


Improves query performance.

68. What is DDL?


Data Definition Language.

69. What is DML?


Data Manipulation Language.

70. What is TCL?


Transaction Control Language.

Software Engineering Questions


71. What is SDLC?
Software Development Life Cycle.

72. SDLC Phases?


Requirement, Design, Development, Testing, Deployment, Maintenance.

73. What is Agile?


An iterative software development methodology.

74. What is Scrum?


An Agile framework.

75. What is Sprint?


A fixed development period.

76. What is Product Backlog?


List of project requirements.

77. What is Sprint Backlog?


Tasks selected for a sprint.

78. What is Daily Standup?


A short daily team meeting.

79. What is Testing?


Process of validating software quality.

80. What is Unit Testing?


Testing individual components.

81. What is Integration Testing?


Testing combined modules.

82. What is UAT?


User Acceptance Testing.

83. What is Git?


Version control system.

84. What is GitHub?


Cloud platform for Git repositories.

85. What is Commit?


Saving code changes.

86. What is Repository?


Storage location for code.

87. What is API?


Application Programming Interface.

88. What is REST API?


API based on HTTP methods.

89. HTTP Methods?


GET, POST, PUT, DELETE.

90. Difference between GET and POST?


GET retrieves data; POST sends data.

Project Questions
91. Explain your project.
Briefly explain objective, technology, and outcome.

92. What was your role?


Designed, developed, and tested modules.

93. Technologies used?


Python, Flask, MongoDB, SQL.

94. Challenges faced?


Voice recognition accuracy and database integration.

95. How did you solve them?


By testing and optimizing the implementation.

96. What is MongoDB?


A NoSQL database.

97. Why Flask?


Lightweight Python web framework.

98. Future enhancement?


AI-based automation and analytics.

99. What did you learn?


Technical skills and teamwork.

100. Are you ready to learn new technologies?


Yes, I am always eager to learn and adapt.
Interview Q&A
1. What is SAP ABAP?
Answer:
ABAP stands for Advanced Business Application Programming.
It is the programming language used in SAP applications.
ABAP helps develop reports, interfaces, forms, and enhancements.
It allows customization of SAP according to business needs.
ABAP is one of the core technologies in SAP development.

2. What are the different types of ABAP programs?


Answer:
ABAP programs are mainly Reports, Module Pools, Function Groups, Interfaces, and Class
Programs.
Reports are used for displaying data.
Module Pools are used for screen-based applications.
Function Groups contain reusable functions.
Each type serves a specific business purpose.

3. What is a Data Dictionary?


Answer:
Data Dictionary is a central repository for SAP database objects.
It stores tables, views, domains, and data elements.
It ensures consistency of data definitions.
Developers use it to create and manage database structures.
It supports data integrity and reusability.

4. What is a Transparent Table?


Answer:
A Transparent Table is a database table in SAP.
Its structure in SAP is exactly the same as the database.
Data is physically stored in the database.
It is used for storing application data.
Most SAP tables are transparent tables.

5. What is an Internal Table?


Answer:
An Internal Table is a temporary data storage area in memory.
It is used to process multiple records.
Data can be read, modified, and deleted.
It improves program performance.
Internal tables are widely used in ABAP reports.

6. What is a Work Area?


Answer:
A Work Area is a single record storage area.
It holds one row of data at a time.
It is commonly used with internal tables.
Data can be moved between a work area and internal table.
It simplifies data processing in ABAP.

7. What are the types of Internal Tables?


Answer:
There are three types of internal tables.
They are Standard Table, Sorted Table, and Hashed Table.
Standard tables are used for general purposes.
Sorted tables keep data in sorted order.
Hashed tables provide faster key-based access.

8. What is a Domain?
Answer:
A Domain defines the technical properties of a field.
It specifies data type, length, and value range.
Multiple fields can use the same domain.
It ensures data consistency.
Domains are created in the Data Dictionary.’

9. What is a Data Element?


Answer:
A Data Element provides semantic meaning to a field.
It is linked to a domain.
It contains field labels and descriptions.
Data elements improve reusability.
They are used in table and screen fields.

10. What is a View in SAP?


Answer:
A View is a virtual table based on one or more tables.
It does not store data physically.
Views simplify data retrieval.
They improve security and performance.
SAP provides different types of views.

11. What is ALV?


Answer:
ALV stands for ABAP List Viewer.
It displays data in a user-friendly format.
ALV supports sorting, filtering, and totals.
Users can export data to Excel.
It is commonly used in SAP reports.

12. What is a Report in ABAP?


Answer:
A Report is an executable ABAP program.
It retrieves and displays data.
Reports are used for analysis and decision-making.
They can be interactive or simple reports.
Most business information is presented through reports.

13. What is a Function Module?


Answer:
A Function Module is a reusable block of code.
It performs a specific task.
Function modules can be called from different programs.
They reduce code duplication.
They are stored inside Function Groups.

14. What is a BAPI?


Answer:
BAPI stands for Business Application Programming Interface.
It is a standard SAP function module.
BAPIs are used to exchange data between SAP and external systems.
They provide secure and standardized access.
BAPIs support system integration.

15. What is RFC?


Answer:
RFC stands for Remote Function Call.
It allows communication between SAP systems.
RFC can also connect SAP with non-SAP systems.
It enables remote execution of function modules.
It is widely used in integrations.

16. What is BDC?


Answer:
BDC stands for Batch Data Communication.
It is used to transfer data into SAP.
BDC simulates user input on SAP screens.
It is useful for mass data uploads.
There are Session Method and Call Transaction Method.

17. What is Smart Forms?


Answer:
Smart Forms are used to create SAP forms.
They help generate invoices and purchase orders.
Smart Forms reduce coding effort.
They support logos and graphics.
They replaced SAP Scripts in many projects.
18. What is SAP Script?
Answer:
SAP Script is a tool for creating forms.
It was used before Smart Forms.
It supports printing business documents.
SAP Script requires more technical effort.
Many legacy systems still use it.

19. What is a Lock Object?


Answer:
A Lock Object prevents multiple users from modifying the same data.
It ensures data consistency.
SAP automatically manages locks during updates.
Lock objects are defined in the Data Dictionary.
They help avoid data conflicts.

20. What is Modularization in ABAP?


Answer:
Modularization means dividing code into smaller units.
It improves readability and maintenance.
Examples include Function Modules, Methods, and Subroutines.
It promotes code reuse.
It reduces development effort.

21. What is an Event in ABAP Reports?


Answer:
Events control the execution flow of reports.
Examples are START-OF-SELECTION and END-OF-SELECTION.
Each event performs a specific task.
Events help organize program logic.
They are important in report development.

22. What is START-OF-SELECTION?


Answer:
START-OF-SELECTION is the main processing event.
Program execution begins here.
Database operations are usually written in this event.
It is automatically triggered after selection screen processing.
Most report logic is written here.

23. What is SELECT Statement?


Answer:
SELECT is used to retrieve data from database tables.
It fetches required records.
Conditions can be applied using WHERE clause.
Data can be stored in internal tables.
It is one of the most commonly used ABAP statements.

24. What is Open SQL?


Answer:
Open SQL is SAP's database-independent SQL language.
It works with different databases.
It provides a common interface for database access.
Open SQL is easy to use.
Most ABAP database operations use Open SQL.

25. Difference Between Open SQL and Native SQL?


Answer:
Open SQL is database independent.
Native SQL is database specific.
Open SQL is recommended in SAP development.
Native SQL directly accesses the database.
Open SQL provides better portability.

26. What is an Enhancement?


Answer:
Enhancement allows modification of SAP standard functionality.
It avoids changing original SAP code.
Enhancements support customization.
Examples include User Exits and BADIs.
They are widely used in projects.

27. What is a User Exit?


Answer:
A User Exit is a predefined enhancement point.
It allows custom code insertion.
User Exits modify standard SAP behavior.
They are implemented through function exits.
They help meet business requirements.

28. What is BADI?


Answer:
BADI stands for Business Add-In.
It is an object-oriented enhancement technique.
Multiple implementations are possible.
BADIs are more flexible than User Exits.
They are commonly used in modern SAP systems.

29. What is Debugging?


Answer:
Debugging is the process of finding and fixing errors.
SAP provides a debugging tool.
Breakpoints are used to stop execution.
Developers can analyze variable values.
It helps identify program issues quickly.

30. What is Performance Tuning?


Answer:
Performance tuning improves program efficiency.
It reduces execution time and resource usage.
Techniques include optimized SELECT statements.
Proper use of internal tables is important.
Performance tuning enhances user experience.
Python Coding Questions for Practice
Easy Level
1. Print Hello World
print("Hello World")

2. Add Two Numbers


a = 10
b = 20
print(a + b)

3. Check Even or Odd


num = int(input())
if num % 2 == 0:
print("Even")
else:
print("Odd")

4. Find Largest of 3 Numbers


a,b,c = map(int,input().split())
print(max(a,b,c))

5. Swap Two Numbers


a,b = 10,20
a,b = b,a
print(a,b)

Medium Level
6. Factorial Program
n = int(input())
fact = 1

for i in range(1,n+1):
fact *= i

print(fact)

7. Prime Number Check


n = int(input())

flag = True

for i in range(2,n):
if n % i == 0:
flag = False
break

print("Prime" if flag else "Not Prime")

8. Fibonacci Series
n = int(input())

a,b = 0,1

for i in range(n):
print(a,end=" ")
a,b = b,a+b

9. Reverse a String
s = input()
print(s[::-1])

10. Palindrome Check


s = input()

if s == s[::-1]:
print("Palindrome")
else:
print("Not Palindrome")

Frequently Asked Interview Programs


11. Armstrong Number
n = int(input())

temp = n
sum1 = 0

while temp > 0:


digit = temp % 10
sum1 += digit**3
temp //= 10

print("Armstrong" if sum1 == n else "Not Armstrong")

12. Count Vowels


s = input().lower()

count = 0

for ch in s:
if ch in "aeiou":
count += 1

print(count)

13. Remove Duplicates from List


lst = [1,2,2,3,4,4]

print(list(set(lst)))

14. Find Second Largest Number


lst = [10,20,30,40]

[Link]()

print(lst[-2])

15. Sum of Digits


n = int(input())

sum1 = 0

while n:
sum1 += n % 10
n //= 10

print(sum1)

SAP ABAP Coding Questions


1. Display Text
REPORT ztest.

WRITE 'Hello World'.

2. Add Two Numbers


DATA: a TYPE i VALUE 10,
b TYPE i VALUE 20.

WRITE: / a + b.

3. Internal Table Example


DATA: itab TYPE TABLE OF i,
wa TYPE i.

APPEND 10 TO itab.
APPEND 20 TO itab.

LOOP AT itab INTO wa.


WRITE: / wa.
ENDLOOP.

4. Select Data from Table


SELECT * FROM mara INTO TABLE @DATA(it_mara).

WRITE lines( it_mara ).

5. ALV Report Basic Question


● Create internal table
● Fetch data using SELECT
● Display using ALV Grid

Frequently asked in interviews.

Top Python Interview Questions


What is Python?
Python is a high-level, interpreted programming language. It is easy to learn and widely used in
web development, automation, AI, and data science.
Difference between List and Tuple?
List Tuple

Mutable Immutable

[] ()

Slower Faster

What is Lambda Function?


A lambda function is an anonymous function written in a single line using the lambda keyword.

Example:

square = lambda x: x*x


print(square(5))

What is *args?
Used to pass multiple positional arguments to a function.

def add(*args):
print(sum(args))

What is **kwargs?
Used to pass multiple keyword arguments.

def show(**kwargs):
print(kwargs)

Deep Copy vs Shallow Copy?


Shallow Copy

● Copies references.
● Changes affect nested objects.

Deep Copy

● Creates completely independent copy.


● Changes do not affect original object.
Top SAP ABAP Interview Questions
What is ABAP?
ABAP is SAP's programming language used for reports, forms, interfaces, enhancements, and
applications.

What is an Internal Table?


An internal table is a temporary table stored in memory used for processing large amounts of
data.

What is ALV?
ALV (ABAP List Viewer) is used to display output in tabular format with sorting, filtering, and
export options.

What is BDC?
BDC (Batch Data Communication) is used to transfer data into SAP by simulating screen input.

What is BAPI?
BAPI is a standard SAP interface used to communicate between SAP and external systems.

What is RFC?
RFC (Remote Function Call) enables communication between SAP and non-SAP systems.

Difference between User Exit and BADI?


User Exit BADI

Old Technique New Technique

Single Implementation Multiple Implementations

Function Module Based Object-Oriented

Must Practice Before Accenture Interview


Python Programs
1. Palindrome
2. Prime Number
3. Fibonacci Series
4. Armstrong Number
5. Reverse String
6. Factorial
7. Count Vowels
8. Second Largest Number
9. Remove Duplicates
10. Sum of Digits

SQL Queries
1. Second Highest Salary
2. Joins
3. Group By
4. Having
5. Count Records
6. Top N Records
7. Primary Key vs Foreign Key

SAP ABAP
1. Internal Tables
2. Work Areas
3. ALV Reports
4. BDC
5. BAPI
6. RFC
7. Smart Forms
8. Data Dictionary
9. User Exit
10. BADI

If you master these topics and programs, you'll be well prepared for most Accenture CSE
SAP/Python fresher interviews.

You might also like