Pricing requirements - VOFM tranx (standard include)

Hi,
I want some information about the pricing requirements in the tranx code: VOFM.. For each standard include of the parent include: LV61ANNN, there are two forms: kobed_xxx and kobev_xxx.
1) What is the different between these two forms and what is their effect..
2) in my requirement, it was not mentioned as to in which form do i need to write the required code. (Though it was said that i need to copy one of stnd include)..

hi Rohith
just go to this thread link
Re: VOFM - Requirements
this must answer your queries
hope this helps
regards
Aakash Banga

Similar Messages

  • If anyone worked on the sales pricing requirements(vofm)

    If anyone worked on the sales pricing requirements(vofm), can u tell what happens in the sapcode, if create the requirements in vofm tcode

    Hi Rama,
    Pricing Requirement is  basically a check before a condition type populates with its value.
    we define the requirement and assign this to condition type as required.
    for example, you have a discount condition ZABC which should only populate when the material is delivered from Chennai plant.
    If this check ( certain requiremnt which we want to get satisfied before a particular condition type populates) becomes true during sales doc. processing, then
    condition type is given a Go-Ahead by the system that it can populate.
    we acheive this by using parameter SY-SUBRC and set this system variable to 0 if condition is true
    basic outline of the  code will be like following ( one of the ways) :
    IF <Condition > = TRUE
    SY-SUBRC = 0
    ELSE
    SY-SUBRC = 4
    we can also utilize the CHECK statement to acheive this.
    Hope it gives an idea to understand pricing requirement.
    Please let me know if you have any doubt.
    Best Regards,
    Gaurav Raghav

  • VOFM - pricing requirements ( abaper require some functional assistance)

    HI,
    I had written the required code in one of the customer routines in the transaction: vofm.
    to change the tax code according to the country of destination.
    I was given information that this will be triggered during the sales order change..(va02)..
    When i put a break point in that include it is not triggering..
    Can anyone tell me how to trigger (either std include or customerized include) of transaction: vofm (pricing requirements) in the sales order change tranx (VA02).
    thanx

    Hi there,
    Once the routine is configured in VOFM, it has to be activated for eg using RV80HGEN. Only then you can apply that routine.
    Also when the logic is not getting triggered in debug, then it means that either the logic is wrong, code has been put in a wrong location or tables / fields are called wrongly.
    Ask the ABAPer to check points & then try.
    Also changes in VA02 is captured by function V & new entry by H.
    Regards,
    Sivanand

  • Problem for Pricing Requirement

    Hi All,
    i have one pricing condition type ZFDS. This ZFDS having 5.50USD.
    Additional item categories ZLCN need to be excluded from this fee also in this pricing requirement.
    For Ex 1. : In one sales order my item category is ZLCN. For this item category i have ZFDS condition type. i want to exclude from this pricing requirement.
    Ex 2. In the same sales order my item category is ZTAN. For this item category i have ZFDS condition type. i want to include from this pricing requirement.
    Please guide me how to do the coding for this pricing requirement.
    Thanks,
    Raghuveera Kumar B.

    In transaction VOFM, create a new pricing requirement (your routine number must be between 601 and 999). You will be asked for an access key for object R3TR PROG RV6***601 (the last 3 chars corrsponds to the requriement routine you are trying to generate). Your BASIS team should be able to generate one for you.
    Next, go to SE38> RV6***601 program, there will be 2 subroutines. One FORM is called for Header level pricing condition checks and the other is for item level, use whatever is appropriate in your case. If you are not sure, it doesn't hurt if you put the sample code below in both FORMS.
    SY-SUBRC = 0.
    CHECK KOMP-KSCHL = ZFDS.
    CASE KOMP-PSTYV.
    WHEN 'ZLCN '.
    SY-SUBRC = 4. " Exclude ZFDS from pricing.
    WHEN 'ZTAN'.
    SY-SUBRC = 0. " Include ZFDS from Pricing.
    ENDCASE.

  • Syntax check error in the standard include

    Hi,
    I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated.
    The include is V05XZZMO in that i have inserted code is as follows
    FORM MOVE_USERFIELDS USING ZP.
      CASE ZP.
        WHEN 'VBRK'.
        header
        MOVE LVBRK-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        1
              MOVE LVBRK-ZUONR TO LFAMTV-ZZZUONR.
    *}   INSERT
        WHEN 'VBRP'.
        item
        MOVE LVBRP-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        2
       MOVE LVBRP-MATWA TO LFAMTV-ZZMATWA.
    *}   INSERT
      ENDCASE.
    ENDFORM.
    now it is throwing error saying that LFAMTV doesn't exist...when I double click on that it is taking me to the FM RV_INVOICE_VIEW_2 where it is defined....
    Can anyone know the reason why it is throwing the error when we go for the syntax check but when u activate the program it is getting activated.. so can this error can be neglected?
    Any help on this will be appreciated..
    Regards,
    Rohan.

    Hi,
    First comment ur code and then activate the include.
    Now put a break point in the form and then in the debug mode check the structre LFAMTV is visible or not.
    if yes then once again add ur code and then activate the whole program.
    and now once again debug it and see...., whether the values are updated to the strurure LFAMTV.
    Regards,
    Nagaraj

  • Pricing - Requirment / calculation type / base value

    Dear Friends,
    Thnaks for the support and guidance provided by you for my previous posts
    In Pricing Procedure we give Requirment, Calculation type and Alternative formula for condition base value, I would like to know where do we exctly define all this?
    Or are they standard? If standards where we can see how they works?
    Regards
    Vishal

    Hi,
    go through the below Examples for better understanding ..
    Example: 1
    Condition Type: PR00
    Requirement 2 Item with Pricing
    Purpose:
    This is an example of a pricing requirement.  This requirement is met if the document item category is relevant for pricing and no previous condition in the pricing procedure has set the condition exclusion flag. This requirement can be assigned to condition types in the pricing procedure to avoid unnecessary accesses to the database when an item is not relevant for pricing or a condition exclusion indicator has been set.
    Example: 2
    Condition Type:  Net value
    Calculation Type: 2 Net value
    Purpose:
    This is an example of a condition value formula.  This type of formula can be used to influence the value shown for the condition in pricing.  A condition value formula is assigned to a condition type or value line in the pricing procedure.
    Formula '2' sets the value equal to net value that has been calculated so far for the item in the pricing procedure.  It contains the amount excluding taxes.
    Example: 3
    Condition Type: R100
        Alt.Condition Base Value: 28 (100% Discount)
    Purpose:
    This is an example of a condition base value formula.  A condition base value formula can be used to influence the basis the system uses when computing a pricing value.  A condition base formula is assigned to a condition type in the pricing procedure.
    Formula '28' sets the rate of the condition to a 100% discount.  This formula was delivered with condition type R100 to support free goods functionality.
    Reward if it is useful,
    Chandramohan

  • Testing Pricing Requirements

    Hy Guys,
    how do you test the pricing requirements (ex. manual conditions, manual deposit condition, free of charge deposit cond, mixed palled surcharge etc) ??? So you create sales orders, credit memos and so on, and then..?
    Thank you !
    Cris

    You can do it yourself in transaction VOFM, Requirements>Pricing. Then highlight the requirement number and and click the "source text" button.
    Click on the first statement (probably a statement like "sy-subrc = 4"), and then click the "stop" button to set the break point. You can then process an order and it should break in that bit of code. Keep on hitting F5 and watch the sy-subrc value - if it is 0 at the last line of code, then the requirement has been met. If not zero, then it has not been met and that price will not be determined.
    Don't forget to remove your breakpoint in VOFM afterwards.
    Hope this helps.
    Jon

  • Can pricing requirement be used for manual header condition

    I have a manual header condition ZCR1 which will be entered in a sales document with doc type ZAB1. When this sales document is copied into another sales document ZAB2, I want that the manual header condition ZCR1 is not determined. Can I do this via pricing requirement? Or should I use alternation formula for condition base value and make the value of condition ZCR1 to zero when the document is copied into ZAB2.
    Both the document types are using the same pricing procedure. In copy control for all item categories from ZAB1 to ZAB2, pricing type G (Copy pricing elements unchanged and re-determine taxes). ZCR1 is a manual condition in the pricing procedure used.
    Regards
    Javed

    Hi javed
    If you want the ZCR1 manual header condition should not be determined then you need to change the pricing type in the copy control but if you assign a requirement in the pricing procedure for ZCR1 condition type  then you cant enter the ZCR1 condition type manually also as you are not meeting your requirement.
    Another option is you have to create a new requirement with the help of Technical consultant ans assign it to the  header condition type in the pricing procedure requirement feild . giving inputs to your Technical consultant that The condition type  should not be determined
    Regards
    Srinath

  • Creating a Function Module for Standard Include

    Hi ALL,
    There is a standard Include in that i have created 1implicit Enhancement Point and there is 200 lines code is there ,so my client is saying to keep this code in function module. This is the below code  can any one do how to write this code in function module with passing parameters and all the stuff.Means Import parameters ,Export parameters and Source code ?
      Perform change_order_va02.
      data: l_vbfa like vbfa,
            l_FKART like vbrk-FKART,
            l_fksto like vbrk-fksto,
            l_sfakn like vbrk-sfakn.
      data: begin of lt_vbfa occurs 0,
              vbeln like vbfa-vbeln,
            end of lt_vbfa.
      if komfk-vbtyp ca 'PO'.              " debit/credit memo
        select vbeln into table lt_vbfa from vbfa
               where vbelv = KOMFK-VBELN and
                     ( vbtyp_n = '5' or vbtyp_n = '6' ).
          loop at lt_vbfa.
            clear: l_fksto, l_sfakn.
            select single FKART fksto SFAKN into (l_FKART, l_fksto, l_sfakn)
                   from vbrk
                   where vbeln = lt_vbfa-vbeln.
            check: sy-subrc = 0,
                   l_fksto is initial,
                   l_sfakn is initial.
                 message e310(zz) with l_FKART l_vbfa-vbeln.
          endloop.
      endif.
    *}   INSERT
    ENDFORM.
    *{   INSERT         D01K9A0PBY                                        1
    *&      Form  change_order_va02
      228810/45115 FUWAGNK implement VA02 into VF01 for Turkey
    -->  p1        text
    <--  p2        text
    FORM change_order_va02.
    Tables : *knvi, *lips, *likp.
    DATA: Z_MODE value 'N'.
    data: hf-date(10).
    DATA: BEGIN OF BDC_TAB OCCURS 0.
           INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDC_TAB.
    DATA: BEGIN OF BDC_MSG OCCURS 0.
           INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF BDC_MSG.
    select single vbeln vgbel from *lips into corresponding
           fields of *lips
                  where vbeln = KOMFK-VBELN.
    select single vbeln LFART from *likp into corresponding
           fields of *likp
                  where vbeln = KOMFK-VBELN.
    if *likp-lfart = 'LF'.
    select single vbeln vkorg kunnr from vbak into corresponding
           fields of vbak
                  where vbeln = *lips-vgbel.
    if vbak-vkorg = '1252'.
       clear bdc_tab. refresh bdc_tab.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '102 '     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBAK-VBELN'  to BDC_TAB-FNAM,                   "Doc.Number
              VBAK-VBELN   to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              '/00 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4001'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              'KKAU '      TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4002'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       select single * from *KNVI into *KNVI where KUNNR = vbak-kunnr
                                               and ALAND = 'TR'
                                               and TATYP = 'MWST'
                                               and TAXKD = '2'.
       if sy-subrc =  0.
          exit.
       endif.
       move: 'VBAK-WAERK'  to BDC_TAB-FNAM,               "Currency
             'YTL '        to BDC_TAB-FVAL.
             APPEND BDC_TAB. CLEAR BDC_TAB.
       write sy-datum to hf-date.
       move: 'VBAK-AUDAT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBKD-PRSDT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                  "OK-CODE
              '/11 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       CALL TRANSACTION 'VA02'
            USING BDC_TAB MODE Z_MODE UPDATE 'S'
                  MESSAGES INTO BDC_MSG.
         IF SY-SUBRC NE 0.
            clear bdc_tab. refresh bdc_tab.
         endif.
      endif.
    endif.
    ENDFORM.                    " change_order_va02
    Regards,
    Venkat

    ans

  • Runtime Error in Standard Include

    Hi,
    After upgrading from SAP 4.7 E to ECC 6.0, we have facing few problem in execution of Reports..
    Main problem is that, it called Standard INCLUDES..
    Error:-
    Short text
        Format error with IMPORT.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZHINCANN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    But, this program called a standard INCLUDE HINPAYMACRO ... that dump goes in it.
    What's the problem...plz clear..
    Thanks

    Hi,
    Error Message is:....
    Short text
        Format error with IMPORT.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZHINCANN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_IMPORT_FORMAT_ERROR', was not
         caught in procedure "IMP-RESULT-CLSTR" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    When attempting to IMPORT the object "EPF", there was a format error.
    Unable to read an IMPORT dataset.
    The dataset may have been processed using SQL and is
    thus no longer readable for the IMPORT.
    How to correct the error
        Determine which actions resulted in the destruction of the
        dataset.
        The exception must either be prevented, caught within proedure
        "IMP-RESULT-CLSTR" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
    This is complete error message...
    Now plz. tell...

  • How to exclude the standard Include programs in Code Inspector?

    I am running code inspector (SCi) on all the development objects using a package. But in certain repository objects standard include programs have been used. I want to exclude the standard include programs while running SCI on the package. What are the ways to achieve this?

    Hi,
    while defining an object set choose:(in the menu)
    Edit - Exclude View Maintenance Function Groups.
    This should exclude most or at least some of the includes from being checked.
    Kind regards,
    Hermann

  • Can we add the standard includes inside a function exit.

    Hi,
    Can we add the standard includes inside a function exit.
    I want to add 4 to 5 standard includes. If iam adding it it says report or program already exists.
    Can anyone tell me is it possible or we can modify the only the data which is coming to that function module .
    Please help me on this.
    Thanks,
    Rose.

    hi santhosh,
      The data needed for those includes are also exist in the funtion module exit. I want to add those includes and in one include just i want to add some 10 to 15 lines of code. Is it possible.
    If i include all those includes inside the function exit it says report or program name already exists. When i double clicked on the error it takes me to a line in 1 include which has function-pool statement.
    How can i eradicate this error.
    Can u please help me on this.

  • How can we create new pricing requirement for a condition type

    Hi All,
    I am in urgent need of creating new pricing requirements for a condition type.
    Or if there is already a conditin type existing and we want to make changes in the pricing requirements of that condition type, How can we do so ?
    In short if you can let me know how does pricing get impacted by the condition types.
    Thanks
    Mark

    Hi!
    The common transactions for condition mantaining are VK11, VK12, VK13.
    In SPRO - Sales and distributoin - Basic function - Pricing - Pricing control - *.
    Is this what you want?
    Regards
    Tamá

  • I have a requirement for the Standard report like QA33

    Hi All
    I have a requirement for the Standard report like QA33. The requirement is that, in the output of QA33,
    The Requisitioner, Purchasing group and Tracking Number should be displayed
    Please give me suggestions to do this
    I searched for User Exits and I found QEVA0004, QEVA0005, QEVA0006, QEVA0007, QEVA0008, QEVA0009, QEVA0010, QLCO0001, QSS10001.
    In the Above which exits I can use and how to implement them
    Pls reply
    Thnx in Advance
    Regards
    P KAMAL

    When changing or deleting one or more lines of the internal table
      "\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table
       "\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS", 0 was used as
      the line index. An index less than or equal to zero is not
      allowed.
      The error can occur when using the following options:
      1. "INDEX idx" for specifying the line number in the table
       "\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS"
         where you want to change, insert or delete.
      2. "FROM idx" for specifying the start index when deleting a line
         area from or inserting a line area into the table
       "\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS".
      3. "TO idx" for specifying the end index when deleting a line
         area from or inserting a line area into the table
       "\PROGRAM=ZRQEEAL10\DATA=SELECT_FIELDS".
      At the time of the termination, the table contained 2 lines.
    This is the error
    I went to se80 and copied the whole program - > but getting this error

  • Package name which contain user exit  in standard include name

    hai experts,
    can i know the package name which contain user exit mean standard include which contain forms of the perform. or give some suggestion to find this exit for purticular tcode.
    useful reply will be awarded.
    regards,
    jai.m

    Hai,
    it is not over thare....
    actualy i need to do some work at the time of the save document of mb1b transaction. my need is if any one exit or custmer exit or badi has trigger at the time of save the document in mb1b transaction.
    regards ,
    jai.m

Maybe you are looking for

  • Rewrite query

    hi i have a standard oracle report query which i ve taken from the data model is it possible to rewrite this query without the bind variable , also the data given as output should be same when rewritten wht does &C_vendor_dynamic_SQL stand for SELECT

  • Payload

    What does payload in xi mean ????

  • Smartform Printing Problem in SAP ECC 6.0 with Ehp6

    Hi Sap Expert, Our Sap System has been upgraded from ECC 6.0 to ECC 6.6 ( Ehp6). now we are  facing  problem in to print smart forms . I have a smart form with one page and three copies are there. On first it was written ORIGINAL, on second DUPLICATE

  • Bug in Report Buider (anybody solve it?)

    We are facing a problem with Oracle Developer Report Builder 6.0.5.28.0 . The Problem is as Follows. When we print a report from the previewer of a character mode report it is giving a GPF error and we are unable to print the Report but if the report

  • Appearance of quark files

    Hi, At work my boss just got a new Mac Mini with Tiger 10.4.2. I have 10.3.8 Panther and there are a few computers still running OS 9. We have a server for all our files. On the new Mac Mini Quark 5 files are coming up with a strange black icon. I ca