Ansicht
Dokumentation

/DMBE/OFFSET_COND - BAdI: Abstand Preiskonditionen

/DMBE/OFFSET_COND - BAdI: Abstand Preiskonditionen

Addresses (Business Address Services)   General Material Data  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

Mit diesem Business Add-In (BAdI) können Sie neue Verrechnungskonditionen in der Anwendung "Erfassung von Geschäften" zuordnen. Dies erfolgt durch die Bereitstellung von Preisfindungsobjekten, die kopiert und anschließend zur weiteren Zuordnung durch "Erfassung von Geschäften" angepasst werden können.

Methode:

  • MAKE_OFFSET_CONDITIONS:
  • - I_EFP_PRICING_HEADERS: enthält Preisfindungsobjekte aus "Erfassung von Geschäften", die kopiert und als Grundlage verwendet werden können

  • - C_PRICING_HEADERS: enthält alle neuen Objekte, die durch "Erfassung von Geschäften" weiter zugeordnet werden

Das BAdI ist mehrfach verwendbar.

Weitere Informationen über die Standardeinstellungen (Filter, einfache oder mehrfache Verwendbarkeit) finden Sie auf der Registerkarte "Erw.spot-Elementdefinitionen" im BAdI-Builder (Transaktion SE18).

Informationen zur Implementierung von BAdIs im Enhancement Framework finden Sie in der SAP-Bibliothek für SAP NetWeaver Platform im SAP Help Portal unter http://help.sap.com/nw_platform. Wählen Sie ein Release und dann "Application Help". Wählen Sie in der SAP-Bibliothek SAP-NetWeaver-Bibliothek: Funktionsorientierte Sicht -> Application Server -> Application Server ABAP -> Anwendungsentwicklung auf AS ABAP -> ABAP-Kundenentwicklung -> 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(<pricing_item_copy>).
         " Data to be modified
         DATA(pricing_item_copy_data) = <pricing_item_copy>->get_data( ).
         <pricing_item_copy>->set_data( pricing_item_copy_data ).
       ENDLOOP.       " Send copy back for Deal mapping
       APPEND pricing_header_copy TO c_pricing_headers.
     ENDLOOP.
ENDMETHOD.






ROGBILLS - Synchronize billing plans   rdisp/max_wprun_time - Maximum work process run time  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 3673 Date: 20240419 Time: 094343     sap01-206 ( 46 ms )