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

creating function module with line types

Former Member
0 Likes
555

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.................

4 REPLIES 4
Read only

Former Member
0 Likes
466
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.
Read only

0 Likes
466

hi,

thanks for your response but can i have some documentation on it as how these steps had occurred?

Read only

0 Likes
466

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.

Read only

Former Member
0 Likes
466

>

> 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.