Skip to Content
avatar image
Former Member

Information of preceding document at runtime

Hi there,

I want to get the information of a custom field of my preceding document at runtime in order to move it to the follow up document.

At the moment I am totally lost where to finde this information. My breakpoint is in the getter class of my z-attribute in the follow-up document. Once I am there I do not finde my way to the previous doc information.

Any hint will be helpful.

Or is there a way to enhance the copy controle?

Best regards

Thea

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 29, 2015 at 05:04 PM

    Hi there,

    thank you for all your help.

    In fact after I've implemented a special copy routine in a z-BADI incopy controle I also hat to work on the follow up activity as the z-fields would not save. The reason was that the z-field component was not created at runtime, so I had to create the model node first and afterwards it saved the z-field content as well.

    However this was also the change that made the "simple" copy control work. I've deactivated the Z-BADI to test it, and the BADI had no effect. So the whole problem was at the follow-up document.

    Best regards and again thank you for your help,

    Thea

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2015 at 02:57 AM

    Hi Thea,

    Copy your zfield's value by implementing CRM_COPY_BADI.

    Regards,

    Bhanu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2015 at 12:10 PM

    Try with copy control configurations in SPRO and then the Copy_control_badi,

    I guess we can control which fields are need to be copied to the next document.

    Regards,

    Logu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Sorry, I just realized that I need to implement the methode related to the context node where my z-field is added. Im my case this is CUSTOMER_H.

      Regards,

      Thea