Skip to Content
avatar image
Former Member

Function module for pricing

Hi Gurus,

I have to fetch the price of one material from the order.

One way is I will pass the material name in the table like A033 --> take the condition number --> and pass it to KONP

But my question is there any function module through which we can fetch the price.

Regards,

MT

Edited by: M T on Sep 20, 2010 4:07 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

7 Answers

  • Best Answer
    Sep 20, 2010 at 12:09 PM

    chk if this FM can help u

    WCB_GET_CONDITION_TABLE_KEYS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2010 at 11:08 AM

    check

    Sales Order: Simulate Sales Order : BAPI_SALESORDER_SIMULATE

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 20, 2010 at 02:27 PM

    Hi,

    Check function PRICING (for instance do debugging when it is called in SO in report FV45PF0P_PREISFINDUNG). The invonvenient is the complexity of interface (COMM_HEAD_I , COMM_ITEM_I ). You will have the output in TKOMV.

    I hope this helps you

    Regards

    Eduardo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2010 at 05:51 PM

    You may use BAPI BAPI_SALESORDER_CREATEFROMDAT2.

    In the O/P structures, This ORDER_CONDITIONS_IN contains pricing related data, You can use this data according to your needs.

    Thank you

    Kris

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 20, 2010 at 09:52 PM

    Hello MT

    Have you tried incorporating the code/logic of program SDNETPR0 ( T code V_NL - Net Price List ) in Alt. Condition Value formula?

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 20, 2010 at 12:00 PM

    Hi,

    Unfortunately for this requirement there are no FMs available. There are FMs to fetch condition type values from sales order. But to fetch condition record from a condition table using the variant key, we only have to create a program by ourself. We dont have any standard FM to fetch the condition record for a specific A table for a variant key.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 03:50 AM

    Thanks a lot gurus for your help.

    Regards,

    MT

    Add comment
    10|10000 characters needed characters exceeded