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

Query on ABAP profile parameter attributes

former_member699182
Participant
0 Likes
2,229

Hi,

I would like to check in my ABAP report program if the Current value field of the Display Profile Parameter Attributes under RZ11 is 0 or not.

I googled and found about the table TPFYPROPTY which has the profile parameters.

But under what name is the current value field in?

Also, would like to know if i can use a select query to read directly from the table.

I am a newbie to ABAP development.

Please help.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,724

Hi, Gita!

You can use FM 'RSAN_SYSTEM_PARAMETER_READ' to read system profile parameters (while testing it in SE37, don't forget to switch on checkbox uppercase/lowercase letters).

Hi,

I would like to check in my ABAP report program if the Current value field of the Display Profile Parameter Attributes under RZ11 is 0 or not.

I googled and found about the table TPFYPROPTY which has the profile parameters.

But under what name is the current value field in?

Also, would like to know if i can use a select query to read directly from the table.

I am a newbie to ABAP development.

Please help.

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,725

Hi, Gita!

You can use FM 'RSAN_SYSTEM_PARAMETER_READ' to read system profile parameters (while testing it in SE37, don't forget to switch on checkbox uppercase/lowercase letters).

Read only

0 Likes
1,724

Hello Nikolay,

Thanks for the reply. But what would be the field i_name and field e_value that I should pass to C_SAPGPARAM? I would like to retrieve the Current Value field only.

Read only

0 Likes
1,724

Hi, Gita!

I_NAME is your profile parameter name, E_VALUE will be returned with current value of the parameter you need.

You haven't specified what exactly parameter you need, you can view all of them in report RSPARAM.

Read only

0 Likes
1,724

Thanks a lot. Its clear now. I wanted it for rdisp/btctime.

Just curious, are the attributes available in a table and can i use a select query to read it directly from the table instead of calling a FM?

Gita

Read only

0 Likes
1,724

You are welcome!

If I remember right, changed values of profile parameters are stored in text files somewhere around /usr/sap/<SID>/SYS/profile/ on application server. So, low-level function is used to fetch them. And the table you mentioned seems to have only descriptions of parameters, min/max values of them and so on.

Read only

former_member699182
Participant
0 Likes
1,724

REPORT  ZGUITEST.

PARAMETER: PNAM(20) TYPE C.

DATA: CVAL TYPE I.

CALL 'C_SAPGPARAM'
  id 'NAME'  field PNAM
  id 'VALUE' field CVAL.


WRITE CVAL.

Am i doing something wrong here. The CVAL returns 0 whereas I have 60 for rdisp/btctime when i see in RZ11.

Please help.

Read only

0 Likes
1,724

I wouldn't advise you to do a straight call to C_SAPGPARAM. There is an above-mentioned wrapper for you :

DATA lv_name  TYPE spfpflpar-parname.
DATA lv_value TYPE spfpflpar-pvalue.
 
lv_name = 'rdisp/btctime'.

CALL FUNCTION 'RSAN_SYSTEM_PARAMETER_READ'
   EXPORTING
     i_name     = lv_name
   IMPORTING
     e_value    = lv_value
   EXCEPTIONS
     read_error = 1
     OTHERS     = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

It works fine for me.

Read only

0 Likes
1,724

Thanks a lot for the helpful answer.