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

Configuration file

Former Member
0 Likes
503

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

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
466

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

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

2 REPLIES 2
Read only

former_member222860
Active Contributor
0 Likes
466

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

Read only

mvoros
Active Contributor
0 Likes
467

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