On the initial report display screen, only the carrid, connid, cityfrom, and cit
ID: 3822520 • Letter: O
Question
On the initial report display screen, only the carrid, connid, cityfrom, and citytofields should be shown. When the user double-clicks on any record displayed in the initial report display screen, a new detail screen should appear which displays the associated fltime, deptime, arrtime, airpfrom, and airpto fields.The layout of the detail screen is up to you, but make it look nice. If the user attempts to double-click on the detail report, an error message and banner should be displayed at the bottom of the screen notifying the user that no further details are available. Finally, the original program displays an error if an incorrect carrid is entered, or if no matching flights can be found. Change the program so that these errors are also displayed using banners at the bottom of the screen.
I need to modify the following program with the above instructions, the language is APAB - SAP.
_______________________________________________________________________________
Explanation / Answer
PARAMETERS p_city TYPE spfli-cityfrom.
TYPES: BEGIN OF entry_tab_type,
carrid TYPE spfli-carrid,
connid TYPE spfli-connid,
END OF entry_tab_type.
DATA: entry_tab TYPE TABLE OF entry_tab_type,
sflight_tab TYPE SORTED TABLE OF sflight
WITH UNIQUE KEY carrid connid fldate.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF TABLE entry_tab
WHERE cityfrom = p_city.
SELECT carrid connid fldate
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE sflight_tab
FOR ALL ENTRIES IN entry_tab
WHERE carrid = entry_tab-carrid AND
connid = entry_tab-connid.</b>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.