Skip to Content
0
Former Member
Jun 30, 2006 at 01:34 PM

IPC JAVA Routins

143 Views

Hi All

I need to convert ABAP Pricing Routine to JAVA.

I have Identified the Req where i need to Code

they are

1. Requrement

2. Alternative Conditon Type

3. Alternative Condition Base Vaue

I got that Corosponding JAVA Methods to be extended are

1.getRequirementNumbers,determineRelevantAttributesForRequirement,checkRequirement

And Like that for Alternative Conditon Type & Alternative Condition Base Vaue.

I have Routine in ABAP somthing like

for checkRequirement

& Codes are Somthing like

check: komk-auart ne 'L2'.

check: komk-auart ne 'G2'.

&

data: holdknumv like xkomv-knumv.

data: holdkposn like xkomv-kposn.

&

  • Store the current condition details

holdknumv = xkomv-knumv.

holdkposn = xkomv-kposn.

& mainly like

read table xkomv with key mandt = sy-mandt

knumv = holdknumv

kposn = holdkposn

kschl = 'ZVAL'.

case 902:

Now By looking at APIs & StandardUserExits I came to know that knumv --->is Stands for Number of the Document Codition.

& this I have Checked for Standard ( not same field ) Structure-field corrosponds to Some Method Type in API.

Can u gimme the Code Syntax to Convert those ABAP Routines to JAVA Routines mentioned Above.

For

check: komk-auart ne 'G2'.

check: komk-auart ne 'ZCRO'.

i have written my JAVA code as

if (item.getItemAttributeValue(CustomizingConstants.AttributeNames.pricingIndicator).equals("X")

&& !item.getHeaderAttributeValue("AUART").equals("L2")

&& !item.getHeaderAttributeValue("AUART").equals("ZCRO")

)

{

return true;

}

else

{

return false;

}

I will be really Thank ful to u All !!!!!!!! if u can help me on others.

Thanks & regards

Ravi Sah