2008 Jul 31 5:32 AM
hi,
i want to make a function example with the line types and structure as till i am able to make FM with variables only. can anybody provide me good examples of it as i am not able to find it.................
IN OO context you have to use only TYPE
Most of the things can be done using the importing and exporting parameters.
suppose you take when user enters/input CARRID , then it should return the table.
(if you want to refer the structure you can directly use the structure name
SFLIGHT TYPE SFLIGHT
)
so identify the table type for SFLIGHT , it is SFLIGHT_TAB1.
use it in exporting parameters.
now select the data to that table with the input parameter in where condition.
2008 Jul 31 5:35 AM
importing parameters:
carrid type sflight-carid
connid type sflight-connid
fldate type sflight-fldate
exporting parameters:
seatsocc type sflight-seatcsocc
code
select single seatsocc
from sflight
into seatcsocc
where carrid eq carrid and
connid eq connid and
fldate eq fldate.
2008 Jul 31 5:37 AM
hi,
thanks for your response but can i have some documentation on it as how these steps had occurred?
2008 Jul 31 5:42 AM
IN OO context you have to use only TYPE
Most of the things can be done using the importing and exporting parameters.
suppose you take when user enters/input CARRID , then it should return the table.
(if you want to refer the structure you can directly use the structure name
SFLIGHT TYPE SFLIGHT
)
so identify the table type for SFLIGHT , it is SFLIGHT_TAB1.
use it in exporting parameters.
now select the data to that table with the input parameter in where condition.
2008 Jul 31 5:38 AM
>
> hi,
>
> i want to make a function example with the line types and structure as till i am able to make FM with variables only. can anybody provide me good examples of it as i am not able to find it.................
importing parameters:
CARRID TYPE SFLIGHT-CARRID
exporting parameters:
SFLIGHTAB TYPE SFLIGHT_TAB1 <--- table typle
code
select *
from sflight
into table sflighttab
where carrid eq carrid.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |