on 2014 Oct 01 2:50 PM
Dear Colleagues,
I have two questions about field's dependency in SAP Sourcing 10.
1. Is it possible to make a field which is depended on document's phase? For example, in phase "A" field will be non-editable and hidden. After changing phase to "B", this field will become editable.
2. Is it possible to make a field which is depended on the other field? For example, we have two extension definitions, both value list type. In the first of them we would like to have only two possible options to choose from. The values in the second extension field should be depended on the choice we made in that first field.
Thanks in advance,
Przemyslaw
Request clarification before answering.
Hi Przemyslaw,
Related to your queries you can do as follows,
1) Yes you can make a field non-editable depending on the documents phase through
Class IapiDocumentLockManager as below
IapiDocumentLockManager.lockField(IapiSessionContextIfc session, IBeanIfc bean, java.lang.String attributeId);
2) Through script you can set the values in the second extension field depending on the choice you made in the first extension.
Hope this helps!
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
Thanks for your reply.
I have one more question. In my previous post I have asked about making field properties dependable on document phase. I didn't mean to make it non-editable - that was just an example. Is it also possible to change other field properties (obligatory, changing field from non-editable to editable, hiding some fields etc.)?
Thanks in advance,
Przemyslaw
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.