Skip to Content
0

Deployment unit of script file and the deployment unit of the function don't match.

Mar 31, 2017 at 10:03 AM

90

avatar image
Former Member

Hi,

I have created extension with "BusinessPartner" BO. In 'AfterModify' event I called my custom library function named 'DQF_Validation'.

It shows the error "Deployment unit of script file and the deployment unit of the function don't match."

My custom BO in Deployment unit 'CustomerRelationshipManagement' and BusinessPartner in Deployment unit 'Foundation'.

I have used [CrossDeploymentUnit] with association to BusinessPartner.

The code of my custom BO is as follows,

[DeploymentUnit(CustomerRelationshipManagement)] businessobject DQF_Contact

{

[AlternativeKey] element zcontactID: BusinessPartnerInternalID; [Label("DQF Status")] element zhead_stat: LANGUAGEINDEPENDENT_EXTENDED_Text;

node zstatus_tab[0,n]{

[Label("DQF Status")]element zstatus : LANGUAGEINDEPENDENT_EXTENDED_Text; [Label("Field")]element zname: LANGUAGEINDEPENDENT_EXTENDED_Text; [Label("Attribute")]element zcomment: LANGUAGEINDEPENDENT_EXTENDED_Text; [Label("Weighting")]element weighting: WeightingCode; action fetchData;

}

[CrossDeploymentUnit]association ToContact to BusinessPartner;

Please help me , how could I use my custom function in standard object extension event.

Thanks & Regards.

Swati.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Horst Schaude
Apr 03, 2017 at 12:23 PM
0

Hello Swati,

Where is your "AfterModify" script placed: in the BusinessPartner or DQF_Contact?

IMHO the call from DQF_Contact should be possible.

HTH,
. Horst

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Horst,

Thanks for your response.

"AfterModify" script placed in BusinessPartner extension. I want to call my custom function 'DQF_Validation.absl' which in a custom Library 'DataQualityCheckMethods.library' in "AfterModify" script.

The function call in AfterModify script is like: DataQualityCheckMethods.DQF_Validation(this.InternalID, "1");

It shows error: Deployment unit of script file and the deployment unit of the function don't match.

As I am new in CAS, I don't know what is 'IMHO'. Please explain me or give any link to study.

Thanks and Regards,

Swati

0

Hello Swati,

The BusinessPartner BO is placed in the DeploymentUnit (DU) Foundation, which is placed below the DU CustomerRelationshipManagement.

Therefore you can not call something (be it a CustomerReuseFunction, an action of a Business Object, ...) placed in a higher DU. :-(

Is it possible to call your function from the Business Object DQF_Contact?
In this case the DU would match. :-)

Bye,
. Horst

PS: IMHO means "in my honest opinion"
You may find more following this link.

1
Former Member

Hi Horst,

Thanks for your reply.

Creating library function ,In Library Function Wizard has an option check box "Write Access/Write-Enabled" and Deployment unit of function can be specified. If I specify "Foundation" as deployment unit of the function. Then the function should be called from BusinessPartner BO. Pls explain me the "Write-Enabled" option and how it is work?

Bye

Swati

0
avatar image
Former Member Apr 04, 2017 at 07:19 AM
0

Hi Horst,

Thanks for your response.

"AfterModify" script placed in BusinessPartner extension. I want to call my custom function 'DQF_Validation.absl' which in a custom Library 'DataQualityCheckMethods.library' in "AfterModify" script.

The function call in AfterModify script is like: DataQualityCheckMethods.DQF_Validation(this.InternalID, "1");

It shows error: Deployment unit of script file and the deployment unit of the function don't match.

As I am new in CAS, I don't know what is 'IMHO'. Please explain me or give any link to study.

Thanks and Regards,

Swati

Share
10 |10000 characters needed characters left characters exceeded