Skip to Content
author's profile photo Former Member
Former Member

bsp with flow logic

hi all,

i have a query regarding bsp with flow logic.

if i will give air line id and press the submitt button ,it have 2 display the table with the details of airline id,flight date,airfare,available seats with in the same page.

i done almost.but the problem is while giving the input,apart from the input field,it is givinig header details also.i dont want it while giving the input.after giving the input only i want to display all the details.

i given the code like this.plz solve the problem

<%@page language="abap" %>

<html>

<head>

<title>

demo page

</title>

</head>

new.htm">

Airline ID: <input name= "carrid" /> <br>

<input value="submit" type= "submit"/>

</form>

<body>

<table>

<tr>

  • header details

<td width= "150" align= "left"><b>airline code</b></td>

<td width= "150" align= "left"><b>flight date</b></td>

<td width= "150" align= "left"><b>airfare</b></td>

<td width= "150" align= "left"><b>available seats</b></td>

</tr>

<%

loop at planeflights into flight.

availableseats = flight-seatsmax - abs( flight-seatsocc ) .

%>

**item details

<tr>

<td width= "150" align= "left"><%= flight-carrid %></td>

<td width= "150" align= "left"><%= flight-fldate %></td>

<td width= "150" align= "left"><%= flight-price %></td>

<td width= "150" align= "left"><%= availableseats %></td>

</tr>

<%

clear availableseats.

endloop. %>

</table>

</body>

</html>

thanks,

Usha

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 19, 2008 at 05:48 AM

    do this

    <% if not planeflights[] is initial . %>
    <table>
    
    <tr>
    
    
    header details 
    <td width= "150" align= "left">airline code</td>
    <td width= "150" align= "left">flight date</td>
    <td width= "150" align= "left">airfare</td>
    <td width= "150" align= "left">available seats</td>
    </tr>
    
    <%
    
    loop at planeflights into flight.
    
    availableseats = flight-seatsmax - abs( flight-seatsocc ) .
    %>
    
    
    
    **item details
    <tr>
    <td width= "150" align= "left"><%= flight-carrid %></td>
    <td width= "150" align= "left"><%= flight-fldate %></td>
    <td width= "150" align= "left"><%= flight-price %></td>
    <td width= "150" align= "left"><%= availableseats %></td>
    </tr>
    <%
    clear availableseats.
    endloop. %>
    
    </table>
    <% endif . %>
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.