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

Net price in VA02

Hi all,

i am using user exit ( USEREXIT_PRICING_PREPARE_TKOMP) to calculate pricing in Va02.

i am passing some records to XKOMV table . & it is updating in 'conditions' tab of SO item correctly.

but the Net value calculation in sales order is not comming correct i.e VBAK-NETWR.

plz tell me where i am doing mistake. shall i need to pass any FM to calculate net price.

Thanks

pmr

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2009 at 04:51 PM

    use FM 'PRICING' to calculate net price

    CALL FUNCTION 'PRICING'

    EXPORTING

    calculation_type = prf_calct

    comm_head_i = komk

    comm_item_i = komp

    IMPORTING

    comm_head_e = komk

    comm_item_e = komp

    TABLES

    tkomv = tkomv.

    Add a comment
    10|10000 characters needed characters exceeded

    • >

      > but new pricing is not carried out when the pricing date has changed. how i will achieve this?

      > The net price is not comming correctly in the header level, when i change the pricing date in header level also.

      > please reply.

      If you are running in such scenario i would suggest to write RFC enabled FM wrapper FM on PRICING FM and use that new ZRFC_PRiCING in new task..

      * Call the RFC wrapper in a new task
        CALL FUNCTION 'ZTEST'
          STARTING NEW TASK taskname
          DESTINATION 'NONE'
          PERFORMING ret ON END OF TASK
          EXPORTING
            comm_head_i           = wa_komk_i
            comm_item_i           = wa_komp_i
          EXCEPTIONS
            communication_failure = 1
            system_failure        = 2
            resource_failure      = 3.
        IF sy-subrc EQ 0.
          WAIT UP TO 1 SECONDS.
        ENDIF.

      Pricing Routines are specific to Pricing conditions, if you have a condition type VPRS then you need to activate / create a pricing routine for that pricing condition useing VOFM Tr. and you need an access key to create that.

      Once you activated the routine you can have your own code in that pricing routine and manipulate the data for that condition type u have XKOMV KOMK KOMP KOMV etc.. tables.

  • Posted on Jul 21, 2009 at 04:53 PM

    if you want to make any changes, use Pricing Routines to come up with the correct value...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2009 at 12:15 PM

    This message was moderated.

    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.