cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in IPC Java user exit

Former Member
0 Kudos

Hi All,

We have written the IPC pricing routine logic in JAVA .I am unable to get the some attributes form the CRM to JAVA.

below is ABAP code:

FORM kobed_901.

DATA : wa_komv TYPE komv.

sy-subrc = 4.

READ TABLE tkomv INTO wa_komv WITH KEY kschl = 'ZBOF' "Condition type ZFOB

kinak = ' '. "Active condition type

IF sy-subrc EQ 0.

IF komk-inco1 NE 'AXR'.

sy-subrc = 0.

ENDIF.

ENDFORM.

-


JAVA Code:

package com.zcomp.pricing.userexits;

import com.sap.spe.condmgnt.customizing.IAccess;

import com.sap.spe.condmgnt.customizing.IStep;

import com.sap.spe.condmgnt.finding.userexit.IConditionFindingManagerUserExit;

import com.sap.spe.condmgnt.finding.userexit.RequirementAdapter;

public class ZSpecialRequirement extends RequirementAdapter

{

public boolean checkRequirement(IConditionFindingManagerUserExit item,

IStep step, IAccess access)

{

boolean flag=false;

String IncoTerms1 = item.getAttributeValue("INCO_TERMS1");

if (!IncoTerms1.equals("AXR"))

{

flag =true;

}

return flag;

}

}

Here my problem is how to get the abap related internal table data into java

READ TABLE tkomv INTO wa_komv WITH KEY kschl = 'ZBOF' "Condition type ZFOB

kinak = ' '. "Active condition type

I am new to IPC CRM ,Please help me.

Thanks,

Venky

0 Kudos

Hi Venky,

Based on your JAVA Code, can you please suggest me the which implementation should be used to modify the PRODH in pricing exit.

Create a Formula PricingPrepareFormulaAdapter in ECC loaded that to the DB with my custom Java implementation class ZPricingPrepare. But this class is not getting called at all.

Any insights?

Thanks,Viji

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You need to do this logic in CRM_COND_COM badi