cancel
Showing results for 
Search instead for 
Did you mean: 

New pricing routine

Former Member
0 Kudos

Hi guys,

I am new with all this IPC stuff and I was wondering if you could help me with some questions.

I need to implement the following code:

if XKOMV-KSCHL != ZPCO

get the value from condition VPRS

else

value from condition XKOMV-KWERT

my questions are:

1. What method-object can I use to point condition ZPCO for my item to get its value??

2. Is there any standard to ge the value from VPRS?

Your help is highly appreciated as I do not see the exit of this problem!!

Thanks

Alicia

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

thanks for your response. I changed it as you suggest but I think I got a problem reading my file. I is ubicated correcly but it is not being read. Do you know possible problems?

Thanks!

Alicia

Former Member
0 Kudos

Hi Alicia

If you have access to the IPC directory on the files system, there is great API documentation available.

For the XKOMV structure, you can use the following java interface to access the various fields.

\ipc\doc\spe\apidocs\com\sap\spe\pricing\transactiondata\application\IPricingConditionUserExit.html

I think you use the method getConditionTypeName() to pull the XKOMV-KSCHL.

And you can use getConditionValue() to pull the XKOMV-KWERT as well as VPRS

Finally, to set the value when you are finished, you will simply do a "return <your value/variable>;"

Hope this helps!

Regards,

Ajay S Gupta