cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent data to be updated in COPA?

Former Member
0 Kudos

Hi,

We are having a requirement where we do not want any data to be shown in COPA for 2 distribution channels.

can we configure this in COPA?

Thanks & Regards,

Sayujya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Pl. Refer to my reply

iklovski
Active Contributor
0 Kudos

Hi,

That's possible with enhancement COPA0005: ask your ABAP team to help you on this. You have to check parameter 'E_INIT' = 'X' in this exit for documents which you don't want to post to COPA. (see note 397298).

Regards,

Eli

Former Member
0 Kudos

Thanks Eli..

I will certainly take help from my ABAP team for this. one more query is there which is not related to COPA but to FA. please if you could clarify..

Hi,

We are implementing BADI: FAA_DC_CUSTOMER for changing difference occurring through multiple shift depreciation.

scenario is as follows:

Depreciation rate in multilevel method - 4.75%

Variable depreciation portion in asset master - 59.75%

Shift Factor in Assets for

1 shift = 1

2 shifts = 1.94

3 shifts = 2.97

now if we calculate for 3rd shift depreciation rate come to 10.341111 i/o 10.34% hence the difference to the extent of 0.001111 is getting posted as depreciation account same thing is happening for 2 shift dep. also where rate is 7.42% in actual

To counter this we have made following changes in said BADI but not system is not at all posting the depreciation for this asset nor it is showing me in test run.

Any further customisation is required for this??

BADI:FAA_DC_CUSTOMER

if_ex_faa_dc_customer~set_parameter.

DATA: wa_hlpseg TYPE faa_dc_s_hlpseg,

wa_parameter TYPE faa_ee_s_parameter.

IF sy-uname = 'HP.MAHESH'.

BREAK-POINT.

ENDIF.

LOOP AT its_hlpseg INTO wa_hlpseg.

MOVE-CORRESPONDING wa_hlpseg TO wa_parameter.

IF wa_hlpseg-shift_fact = '2.97'.

wa_parameter-percent_stated = '10.34'.

wa_parameter-amount_factor = '1'.

ELSEIF wa_hlpseg-shift_fact = '1.94'.

wa_parameter-percent_stated = '7.42'.

wa_parameter-amount_factor = '1'.

ELSEIF wa_hlpseg-shift_fact = '1'.

wa_parameter-percent_stated = '4.75'.

wa_parameter-amount_factor = '1'.

ELSE.

wa_parameter-amount_factor = '0'.

ENDIF.

APPEND wa_parameter TO ct_parameter.

CLEAR: wa_hlpseg, wa_parameter.

ENDLOOP.

ENDMETHOD.

Thanks & Regards,

Sayujya

iklovski
Active Contributor
0 Kudos

Sorry, I'm not that expert in FA and its BADIs. You'd better ask this on FI forum.

Former Member
0 Kudos

Thanks any way...

Former Member
0 Kudos

Hi Eli,

We have made these changes but now on production server some of the documents have got posted even if the enhancement is implemented.

we wanted to prevent data for two of out distribution channel to be updated in COPA hence following code has been implemented.

MOVE-CORRESPONDING st_ce12000 TO e_item.

CLEAR v_flag1.

LOOP AT t_accit.

IF ( t_accit-vtweg = '93' OR t_accit-vtweg = '94' ).

v_flag1 = 'X'.

EXIT.

ENDIF.

ENDLOOP.

IF v_flag1 = 'X'.

e_init = 'X'.

ENDIf.

Pl. suggest..

Regards,

Sayujya

Former Member
0 Kudos

Hi,

Did you de-bug by placing a break-point to see why this logic is not working for some documents? You may want to add Sales org also in addition to Dist.channel.

Hope this helps.

Former Member
0 Kudos

Hi Pradeep,

Yes ! we did check by placing break point but whenever I tried to debug it works fine and only some of the documents got escaped.

Regards,

Sayujya