Ansicht
Dokumentation

FARRIC_BADI_INVOICE - BAdI: Invoice Enhancements

FARRIC_BADI_INVOICE - BAdI: Invoice Enhancements

BAL_S_LOG - Application Log: Log header data   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

You use this business add-in (BAdI) to process invoice information and transfer it to the Revenue Accounting and Reporting application reuse layer (ARL) through its structures.

You have integrated Revenue Accounting and Reporting with SD.

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

  • INVOICE_DATA_TO_ARL_CUSTOM
You use this method to modify any field value in the customer field.
  • In this method, you may modify the fields in structures INCL_EEW_FARRIC_SD03MI and INCL_EEW_FARRIC_SD03CO.

  • All entries in export parameters ET_RAI_MAIN_ITEM and ET_RAI_CONDITIONS with matching entries in import parameters IT_RAI_MAIN_ITEM and IT_RAI_CONDITIONS populate the fields included in structures INCL_EEW_FARRIC_SD03MI and INCL_EEW_FARRIC_SD03CO.

  • INVOICE_DATA_TO_ARL_SD01: You create POBs via invoice. You may change fields in the structure FARRIC_S_SD01MI_ALLOW_MOD.
  • INVOICE_DATA_TO_ARL_SD01_CUST: You create POBs via invoice. You may populate fields for main RAIs included in the structure INCL_EEW_FARRIC_SD01MI in FARRIC_S_SD01MI. You also may populate SD conditions included in the structure INCL_EEW_FARRIC_SD01CO in FARRIC_S_SD01CO.
  • CLEAR_RELTYPE_FLAG: You override the relevancy of a line item for revenue accounting in structure FARRIC_S_BILLING_DATA_INITIAL.
  • EXCLUDE_CONDITIONS: The conditions inserted into table ET_EXCL_SD03CO from IT_SD03CO aren't transferred to the ARL.
  • EXCLUDE_CONDITIONS_SD01: You create POBs via invoice and select the conditions you don't want to be transferred to the ARL.
  • CONVERT_INVOICE_CURRENCY: This method converts the invoice currency into the order currency.
The sales order created in the revenue accounting contract was in USD; the current invoice in process is in EUR. The invoice transaction currency [EUR] should be converted to the sales order transaction currency [USD].
The import parameter IV_ORIG_CUR contains the transaction currency of the original sales order. The export parameter ET_SD03CO_ALLOW_MOD should be populated by the customer implementation.
You populate these fields:
KWERT Condition value; the new value in the order transaction currency
WAERS Currency key; the transaction currency of the order
EXCHANGE_RATE Exchange rate of the order transaction currency to local currency
EXCHANGE_RATE2 Exchange rate for the second local currency
EXCHANGE_RATE3 Exchange rate for the third local currency

Also, you may use this method to convert the condition amounts of invoiced billing plan lines in a sales document. The currency conversion of the SD planned invoice (SDPI type) RAI is performed when the sales order item is being processed. This introduces a limitation of the ability to pass the invoice-related information to the BAdI implementation. During the currency conversion of the SDPI RAI, these parameters are passed to the BAdI:
  • IV_ORIG_CUR

  • IT_KOMV

  • IT_VBRK

  • IT_VBRP

  • IS_SD03MI

  • IT_SD03CO

  • ET_SD03CO_ALLOW_M

The POSTING_DATE component in the import parameter IS_SD03MI contains the date derived from the billing plan information in the sales order item and not from the corresponding invoice. When you process the SDPI RAI, the currency conversion is performed for each condition at a time.
Additionally, the transaction amount BETRW and transaction currency WAERS of the conditions from the invoice are filled but not the local amount HWAER or local currency BETRH. Therefore, the conversion should be done from transaction currency of the conditions from the invoice to the sales order currency.
  • SET_EXTERNAL_INVOICE_CURRENCY
You can use this Business Add-In (BAdI) method to specify the transaction currency of an external reference document. If the currency in the external billing document is different than the currency in the invoice, it will be passed on to BAdI method CONVERT_INVOICE_CURRENCY, where a custom currency conversion can be implemented.
Note: The BAdI method SET_EXTERNAL_INVOICE_CURRENCY is only called if the referenced original document of the billing document item does not exist as a sales document.

BAdI Interface Documentation

IF_FARRIC_INVOICE

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






BAL_S_LOG - Application Log: Log header data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 9294 Date: 20240523 Time: 202329     sap01-206 ( 117 ms )