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

creating function module with line types

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 31, 2008 at 04: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.
    Add a comment
    10|10000 characters needed characters exceeded

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

  • Posted on Jul 31, 2008 at 04: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.

    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.