Application Development 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: 

Transaction Code For Viewing Function Modules

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member

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.

5 REPLIES 5

Former Member

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.

amit_khare
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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)

0 Kudos

hi, i understand the codes is to check syntax error for a program. is there a way to check inside a table or a text editor box?

Former Member
0 Kudos

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