cancel
Showing results for 
Search instead for 
Did you mean: 

IPC help on User Exit Type VAL

former_member193357
Participant
0 Kudos

Hello Experts,

In ECC we have a custom condition type ZYTS and against that there is a formulae routine attached and in the routine there is some code which i need to re-write in CRM IPC java using ECLIPSE.

Below is the code in ECC for 900 routine which i need to right in IPC JAVA( I know how to right the JAVA coding for this)

xkwert = xworkd - xworke

.

So below are the steps I did...

1) Eclipse JDK 1.4 I created on custom exit ZCUS_900 and did the coding in eclipse.

2) /SAPCND/UE_DEV -->Upload the JAR file from Eclipse to VMC.

3) /SAPCND/UEASS --> ASSIGN ZCUS_900 to usage type "PR" and User Exit Type "VAL".

4) THEN assign ZCUS_900 to forumale number 900 and this formula number is assign to my the condition type ZYTS,

5) SM52-->VMC-->RESET.

6) ZYTS is a condition formula with no access sequence.

7) SET PRC_RFC = X.

Now when I create the sales order in CRM then I am putting a breakpoint in ZCUS_900 but my breakpoint is not getting trigger. If I put breakpoint in another IPC exit ZCUS_914 which I created for REQ type for another condition type then the breakpoint trigger in ECLIPSE and I can debug for ZCUS_914.

Once my breakpoint trigger in ZCUS_900 then I only I can write the code as per ECC routine.

What I found is that in one of the VMC RFC we pass the HEADER GUID and it return all the CONDITION TYPE in that i cannot see my condition type ZYTS. Is it because of this my ZCUS_900 not trigger or do I need to register ZCUS_900 in some other standard java exit??

Code : ZCUS_900 ( below is just the sample code I have written later i will changed it, once my breakpoint trigger),

public class ZCUS_900 extends ValueFormulaAdapter {

  /* private static UserexitLogger uelogger = new UserexitLogger(ZCUS_900.class);*/

     public IPricingConditionUserExit overwriteConditionValue(IPricingItemUserExit pricingItem,

               IPricingConditionUserExit pricingCondition, String kschl, ICurrencyValue XKWERT) throws ConversionMissingDataException {

    

    BigDecimal value = new BigDecimal(2);

    pricingCondition.setConditionValue(value);

    pricingCondition.setConditionBaseValue(value);

    pricingCondition.setConditionRate(PricingTransactiondataConstants.ZERO, "%");

    return pricingCondition;

     }

}

Regards,

Jan.

former_member193357
Participant
0 Kudos

Hello Experts,

Anyone who can help me on this???

Regards,

Jan.

Accepted Solutions (0)

Answers (0)