SAP ABAP IMG Activity OFTV_INT_COS_TP_08 (BAdI: Integration of Travel Plan with Travel Expenses)
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   FI-TV-PL (Application Component) Travel Planning
     PTRCP (Package) Customizing for Travel Planning
IMG Activity
ID OFTV_INT_COS_TP_08 BAdI: Integration of Travel Plan with Travel Expenses  
Transaction Code S_PLN_62000004   (empty) 
Created on 20040127    
Customizing Attributes OFTV_INT_COS_TP_08   BAdI: Integration of Travel Plan with Travel Expenses 
Customizing Activity OFTV_INT_COS_TP_08   BAdI: Integration of Travel Plan with Travel Expenses 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name FITP_INT_PLAN_EXP2    

Use

This Business Add-In enables you to manipulate the receipts generated in travel planning as default values for the travel expense report.

The following methods are available for this purpose:

CHANGE_RECEIPT_DATA.

This method enables you to access the receipt data (table of structure PTK03) and the additional receipt data (table of structure PTK33). You also receive additional information on the trip, such as the personnel number, the trip number, and the trip provision variant.

By implementing the method CHANGE_RECEIPT_DATA, you can then manipulate the receipts generated as default values or generate additional receipts, depending on the transferred data.

This is particularly useful in cases where for example additional expenses for particular expense types are incurred automatically. Such expenses are often not entered by the creator of the travel expense report since he is not aware of their existence.

Requirements

Standard settings

Activities

Example

Example Implementation for Method CHANGE_RECEIPT_DATA:

After a business trip, an additional fee must be paid to the travel agency for each airline ticket issued by the agency. This fee must be specified in the travel expense report and generated as an additional receipt for each flight receipt:

METHOD if_ex_fitp_int_plan_exp~change_receipt_data .

    DATA: l_wa_receipt like ptk03,

* Search for a flight receipt in IT_RECEIPT:

    LOOP AT it_receipts where spkzl = 'FLUG'.

        exit.

    ENDLOOP.

    CHECK sy-subrc IS INITIAL.

* Fill the output structures & add an additional fee receipt

    et_receipts[] = it_receipts[].

    et_receipts_info[] = it_receipts_info[].

    l_wa_receipt-spkzl = 'FGEB'.

    ...

    APPEND l_wa_receipt TO et_receipts.

    e_receipts_modified = 'X'.

ENDMETHOD.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20101008 
SAP Release Created in 500