2009 Mar 19 5:38 AM
I have a requirement to change the value of a field based on the client iam logged into. I dont want to hardcode this in ABAP. Is there a configuration file with tags specific to the client. To give an example of my problem.
Sandbox : Folder location is - e:\sap\usr\profiles
DEV : Folder location is - k:\sap\dtr\users
There are many more such fields whose value depends on the client. So can someone please help me on this.
Thanks in advance.
Regards,
Girish
2009 Mar 19 6:12 AM
Hi,
you can create a client dependent table with structure KEY, VALUE and implement simple FM for getting parameter based on KEY. It's pretty simple solution.
PARAMETER_A | VALUE_A
PARAMETER_B | VALUE_B
CALL FUNCTION 'Z_GET_PARAM'
EXPORTING
i_key = 'PARAMETER_A'
IMPORTING
e_value = l_variable.
So you will have to maintain this table in every client with correct values.
Cheers
Hi,
you can create a client dependent table with structure KEY, VALUE and implement simple FM for getting parameter based on KEY. It's pretty simple solution.
PARAMETER_A | VALUE_A
PARAMETER_B | VALUE_B
CALL FUNCTION 'Z_GET_PARAM'
EXPORTING
i_key = 'PARAMETER_A'
IMPORTING
e_value = l_variable.
So you will have to maintain this table in every client with correct values.
Cheers
2009 Mar 19 6:06 AM
Hi,
If you've access to the Oracle database tables, u can find this entry in the V$parameter table
execute this query at the db level, u'll find the path
select * from v$parameter where name like 'utl%'I think, this entry is registered in the file at DBS folder.
Hope this helps you
thanks\
Mahesh
2009 Mar 19 6:12 AM
Hi,
you can create a client dependent table with structure KEY, VALUE and implement simple FM for getting parameter based on KEY. It's pretty simple solution.
PARAMETER_A | VALUE_A
PARAMETER_B | VALUE_B
CALL FUNCTION 'Z_GET_PARAM'
EXPORTING
i_key = 'PARAMETER_A'
IMPORTING
e_value = l_variable.
So you will have to maintain this table in every client with correct values.
Cheers
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |