SAP EXEC LITERAL ABAP Statements



Get Example source ABAP code based on a different SAP table
  



ABAP_EXEC_SQL - Literals

ABAP_SYNTAX
... ${ $[+$|-$]n$[n$[n$[...$]$]$]
$| 'c$[c$[c$[...$]$]$]' $| `$[c$[c$[c$[...$]$]$]$]` $} ...

What does it do?
Appropriate literals can be specified in ABAP syntax at suitable read positions in embedded Native SQL statements.
The literal operator cannot be used in static Native SQL.



Latest notes:

As it is common in ABAP, trailing blanks are truncated in text field literals.
ABAP_HINT_END



Example ABAP Coding

Reading of a row from the database table SPFLI using static Native SQL. The required row is specified using literals. The target range of the INTO clause is specified as a host variable. If a row was found, sy-subrc is set to 0, otherwise it is set to 4.
ABEXA 00246
ABAP_EXAMPLE_END

Return to menu