Tuesday, July 12, 2011

Using external program variables in your program

when your program requires external program variables which is not in scope of your program, you can use this code to acheive.

DATA : v_auth(22) TYPE c VALUE '(SAPMV45A)XFPLT-AUTWV'.

FIELD-SYMBOLS: <fs_auth_amt>.

ASSIGN (v_auth) TO <fs_auth_amt>.

IF sy-subrc = 0.
" do processing here...
ENDIF.

No comments: