CO-PA data is not properly posted in case of IDoc's.
WE03 to display the IDoc
BD87 re-process idoc
The IDoc type INVOIC02 permits the following additional account assign Profitability segment = PAOBJNR (segment E1EDP30 with qualifier 046)
This account assignments is placed into the E1EDP30 segment in the INVOIC02 IDoc, if transfer from customer invoice is active for the corresponding invoice type (Transaction VOFC).
WE19: Give IDoc number and execute
standard inbound: IDOC_INPUT_INVOIC_FI
Inbound FM : IDOC_INPUT_INVOIC_FI
check 'call in debugging mode'
selection 'In foreground after error' or 'in foreground'