SAP Tutorials Blog

 

1> Blank-separated column list

2> No marking of abap varriables required

SELECT VBELN ERDAT ERNAM VKORG

FROM VBAK

INTO ls_VBAK

WHERE VBELN = ‘0000000003’.


New Open SQL Syntex :

1>Comma-separated column list

2>ABAP variables escaped with “@”

SELECT VBELN,ERDAT,ERNAM,VKORG

FROM VBAK

INTO @DATA(wa_VBAK)

WHERE VBELN = ‘0000000003’.

“@” symbol for escaping so-called host variables .

Host variable is means abap variable or constant inside the OPEN SQL statement.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com