cancel
Showing results for 
Search instead for 
Did you mean: 

line item profitcenter not able to modifi in account assignment tab in ECC6

Former Member
0 Kudos

Hi ALL,

After upgardation to ECC6 in sales order va02 we are not able to change the profit center for line item in account assigement.

i have comapred my old system and new system the program FV45PF0C_COBL_SEND_PBO_VBAP proftcenter modifiction code is differs in old system and new system(ECC6).

The below code in ECC6

Profitcenter

int_coblf-fdnam = 'PRCTR'.

IF t180-trtyp NE chara AND

da_iaom NE 0.

if xvbup-lfsta NA 'BC' AND

*{ REPLACE SEPK900009 1

*\ xvbup-fksaa NA 'BC'.

xvbup-fksaa NA 'C'.

*} REPLACE

int_coblf-input = char1.

endif.

if int_coblf-input = char1.

loop at xvbfa where

posnv = vbap-posnr and

stufe = char00 and

( vbtyp_n = charl or "Lastschriftsanforderung

vbtyp_n = chark or "Gutschriftsanforderung

vbtyp_n = charo or "Gutschrift

vbtyp_n = charp ). "Lastschrift

if vbak-vbeln = xvbfa-vbelv.

clear int_coblf-input.

exit.

endif.

endloop.

endif.

if int_coblf-input = char1.

this below code is for old system which i can chage the profit center after creation of debit and credit memo and billing

I_KOKRS =

i_bukrs = t001k-bukrs

i_display_mode = da_mode

importing

e_screen_active = int_coblf-active

e_screen_input = int_coblf-input.

if int_coblf-active eq char1.

int_coblf-fdnam = 'FKBER'.

int_coblf-output = char1.

append int_coblf.

endif.

clear int_coblf.

endif.

  • Profitcenter

int_coblf-fdnam = 'PRCTR'.

if t180-trtyp ne chara and

da_iaom ne 0 and

xvbup-lfsta na 'BC' and

*{ REPLACE FEDK904445 1

*\ xvbup-fksaa NA 'BC'.

xvbup-fksaa na 'C'.

*} REPLACE

int_coblf-input = char1.

endif.

int_coblf-output = char1.

int_coblf-active = char1.

append int_coblf.

clear int_coblf.

  • Projekt

int_coblf-fdnam = 'PS_PSP_PNR'.

int_coblf-output = char1.

perform feldauswahl_status(sapmv45a) using 'VBAP-PS_PSP_PNR'

da_status.

i have chcked in SAP Note 1062986. and 893699.

Is there any alteranative solution to over come this problem.

thanks in advance

kumar.k

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In sales document profit center is come from material master, So when you creating sales document it will appear still you can change it.

But if you are creating sales document with any reference document then what ever profit centre in reference document that can not be changed.

Example - your quotation line item with profit centre XYZ, now you created sales order with reference to this quotation and you want to change profit centre is sales order as ABC instead of XYZ, then system will not allow you.

Even if you tried to change it will reset old one.

Even if you created sales order >> delivery >> invoice

And now you want to change it in sales order it will not allowed because subsequent documents already created.

Kapil