cancel
Showing results for 
Search instead for 
Did you mean: 

Routine for pricing

Former Member
0 Kudos

Dear Experts,

I have a discount condition type K004,  access sequence  is maintained as Division/Material , so it is applicable for all the materials.

I have another condition type K005 access sequence is maintained as Division/customer group.

Both the condition types are in same pricing procedure.

Whenever k004 is determined in sales order  k005 should not be determined,

i trust that i need to create a routine for this issue;

Kindly give me an insight in this regard

Shibu

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182378
Active Contributor
0 Kudos

The requirement can be met with standard functionality.

See probable solution -

1. Create a condition type ZZZZ (V/06)

2. In the access sequence (V/07) have 2 condition tables:

No. Description of table Requirement, Exclusion

10   Division / Material                          X

20   Division  / Customer group

3. Assign the access sequence to the condition type ZZZZ

Explanation - When the value (condition record for) of condition table 10 is found, system shall NOT go further (i.e. system shall not go to read condition table No. 20).

In your pricing procedure (remove K004, K005) and add ZZZZ

Test.

Former Member
0 Kudos

I have a discount condition type K004,  access sequence  is maintained as Division/Material , so it is applicable for all the materials.

For this at VK11 during the maintenance of the condition record system will ask the division and material,so the condition type is permitted to that division and to that material.

Whenever k004 is determined in sales order  k005 should not be determined,

This can be archived through condition exclusion,Best condition between condition types or Least favorable between conditions types.

Once you choose any one option in condition exclusion procedure,during the sale order system will pick only one condition type based on the situation.

Regards

Ram

Former Member
0 Kudos

Hi sibhu,

Just check whether you can use condition exclusion process. It is standard SAP functionality.

Rd's

Sanjay

prasanna_kumar4
Active Contributor
0 Kudos

HI

Try with User Exit

SE38 : LV69AFZZ     Form  USEREXIT_PRICING_CHECK

Explain to ABAPers , If Both the conditions KSCHL = K004, K005 are available then give the error message like " Delete any one of the condition K004 or k005 "

Regards,
Prasanna

Former Member
0 Kudos

Hi Prasanna,

could we create routine for the same?

jignesh_mehta3
Active Contributor
0 Kudos

Hello,

No need for Routine & other ABAP enhancements.

You can very well achievve this by Condition Exclusion available in SAP Standard.

Thanks,

Jignesh Mehta

Former Member
0 Kudos

Hi Mehta,

how we can meet this requirement through condition exclusion?

we can make use of condition exclusion on the basis of least or best condition not the condition type basis, because we will change the condition frequently so it may become least or best.

Thanks

Shibu