ABAP native SQL cursor -


I'm trying to write some basic SQL abap but there are some problems.

Here's my code:

  method GET_SOMEDATA data: Elti_tebl tape table / BIT / Tisiitiomiar, C1 Type / BI 0 / Tisiisomiar. Statistics: Y, client type / Bi 0 / Oaisiotiomaar, Tiaipiiarstiakstisac, Tistimdi type Arstimtimdi, Tistielji type Arstiakstielji, heralded the end of Y & A Aksisi Open C1 to SQL select * FROM / BI0 / TCUSTOMER where customer '22 9 'ENDEXEC . Tax. In Aksisi SQL FETCH NEXT C1: WA- customer ,: WA-TXTMD * Error: CX_SY_NATIVE_SQL_ERROR ENDEXEC if sy-subrc = 0. * & lt; Process Data & gt; end if. ENDDO EXEC SQL C1 ENDEXEC endmethod  

"After calling FETCH next c1: wa-Client,: w-txtmd" I'm getting a "CX_SY_NATIVE_SQL_ERROR" - I feel that nothing is right with my cursor - But I have no information. Some help would be great. Do not use

Rule 1: Basic SQL.

Rule 2: Do not use the original SQL

Rule 3: Do not use the original SQL.

...

Rule n: Don Resident SQL can not be used.

Rules n + 1: Not Seriously

Rules n + 2: If you really want to do, then you have to remember that customer manual.

Rules n + 3: Do not use SELECT * in the original SQL, always choose fields specifically with names. Reason: You can not fret ... fields are in fields but should be aware that the sequence, number and data types of targeted areas match. If your table / BIT / TCTETEMEM is not only typed in two fields / BIT / OIIITOMER and RSTMTMD, then this is probably due to the exception.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -