cancel
Showing results for 
Search instead for 
Did you mean: 

Shipment cost item, cost center problem

Former Member
0 Kudos

Hi all,

I have a problem regarding determining cost center in shipment cost item.

In my current case, i have a need to calculate the shipment cost item using delivery item because of different price for different division of material.

the problem arise because of the cost center for each division of material are different.

As far as i know, the cost center have one to one relationship with the shipment cost item.

So my question are:

- With the variation of division in the deliveries i included in the shipment document, how am i able to differentiate the cost center for each division in the shipment cost document?

or maybe how so that the sub-items in the shipment cost item are division specific.

Thank you and Regards,

Marufat

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi!

Step 1:

Go to tcode: t_56 and change your Cost Item - Cost Distribuition to 'C' (Delivery Item). With this change the costs will be distributed among the delivery itens, you can see this being done on the table VFKN.

Step 2:

Use BADI LE_BADI_SCD_ACCTG method BEFORE_CHECK.

Then use something like I have used on a project.

ZLE_C06 is a custom table for account determination.

SELECT SINGLE SAKTO KOSTL

INTO WA_ACCTG

FROM ZLE_C06

WHERE LFART = WA_LIKP-LFART

AND FKPTY = I_SCD_ITEM-VFKP-FKPTY

AND WERKS = ZWERKS_I.

C_VFKN-SAKTO = WA_ACCTG-SAKTO.

C_VFKN-KOSTL = WA_ACCTG-KOSTL.

Looks easy

Have fun!

Best Regards

Américo Borba