Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reading system profile parameters programatically in ABAP

ErickT
Explorer
0 Likes
1,777

Hi,

Does anyone know how to read system profile parameters like icm/host_name_full using ABAP?

Thanks in advance!

Regards

Erick

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
1,109

You can use the following code to get the values. Really it is just reading a file which is stored on the application server.



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*.


loop at par_usub.
  write:/ par_usub-name(30), par_usub-user_wert(20),
          par_usub-default_wert(20).
endloop.

Regards,

RIch Heilman

Read only

former_member194669
Active Contributor
0 Likes
1,109

hI,


try with fm RFC_SYSTEM_INFO

aRs

Read only

Former Member
0 Likes
1,109

Check with Program : RSPARAM

Table would be TPFYPROPTY

also check with other tables too

if needed see other tables with USR* and AGR_*

see in the table USL* tables

Thanks

Seshu

Read only

Former Member
0 Likes
1,109

Hi.. check table :<b>TPFYPROPTY</b>

It contains all parameters and their description..

Reward if useful

regards

Pradeep