cancel
Showing results for 
Search instead for 
Did you mean: 

adding new subtotal to IPC

Former Member
0 Kudos

Hi guru,

I have modified the domain of field KZWIW, in crm and R/3.

This domain concerns subtotals.

I have just created sutotal $. So I can transfer values to the subtotal Xwork$. Reason is I have run out of fields for transferring condition values and I need one.

Unfortunately in CRM this brand new subtotal it does not work, due to the fact that IPC cannot find this brand new subtotal.

For sure I have already compiled Java file and generated .class file with the brand new subtotal.

But it still does not work.

What should I do in order to solve this problem?

I suppose I have to fill a .java file to convert the value.

Many thanks in advance,

Regards,

Andrea

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

Please give a specific explaination. I think there is no need to change any java code for this, there are standard delivered subtotals in the requirement field in the pricing procedure maintainance.

If you want to use the custom built subtotal, this has to be included in the communication structure in order for the ipc to access. The communication structure is nothing but the field catalog you can maintain in the SPRO customizing.

Queries are welcome.

Regards,

Naveen Rajagiri

Former Member
0 Kudos

Hi Naveen,

many thanks for your specific explanation.

The fact is I have already enriched the domain of field KZWIW, by adding the subtotal $ - XWORK$-.

There is a custom made communication structure in CRM which is in charge of reading routines developped in Java.

After compiling JAVA routine in Ipc replacing subtotal M with $ , stopping and restarting IPC dispatcher and server, eventually did not work.

Why? After filling item fields, while I was creating an order, I displayed the following error was "Subtotal $ cannot be read by IPC".

In fact only standard CRM subtotals are converted via java methods and classes.

So I think that somewhere in Ipc I have to re-write the brand new subtotal in java code.

Apart from replacing in java Pricinguserexits file subtotal M with $, where should I re-write in Java code this brand new subtotal?

Hope to find an answer.

In any case many thanks in advance.

Andrea

Former Member
0 Kudos

Did you ever get this to work? I just did the exact and it's not working. We used up all XWORKD-XWEOKN so I added ZWORKN as N. I did this to the domain KZWIW in both R/3 and CRM. R/3 is working fine as expected. However, in CRM I got this message: "IPC:The subtotal indicator N is not allowed".

Do I have to do anything with Java for the IPC?

Thanks!

Former Member
0 Kudos

Hi Dom,

Adding additional subtotal fields is not supported via the IPC.

Regards,

Michael

Former Member
0 Kudos

Hi Dominique,

the problem as said unfortunately IPC does not support addition of a brand new subtotal. My case was the following:

since I finished the subtotal, which transfer values of condition (meant q*unit price), I was forced to use a subtotal which transfer price unit.

In this case if you don't code an exit in Java, independently of the quantity you put you are going to display just the price for one unit in the field KWERT.

So eventually the problem was solved just by using price transfer subtotal, but as well by adding the following code to the Java routines in the Ipc:

1 //Andrea 07 Ago 2006. Quantity for item product necesary due to introduction subtotal_m

//give the value in the pricing procedure (price*quantity),

<b>BigDecimal qnty = prItem.getBaseQuantity().getValue();</b>

BigDecimal resultadoSocio1 = ValorNeto.multiply(zzporcodec).divide( BigDecimal.valueOf(100), 100, BigDecimal.ROUND_HALF_UP).<b>multiply(qnty);</b>

So the idea in my case was to define a brand new variable in order to pick up quantity values.

Please reward with points if it helps.

AndreA