Skip to Content
author's profile photo
Former Member

export and import parameters

what is export and import parameters.In function module how it is used.

what is the purpose .can anyone explain me with coding?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Oct 11, 2007 at 04:55 PM

    When you call the function module in ur ABAP program.

    YOu will see Exporting and Importing .

    For eg -

    CALL FUNCTION 'CONVERSION_EXIT_KONPD_OUTPUT'

    EXPORTING

    INPUT = OUTPUT-PSPHI

    IMPORTING

    OUTPUT = OUTPUT-PSPID.

    I am passing a value to the input field - OUTPUT-PSPHI. With this data once the function module is executed it returns me the result in the importing ie, Output and i can have the result in OUTPUT-PSPID.

    I hope its clear.

    Let me know for any questions.

    Shreekant

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2007 at 04:58 PM

    Hi,

    when tou use a FM that have a import and export parameters, you need to declare than.

    Export parameters are values or variables that ou will send to the FM. Inside the FM, they will be processed.

    Import parameters are values or variables that the FM will send to you, are the return of the proccess.

    And sometimes you have the Changing parameters, that are variables that you send to a FM or perform and they can be changed.

    CALL METHOD gr_alvgrid->set_table_for_first_display

    EXPORTING

    is_layout = gs_layout

    CHANGING

    it_outtab = ti_zcarro[]

    it_fieldcatalog = gt_fieldcat

    EXCEPTIONS

    invalid_parameter_combination = 1

    program_error = 2

    too_many_lines = 3

    OTHERS = 4.

    In this case, you send values in EXPORTING parameters gs_layout and the method can change the internal tab ti_zcarro and gt_fieldcat.

    Hope it help you.

    <b><REMOVED BY MODERATOR></b>

    Regards

    Message was edited by:

    Alvaro Tejada Galindo

    Add comment
    10|10000 characters needed characters exceeded