cancel
Showing results for 
Search instead for 
Did you mean: 

can we prevent entering the same condition more than one time?

Former Member
0 Kudos

Hi friends,

Can we prevent the user for entering the same condition type more than one time in same sales order?

Rama rao

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi friend ,

You mantain condition record for the condition type which you want to use in VK11

Then goto V/06 ( Condition type screen ) in the manaual entries select D ( not possible to process manaually )

Aftet this you will nit be allowed to process or enter the condition type again in the pricing procedure , in sales order.

Rewards if it helps

Regards ,

Aditya.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi alll

thansk for everyone. First of all the said condition type is manual. So we cannot put it as D which does not allow to process manually. What is hapening is sometimes the user by chance enters the condition type twice with two different values and every process is being completed with overlook where he cannot reverse any of those. So I want some control where if user enters the same condition more than 1 time in same sale order.

Rama

Former Member
0 Kudos

Hi

We do have a similar requirment..Can u give us possible solution...

To disallow multiple times entry of same manual condition types in sales order.

Regards

Sudha

Former Member
0 Kudos

/write codes in Include ZXVVAU05/

/prgm avbl in one of the msg in forum/

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 .

Former Member
0 Kudos

copy & paste the above prgm and ur jod is done..

I hv done and it is working fine...

But what if manual condn is entered in billing...

hw can we avoid the same????...

Lakshmipathi
Active Contributor
0 Kudos

Dear Rama Rao

Through user exits, MV45AFZZ or MV45AFZB, you can prevent the users to change the condition in sale order. In fact, you can also prevent accessing TCode VA02 to the said users with the help of your basis team.

thanks

G. Lakshmipathi

former_member184555
Active Contributor
0 Kudos

Hi

If I'm correct, you are asking for changing the condition values.

The users can change the values(for condition types allowing manual entries) till the document is saved. You have to restrict them from making changes in VA02 - change mode.

Thanks,

Ravi

Former Member
0 Kudos

Hi,

Can you explain as to why do you need such a scenario.

If you tell me that it would be easy to find a solution for the same.

regards,

Siddharth.

Former Member
0 Kudos

hi

i think userexit will help

regards

krishna