cancel
Showing results for 
Search instead for 
Did you mean: 

Information of preceding document at runtime

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bhanu & Lok,

Thank you for your help already.

I've implemented the copy_control_badi but it does not contain my z-field. Do I have to create the z-field method myselve?

Regards,

Thea

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Thea,

Copy your zfield's value by implementing CRM_COPY_BADI.

Regards,

Bhanu

Former Member
0 Kudos

Where do I implement the BADI? At the preceeding Doc?

Best regards,

Thea

Former Member
0 Kudos

Yes, this BADI will be activated while creating followup documents.

Regards,

Bhanu