Sales Order Header Pricing Conditions

Hi All,
I am using BAPISDORDER_GETDETAILEDLIST function module to get the pricing conditions. I am able to see Item Pricing Conditions in the ORDER_CONDITIONS_OUT  table but not able to find the Header Pricing Conditions.
Please let me know how to fetch header pricing conditions. Is there any other FM which can do it?
Thanks
Jit

Hello,
Try these FM's.
SD_SALES_HEADER_READ
SD_SALES_ITEM_TABLES_READ
SD_SALES_PRICING_INFORMATION
MRM_DBTAB_KONV_READ
RV_KONV_SELECT
Please check out the Function module RV_INVOICE_DOCUMENT_READ.
Here you need to pass on the invoice no. In the output it shall give you details in invoice header and item levels, price, document status. You will get the net amount as well as the tax. Then you need to add the net amount and the tax to get the total amount
Regards,
Vasanth

Similar Messages

  • Block Sales order if pricing condition changed manually (no delivery)

    Hi,
    Requirement is to block sales orders for review by a manager if pricing condition amount is changed manually. Only a manager  should be able to review and release the sales order for billing. There is no delivery, item is service.
    Thanks

    Hi,
    This can be achieved as follows:
    1) SAP Standard updates the field KOMV->KSTEU for respective price condition type as soon as its changed Manually.
    2) Through enhancement automatically delivery block should be set at Sales Order Header, for which User (Sales End User) should not have rights to change.
    3) Respective Sales Manager should receive a mail regarding the same.
    Point '3' can be done manually i.e user will request respective Manager to do the needful.
    RB.

  • Sales Order VA01 pricing/condition scales

    Hello,
    we have set up scales (in transaction VK11) for some conditions on header level
    (this means e.g. for the sales order type, not on material level).
    But it seems that the standard considers the pricing/condion scales only on item level.
    example:
    VK11
    set up scale for freight cost
    if net-price is higher or equal to 50.- Euro than reduce the freight cost to zero.
    sales order
    item 1            net-price  20.- Euro
    item 2            net-price  30.- Euro
    -> The freight cost is not reduced because the net-price per item is not equal to 50.-
    But we want that the freight cost is reduced to 0 because the total amount of the net value of the sales order is equal to 50.-
    Is there a standard setting to have this system behaviour in the sales order entry?
    Which user exit can we use instead?
    Thank you very much for help.

    Hi,
    This can be achieved as follows:
    1) SAP Standard updates the field KOMV->KSTEU for respective price condition type as soon as its changed Manually.
    2) Through enhancement automatically delivery block should be set at Sales Order Header, for which User (Sales End User) should not have rights to change.
    3) Respective Sales Manager should receive a mail regarding the same.
    Point '3' can be done manually i.e user will request respective Manager to do the needful.
    RB.

  • Retrieving Sales Orders from Pricing Conditions

    I need to retrieve pricing condition number KSCHL from tables A906, A908, A966, A967 and A997 based on Sales Contracts (VBAP-VGBEL). However all the above tabels do not have a Sales contract reference. Some have while some have MATNR and KUNNR.
    Can anyone suggest a FM or a BAPI that can get me the price condition numbers related to a Sales contract.
    Thanks in advance.
    regards,
    Soumya

    Hi there,
    Give us some more feedback what your purpose is ...
    Do you want to get information about existing orders or do you want to create new ones based on contracts, etc...
    Without knowing your purpose it is quite hard to answer this one ...
    Thx
    Steven

  • Sales order header pricing

    Hi
    I need the sales Order PRicing FM which will give
    All the values Exactly like in the sales order with all the step numbers.
    Please suggest.
    Moderator message: please search for information and try yourself before asking.
    Edited by: Thomas Zloch on Nov 29, 2011 5:27 PM

    Hello,
    Try these FM's.
    SD_SALES_HEADER_READ
    SD_SALES_ITEM_TABLES_READ
    SD_SALES_PRICING_INFORMATION
    MRM_DBTAB_KONV_READ
    RV_KONV_SELECT
    Please check out the Function module RV_INVOICE_DOCUMENT_READ.
    Here you need to pass on the invoice no. In the output it shall give you details in invoice header and item levels, price, document status. You will get the net amount as well as the tax. Then you need to add the net amount and the tax to get the total amount
    Regards,
    Vasanth

  • Header pricing condition types

    Hi,
    In a purchase order header pricing condition types are appearing twice .
    Ex: JCDB    254
          JCDB     20
          JCV1    345
          JCV1     30.
    first condition type (ex: JCDB 254) is calculated on net price
    second cond type (ex: JCDB 20) is calculated on handling charge.
    Only for this particular PO we face this problem.
    How the pricing condition types are calculating twice?
    regards,
    sathya

    If I am not mistaken, this is a Purchasing question.
    Please post to correct forum.
    Regards

  • Change header pricing condition in sales order

    Hi,
    I have an requirement in VA01 and VA02 to automatically edit one header pricing condition. The user can able to change the value of that condition type in header not in items . Does anyone know what user exit I can use for this requirement.
    Thanks

    Hi Sunil,
    Plealse find below 2 methods to change header pricing conditions in sales order.
    1.Goto SE38, give prog name as MV45AFZZ and in that write logic under USEREXIT_PRICING_PREPARE_TKOMK . (OR)
    2) The same can be done by creating a Alt Calculation type routine through VOFM and writng the logic in the routine, which will then be assigned to the pricing procedure in the condition type which will automatically calculate the condition.
    Try with the options mentioned above..
    Regards,
    KK

  • User exit to add header pricing condition in sales order

    Hi experts,
    I have an urgent requirement in VA01/VA02 to automatically add a header pricing condition and rate (Kanban charges) for a certain type of Sales order (Kanban Sales order). Does anyone know what user exit I can use for this requirement? Also, the additional header pricing condition should be included in the net value for the item.
    Thanks!

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • Header Pricing conditions in BAPI function module

    I am using BAPI function module BAPI_SALESDOCU_CREATEFROMDATA1 to create sales orders through program.
    It is working fine with item level pricing conditions.
    But my requirement is ... I need to update few pricing conditon types in item level and one in header level.
    Could you please help me where I need to pass header pricing conditions. Please help me.
            CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
              EXPORTING
                SALESDOCUMENT             = SALESDOCUMENT
                SALES_HEADER_IN           = SALES_HEADER_IN
              SALES_HEADER_INX          =
              SENDER                    =
                BINARY_RELATIONSHIPTYPE   = 'VORL'
              INT_NUMBER_ASSIGNMENT     = ' '
              IMPORTING
                SALESDOCUMENT_EX          = SALESDOCUMENT_EX
              TABLES
                RETURN                    = RETURN
                SALES_ITEMS_IN            = SALES_ITEMS_IN
              SALES_ITEMS_INX           =
                SALES_PARTNERS            = SALES_PARTNERS
                SALES_SCHEDULES_IN        = SALES_SCHEDULES_IN
              SALES_SCHEDULES_INX       =
                SALES_CONDITIONS_IN       = SALES_CONDITIONS_IN.
              SALES_CFGS_REF            =
              SALES_CFGS_INST           =
              SALES_CFGS_PART_OF        =
              SALES_CFGS_VALUE          =
              SALES_CFGS_BLOB           =
              SALES_CCARD               =
              KEY_TABLE                 =
    Thanks in advance.
    Raghu

    If the correct configuration allows for manual entry of the condition type you want to populate, You can map your value using
    ' ORDER_CONDITIONS_IN'  . If item level map line number, cond step number of the condition type in your pricing procedure, your condition type you are using,  condition value you are sending into the system,  currency, and cond unit. If it is a header condition, then send in 000000 as the item number.   You can also consider using BAPI_SALESORDER_CREATEFROMDAT2

  • BADI for sales order header level data

    Is there any BADI which will give me the sales order header level data? I need net price of the sales order in header level. KOMK structure does not contains the net price value.

    My requirement is:
    I am writing a pricing routine for calculating ZSMR condition value in sales order header level. The formula for calculating is (NET PRICE / NET SALES COST) / NET PRICE.
    I can't use VBAK  because I have not saved the sales order yet. I need to use some structure.
    Which structure contains the net price of the sales order in header level. KOMK structure does not contains the net price value.
    Edited by: dossgs on May 21, 2010 4:08 PM

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • In sales order for the condition type MWST, **Tax code** is displaying wron

    Hi
    In sales order for the condition type MWST, *Tax code* is displaying wrongly at header level i.e. FF instead of AO (under account determination tab)
    AO tax is 0% but for FF it is 19%
    I have checked with the Access sequence it is picking access 08 correctly according to this it should show AO in tax code field for MWST but it is not so..
    There is a manual change for tax classification for material master in va02 initially it was blank now it is changed to ' 0 ' is any way influencing....?
    Even if I consider material tax classification and customer tax code  should not be FF because  tax code  FF is not maintained for the combination of access sequences for condition type MWST
    Please help me.
    Rajendra Prasad

    Dear Rajendra,
    There is a manual change for tax classification for material master in va02 initially it was blank now it is changed to ' 0 ' is any way influencing....?
    Definitely material Tax classification will influence to determine the Tax code.
    -->So Make sure that customer and material master having proper tax classification indicator.
    -->Have you Update the price after changing the tax classification in the sales order.by going to item dat -->condition tab then click on Update push button bottom of the conditions screen.
    -->Once again the check the condition record maintanence also for your MWST access sequence.
    I hope this will help you,
    Regards,
    Murali.

  • Enchancements for sales order header

    HI,
    I have created a new field Backorder Reason in the additional data tab B (Screen number 8309) for the sales order header.The new field is of input/output field.The new field should be able to select the values and save the sales order.I have done upto here.
    Could any one please suggest how to disabled this field only for the Tcode 'VA03'.
    It should be enabled for Tcode 'VA01'.
    Thanks,
    Nagendra

    Hi...
    try to capture through which transaction  user is executing(VA01, VA02,  or VA03). write IF condition  like if transaction code is not  "VA03" then display.
    Regards
    KP.

  • Sales order header tabs

    Hi all,
    My requirement is that I have to write a BDC on sales order.
    but when i go to condition tab in sales order header then OK CODE comes different for different order types
    can we determine somehow that what will be the correct position of condition tab.
    regards,
    kushagra

    Hi,
    Try to Avoid BDC for Sales Order Creation.
    Use BAPI ==> BAPI_SALESORDER_CREATEFROMDAT2
    DATA BEGIN OF  it_hdr.
            INCLUDE STRUCTURE  bapisdhd1.
    DATA END OF it_hdr.
    DATA BEGIN OF  it_hdrx .
            INCLUDE STRUCTURE bapisdhd1x.
    DATA END OF it_hdrx.
    DATA BEGIN OF  it_itm OCCURS 0.
            INCLUDE STRUCTURE  bapisditm.
    DATA END OF it_itm.
    DATA BEGIN OF  it_itmx OCCURS 0.
            INCLUDE STRUCTURE  bapisditmx.
    DATA END OF it_itmx.
    DATA BEGIN OF  it_shitm OCCURS 0.
            INCLUDE STRUCTURE  bapischdl.
    DATA END OF it_shitm.
    DATA BEGIN OF  it_shitmx OCCURS 0.
            INCLUDE STRUCTURE  bapischdlx.
    DATA END OF it_shitmx.
    DATA BEGIN OF  it_par OCCURS 0.
            INCLUDE STRUCTURE  bapiparnr.
    DATA END OF it_par.
    DATA BEGIN OF  it_ret OCCURS 0.
            INCLUDE STRUCTURE  bapiret2.
    DATA END OF it_ret.
    DATA wrk_num LIKE bapivbeln-vbeln.
    it_hdr-doc_type  = 'ZDCI'.
    it_hdr-sales_org  = '1000'.
    it_hdr-distr_chan  = '10'.
    it_hdr-division   = '10'.
    it_hdr-sales_off = '1902'.
    it_hdrx-updateflag = 'I'. "I:Create a new sales document
    it_hdrx-doc_type  = 'X'.
    it_hdrx-sales_org  = 'X'.
    it_hdrx-distr_chan  = 'X'.
    it_hdrx-division   = 'X'.
    it_itm-itm_number =  '10'.
    it_itm-material    = 'INOVA'.
    it_itm-target_qty  =  '1'.
    it_itmx-updateflag = 'I'.
    it_itmx-itm_number =  '10'.
    it_itmx-material    = 'X'.
    it_itmx-target_qty  =  'X'.
    APPEND it_itm.
    APPEND it_itmx.
    it_shitm-itm_number =  '10'.
    it_shitm-req_qty  =  '1'.
    it_shitmx-updateflag = 'I'.
    it_shitmx-itm_number =  '10'.
    it_shitmx-req_qty  =  'X'.
    APPEND it_shitm.
    APPEND it_shitmx.
    it_par-partn_role = 'AG'.
    it_par-partn_numb = '0002001913'.
    APPEND it_par.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        order_header_in               = it_hdr
        order_header_inx              = it_hdrx
    IMPORTING
       salesdocument                  =  wrk_num
      TABLES
        return                        = it_ret
        order_items_in                = it_itm
        order_items_inx               = it_itmx
        order_partners                = it_par
        order_schedules_in            = it_shitm
        order_schedules_inx           = it_shitmx
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
      ORDER_TEXT                    =
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT it_ret.
      WRITE :/ it_ret-message.
      WRITE  wrk_num.
    ENDLOOP.
    Regards,
    Durai.V

  • User Status update on Sales Order Header

    Hi all,
    I need to update the "User Status" on sales order header when a sales order is saved. As user status reside in JEST, what available user exits are there to change/insert new user statuses? I don't believe the common exits like MV45AFZZ would do.
    To clarify, to get to these user statuses, you go to the header of the sales order, select on the 'Status' tab, then click on the "Object Status" pushbutton.
    Any help would be greatly appreciated in the form of points!
    Thank you.
    Liam

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

