cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Field's dependency in Sourcing 10

Former Member
0 Kudos
206

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member207877
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

former_member89217
Contributor
0 Kudos

Page customizations on fields can me made dependent on conditions within the document at load time. Page customizations are not dynamic in that when the current UI changes it will react to the change. The document would react only on reload.

Gary

Answers (0)