Skip to Content
0
Former Member
Aug 26, 2005 at 07:51 PM

Changing XKOMV-KMANU field in IPC... Is it possible?

381 Views

Hi all,

I have to develop IPC formula/routine to change manualentryflag for pricing condition type.

In SAP R/3 based on loginid/user, KMANU field value is changed.

In pricing alternate condition value routine following code is written:

IF SY-UNAME = 'MANAGER'.

  • condition type allowed to change manually

XKOMV-KMANU = ' '.

ELSE.

  • condition type NOT allowed to change manually

XKOMV-KMANU = 'D'.

ENDIF.

The value of XKOMV-KMANU is set to 'D' or ' '.

If this field is blank then user can change this condition type value manually.

If it is equal to 'D' then he can not make any changes as the condition type becomes display only in sales order pricing entry screen.

In IPC userexit,

I want to write the same code.

But in routine I can only read the value of this field:

char mEntryFlag = prCondition.getManualEntryFlag();

getManualEntryFlag() is public method defined in class PricingCondition.java located in

package com.sap.spe.pricing.transactiondata.application.imp;

There is one method to set:

void setManualEntryFlag(char manual)

{

m_manual = manual;

}

But this method is not public, so I can not call this method in IPC routine.

Is there any way to set this manualentryflag in IPC?

Or any way in CRM-ABAP to set this value?

This is applicable to only one discount condition type.

Only certain users are allowed to change the discount rate of this condition type.

If he is not authorized to change this rate, then this condition type should be display only and whatever discount is maintained in condition master should be applicable in the sales order.

Thanks in advance for your help.

Regards,

Rajesh.