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

Transaction Code For Viewing Function Modules

i understand there's some syntax check FM like RS_SYNTAX_CHECK, etc. how do i use them? is there a sample code available? is there a transaction code for me to view the components inside it?

Thanks

Leslie

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:19 AM

    Hi leslie koh,

    To view the parameters of the function module go to se37 provide the function module name and press display.Hope this will solve your problem.

    Reward points if it is useful.

    Regards,

    Swetha.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2008 at 07:19 AM

    You can check them in SE37 and use Where Use list there to check the usage.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 07:21 AM

    Hi Sir ,

    Please have a look below .Hope it is suitable and simpler solution for your question.

    Please do reward if useful.

    Thankx.

    Here we go....EDITOR_SYNTAX_CHECK

    &----


    -


    • & Form chcek_syntax_error

    &----


    -


    FORM chcek_syntax_error.

    CALL FUNCTION 'EDITOR_SYNTAX_CHECK'

    EXPORTING

    I_global_check = ''

    I_global_program = ''

    I_program = 'ZUP19800526'

    I_r2_check = ''

    I_r2_destination = ''

    I_trdir = ''

    IMPORTING

    O_error_include = er_include

    O_error_line = er_line

    O_error_message = error_message

    O_error_offset = er_off

    O_error_subrc = er_subrc

    TABLES

    I_source = uptab.

    IF er_subrc 0.

    Er_line = er_line - 2.

    WRITE: / 1 'Error Line:' er_line.

    WRITE: / 1 error_message-line1, error_message-line2,

    Error_message-line3.

    STOP.

    ENDIF.

    ENDFORM. "Chcek_syntax_error

    In the example i gave you above

    Just Pass the following Importing Parameter

    I_program = 'ZUP19800526' ( Your Program name)

    And Provide following Variables as Export Parameters

    O_error_include = er_include ( Like SY-REPID)

    O_error_line = er_line (like SY-INDEX)

    O_error_message = error_message (String)

    O_error_offset = er_off (Like SY-TABIX)

    O_error_subrc = er_subrc (Like SY-SUBRC)

    And Tables

    TABLES

    I_source = uptab. ( Internal Table with header line)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:29 AM

    Hi

    For seeing the inside story of a Function Module plz use the Tcode SE37. hope this will be useful.

    reward points if useful.

    regs

    krish

    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.