2012 Mar 30 4:51 AM
Hi there, I'm having a problem to run a program example in the document that is presented in this link http://scn.sap.com/docs/DOC-10457
The program stay this way:
REPORT Y_SELECT_F_FLIGHT.
DATA: itab_flight TYPE STANDARD TABLE OF sflight, wa_flight TYPE sflight.
SELECT * FROM sflight INTO TABLE itab_flight
WHERE carrid = 'LH' AND seatsmax < 250.
LOOP AT itab_flight INTO wa_flight.
WRITE: wa_flight-mandt.
WRITE wa_flight-carrid.
WRITE wa_flight-connid.
WRITE wa_flight-fldate.
WRITE wa_flight-price.
WRITE wa_flight-currency.
WRITE wa_flight-planetype.
WRITE wa_flight-seatsmax.
WRITE wa_flight-seatsocc.
WRITE wa_flight-paymentsum.
WRITE wa_flight-seatsmax_b.
WRITE wa_flight-seatsocc_b.
WRITE wa_flight-seatsmax_f.
WRITE wa_flight-seatsocc_f.
SKIP.
ENDLOOP.
There is something wrong ? As is saying in this document, this table about the flights is already present as default on Netweaver, I can see the table and this contents, but when I run this program, nothing happens.
Anyone could help me ?
Thanks.
Moderator message : Not enough re-search before posting, discussion locked.
Message was edited by: Vinod Kumar
Hi there, I'm having a problem to run a program example in the document that is presented in this link http://scn.sap.com/docs/DOC-10457
The program stay this way:
REPORT Y_SELECT_F_FLIGHT.
DATA: itab_flight TYPE STANDARD TABLE OF sflight, wa_flight TYPE sflight.
SELECT * FROM sflight INTO TABLE itab_flight
WHERE carrid = 'LH' AND seatsmax < 250.
LOOP AT itab_flight INTO wa_flight.
WRITE: wa_flight-mandt.
WRITE wa_flight-carrid.
WRITE wa_flight-connid.
WRITE wa_flight-fldate.
WRITE wa_flight-price.
WRITE wa_flight-currency.
WRITE wa_flight-planetype.
WRITE wa_flight-seatsmax.
WRITE wa_flight-seatsocc.
WRITE wa_flight-paymentsum.
WRITE wa_flight-seatsmax_b.
WRITE wa_flight-seatsocc_b.
WRITE wa_flight-seatsmax_f.
WRITE wa_flight-seatsocc_f.
SKIP.
ENDLOOP.
There is something wrong ? As is saying in this document, this table about the flights is already present as default on Netweaver, I can see the table and this contents, but when I run this program, nothing happens.
Anyone could help me ?
Thanks.
Moderator message : Not enough re-search before posting, discussion locked.
Message was edited by: Vinod Kumar
2012 Mar 30 5:26 AM
Hi,
I executed the same program and able to get the output.
Check if there exists any table contents in the system for carrid = 'LH' AND seatsmax < 250. Also check if you are executing the program in client 800.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |