Sometimes names of data elements look rather cryptic. So i prefer inline declarations like
DATA(lv_sap_object) = CONV toav0-sap_object( 'PRINTDOC' ).
instead of
DATA(lv_sap_object) = CONV saeanwdid( 'PRINTDOC' ).
It works. But I never seen declarations like that in the official reference or demos. Is it allowed?