01-29-2008 7:15 AM
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
01-29-2008 7: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.
01-29-2008 7: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.
01-29-2008 7:19 AM
You can check them in SE37 and use Where Use list there to check the usage.
01-29-2008 7: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)
01-29-2008 9:10 AM
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?
01-29-2008 8: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