Ansicht
Dokumentation

/DMBE/OFFSET_COND - BAdI: Offset Pricing Conditions

/DMBE/OFFSET_COND - BAdI: Offset Pricing Conditions

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) provides a way of mapping new offsetting conditions into the Deal Capture Application. This is done by providing pricing objects that can be copied and then modified for further mapping by Deal Capture.

Method:

  • MAKE_OFFSET_CONDITIONS:
  • - I_EFP_PRICING_HEADERS: Contains pricing objects coming from Deal Capture that can be copied and used as base

  • - C_PRICING_HEADERS: Contains all new objects which are mapped further on by Deal Capture

This BAdI is multiple-use.

For more information about the standard settings (filters and single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

For information about implementing BAdIs as part of the enhancement framework, see SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development on AS ABAP -> ABAP Customer Development -> Enhancement Framework.

METHOD /dmbe/ifr_offsetting_condtions~make_offset_conditions.
     LOOP AT i_efp_pricing_headers INTO DATA(editable_pricing_header).      

" Copy EFP pricing from Deal into local pricing copy, which can be modified
       DATA(pricing_header_copy) = editable_pricing_header->copy( ).      

" Gets data from copy
       DATA(pricing_header_copy_data) = editable_pricing_header->get_data( ).      

" Changes condition header data
       pricing_header_copy_data-conditiontype = 'ZTHR'.
       pricing_header_copy_data-pricingamount =

  pricing_header_copy_data-pricingamount * 1.
  pricing_header_copy->set_data( pricing_header_copy_data ).      

" Loops in all pricing items (terms) and updates its data
       LOOP AT pricing_header_copy->get_editable_pricing_items( )

ASSIGNING FIELD-SYMBOl().
         " Data to be modified
         DATA(pricing_item_copy_data) = <pricing_item_copy>->get_data( ).
         ->set_data( pricing_item_copy_data ).
       ENDLOOP.       " Send copy back for Deal mapping
       APPEND pricing_header_copy TO c_pricing_headers.
     ENDLOOP.
ENDMETHOD.






CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 3366 Date: 20240419 Time: 062447     sap01-206 ( 45 ms )