Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question about a example on this document: http://scn.sap.com/docs/DOC-10457

Former Member
0 Likes
416

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

1 REPLY 1
Read only

Former Member
0 Likes
382

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.