cancel
Showing results for 
Search instead for 
Did you mean: 

Literals across more than one line are not allowed.

this is the code and line no.9 showing error.Literals across more than one line are not allowed. Please provide solution...

1. LOOP AT ET_ORDERADM_H INTO ES_ORDERADM_H.

2. CLEAR: REF_GUID, HT_ORDER[], OBJ, LT_OSSET[], WA_FINAL, TT_DOC_FLOW[], TS_DOC_FLOW.
3. sort ET_DOC_FLOW[] by OBJKEY_A.
4. read table ET_DOC_FLOW into ES_DOC_FLOW with key OBJKEY_A = ES_ORDERADM_H-GUID BINARY SEARCH.
5. if sy-subrc = 0.
6. lv_doc = sy-tabix.
7. LOOP AT ET_DOC_FLOW INTO ES_DOC_FLOW FROM lv_doc.
6. if ES_DOC_FLOW-OBJKEY_A <> ES_ORDERADM_H-guid.
9. if ES_DOC_FLOW-OBJKEY_A NE ES_DOC_FLOW-REF_GUID.`
10. TS_DOC_FLOW = ES_DOC_FLOW.
11. APPEND TS_DOC_FLOW TO TT_DOC_FLOW.
12. ENDIF.
13. exit.
14. endif.
15. ENDLOOP.
16. endif.
17. endloop.

Sandra_Rossi
Active Contributor

Please use the CODE button to format your code so that it's shown in a more user-friendly format (colorized).

(as this feature don't display the line numbers, just add a mark like <==== to show which line is concerned)

matt
Active Contributor

Using SORT and BINARY SEARCH is so 1990s. In 2000 SORTED tables were introduced. Try using them.

View Entire Topic
michael_piesche
Active Contributor

You have a literal at the end of line 9. that is used to start a text. Since it is not ended, the syntax checker interprets it as if you want ot have the text span over more than one line.

Just get rid of it and the error will be gone. It is probably a copy+paste error, or you accidentally pushed that character button on your keyboard:

thank you so much Michael.

lakshminarasimhan_n4
Active Contributor
0 Kudos

thank you, very helpful for me, i was facing issue with comments.