Skip to Content
avatar image
Former Member

how to copy from standar field to extension with modify event script

Hi, We need to copy value from standar field (purchasing unit) to an extension field in order to add it to WC:Invoicing Supplier/Invoice Entry. How is that script?. . We have SAP Cloud Application Studio SDK but still havent do this kind of things.Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 14, 2017 at 11:49 AM

    Hello Gerardo,

    In general you need to find the Business Object (BO) and the node to which the element belongs to.

    Second, if this BO is released in the Public Solution Model (PSM) and the BO is marked as extendable you can create an Extension to this BO in the SDK.
    Next you add an AfterModify script in which you assign the standard field to an extension field.

    Can you elaborate a little bit about the "WC:Invoicing Supplier/Invoice Entry":

    • Shall the element / value simply appear in the Invoice?

    You know that you can use Process Extension Scenarios to have an automated transfer of the element form node to node / query / ... including the values.

    . Horst

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Gerardo,

      A Deployment Unit is - as by its name - something which need to be deployed.

      So, you cannot predict - at development - if the resp. DU is deployed or not.

      As consequence we cannot ensure if this association is able to work or not. Therefore you nee to annotate this association with [CrossDeplyomentUnit]

      . Horst