Maybe you are looking for

  • Advice Requested - High Availability WITHOUT Failover Clustering

    We're creating an entirely new Hyper-V virtualized environment on Server 2012 R2.  My question is:  Can we accomplish high availability WITHOUT using failover clustering? So, I don't really have anything AGAINST failover clustering, and we will happi

  • Change Password on first use does not work properly.

    I have created apex application user in Oracle Apex 3.2 as follows BEGIN APEX_UTIL.CREATE_USER( p_user_name => 'NEWUSER1', p_web_password => 'secret99'); END; As in the documentation p_change_password_on_first_use  IN      VARCHAR2    DEFAULT 'Y', Us

  • Parsing with schema

    Applying this code            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();             factory.setValidating(true);             factory.setIgnoringElementContentWhitespace(true);             factory.setAttribute(            

  • Intel 5100 on t500

    So it seems the adapter is acting up.  It sees networking n linux it refuses to obtain an ip adress.  Windows 7 sees the network will connect sometimes but has a slooooooow connection and sometimes won't load the page.  Other times it won't connect. 

  • Change SmartView 11.1.2 shared connections default names?

    Is there any way to change the descriptions of the available shared connections descriptions? i.e. if I add a new Planning server connection to my shared connections list it appears in the list as "HP-11.1.2 - Oracle Hyperion Planning, Fusion Edition