on 12-21-2005 4:40 PM
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.