Free content for your website or blog
Home About Us Article Writing Most Read Articles Authors Blog Wiki Contact Us
RSS Register Login
Topics
 
Home > Computer Software >

ABAP SYNTAX CHECK

Date Published: 07th April 2008
Bookmark and Share Republish ABAP SYNTAX CHECK
Author: suresh RSS Views: N/A PRINT ASK ABOUT THIS ARTICLE
SYNTAX-CHECK FOR DYNPRO h f e m ...MESSAGE f1 ...LINE f2
...WORD f3.
Additions

1. ... OFFSET f1
2. ... TRACE-TABLE t1
Effect

Syntax check for screen

The screen description is taken from the field string h and the internal tables f , e and m . The field string h (screen header) should correspond to the structure D020S , the internal table f (field list) to the structure D021S , the internal table e (flow logic) to the structure D022S and the internal table m (matchcode information) to the structure D023S .

Example



DATA: DHEAD LIKE D020S, "screen header

DFIELDS LIKE D021S OCCURS 20, "field list

DFLOWL LIKE D022S OCCURS 20, "flow logic

MCINFO LIKE D023S OCCURS 20. "matchcode information


If a syntax error is detected during the check, the fields f1 , f2 and f3 are filled as follows:
- f1 contains the error message text
- f2 contains the screen line where the error occurred
- f3 contains the incorrect word in the screen

The return code value is set as follows:

SY-SUBRC = 0 The screen contains no syntax errors.
SY_SUBRC = 4 The screen contains syntax errors.

Addition 1

... OFFSET f1
Effect

When a systax error occurs, this field contains the position of the incorrect word in the incorrect line.
Addition 2

... TRACE-TABLE t1
Effect
Any trace output is stored in this table. Trace output is automatically switched on when you specify this addition.

For any further information you can visit


http://abapprogramming.blogspot.com
This article is free for republishing
Source: http://www.articlealley.com/article_510516_11.html
About the Author
Occupation: http://dotnetpoint.blogspot.com
Author of the technology blogs.
Bookmark and Share Republish ABAP SYNTAX CHECK

Ask a Question About this Article

>> Check stub policy
>> How do i find out about my credit history not ...
>> Stimulus checks for end of 2009
>> Www.txst.gov.com I HEARED IN THE NEWS THAT WE ARE ...
Powered by