on 09-28-2011 8:25 PM
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
Hi,
You need to do this logic in CRM_COND_COM badi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.