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

Regarding syntax error

Former Member
0 Likes
378

Hi....

can any one tell me why i am getting the below error when i am executing the program ..

Syntax Error:

Literals that take up more than one line not permitted.

Code :

READ TABLE IT_008_OUTPUT WITH KEY PERNR = ITAB-PERNR

LGART = ‘3001’.

IF SY-SUBRC = 0.

* Then pass the value into itab1.

ITAB1-LGART = IT_008_OUTPUT-LGART.

ITAB1-BET02 = IT_008_OUTPUT-BETRG.

ENDIF.

2 REPLIES 2
Read only

Former Member
0 Likes
357

Hi Phaninder,

Did you copy any code from a notepad or word document and paste into the SAP editor?

If this was done, then you often get this error without there being any obvious errors. If so, please retype the statements directly in the SAP editor.

Also, ensure there is no literal in quotes split over two lines e.g.

MOVE 'Start of literal ' to v_test.

Such a statement would return the error described.

Cheers.

Read only

Former Member
0 Likes
357

Hi,

post the code along with the loop statements.

Regards,

ramya