Compiling and Testing sflightClient Demo Application on MacOS 10.15.6 after Installing SAP NW RFC SDK 7.50 PL6
Just my own notes:
Ref:
2573790 - Installation, Support and Availability of the SAP NetWeaver RFC Library 7.50
2573953 - Compiling and Linking RFC Programs with the SAP NetWeaver RFC SDK 7.50
Compiling:
cd demo/
clang++ -std=c++11 -DSAPwithUNICODE -I../include -c -o sflightClient.o sflightClient.c
clang++ -o sflightClient sflightClient.o ../lib/libsapnwrfc.dylib ../lib/libsapucum.dylib
And running it:
awes0me@Niks-MacBook-Pro demo % ./sflightClient /H/saprouter.com/S/3299/H/172.16.10.71 00 BPINST Welcome1 100 EN
Logging in... ...done
Caching DDIC metadata... ...done
Please select an Airline:
AA American Airlines
AB Air Berlin
AC Air Canada
AF Air France
AZ Alitalia
BA British Airways
CO Continental Airlines
DL Delta Airlines
FJ Air Pacific
JL Japan Airlines
LH Lufthansa
NG Lauda Air
NW Northwest Airlines
QF Qantas Airways
SA South African Air.
SQ Singapore Airlines
SR Swiss
UA United Airlines
* All
>
Please enter a start date (yyyymmdd):
> 20181230
Please enter an end date (yyyymmdd):
> 20200311
Return Messages:
S BC_IBF 000 Method was executed
Found 100 connections:
|No. | Airline | City from | City to | Date | Time | Arr.Date |Arr.Time| Price | Curr|
--------------------------------------------------------------------------------------------------------------------------------------
<snipped>
|00095| Singapore Airlines | SAN FRANCISCO | SINGAPORE | 20190813 | 160000 | 20190815 | 024500 | 2320.0400 | SGD |
|00096| Singapore Airlines | SAN FRANCISCO | SINGAPORE | 20190914 | 160000 | 20190916 | 024500 | 2320.0400 | SGD |
|00097| Singapore Airlines | SAN FRANCISCO | SINGAPORE | 20191016 | 160000 | 20191018 | 024500 | 2320.0400 | SGD |
|00098| Singapore Airlines | SINGAPORE | SAN FRANCISCO | 20190102 | 170000 | 20190102 | 192500 | 2320.0400 | SGD |
|00099| Singapore Airlines | SINGAPORE | SAN FRANCISCO | 20190203 | 170000 | 20190203 | 192500 | 2320.0400 | SGD |
Please choose a connection (0 - 99)
> 61
Connection ID for the chosen flight: 0789
Return Messages:
S BC_IBF 000 Method was executed
Flighttime: 940 min
Distance : 6130.0000
Unit : MI
Plane type: A380-800
Availability:
Total Free
Economy: 475 342
Business: 30 21
First Cl: 20 14
Book the flight? [y/n]
> n
awes0me@Niks-MacBook-Pro demo %
//alak
Comments
Post a Comment