Fonction SAP BAPI_TRIP_GET_FORM_HTML - Ouput of Travel Expense Form as HTML Table

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISPLAY_FORM BAPITRVXXX-BOOLEAN C 1 SPACE X Display as Dialog (X/SPACE)
EINKOPF RP_XFELD C 1 X Only One Header Per Trip
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
GET_TRIP_FROM_MEMORY BAPITRVXXX-BOOLEAN C 1 SPACE X
HTML_TEMPLATE WWWDATAID-OBJID C 40 X
PERIODNUMBER BAPITRVXXX-PERIOD N 3 '000' X Number of Trip Period
SET_PRINT_FLAG BAPITRVXXX-BOOLEAN C 1 SPACE X Set Printed Indicator (X/SPACE)
TRIPNUMBER BAPITRIP-TRIPNO N 10 Trip Number of Employee Trip

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Value (Instead of Exceptions)

Paramètre Reférence Long. Facultatif Description
TRIPFORM_HTML BAPIHTML 255 Travel Expense Form as HTML

Functionality
When the method EmployeeTrip.GetExpenseForm_HTML is called, thestandard form for trip costs accounting is returned as a HTML table. Ifthe method is correctly performed (see parameter RETURN), the outputtable (TRIPFORM_HTML) contains the list output of the standardtrip costs form (reportRPRTEF00) in several HTML tables,formated according to the report's output format.
These HTML tables can easily be pasted into your Intranet page.
If you want to create a separate page for the form (e.g. using a CGIscript) you only need to make the following additions in order toobtain a complete HTML page:
Before outputting the lines of table TRIPFORM_HTML, set the header andthe beginning of the main section of the HTML page (using for example" Trip costs accounting " andafter output of all lines in table TRIPFORM_HTML, set the end tag("").

Notes
Occasionally the headings in the HTML tables do not correspond with thetable columns. The tables in the form also differ in width due to theHTML table structure.

Description
List of return parameters is output here

Description
Personnel number

Description
Setting the 'printed' indicator

Description
Trip number

Description
Travel expense form as HTML document