
TCS


10+ TCS SAP Abap Technical Consultant Interview Questions and Answers
Q1. How to display multiple screen in one layout
To display multiple screens in one layout, use the SAP Screen Painter tool and create a custom screen with multiple subscreens.
Create a custom screen using the SAP Screen Painter tool
Add multiple subscreens to the custom screen
Define the layout of each subscreen using the Screen Painter
Use the PBO (Process Before Output) module to display the subscreens in the desired layout
Use the PAI (Process After Input) module to handle user input from the subscreens
Q2. What is the use of constructor? When it will be called
Constructor is used to initialize an object. It is called when an object is created.
Constructor is a special method with the same name as the class.
It is used to initialize the instance variables of a class.
It is called automatically when an object is created using the new keyword.
Constructors can be overloaded to provide different ways of initializing objects.
Example: public class Employee { public Employee() { // constructor code } }
Q3. What is Singleton class. What is the use of singleton class
Singleton class is a class that can only have one instance at a time.
It is used to ensure that there is only one instance of a class in the system.
It is often used in situations where a single object needs to coordinate actions across the system.
Example: Database connection class, logger class, configuration class.
It can be implemented using private constructors, static methods, and static variables.
Q4. What is enhancement framework? Difference between customer exit and Badi
Enhancement framework is a tool to modify standard SAP applications without changing the original code.
Enhancement framework provides a way to add custom code to standard SAP applications.
Customer exits are predefined hooks in the standard code that allow custom code to be added.
Badis are similar to customer exits but provide more flexibility and can be implemented multiple times.
Enhancement framework is used to avoid modifying standard code and to make upgrades easier.
Exampl...read more
Q5. What is the annotation used to display text element in cds
The annotation used to display text element in CDS is @Semantics.text
The @Semantics.text annotation is used to display text elements in CDS views
It is used in combination with the element name and the label for the text
Example: @Semantics.text.label: 'Product Description';
The label can be customized to display any desired text
Q6. Which method will be called in backend to handle the deep entity call?
The method called in backend to handle deep entity call is GET_DEEP_ENTITY.
GET_DEEP_ENTITY method is used to retrieve a deep entity from the backend system.
It is used to retrieve a single entity with its related entities in one request.
It is called when a deep entity is requested in OData service.
It is used to retrieve data from multiple tables in one request.
Q7. What is table function in cds. Practical example when it was used
Table function in CDS is a reusable database function that can be used to define complex logic and calculations.
Table function is defined in CDS (Core Data Services) using the @EndUserFunction annotation.
It allows you to define complex logic and calculations that can be used in CDS views or ABAP programs.
Table functions can have input parameters and return a table of data as the result.
They can be used to perform data transformations, aggregations, filtering, and more.
A pract...read more
Q8. What is abstract class. Difference between abstract class and Interface
Abstract class is a class that cannot be instantiated. Interface is a collection of abstract methods.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have instance variables, while interface cannot.
A class can implement multiple interfaces, but can only inherit from one abstract class.
Example of abstract class: Animal (cannot be instantiated). Example of interface: Runnable (collection of abstrac...read more
Q9. What is partner profile in Idocs? Steps to create custom Idoc.
Partner profile in Idocs is used to define communication partners and their settings.
Partner profile contains information about the communication partner such as their ID, address, and communication protocol
Partner profile is used to determine the outbound and inbound processing of Idocs
To create a custom Idoc, define the segments and fields using WE31 transaction
Create a message type using WE81 transaction and link it to the Idoc type
Create a process code using WE42 transact...read more
Q10. How to publish Odata service by consumption view
To publish Odata service by consumption view, create a consumption view and expose it as an Odata service.
Create a consumption view using SE11 transaction
Activate the view and generate the runtime object
Create an Odata service using SEGW transaction
Add the consumption view to the Odata service
Activate and publish the Odata service
Q11. What is VDM module in CDS
VDM module in CDS is a virtual data model that provides a semantic layer on top of the underlying database tables.
VDM stands for Virtual Data Model.
It is used in SAP ABAP CDS (Core Data Services) to define the structure and behavior of data models.
VDM provides a semantic layer that abstracts the complexity of the underlying database tables.
It allows developers to define entities, associations, and annotations to represent business objects and relationships.
VDM modules can be ...read more
Q12. What is search help exit
Search help exit is a user-defined ABAP routine that is used to modify the search help behavior.
Search help exit is used to customize the search help functionality in SAP.
It allows developers to modify the search help behavior by adding additional checks or filters.
Search help exit is implemented as a user-defined ABAP routine that is called during the search help process.
It can be used to restrict the search results or to add additional fields to the search help dialog.
Examp...read more
More about working at TCS










Reviews
Interviews
Salaries
Users/Month

