The below response is from Sabre TravelItineraryReadRQ
<ReservationItems>
<Item>
<FlightSegment>
<DestinationLocation>
<LocationCode>RUH</LocationCode>
<Terminal>TERMINAL 2</Terminal>
<TerminalCode>2</TerminalCode>
</DestinationLocation>
<Equipment>
<AirEquipType>320</AirEquipType>
</Equipment>
<MarketingAirline>
<Code>SV</Code>
<FlightNumber>0573</FlightNumber>
</MarketingAirline>
<Meal>
<Code>M</Code>
</Meal>
<OriginLocation>
<LocationCode>AUH</LocationCode>
<Terminal>TERMINAL 1</Terminal>
<TerminalCode>1</TerminalCode>
</OriginLocation>
<SupplierRef>
<ID>123</ID>
</SupplierRef>
<UpdatedArrivalTime>06-27T21:50</UpdatedArrivalTime>
<UpdatedDepartureTime>06-27T21:00</UpdatedDepartureTime>
<AirMilesFlown>0483</AirMilesFlown>
<ArrivalDateTime>06-27T21:50</ArrivalDateTime>
<ConnectionInd>O</ConnectionInd>
<DayOfWeekInd>6</DayOfWeekInd>
<DepartureDateTime>2015-06-27T21:00</DepartureDateTime>
<ElapsedTime>01.50</ElapsedTime>
<eTicket>false</eTicket>
<FlightNumber>0573</FlightNumber>
<NumberInParty>01</NumberInParty>
<ResBookDesigCode>V</ResBookDesigCode>
<SegmentNumber>0001</SegmentNumber>
<SmokingAllowed>false</SmokingAllowed>
<SpecialMeal>false</SpecialMeal>
<Status>HK</Status>
<StopQuantity>00</StopQuantity>
</FlightSegment>
<RPH>1</RPH>
</Item>
<Item>
<FlightSegment>
<DestinationLocation>
<LocationCode>LHR</LocationCode>
<Terminal>TERMINAL 4</Terminal>
<TerminalCode>4</TerminalCode>
</DestinationLocation>
<Equipment>
<AirEquipType>77W</AirEquipType>
</Equipment>
<MarketingAirline>
<Code>SV</Code>
<FlightNumber>0107</FlightNumber>
</MarketingAirline>
<Meal>
<Code>M</Code>
</Meal>
<OriginLocation>
<LocationCode>RUH</LocationCode>
<Terminal>TERMINAL 2</Terminal>
<TerminalCode>2</TerminalCode>
</OriginLocation>
<SupplierRef>
<ID>123</ID>
</SupplierRef>
<UpdatedArrivalTime>06-28T07:15</UpdatedArrivalTime>
<UpdatedDepartureTime>06-28T02:20</UpdatedDepartureTime>
<AirMilesFlown>3087</AirMilesFlown>
<ArrivalDateTime>06-28T07:15</ArrivalDateTime>
<ConnectionInd>I</ConnectionInd>
<DayOfWeekInd>7</DayOfWeekInd>
<DepartureDateTime>2015-06-28T02:20</DepartureDateTime>
<ElapsedTime>06.55</ElapsedTime>
<eTicket>false</eTicket>
<FlightNumber>0107</FlightNumber>
<NumberInParty>01</NumberInParty>
<ResBookDesigCode>V</ResBookDesigCode>
<SegmentNumber>0002</SegmentNumber>
<SmokingAllowed>false</SmokingAllowed>
<SpecialMeal>false</SpecialMeal>
<Status>HK</Status>
<StopQuantity>00</StopQuantity>
</FlightSegment>
<RPH>2</RPH>
</Item>
<Item>
<FlightSegment>
<DestinationLocation>
<LocationCode>RUH</LocationCode>
<Terminal>TERMINAL 2</Terminal>
<TerminalCode>2</TerminalCode>
</DestinationLocation>
<Equipment>
<AirEquipType>77W</AirEquipType>
</Equipment>
<MarketingAirline>
<Code>SV</Code>
<FlightNumber>0118</FlightNumber>
</MarketingAirline>
<Meal>
<Code>M</Code>
</Meal>
<OriginLocation>
<LocationCode>LHR</LocationCode>
<Terminal>TERMINAL 4</Terminal>
<TerminalCode>4</TerminalCode>
</OriginLocation>
<SupplierRef>
<ID>123</ID>
</SupplierRef>
<UpdatedArrivalTime>07-16T03:35</UpdatedArrivalTime>
<UpdatedDepartureTime>07-15T18:50</UpdatedDepartureTime>
<AirMilesFlown>3087</AirMilesFlown>
<ArrivalDateTime>07-16T03:35</ArrivalDateTime>
<ConnectionInd>O</ConnectionInd>
<DayOfWeekInd>3</DayOfWeekInd>
<DepartureDateTime>2015-07-15T18:50</DepartureDateTime>
<ElapsedTime>06.45</ElapsedTime>
<eTicket>false</eTicket>
<FlightNumber>0118</FlightNumber>
<NumberInParty>01</NumberInParty>
<ResBookDesigCode>V</ResBookDesigCode>
<SegmentNumber>0003</SegmentNumber>
<SmokingAllowed>false</SmokingAllowed>
<SpecialMeal>false</SpecialMeal>
<Status>HK</Status>
<StopQuantity>00</StopQuantity>
</FlightSegment>
<RPH>3</RPH>
</Item>
<Item>
<FlightSegment>
<DestinationLocation>
<LocationCode>AUH</LocationCode>
<Terminal>TERMINAL 1</Terminal>
<TerminalCode>1</TerminalCode>
</DestinationLocation>
<Equipment>
<AirEquipType>E70</AirEquipType>
</Equipment>
<MarketingAirline>
<Code>SV</Code>
<FlightNumber>0578</FlightNumber>
</MarketingAirline>
<Meal>
<Code>M</Code>
</Meal>
<OriginLocation>
<LocationCode>RUH</LocationCode>
<Terminal>TERMINAL 2</Terminal>
<TerminalCode>2</TerminalCode>
</OriginLocation>
<SupplierRef>
<ID>123</ID>
</SupplierRef>
<UpdatedArrivalTime>07-16T09:15</UpdatedArrivalTime>
<UpdatedDepartureTime>07-16T06:30</UpdatedDepartureTime>
<AirMilesFlown>0483</AirMilesFlown>
<ArrivalDateTime>07-16T09:15</ArrivalDateTime>
<ConnectionInd>I</ConnectionInd>
<DayOfWeekInd>4</DayOfWeekInd>
<DepartureDateTime>2015-07-16T06:30</DepartureDateTime>
<ElapsedTime>01.45</ElapsedTime>
<eTicket>false</eTicket>
<FlightNumber>0578</FlightNumber>
<NumberInParty>01</NumberInParty>
<ResBookDesigCode>V</ResBookDesigCode>
<SegmentNumber>0004</SegmentNumber>
<SmokingAllowed>false</SmokingAllowed>
<SpecialMeal>false</SpecialMeal>
<Status>HK</Status>
<StopQuantity>00</StopQuantity>
</FlightSegment>
<RPH>4</RPH>
</Item>
</ReservationItems>
from the above response i want to identify the return and onward segments. Rph = 1,2 are Onward and Rph = 3,4 are Retrun.
I need a way to identify these as I am reading this information from PNR. So i cannot compare it with any other requests also.
I am not looking for a code to do this, I am asking if any one having knowledge of Sabre, is there a way to get the response with some identifiers to identify Onward and Return, like MarriageGrp.
Try this. Code is very simple