2014 Oct 29 5:30 AM
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.
2014 Oct 29 5:51 AM
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, 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).
2014 Oct 29 5:51 AM
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).
2014 Oct 29 6:00 AM
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.
2014 Oct 29 6:04 AM
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.
2014 Oct 29 6:10 AM
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
2014 Oct 29 6:17 AM
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.
2014 Oct 29 7:16 AM
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.
2014 Oct 29 7:24 AM
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.
2014 Oct 29 7:50 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |