Skip to content
Jacques Nomssi edited this page Jan 1, 2018 · 69 revisions

Welcome to the abap_scheme wiki!

Introduction to Scheme

ABAP Scheme

ABAP Integration

Interpreter

Class lcl_lisp_interpreter

  • method eval_repl( code ) throws an exception on errors
  • method eval_source( code ) catches exception

Optional: Console Interface

Interface lif_port

  INTERFACE lif_port.
    METHODS write IMPORTING element TYPE REF TO lcl_lisp.
    METHODS read IMPORTING iv_input        TYPE string OPTIONAL
                 RETURNING VALUE(rv_input) TYPE string.
  ENDINTERFACE.

Function Module Call

(let (( profiles
  (let ( (f3 (ab-function "BAPI_USER_GET_DETAIL"))  )
    ( begin (ab-set f3 "USERNAME" (ab-get ab-sy "UNAME") )
              (f3) (ab-get f3 "PROFILES")  ) )
    ) )
 (let ((profile (ab-get profiles 1)) )
            (ab-get profile "BAPIPROF" )  )
Clone this wiki locally