Skip to Content
author's profile photo Former Member
Former Member

Update value fields for posted copa document

Hi,

We want to update Transportation Cost Value Field from Z table logic to posted co-pa document at the end of the month. I know that we need to use BAPI_COPAACTUALS_POSTCOSTDATA but for that do we also need to use T.code to update the field.

Please advise.

Regards,

Varsha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 02, 2013 at 04:15 PM

    Hi Varsha

    If your requirement is to update the Transportation cost based on Qty Sold, you can do it using Standard functionality itself.. You don't need to develop the program

    You have the option of COPA costing sheet. Set up a COPA costing sheet and your Val Strategy in KE4U to use the costing sheet.. The costing sheet is nothing but a replica of SD pricing procedure.

    You can also use COPA exit COPA0002, to do the calculation and update the desired value field. In order to trigger the exit, you need to add a line in Val Strategy KE4U, to use the user exit..You can read SAP help for the same

    With this, you can update trans cost at the time of original COPA doc itself

    Br, Ajay M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2013 at 05:42 AM

    Hi,

    I don't think you have to use BAPI for that.

    You can use transaction KE27 - Periodic Revaluation.

    If the logic is simple you can utilise CO-PA Costing Sheet (you define your Z table values as conditions)

    If more complex you can use user exit EXIT_SAPLKEAB_001.

    Config transaction KE4U.

    Regards,

    Szymon

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Varsha,

      Just out of interest, why you need to update existing CO-PA document?

      I'm afraid SAP as a rule does not allow to change already posted actual documents (with the exception of some text fields).

      If you post additional document with freights costs only you can always combine them in a report.

      Thnaks,

      Szymon

  • Posted on Dec 02, 2013 at 04:00 PM

    Hello Varsha,

    1. Set up the flow for new value field - Config, Valuation Table, User Exit

    2. Reverse the source document and re-post it, which should lead to updation of value field.

    In case document cannot be reversed at this stage, then also recommend to drop the idea of updating the value field now.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.