Application Development and Automation 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: 
Read only

ABAP SYNTAX-CHECK

Former Member
0 Likes
999

Hi all, i understand that there's such a SYNTAX-CHECK keyword in ABAP programming. how do i use it? i'm actually writing a program that allows users to key in ABAP codings in a text editor, check for syntax error before saving into a table.

please help me as i'll reward handsomely for any help rendered. thanks ((:

Leslie

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
950

Leslie - this would be extremely dangerous. A user would be able to sabotage your system with very little difficulty and no audit trail.

Why not use ABAP Query or Report Writer?

Better check your requirement with management.

Rob

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
950

Wow you are pretty trusting with your users, can then also execute this code on the fly? Dangerous......

You might also notice that in the help for this statement, it clearly states that it is for internal use only.

Regards,

Rich Heilman

Read only

0 Likes
950

Hi Rich Heilman,

i don't get your meaning of "it clearly states that it is for internal use only. ;)"

sorry 😛

Leslie

Read only

0 Likes
950

Hi,

This keyword is not to be used by the ABAPers. They are used by only SAP. Thats why it is referred as internal use only.

Regards,

Atish

Read only

0 Likes
950

That's funny, looks like it has been removed from the new version of SAP Help, but here is what it used to say.

SYNTAX-CHECK

Note

This statement is for internal use only.

Incompatible changes or further developments may occur at any time without warning or notice.

Basic form

SYNTAX-CHECK FOR itab ...MESSAGE f ...LINE g ...WORD h.

Regards,

Rich Heilman

Read only

0 Likes
950

whoa. i saw this line of codes "SYNTAX-CHECK FOR itab ...MESSAGE f ...LINE g ...WORD h." before and wanna implement to my program. seems that i can't use it now. haha.

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

Read only

0 Likes
950

hi Rich Heilman,

is there any other same function modules or keywords that does the same as SYNTAX-CHECK?

thanks (:

Read only

Former Member
0 Likes
951

Leslie - this would be extremely dangerous. A user would be able to sabotage your system with very little difficulty and no audit trail.

Why not use ABAP Query or Report Writer?

Better check your requirement with management.

Rob