cancel
Showing results for 
Search instead for 
Did you mean: 

requirements

Former Member
0 Kudos

Hi Gurus,

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks Ayub And Charles,

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

Former Member
0 Kudos

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>:

DATA: WORKFIELD(16) TYPE P DECIMALS 2.

CHECK KOMP-KZWI1 NE 0.

IF XWORKJ NE 0.

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

XKWERT = WORKFIELD.

ELSE.

XKWERT = 0.

ENDIF.

I think you will be happy now.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Friend,

<b>Requirement</b>

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.

<b>Use</b>

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.

<b>Examples</b>

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.

Former Member
0 Kudos

Hi,

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.

Rgds,

Chandra

Former Member
0 Kudos

hi

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.

Former Member
0 Kudos

Requirement:

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.

Regards

AK