Code: Alles auswählen.
DATA: stopover_itab TYPE TABLE OF bapitrvsto,
ls_bapi_test LIKE BAPITRMAIN.
CALL FUNCTION 'BAPI_TRIP_GET_DETAILS'
EXPORTING
EMPLOYEENUMBER = LS_PERIO_LINE-pernr
TRIPNUMBER = LS_PERIO_LINE-reinr
* LANGUAGE = SY-LANGU
* CALCULATE_AMOUNTS = 'X'
* GET_TRIP_FROM_MEMORY = ' '
* PERIODNUMBER = '000'
* IV_STATS = ' '
IMPORTING
* RETURN =
FRAMEDATA = ls_bapi_test
* STATUS =
TABLES
* RECEIPTS =
* ADDINFO =
* TEXT =
* MILEAGE =
STOPOVER = stopover_itab
* DEDUCTIONS =
* TRANSPORT =
* COSTDIST_TRIP =
* COSTDIST_STOP =
* COSTDIST_RECE =
* COSTDIST_MILE =
* AMOUNTS =
* EMP_INFO =
* ATTACHMENTS =
.
IF stopover_itab IS NOT INITIAL.
LS_ANZEIGE_LINE-KETTR = 'X'.
ELSE.
LS_ANZEIGE_LINE-KETTR = ' '.
ENDIF.