cancel
Showing results for 
Search instead for 
Did you mean: 

Help with IPC routine

Former Member
0 Kudos

Hello everybody,

I'm new on IPC functionality and I'd like to get some help from you if possible.

My pricing schemes in CRM are provided by the connected R3. I've configured the IPC and all R3 pricing routines works correctly in CRM. The problem is that I need to create a new price condition based on a CRM custom table which is not on R3 environment.

I've configure the following in CRM

SPRO - CRM - Basic Functions - Pricing - Define Settings for Pricing - Adopt User Defined fields

In this customizing point I've implemented the ITEM_COMMUNICATION_STRUCTURE method in order to provide some z fields to CS_ACS_I_COM structure (previously extended with these fields).

This communication structure is correctly filled with values.

My question is: ¿How can I develop a JAVA routine for my IPC referring to these fields?

I know that I have to implement the following methods:

getConditionvalueFormulaNumbers

determineRelevantAttributesForValueFormula

overwriteConditionValue

But I don't know how to refer to my fields in overwriteConditionValue method

I think something like this:

.....

switch(valueFormNo)

case 600:

I want to return CS_ACS_I_COM-ZField1 as routine value but i dont know how to do it.

Could anybody help me with this code?

Thank you veru much.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To get data from the communication structure is to use:

prItem.getItemAttributeValue("FIELD")

or

prItem.getHeaderAttributeValue("FIELD")

It returns a string value.

Suggest reading the documentation that comes in the doc folder of the IPC installation.

Cheers

Andrew

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you very much for your answer Andrew. I've read this documentation but I think I will have to repeat the process

Former Member
0 Kudos

First, thank you for your answer,

The steps which you mentioned are known for me. My question is how refer in code (JAVA) to my Z fields filled in CS_ACS_I_COM structure in order to overwrite my pricing condition value.

Thanks

Former Member
0 Kudos

Hi

The java methods must be implemented in class PricingUserExits.java

The java class is compiled and deployed in to the IPC installation directory

The class name must be input in to the IPC Adminstrator so that the UserExits can be used by the IPC Server.

Check Requirements

Formulas :overwrite condition value

Application Code:pricingConditionInit

pricingItemCalculateBegin

pricingItemCalculateEnd.