on 05-20-2016 2:22 PM
Hi experts,
I want that my characteristic is mandatory only for 1 society.
Can you please help me to answer this request.
Thanks inadvance for your precious help.
BR.
Hi Wals,
I think you can use a Selection Condition to make your characteristic mandatory. See the following documentation link:
Selection Conditions - Variant Configuration (LO-VC) - SAP Library
In order to link the Selection Condition to a precise company code, you should also have a Reference Characteristic for the company code.
A Reference characteristic is a special characteristic linked to a standard table field, in this case it could be MARC-WERKS or VBAP-WERKS.
Reference Characteristics - Characteristics (CA-CL-CHR) - SAP Library
Then, in the Selection Condition, you should refer to that Reference Characteristic value.
For instance, if we have the Ref char as MARC_WERKS (linked to MARC-WERKS) and the company code for which we want to make the target characteristic mandatory is '1000', the Selection Condition will be:
MDATA $self.MARC_WERKS = '1000'.
Allocate the Selection Condition to the target characteristic.
I hope this could help.
If you need further info, please let me know.
Thanks and regards,
Flavio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If i understand well :
--> I have to create dependancy with type : Selection Conditions
--> In this dependancy, i found source code but what I have to write inside ?
=> IF IFLO-BUKRS = 'IA' ENDIF ??? (name of my society is IA)
After this, I will affect this dependancy to my characteristic.
But where i precise that the field will be mandatory ?
Thanks for your help.
Hi Wals,
Yes, you have to create a dependency (Selection Condition type).
It's code will be simply the following:
MDATA $self.IFLO_BUKRS = 'IA'.
Before, create the reference characteristic,
In the above example, I've called it IFLO_BUKRS (reference table field: IFLO - BUKRS), of course you can call it whatever you like.
Screen-shot for the reference char:
And yes, allocate the dependency to the target characteristic.
The mandatory valuation is automatically set via the dependency.
Hope this could help.
Thanks and regards,
Flavio
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.