Practice Free C_ABAPD_2309 Exam Online Questions
Which of the following integration frameworks have been released for ABAP cloud development? Note: There are 3 correct answers to this question.
- A . SOAP consumption
- B . CDS Views
- C . Business Add-ins (BAdls)
- D . Business Events
- E . OData services
A, D, E
Explanation:
The following are the integration frameworks that have been released for ABAP cloud development: SOAP consumption: This framework allows you to consume SOAP web services from ABAP cloud applications. You can use the ABAP Development Tools in Eclipse to create a service consumption model based on a WSDL file or URL. The service consumption model generates the required ABAP artifacts, such as proxy classes, data types, and constants, to access the web service. You can then use the proxy classes to call the web service operations from your ABAP code1
Business Events: This framework allows you to publish and subscribe to business events from ABAP cloud applications. Business events are messages that represent a change in the state of a business object or process. You can use the ABAP Development Tools in Eclipse to create a business event definition based on a CDS view entity or a projection view. The business event definition specifies the event key, the event payload, and the event metadata. You can then use the ABAP Messaging Channel (AMC) framework to publish and subscribe to business events using the AMC API2
OData services: This framework allows you to expose and consume OData services from ABAP cloud applications. OData is a standardized protocol for creating and consuming RESTful APIs. You can use the ABAP RESTful Application Programming Model (RAP) to create OData services based on CDS view entities or projection views. The RAP framework generates the required OData metadata and runtime artifacts, such as service definitions, service bindings, and service implementations. You can then use the SAP Gateway framework to register and activate your OData services. You can also use the ABAP Development Tools in Eclipse to consume OData services from other sources using the service consumption model3
The other integration frameworks are not released for ABAP cloud development, as they are either not supported or not recommended for cloud scenarios.
These frameworks are:
CDS Views: CDS views are not an integration framework, but a data modeling framework. CDS views are used to define data models based on database tables or other CDS view entities. CDS views can have associations, aggregations, filters, parameters, and annotations. CDS views can also be used as the basis for other integration frameworks, such as OData services or business events4
Business Add-ins (BAdls): BAdls are not supported for ABAP cloud development, as they are part of the classic ABAP enhancement framework. BAdls are used to implement custom logic in predefined enhancement spots in the standard SAP code. BAdls are not compatible with the cloud strategy and the clean core paradigm, as they modify the SAP code and can cause upgrade and maintenance issues. For ABAP cloud development, SAP recommends using the key user extensibility tools or the side-by-side extensibility approach instead of BAdls.
Reference: Consuming SOAP Services – ABAP Keyword Documentation, Business Events – ABAP Keyword Documentation, OData Services – ABAP Keyword Documentation, CDS Data Model Views – ABAP Keyword Documentation, [Business Add-Ins (BAdIs) – ABAP Keyword Documentation]
In a program you find this source code AUTHORITY-CHECK OBJECT ‘/DWO/TRVL ( ID ‘CNTRY’ FIELD ‘DE* ID ACTVT FIELD ’03".
Which of the following apply? Note: There are 2 correct answers to this question.
- A . If the user is authorized for ‘CNTRY = ‘DE’ then the return code is always 0.
- B . If the user is NOT authorized for ‘CNTRY’ = ‘DE’ OR for ‘ACTVT’ = ’03 then the program will terminate.
- C . If the user is authorized for ‘CNTRY = ‘DE’ AND for ‘ACTVT = ’03 then the return code is 0.
- D . AUTHORITY CHECK verifies whether a user is authorized for/DMO/TRVL" with the listed field values.
AD
Explanation:
Which of the following are ABAP Cloud Development Model rules?
Note: There are 2 correct answers to this question.
- A . Use public SAP APIs and SAP extension points.
- B . Build ABAP RESTful application programming model-based services.
- C . Reverse modifications when a suitable public SAP API becomes available.
- D . Build ABAP reports with either ABAP List Viewer (ALV) or SAP Fiori.
AB
Explanation:
The ABAP Cloud Development Model encourages practices that are compatible with SAP’s cloud strategy, focusing on extensibility, sustainability, and the use of standardized interfaces. Based on these principles, the following rules apply:
Use public SAP APIs and SAP extension points – This is correct. The model emphasizes using standardized and public APIs and extension points to ensure compatibility with future updates and the broader SAP ecosystem.
Build ABAP RESTful application programming model-based services – This is also correct. The ABAP RESTful Application Programming Model (RAP) is the recommended approach for building services in the ABAP environment, particularly for cloud applications and SAP Fiori apps.
For the ABAP Cloud Development Model rules, the best answer would be:
C. Build ABAP RESTful application programming model-based services.
This is because the RESTful ABAP Programming Model is central to SAP’s strategy for developing modern, extensible applications in the cloud environment.
What RESTful Application Programming feature is used to ensure the uniqueness of a semantic key?
- A . Validation
- B . Action
- C . Determination
C
Explanation:
In RESTful Application Programming (RAP) within the SAP context, validation is the feature used to ensure data integrity constraints like the uniqueness of a semantic key. During the validation phase, checks are performed to ensure that data modifications adhere to defined business rules, which would include the uniqueness of certain key fields.
Refer to Exhibit.
When accessing the subclass instance through go_super, what can you do? Note: There are 2 correct answers to this question.
- A . Access the inherited private components.
- B . Access the inherited public components.
- C . Call a subclass specific public method
- D . Call inherited public redefined methods.
BD
Explanation:
In object-oriented programming (OOP), particularly in ABAP OOP, when you have a reference to a superclass and you’re working with an instance of a subclass, here’s what you can do:
Access the inherited public components – This is correct. You can always access public components of the superclass through a reference to the superclass, even if the actual object is an instance of a subclass.
Call inherited public redefined methods – This is also correct. If the subclass has redefined a method that was public in the superclass, and you call this method through a reference of the superclass type, the redefined version in the subclass will be executed. This is known as polymorphism.
Which of the following are valid sort operations for internal tables? Note: There are 3 correct answers to this question.
- A . Sort a standard table using
SORT itab ASCENDING.
Sort a sorted table using - B . SORT itab BY fieldl ASCENDING field2 DESCENDING.
Sort a standard table using - C . SORT itab BY field1 field2.
Sort a standard table using - D . SORT itab.
Sort a sorted table using - E . SORT itab DESCENDING.
A,E, D
Explanation:
Refer to the exhibit.
Which of the following types are permitted to be used for <source> on line #4? Note: There are 2 correct answers to this question.
- A . A database table from the ABAP Dictionary
- B . A CDS DDIC-based view
- C . An external view from the ABAP Dictionary
- D . A database view from the ABAP Dictionary
AB
Explanation:
The <source> clause in the CDS View Entity Data Definition can be used to specify the data source for the view entity. The <source> clause can accept different types of data sources, depending on the type of the view entity1.
A database table from the ABAP Dictionary: This is a valid type of data source for a CDS View Entity Data Definition. A database table from the ABAP Dictionary is a table that is defined in the ABAP Dictionary using the keyword TABLE or TABLE OF. The name of the database table must be unique within its namespace and must not contain any special characters2.
A CDS DDIC-based view: This is also a valid type of data source for a CDS View Entity Data Definition.
A CDS DDIC-based view is a view that is defined in the Core Data Services using the keyword DEFINE
VIEW ENTITY. The name of the CDS DDIC-based view must be unique within its namespace and must
not contain any special characters3.
You cannot do any of the following:
An external view from the ABAP Dictionary: This is not a valid type of data source for a CDS View Entity Data Definition. An external view from the ABAP Dictionary is a view that is defined in an
external application using any language supported by SAP, such as SQL, PL/SQL, or Java. The name of the external view must be unique within its namespace and must not contain any special characters4.
A database view from the ABAP Dictionary: This is not a valid type of data source for a CDS View Entity Data Definition. A database view from the ABAP Dictionary is a view that is defined in an external application using any language supported by SAP, such as SQL, PL/SQL, or Java. The name of the database view must be unique within its namespace and must not contain any special characters4.
Reference: 1: CDS DDL – DEFINE VIEW ENTITY – ABAP Keyword Documentation – SAP Online Help 2:
ABAP Dictionary Tables – SAP Online Help 3: CDS DDL – DEFINE VIEW ENTITY – ABAP Keyword
Documentation – SAP Online Help 4: ABAP Dictionary Views – SAP Online Help
Exhibit:
What are valid statements? Note: There are 3 correct answers to this question.
- A . go_if 1 may call method ml with go_ift->ml().
- B . Instead of go ell = NEW #(…) you could use go ifl = NEW cll(. … ).
- C . go_cll may call method ml with go_dl->ifl-ml().
- D . Instead of go_cll = NEW #() you could use go_iff – NEW #(…).
- E . go_ifl may call method m2 with go if->m2(…).
ABE
Explanation:
Based on the exhibit and standard ABAP object-oriented programming concepts, let’s evaluate each statement:
go_if1 may call method m1 with go_if1->m1(). – This is correct. go_if1 is typed as a reference to interface if1, which contains the method m1. Hence, go_if1 can be used to call m1.
Instead of go_cl1 = NEW #(…), you could use go_if1 = NEW cl1(…). – This is correct. Since cl1 implements interface if1, you can create an instance of cl1 and assign it to a variable typed with the interface if1.
go_cl1 may call method m1 with go_cl1->if1~m1(). – This is correct. The syntax go_cl1->if1~m1() is used to call an interface method implemented by a class in ABAP, and since cl1 implements if1, which has method m1, this is valid.