Skip to Content
0
Former Member
May 07, 2010 at 12:24 PM

Create Return order

36 Views

Hi all,

I'd like to create return order at the same time of the creation of one standar order. Both linked.

Firstly, I go to CRMD_ORDER to create standar order and I've customized the following event:

Execution Time 1 Immediately

Priority 1

Object Name ORDER

Event SAVE

Attribute <*>

Function ZCREATE_RETURN_ORD

But this event is not executed. Others are executed and create both document correctly.

The problem is that they are not linked despite of I developed the code code for.

As the return order is created firstly, the standard order guid is not in BBDD, so when I add DOC_FLOW to the standard FM, the creation of ther Return order fails.

Do you know any point of the program or event that I could use to create a return order using an standar one at the same time?

Thanks in advance!