Free SAP C_ABAPD_2309 Exam Actual Questions

The questions for C_ABAPD_2309 were last updated On May 2, 2024

Question No. 1

Which function call returns 0?

Show Answer Hide Answer
Correct Answer: D

The function find_any_not_of returns the position of the first character in the string val that is not contained in the string sub. If no such character is found, the function returns 0. In this case, the string val contains only the characters A, B, and a, which are all contained in the string sub, so the function returns 0. The other functions return positive values, as follows:

Count_any_of returns the number of occurrences of any character in the string sub within the string val. In this case, it returns 8, since there are 8 A's and B's in val.

Count returns the number of occurrences of the string sub within the string val. In this case, it returns 2, since there are 2 AB's in val.

find_any_of returns the position of the first character in the string val that is contained in the string sub. In this case, it returns 1, since the first character A is in sub.Reference:String Functions - ABAP Keyword Documentation,Examples of String Functions - ABAP Keyword Documentation


Question No. 4

Refer to the Exhibit.

When accessing the subclass instance through go_super, what can you do? Note: There are 2 correct answers to this question.

Show Answer Hide Answer
Question No. 5

Given the following code in an SAP S/4HANA Cloud private edition tenant:

The class zcl_demo_class is in a software component with the language version set to "ABAP Cloud". The function module ZF1' is in a different software component with the language version set to "Standard ABAP". Both the class and function module are customer created.

Regarding line #6, which of the following are valid statements? Note: There are 2 correct answers to this question.

Show Answer Hide Answer
Correct Answer: A, B

The ABAP Cloud Development Model requires that only public SAP APIs and extension points are used to access SAP functionality and data.These APIs and extension points are released by SAP and documented in the SAP API Business Hub1. Customer-created function modules are not part of the public SAP APIs and are not released for cloud development. Therefore, calling a function module directly from an ABAP Cloud class is not allowed and will result in a syntax error. However, there are two possible ways to call a function module indirectly from an ABAP Cloud class:

Create a wrapper class or interface for the function module and release it for cloud development. A wrapper is a class or interface that encapsulates the function module and exposes its functionality through public methods or attributes. The wrapper must be created in a software component with the language version set to ''Standard ABAP'' and must be marked as released for cloud development using the annotation @EndUserText.label.The wrapper can then be called from an ABAP Cloud class using the public methods or attributes2.

Use the ABAP Cloud Connector to call the function module as a remote function call (RFC) from an ABAP Cloud class. The ABAP Cloud Connector is a service that enables the secure and reliable communication between SAP BTP, ABAP environment and on-premise systems. The function module must be exposed as an RFC-enabled function module in the on-premise system and must be registered in the ABAP Cloud Connector. The ABAP Cloud class can then use the class cl_rfc_destination_service to get the destination name and the class cl_abap_system to create a proxy object for the function module.The proxy object can then be used to call the function module3.