P_C4HCD_1905 practice test To copy the efficiency property to the productDTO, what do you need to do?

We offer a 100% money back guarantee with the SAP P_C4HCD_1905 exam questions to ensure that your money is in safe hands. Dumpsfine also makes sure the safety of your information by offering secure payment methods on purchasing the SAP P_C4HCD_1905 pdf.
12. You are implementing a new custom promotion action that changes the delivery mode of an order.
What steps are required to make sure that the effects of this action are reverted as soon as the condition that triggered it is NO longer fulfilled? (Choose two.)
A. Implement the undo method in your custom rule action strategy.
B. Create a promotion that uses the inverse action if the condition is NOT fulfilled.
C. Define your custom action item so that it can store the original delivery mode.
D. Define a new session attribute to store the original delivery mode.
Answer: AC
Reference: https://answers.sap.com/questions/13183941/new-custom-promotion-action-that-changes-delivery.html
13. In an extension named myext, you defined Pump, a subtype of the Product item type with a property named efficiency. You have also extended the productDTO bean to have an efficiency property.
To copy the efficiency property to the productDTO, what do you need to do?
A. • Write a PumpAttributePopulator class that copies the efficiency property from the item to the DTO only if its method is passed an instance of PumpModel.
• Define a bean for this new class in myext-spring.xml, and use a modifyPopulatorList bean to add it to the productConverter’s list of populators.
B. • Make sure the definition of the Pump item type defines the efficiency attribute with persistence type property.
• When you run ant all, the productConverter class generated in bootstrap/gensrc will copy the efficiency property to the productDTO.
C. • Create a PumpPopulator class that extends ProductPopulator and copies the efficiency property from the Pump item to the productDTO bean.
• In myext-spring.xml, redefine the productPopulator alias to point to an instance of PumpPopulator.
D. • Write a PumpProductConverter class that extends AbstractPopulatingConverter, and copies the efficiency property from the Pump item to the productDTO bean if the item is an instance of Pump.
• Configure an instance of this converter in myext-spring.xml.
Answer: A