Routines for Delivery Pricing (VOFM)

Hi,
We are writing a pricing routine to change condition values in delivery pricing. However no tables related to delivery line items appear during runtime. None of LIPS, XLIPS, etc. occur during the execution of the routine.
While similiar routines worked for Sales Order pricing (changing XKOMV-KBETR based on XVBAK, XVBAP values), it doesn't seem to work for delivery pricing.
Can someone suggest how to access delivery line items data during the creation of delivery.
Regards,
Murali

Hi Murali,
You can use dynamic assign techniques to access the data which is not available in the routines.
Take a look at this weblog on how to access the data which is not available using dynamic assign.
/people/brad.williams/blog/2005/04/25/userexits--how-do-i-access-inaccessible-data
good luck
Cheers
VJ

Similar Messages

  • Pricing Routine for Purchase Order (VOFM)

    Hi,
    I just create a price routine (VOFM->Pricing) for purchase order in order to clear some condition types (for example ZR97) in item conditions. In the routine, I just check the xkomv-kschl, if it's ZR97, clear xkomv, it works in routine itself, but after back the main program(ME21N), it's been reset as before, so there is still condition type 'ZR97' in the current purchase item.
    Any idea?!
    Thanks in advance

    Hi,
    Keep a debug point check if the routine is getting called or not and also check whether the values is actually clearing the value xkomv.
    Sometimes xkomv may get cleared but actually the value may be getting reset at the PO level. Check which variable is the one that is actually getting filled in the PO
    Regards,
    Narayani

  • Routine for disallowing Pricing Conditions based on Plant.

    Hi,
       I have created a routine RV61A985. There I, validate if there is a particular plant, and if so, i block certain conditions in the conditions tab of the sales order, but setting sy-subrc value = 4.
       It worked perfectly well, in my development system. Now, When i have transported to Quality System, I see that it does not work, or even hit the break point in that routine.
       Can any one, tell me what's missing.
    Regards,
    Owais..

    Hi,
    First & formost please check if the routine has been attached by the SD consultant in the pricing procedure.If it's present then it's the problem of activation. You can check it by going into edit mode of the routine & tryiing to set the break-point. If the break point is set successfully then the routine is active otherwise it will just display !!! without setting the break-point indicating that the routive is inactive. The funniest part is in VOFM it will still show the routine as inactive. Just select that routine deactivate it & activate it again.
    Then again check by trying to set the break-point. If break-point is set that implies the routine is active.
    I hope this helps,
    Regards
    Raju Chitale

  • Subsequent routine for order confirmation vofm

    what our requirement is ...we have a static credit check activated.
    while creating the sales orderwhen ever the customer exceeds the credit limit the check will be activated and the order is blocked with 0 confirmed quantity.
    but we want the confirmed quantity should come as the standard order irrespective of credit block.Now the  confirmed quantity becomes zero in the routine 101 which is the include LV07A101.
    we need to implement a new routine , which confirms the quantity but the credit block should be there.
    Is any sap notes available or any documents available , please help us.

    Hi,
    Pls have a look at this link ,
    http://saptechsolutions.com/pdf/SubsequentFunctionRequirements.pdf
    Regards,
    Vvieks

  • What is the procedure for  Return Pricing Procedure

    Dear Experts,
       Pricing Routine for Return Pricing Procedure To create Return sales order w.r.t billing document without copying the Pricing Procedure. To capture the net price from the Billing document to the Return Sales order .To change the net price to 0.01 based on the scrap item category RSCR in return sales  order. please help me out from this issue .Thanks in advance.I'll give you full points.

    Dear Experts,
       Dear Experts,
      I've been working in an implementation project..I never worked on pricing routines...so please give me any inputs which can help full for me...
    To create Return sales order w.r.t billing document without copying the Pricing Procedure.
    To capture the net price from the Billing document to the Return Sales order
    To change the net price to 0.01 based on the scrap item category RSCR in return sales
         order.
    please help me out from this issue
    Thanks in advance..
    I'll give you full points..

  • Pricing condition program, userexit  for delivery

    Hi ,
    As we have standard program RV60AFZZ to determine Pricing condition for Sales Order.
    Do we have any Program, user exits , Routine to determine condition type for delivery?
    Thanks
    Aman Kumar

    Hi,
    First functional people have to configure pricing procedure for delivery also...then u can use MV50AFZP include ("Userexit for pricing screen input)
    Regards
    krishnakiran

  • Pricing for delivery

    Hi,
    I have activated the pricing for delivery. But we have self defined fields -partner function- in pricing.
    I want to know the user exit for assigning value to the new fields for pricing. Just like the user exit USEREXIT_PRICING_PREPARE_TKOMK in MV45AFZZ for order, in RV60AFZZ for billing. I cannot find the similar one for delivery.
    Many Thanks
    Jean

    Hi Jean,
    Please check this user exits <b>MV50AFZP</b>.
    This userexit can be used to modify change mode of pricing screens in delivery processing.
    Also you can check other user exits MV50AFZ*.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Entry routine for Advanced shipping note -inbound delivery for tcode VL32N

    Hi ABAPers,
    What is the entry routine for driver program when I attach the driver program to tcode VL32n
    through NACE configuration.??
    Regards,
    Dep
    Solution :
    FORM entry USING return_code us_screen.
    ENDFORM.
    Edited by: DeepakNandikanti on May 12, 2010 7:23 AM

    Hi,
       The messages you mentioned were introduced to avoid inconsistency between inbound delivery and IM, through the note:  1050944 - GR for inbound delivery using inventory mgmt as of ECC 6.00
       If the messages are issued incorrectly, then you may check for SAP notes (I couldnt find anything relevant) or raise an OSS ticket to SAP.
    Regards,
    AKPT

  • Creation of a new Formula Routine for condition base value calculation

    hello people,
    i am stuck up in a situation where SAP has itself said that nothing can be done.
    but i know you all can guide me to some way or the other
    see, the scenario is like this
    1. i have to calculate the base value for a pricing condition.
    which will follow the formula
    net value + excise duty + freight
    2. in standard routines two things are normally bieng used
    xkwert for the value that has to be finally calculated(taking reference of routine 004)
    komp-netwr for the net value
    3. i have to calculate the excise duty by adding up all the base values of existing pricing conditions like JMOP, JEC1 etc that i have which i saw in internal table
    XKOMV on debugging
    4. now freight is to be calculated from all the values of condition types that are in KOMP which is a structure and no internal table is defined in standard main program
    now ppl
    can you guide me by looking at the standard program
    what is this xkwert field and where it is assigning the value.
    how to get field from other structure and table.
    please guide as to how to approach the problem.
    thanks and regards
    Nitin

    HI,
    the scenario u r talking abt is condition based value formuls of VOFM transaction.
    here the data is retrieved as 'X' structures and will hold normal tables with respective names. and in this case all the pricing data is in KOMV ie XKOMV
    Final amount including tax
    form frm_kond_basis_004.
      xkwert = komp-netwr + komp-mwsbp.
    endform.
    always calulation is done in xkwert field and final value is stoerd in xkomv.
    *.................. text ............................................. *
    Condition base value formula to get the assessable value of the     *
    saleable material from j_1iassval. If the value is not maintained   *
    then the selling price will be taken as the base                    *
    TABLES: J_1IASSVAL.
    DATA XXKOMV LIKE KOMV .
    XXKOMV = XKOMV.
    SELECT SINGLE * FROM J_1IASSVAL WHERE J_1IWERKS = KOMP-WERKS AND
                                         J_1IMATNR = KOMP-MATNR.
    IF SY-SUBRC EQ 0.
        IF J_1IASSVAL-J_1IVALNDP NE 0.
        XKWERT = J_1IASSVAL-J_1IVALNDP * KOMP-MGLME / 1000.
        ENDIF.
        IF J_1IASSVAL-J_1IVALASS NE 0.
        XKWERT = J_1IASSVAL-J_1IVALASS * KOMP-MGLME / 1000.
        ENDIF.
    ELSE.
       XKWERT = XXKOMV-KAWRT .
    ENDIF .
    XKOMV = XXKOMV .
    ENDFORM.
    and as far as ur  req select allthe condition type data and sum and take the average value and pass it.

  • Minimum order value for delivery

    Hi all,
    I have a problem concerning order value. I want to block orders for delivery that, based on the shipping point for the individual items, do not reach a minimum order value per shipping point. When the customer orders the next time and the combined value on a specific shipping point for the old and the new order(s) reaches the limit, a delivery document should be created. We also want to create a message to the customer saying that the first order wasn't delivered due to low value.
    Is this possible without extensive programming? A little coding in a copying rule or such is ok, but as we can handle this manually in the WH-system we don't want to put to much effort in it.
    best regards,
    Glenn

    Yes you can do that, You can use the mimum order value condition type in the pricing procedure . This condtion type check for the mimimum order value and if this is not met based on the routine in pricing procedure it will block. You can make adjustments in code for the routine for the condition type.Condition type is AMIW
    Reward points!!!!!!!!!!1
    Thanks,
    Kamal

  • Approvals process for Delivery document

    Hello Experts,
    I have a non conventional scenario, that needs to be handled by SAP Deliveries (Created without reference). Business scenario is as follows:
    A research organization has multiple testing sites across the globe. It already has SAP system installed for its day to day processes. The organization has testing sites across the globe which order specific chemicals from a primary site. Now it is required to  capture the delivery related part of this process needs to be mapped into SAP. SAP Delivery document would be used to meet this requirement.
    However, the legacy system has an approval process in place. i.e. there are 4 lines in a request, it is quite possible that these 4 materials have 4 different 'owners'. These 'owners' 'approve' the release of specific chemicals in the legacy system.
    The requirement is to map this line item level approval in the delivery document. However, Delivery Block is only at header level. Please provide suitable pointers so that this can be captured in standard SAP, or if not possible  suggest appropriate customisation.
    Thanks in advance,
    Onkar

    1. Would it be possible to control the workflow for a delivery at line item level. If yes how will the approval result in status change in Delivery?
    I think we can initiate the work flow line item wise .It should be populate services for object tab.That is the reason when some thing is missed you should put some check point before you do PGI the delivery completly approved or not.
    2. We have only 2 statuses: picking completion and PGI. The delivery in legacy system has 2 more statuses, and they are to be captured in SAP delivery(at header level). Is it possible to add statuses to the delivery, or use some of the standard ones?
    What are other 2 status you required ?.If it is really required then check in any otions VOFM to add some fields in header .
    3. I am not able to edit price in the delivery, despite adding pricing procedure, and making the item category relevant for pricing. The pricing fields are grayed out. Am I missing anything?
    *Did you make any pricing configuration for the delivery type ?.If not do configuration.
    SPRO>Logistics Execution>Shipping>Basic Shipping Functions>Pricing-->Define Pricing Procedures for Delivery*

  • Sales order need to be blocked for delivery while creation

    Hi experts,
                    My requirement is to block sales orders for delivery, for the selected distribution channels, and for selected countries while creation itself, so for this I came to known that a program MV45AFZZ include, here in this at which form can I write code to block SO for delivery. and is it enough to put a reason in the field LIFSK in VBAK table to block SO for delivery.
    Thanks in advance
    Regards
    SriNivas........

    Hi,
    You can use form routine USEREXIT_SAVE_DOCUMENT_PREAPRE of user exit MV45AFZZ to update the delivery block.
    MOVE '10' to vbak-lifsk.                    "13 is the reason for block in header"
    MOVE '10' to xvbak-lifsk.                  "13 is the reason for block in header"
    Use following code to update delivery block at item level
    MOVE '10' to vbep-lifsp.                      "13 is the reason for block in item schedule line"
    MOVE '10' to xvbep-lifsp.                    "13 is the reason for block in item schedule line"
    Regards
    Vinod

  • How to change exchange rate type for specific pricing condition type

    Hello every one,
    I have a requirement for billing ie VF01.
    currently  all the exchange rate are being calculated with exchange rate type 'M' by default.
    but now client want it should calculate exchange rate with type 'E' for two pricing condition type for all others it should calculate with type 'M'
    Please any body can help me with the exit and code which i can use.
    I have checked exits SDVFX008.
    but how to change exchange rate with type 'E' only for two conditions.
    as changing exchange rate at document header will change exchange rate for all condition type.

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

  • Tax determination for delivery charge

    Hi,
    We are using SAP IS Retail wherein actual sales is being sent out to SAP from web-site using Idoc type WPUBON.
    WPUBON IDOC is processed in SAP and billing document and accounting documents are created. This IDOC will carry the information of the articles that were sold and the delivery charges for dispatching the articles to customer.
    In normal scenario, VAT is applicable for article as well as the delivery charge and is taken care by the standard pricing procedure by accessing MWST condition. Tax code is derived from article master. VAT is calculated based on article price and delivery charge and posted into corresponding tax GL account (VAT amount for delivery charge is calculated based on tax class of article).
    We have a scenario where some articles are sold with tax exemption at website to disabled customers. Even though the article price is exempted for tax, delivery charge is taxable as per government rules.
    When this sales data comes into SAP the corresponding IDOC u2013 WPUBON has a tax code (E u2013 Exempted) against this article. This overrides the tax code maintained in article master while posting the billing document (Thought article is fully taxable as per master records, no tax is calculated when billing document is posted). Till this point we have no problem. As mentioned above, we want the tax to be calculated for delivery charge and posted to the tax GL account, which is not happening as the tax code applied for the article is also applied for delivery charge by default.
    Is there any way in configuration to change the tax determination only for delivery charge?
    Any pointer in this would be of great help.

    Hi
    You can create and use a new tax code which is applicable only for Delivery charge cases.
    Use a new pricing condition type for this Tax .and condition records with access sequence and tax code can be amintianed only for this condition type.
    You will have to modify pricing procedure for the same.
    Depending on condition records and document inputs the tax values for delivery will get triggered.
    You can also put an order reason in Accounting determination access sequence through which on This special sales ,
    account determiantion can be changed.
    hope this helps
    Regards
    Mandar

  • Account document not created Message no. VF062 for the pricing procedure

    When I tried to create an invoice I came across this problem of Account document not created Message no. VF062.
    I created a pricing procedure with base price,BED,EDU CESS,HIGH EDU CESS ,VAT,CST.
    Condtion record was set for each pricing condtion type.
    Sale order>delivery->invoice
    When invoice was stored i get the message accounting document not created.
    After that i changed the condtion class of (BED,EDU CESS,HIGH EDU CESS ,VAT,CST.) from D-tax to B-price.Now the invoice is stored without the messag(accounting document not created).What will be the problem associated with this

    i changed the condtion class of (BED,EDU CESS,HIGH
           EDU CESS ,VAT,CST.) from D-tax to B-price
    Whaterver condition types you have with condition class as D, I am sure, you should have assigned some Account Keys in your Pricing Procedure.  Ensure that those Account Keys are appearing in OB40 as otherwise, you will face this issue.
    G. Lakshmipathi

Maybe you are looking for

  • TouchSmart 610 Touchscree​n is not working (windows 7)

    Hey guys, I have had my TouchSmart for about 2 years, and it's been near a year that my touch input hasn't been working, but since I wasn't really using it, I never followed up until last week. But I was pretty upset when I realized I had a 2 year wa

  • Photo transfer to my ipad

    I can´t get my mac photos into my new ipad2 I checked all the tutorials about that but no solution....... It tells me that a configuration problem of them cant make them go into the ipad, but the thing it´s that 2 of them get transfered..... No clue

  • Banking Reports not accessible by Lim. Financial License in SAP B1 8.81 PL 0

    Dear All, I am using SAP B1 8.81 PL 00 (Indian localization). When I log in with a Limited Financial License user , the Banking Reports cannot be accessed. It gives a message : 'You cannot open window with your current license'. Also I cannot locate

  • Report server Load balancing

    short description of the setup: 2 hosts running report services say reportsvc_1, reportsvc_2 in the sanme subnet. reports are called using run_report_object from within oracle forms. Is there any mechanism that these two hosts can share the load, loa

  • Trouble with E-Fax and my Photosmart 7510

    I have the 7510 which has the capcity for E-fax. I have been able to successfully send faxes but sometimes I get a "failure" notice. I see that the free E-Fax (which is what I have as it came with the machine) only allows 20 sent faxes and 20 receive