on 07-18-2015 4:48 PM
Hello,
http://scn.sap.com/docs/DOC-40272
I am trying to apply what is explained in this document regarding the use of variant tables in dependencies.
I could not apply it to my case because I have sometimes empty values.
Example:
CH_KEY / CH_1 / CH_2
1 / A / A
2 / A / B
3 / *empty* / A
The error I get from SAP is "No value could be inferred from table xxx: dependency yyyy"
Somebody would have an idea how to adapt the code for this kind of configuration ?
The code called in the dependency is the following:
table V_XXX (
CH_KEY = $self.CH_KEY,
CH_1 = $self.CH_1,
CH_2 = $self.CH_2 )
Thanks a lot
Benjamin
As per my understanding , variant table can’t work with blank value, if you want to infer
a value to non-key characteristics from a variant table, you need to specify a
value for all characteristic of variant table.
3 / *empty* / A
for condition like above, if there are chances of having one of the characteristic
blank or not specified by user, for those instances instead of using variant
table use simple procedure to setup value like below, and cover other possibility’s
where you have value for both characteristic by using variant table.
$self.CH_2 = 'A' if $self.CH_KEY = '1'
or
Instead of one use two tables & two procedures to infer value for these two
characteristic You can also use , a dummy value when you don’t have a value
to fill up, like below.
Key | Char1 | Char2 |
1 | A | B |
2 | A | A |
3 | BLANK | A |
4 | A | BLANK |
You need to ignore dummy value “BLANK” for further processing
for the characterstic.
Check if any of option suits you.
Thanks
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ritesh for your suggestions. I will go with a dummy value, I did not want at the beginning to be sure business will maintain the table correctly.
It would be great to have this information somewhere in the help on Variant Tables:
http://help.sap.com/saphelp_46c/helpdata/en/92/58c5b3417011d189ec0000e81ddfac/content.htm
User | Count |
---|---|
103 | |
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.