Thursday, January 27, 2011 at 12:04 AM | 1 comments
Fungsi BAPI_TRIP_GET_DETAILS adalah untuk mengambil nilai yang ada di travel expense tcode PR05.
data :
    t_framedata type table of bapitrmain with header line,
    t_receipts type table of bapitrvreo with header line,
    t_addinfo type table of bapitraddi with header line,
    t_amounts type table OF bapitrvsum with header line.

CALL FUNCTION 'BAPI_TRIP_GET_DETAILS'
EXPORTING
    employeenumber = '151515' " <- Employee Number
    tripnumber = '15' " <- Trip Number
    language = sy-langu
    calculate_amounts = 'X'
IMPORTING
    framedata = t_framedata
TABLES
    receipts = t_receipts
    addinfo = t_addinfo
    amounts = t_amounts.
Posted by Shanto Labels:
Fungsi CURRENCY_AMOUNT_DISPLAY_TO_SAP adalah untuk menyimpan suatu nilai ke table sesuai dengan currency.

Contoh :

CALL FUNCTION 'CURRENCY_AMOUNT_DISPLAY_TO_SAP'
EXPORTING
    currency = 'IDR'
    amount_display = 25
IMPORTING
    amount_internal = gd_intval " Hasil 0.2500
EXCEPTIONS
    internal_error = 1
    others = 2.
Posted by Shanto Labels: