on ‎2011 May 18 3:23 PM
Hi Friends,
I am working on an application related to EH&S. I need to create a new environment parameter in EH&S for the Email ID and send the mail from program to that Email ID assigned to the environment parameter. I do not know any thing about the environment parameters in EH&S. Kindly guide me in doing this.
Thanks in advance,
Ram
Request clarification before answering.
Hello Ram,
EH&S Environment parameters are stored in DB table TCGENV.
You can use the FMs C1I0_TCGENV* to read, update and create EH&S Environment parameters.
Please keep in mind that this is a customizing table and therefore entries should only be updated and read.
You should create the parameter manually in you DEV System and transport it to QA and PROD....
Hope this helps
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ram
regarding "environment parameters" there might be one "disadvantage". If you would have the need to change the parameter you need a transport. May be there are other useful options which could be of interest:
As you may be now you can store user dependent parameters on the level of the SAP user. One example is:
You (as the user) can select a property tree. This selection of a property tree can be stored on userid level (therefore if you log off and log on once again the selection property is your "default" one,)l. Regarding this option you do not need a customizing parameter. The "cons" of this options are:
a.) you must prepare this "parameter" like a constant in your program to be read from user profile
b.) you should make sure that the user can only select from a number of values or if the user is using a value which is not allowed you need some "error" handling routine
So may be this option is not so "robust" but is used very often in SAP and in SAP EH&S.
With best regards
C.B.
Hello Ram
I have no idea what you would like to achieve. In any case. two important customizing activities exists:
a.) define environment parameter
b.) define user exits
If you check the delivered user exits (e.g. output variant EXCEL) and take a look in the code of the function module you will find examples of using environment parameters.
Edited by: Christoph Bergemann on May 19, 2011 9:38 PM
Edited by: Christoph Bergemann on May 19, 2011 9:40 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.