Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Read profile parameter in ABAP

How could I read out a profile parameter such as zcsa/installed_languages in ABAP?

Is the a function I could use?

regards HT

Tags:
replied

Here is one way...

REPORT  zrich_0001.

types: begin of tpar,
       status type sy-index,
       name(60) type c,
       user_wert(60) type c,
       default_wert(60) type c,
       end of tpar.

data: par_usub type table of tpar with HEADER LINE.
data: par_sub  type table of tpar  with header line.

call 'C_SAPGALLPARAM' id 'PAR_USUB' field par_usub-*sys*
                      id 'PAR_SUB'  field par_sub-*sys*.

read table par_usub with key name = 'zcsa/installed_languages'.
if sy-subrc = 0.
  write:/ par_usub-name(30), par_usub-user_wert(20),
          par_usub-default_wert(20).
endif.

REgards,

Rich Heilman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question