cancel
Showing results for 
Search instead for 
Did you mean: 

IPC Pricing routine

Former Member
0 Kudos

Hi all,

I have created new pricing user routines. I am trying to create the JAVA code by myself, so can anyone helps me letting me know how the following code would be in Java?:

Data: va_value type type komp-wavwr,

wa-xkomv like xkomv.

if sy-subrc = 0.

clear wa_xkomv.

read table xkomv into wa_xkomv with key KSCHL = 'ZPCO'

if wa_xkomv-KBETR = 0.

clear wa_xkomv.

read table xkomv into wa_xkomv with key KSCHL = 'VPRS'.

wa_value= wa_xkomv-kwert.

else.

wa_value = wa_xkomv-kwert.

endif.

endif.

xkwert= komp-kzwi3-va-va_import.

Should I use jave methods to get that information for the tables or a connection to the database and a select?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Max:

Thanks very much for your quick response.

Following your instrucctions, we understand that we can use getConditionTypeName()to check as follows:

prCondition.getConditionTypeName() == "ZPCO"

But we I'm not sure how I could check the followinf sentence: if wa_xkomv-KBETR = 0.

Thanks in advance.

Abel