0% found this document useful (0 votes)
466 views

Code For BC400

This document defines a data structure called gs_carrierflight that contains flight and carrier information. It retrieves flight data from a flight model and carrier data from a carrier model based on input carrier and connection IDs and a flight date. It fills the gs_carrierflight structure by moving data from the flight and carrier structures and writes the populated structure to output if it is not initial.

Uploaded by

Enrique Ortiz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
466 views

Code For BC400

This document defines a data structure called gs_carrierflight that contains flight and carrier information. It retrieves flight data from a flight model and carrier data from a carrier model based on input carrier and connection IDs and a flight date. It fills the gs_carrierflight structure by moving data from the flight and carrier structures and writes the populated structure to output if it is not initial.

Uploaded by

Enrique Ortiz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

YPES:

bc400_s_flight-carrid, TYPE carrid


bc400_s_flight-connid, TYPE connid
bc400_s_flight-fldate, TYPE fldate
bc400_s_flight-seatsmax, TYPE seatsmax
bc400_s_flight-seatsocc, TYPE seatsocc
bc400_s_flight-percentage, TYPE percentage
bc400_s_carrier-carrname, TYPE carrname
bc400_s_carrier-currcode, TYPE currcode
bc400_s_carrier-url, TYPE url
gty_s_carrierflight. OF END
gty_s_carrierflight. TYPE gs_carrierflight DATA:
data Get *
TRY.
cl_bc400_flightmodel=>get_flight METHOD CALL
EXPORTING
pa_car = iv_carrid
pa_con = iv_connid
pa_date = iv_fldate
IMPORTING
gs_flight. = es_flight
cl_bc400_flightmodel=>get_carrier METHOD CALL
EXPORTING
pa_car = iv_carrid
IMPORTING
gs_carrier. = es_carrier
. cx_bc400_no_data CATCH
found!'(ndf). data 'No WRITE:
. cx_bc400_no_auth CATCH
carrier!'(nau). this for authority 'No WRITE:
ENDTRY.
gs_carrierflight Fill *
gs_carrierflight. TO gs_carrier MOVE-CORRESPONDING
gs_carrierflight. TO gs_flight MOVE-CORRESPONDING
INITIAL. NOT IS gs_carrierflight
IF
, / WRITE:
gs_carrierflight-connid,
gs_carrierflight-fldate,
gs_carrierflight-carrname,
gs_carrierflight-currcode,
gs_carrierflight-seatsmax,
gs_carrierflight-seatsocc,
'%', gs_carrierflight-percentage,
gs_carrierflight-url.
ENDIF

You might also like