on 05-23-2011 2:51 PM
Dear experts,
I need to write a procedure which will do thw following job.
Ex: I have 2 chars. If I change the value of char1, I want the procedure to clear the value of char2.
Actually what I want to do isI have created a variant table and dependency net. Char1 is key, and char2 is the dependent char. In the first trial if I change the char1 it filters the values of char2. When I select a value for char2 and then chande the value of char1 I want the system to refresh the values of char2.
Edited by: ahmet hasan on May 23, 2011 4:06 PM
Hi,
If you want to limit values to be selected in CHAR2 depending on what user selects for CHAR1, you have to put PRECONDITION for each value of CHAR2 with code like CHAR1 = 'X' OR CHAR1 = 'Y'
So you'll have e.g.
CHAR1
- X
- Y
- Z
CHAR2
- 1
- 2
- 3
Now if you want values 1 and 2 available for selection in CHAR2 if X or Y is selected for CHAR1 you have to create two pre-conditions:
First for CHAR2, value 1, code: CHAR1 IN ('X', ' Y')
Second for CHAR2, value 2: CHAR1 IN ('X', ' Y')
Similarly you can extend your conditions further
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I reset a value. What is the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ahmet,
If the value has an author as User (means value is set by user) than you reset the value by a procedure or any sort object dependency. But If the value is set by a procedure or has an author as default , the value can be changed. In your case I assume after defining values for char2, by variant table you set a value manually ? If so the it is not possible to reset the value.
Hope this information helps.
Thanks
Amber
SAP Global Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.