cancel
Showing results for 
Search instead for 
Did you mean: 

Not allow to add condition type, if it already existing

Former Member
0 Kudos

How to setting, if I want to control that not allow to add same condition type, if it already existing in the transaction.

For example,

PR00 100.00 USD/MT

ZDIS 10.00 USD/MT

ZDIS 8.00 USD/MT (Not allow to enter or add condition type)

Thanks!!

Edited by:

Edited by: Kitta on Jan 29, 2008 3:17 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Create A routine function for same .

I am given here the code also

Write the following codes given below in include file.

&----


*& Include ZXVVAU05

&----


  • Written for restriction in VA02 for Condition type duplication

DATA: BEGIN OF tXKOMV OCCURS 50.

INCLUDE STRUCTURE KOMV.

DATA: END OF tXKOMV.

data : tab_name(40) type c ,

ld_len type i , ld_len1 type i .

field-symbols : <tab> type any.

tab_name = '(SAPMV45A)XKOMV[]'.

assign (tab_name) to <tab>.

txkomv[] = <tab>.

describe table txkomv lines ld_len .

sort txkomv by kposn KSCHL .

delete adjacent duplicates from txkomv comparing kposn KSCHL .

describe table txkomv lines ld_len1 .

if ld_len1 ne ld_len .

refresh txkomv .

message e002(zmm) with ' Please remove duplicate condition in item price' .

endif .

4. Save and activate.

This has to be done thru Abap person ,Hope this will solve the problem of yours as it has mine.

regards

Manu Kapoor

Former Member
0 Kudos

Thanks Manu.It has solved the problem of even mine.

Former Member
0 Kudos

hi,

try condition type in pricing procedure to be automatic instead of manual entry.This will avoid duplication as manual entry is eliminated.

Hope this helps you.Reward points if it is usefull.

Thanking you.

Best regards,

R.Srinivasan

Former Member
0 Kudos

Sorry for late reply,

For more information:

My condition type is manual condition. The error occured it may be the system cannot lock that

if I enter the same condition type, the system allow to add it.

I need to control that if it already exist, how can set to not allow more.

Thanks

Kitta!!

Former Member
0 Kudos

You can do it using MV45AFZZ userexits.

It include program that contains the userexits for sales order