Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 03, 2017 at 12:23 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

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

    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

    Add comment
    10|10000 characters needed characters exceeded