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


Hi Gurus,

As we see requirement at many places in condition techniq, please tell me what is requirement and how can we use it???

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 03:40 PM

    Thanks Ayub And Charles,

    Could you please go further and tell me how to use this with an exapmple?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Friend you are welcome,

      These are the steps to create a routine,

      01. Transaction Code - VOFM (Maintain: Requirements and Formulas)

      02. Menu Path - Formulas --> Condition value.

      03. Go to bottom of the table control,

      04. Enter the routine number for Ex. 900 and some meaningful description,

      05. It will ask the Access key, enter the available access key. Now ABAP editor will be opened, you can switch off Modification Assistant from Menu EDIT �� Modification operation �� Switch off Assistant.

      06. In custom routine we can use KOMP structure, where we can get the pricing value,

      07. To access the whole condition record, we can use structure XKOMV. But to access this XKOMV structure we have to define one internal table of type ‘INDEXED_KOMV’ and pass the structure XKOMV value to the new defined internal table.

      08. Depending upon the requirement you can refer KOMP or XKOMV structure in your code.

      09. The calculated result we have to pass to XWERT field, which will be display to the condition record.

      10. To activate the subroutine we have to first save the code and come out from the routine. In Maintain: Formulas Condition value screen, select routine to activate and select Edit menu �� Activate.

      11. After activating the custom routine, functional person will attach this custom routine to the condition type of the pricing procedure at AltCty column.

      12. Function person can define one field at Subto column for condition type, which we can use in our custom routine.

      13. For ex. We require to calculate the % discount depending upon the two condition type. To get the condition value for the both the condition type we have to select one field at Subto column. There are two types of fields, one is ‘Copy value to’ and another one is ‘Carry over value to’. One store the condition value whereas second store Condition rate. Depending upon the requirement we can select the field type. Before using the Subto field please make sure that it is not referring to other condition type.

      14. To calculate the % you have to divide or multiply by 10000 not by 100 due to SAP current type.

      <b>This is an example of a code sample</b>:



      IF XWORKJ NE 0.

      WORKFIELD = ( KOMP-KZWI1 - XWORKJ ) * 10000 / KOMP-KZWI1.



      XKWERT = 0.


      I think you will be happy now.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:45 PM


    requrirement is nothing but a routine written by abapper's according to the clients requirement.

    requirement is used for condition types that excluse particular condition type while determining the net value.

    Routine nop 23 and 24 can be used only in billing document with condition type BI01, BI02,BI03 condition types for rebates as these condition types should be activated only in the billing document level.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 01:01 PM


    Requirement in the pricing procedure is for particular conditions met for that pricing condition type then only it will trigger.

    For ex:VPRS condition have requirement 4,the logic behind this requirment is during sales order creation Plant should be eneterd and there shouldn't be any billing plans in the order,then only this condition will trigger.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 12:41 PM


    It is a routine that is written by an ABAP consultant according to the business requirement.

    By defining Requirement in condition technique we can restrict the access of condition type.

    To understand the concept, we will take the example of the Rebates. Rebates are to be included during the billing document processing and not in the sales document processing. As rebates are given on the delivered quantity and not on the ordered quantity (incase of cut-off period for rebates).

    For rebates we use the condition types BO01 to BO05, and in the Requirement column we give the value 24 which is “Only in Billing Document”.

    This Requirement will ensure that these condition types will appear only during the billing document processing.

    If new Requirements are to be defined we follow the procedure given below.

    Go to T.Code: VOFM. – Maintain Requirements & Formulas

    Click on the “Requirements” in the top menu and then click on “pricing”.

    We have a list of requirements, we can ask ABAP consultant to create new requirement based on the client requests.

    And we assign the application type like V – Sales/Distribution etc.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 03:36 PM

    Hi Friend,


    It’s a factor in the condition technique that restricts access to a condition table. The system only accesses a condition table to determine the price if the requirement specified has been met.


    If the requirement is fulfilled (SY-SUBRC = 0), then output determination also takes into consideration output type or the access sequence, for which the requirement has been specified.


    A possible requirement would be, for example, that a difference should be made between document currency and local currency. Here, system uses an access sequence to determine the price of a material. One of the accesses in the sequence contains the requirement "in foreign currency." The system only uses the table behind this access if the sales order for which the price must be calculated is in a foreign currency.

    I think it will be clear to you. If you hav ny further issue come back.

    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.