Ansicht
Dokumentation

CRM_LBI_TEXTS_BADI - BAdI: Provide Billing Document-Specific General Texts

CRM_LBI_TEXTS_BADI - BAdI: Provide Billing Document-Specific General Texts

Addresses (Business Address Services)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Leasing and Asset Management component (CRM-BTX-CTR-LCO).

You can use this BAdI to provide a billing plan for invoice printing.

During the billing of billing request items, the system transfers the texts that you entered - such as those in the CRM contract at header level or financing item level - to the R/3 SD (Sales and Distribution module. Texts transferred in this manner can then be used during invoice printing in R/3. werden.

This Business Add-In, CRM_LBI_TEXTS_BADI, provides method TEXT_BILLING_PLAN_CREATE, which enables you to compose additinoal texts for each billing request item and transfer them to the R/3 SD module as well.

The system only calls method TEXT_BILLING_PLAN_CREATE when you hav defined the corresponding text ID in CRM Customizing, under Define Billing Document-Specific Text IDs.

To use a BAdI, create an implementation for the existing definition of the BAdI and program the corresponding methods.

Method TEXT_BILLING_PLAN_CREATE

Import parameters:

  • IS_BILLING_REQUEST_ITEM
    Data for the current billing request item. May include flags that indicate, for example, that the first or last billing request item is involved.
  • IS_PRICING
    This data contains price information for the current billing request item. The current document currency is also contained here.

Export parameters:

  • ET_TEXT
    You use this table to transfer the texts you have composed to the calling module. Each table line consists of the following four components:
Name Meaning
TEXT_ID Identification number (also see import parameter TEXT_ID)
LANGU Language key
FORMAT_COL Formatting information
TEXT_LINE Actual text

If you do not fill the TEXT_ID field when generating table ET_TEXT, the system forwards the text lines returned in ET_TEXT under the number specified in parameter IV_TEXT_ID.

If you use your own text IDs to generate table ET_TEXT, make sure that you have also configured the corresponding IDs in R/3 Customizing under Sales and Distribution → Basic Functions → Text Control. Otherwise, the texts will not be received properly by the R/3 System. Also make sure that the text IDs you use are not already used elsewhere in CRM Customizing (under Basic Functions → Text Management).

Save the actual text in TEXT_LINE.

You can use field FORMAT_COL to format the text - for example, entering "/" to generate a line break.

Use LANGU to specify the language in which the text is supplied. You can use this method to define texts in multiple languages. If you do not specify a language, the calling module automatically selects the current logon language and transfers these texts to R/3 under the corresponding language ID.

TEXT_LINE

TEXT_LINE

One possible application is the creation of a billing plan, for example, which is printed in the invoice for the first billing request item. The billing plan informs the customer of the payment amounts and dates that were calculated based on the lease.






General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4327 Date: 20240523 Time: 164113     sap01-206 ( 69 ms )