cancel
Showing results for 
Search instead for 
Did you mean: 

Customer number not auto derived by COPA in F-02

sanjay_ram
Participant
0 Kudos
797

Hi,

During F-02 when i post an AR invoice i have entered the customer number using posting key 01 but the COPA segment is not loading the customer number to the COPA field customer. Is there a way to do this using enhancements?

If i use enhancements how can i create the logic to do this?

View Entire Topic
coleti
Active Contributor
0 Kudos

Dear Sanjay,

You should check the Characteristic Derivation Rules in CO-PA Customizing: Transaction Code KEDR.

It´s really common in to have assigned the customer master data to the Sales Customer... since you are posting directly to accounting/co-pa you shoul have a derivation rule for that.

If derivation rule or table lookup is not sufficient to you, you can use the Enhancement adding your own ABAP Logic. Usually the ABAP code is in exit EXIT_SAPLKEDRCOPA_001, Enhancement COPA0001.

BR,

Gabriel Coleti

sanjay_ram
Participant
0 Kudos

Hi Gabriel,

Try with FB70 the customer number will not be available in the COPA structure, without the customer number you cannot even write an enhancement referencing the COPA structure.

coleti
Active Contributor
0 Kudos

Sure, it´s not the same line itme: the offset line where you make the P&L posting to CO-PA, you don´t have the customer master data.

The unique way I see possibility on that is using the Derivation Enhacement: COPA0001 - EXIT_SAPLKEDRCOPA_001... but to bring the accounting information you should read the memory. It´s not standard from SAP to deliver to this exit all the other line items(mainly balance sheet line item). So you will have to bring from memory the information it´s in the screen of FB70 or any other to design what you want. You can ask some ABAP support on that.

BR,

Gabriel Coleti

shruthi_nr
Explorer
0 Kudos

Hi Sanjay,

I am also facing same issue for FI Postings, could you please share your inputs that would help me.

I tried using standard program variable (SAPLFACS)VF_DEBI-KUNNR in exit EXIT_SAPLKEDRCOPA_001, able to access value. But this is not cleared anywhere, so subsequent posting if i try to post only for GL lines from FB01 this value is copied to COPA characteristics which is not correct.SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }.L0S55 { color: #800080; }.L0S70 { color: #808080; }

Thanks,

Shruthi