cancel
Showing results for 
Search instead for 
Did you mean: 

COPA Document

Former Member
0 Kudos

Our requirement is while posting billing document COPA document should not be generated. But while posting billing document, COPA document is getting generated. How to avoid this?

Accepted Solutions (0)

Answers (2)

Answers (2)

ajaycwa1981
Active Contributor
0 Kudos

Hi Paul,

If you need exit and sample code, here it is.. But the question is why wud u like to do this?

Using this code, you can supress COPA doc where Distribution channel = "45".... Modify it accordingly

Exit COPA0005

*******************

data : wa_ACCIT type ACCIT.

if I_ERKRS = 'XXXX'. (Your op Concern Code)

read table T_ACCIT into wa_accit with key VTWEG = '45' .

if sy-subrc = 0.

E_INIT = 'X'.

endif.

endif.

********************

Ajay M

Former Member
0 Kudos

Hi,

check this link:

What I don't understand, why did you set up CO-PA customizing but don't want to post billing docs to CO-PA (as this is one main reason to use CO-PA...).

Best regards, Christian