cancel
Showing results for 
Search instead for 
Did you mean: 

IPC Development Help

Former Member
0 Kudos
69

Hi all,

I have developed an IPC for Pricing User Exit.

My formula fto be coded in Java was :

FORM FRM_STAFFELBAS_905.

*{ INSERT BSCK900443 1

  • E036 2.1.5.5

xkwert = komp-zzunitwgt.

*} INSERT

ENDFORM.

I have summarized what I have done with the method names .

But I am not sure whether Is this practice will bring a good result.

1. getConditionValueFormulaNumbers

Here I have specified my User Exit Number 905

2. determineRelevantAttributesForValueFormula

Here I have registered the Z variable like this

case 912 :

relevantAttributes = new String[] { "ZZUNITWGT" };

break;

3. overwriteConditionValue

Here i have coded the action as below :

String ordType = new String();

switch (valueFormNo) {

// Routine 912

case 912 :

try {

// Get the Value

ordType =

prItem.getItemAttributeValue(

CustomizingConstants

.AttributeNames

.freeQuantity)

.getValue().trim();

return BigDecimal.valueOf(Long.parseLong(ordType));

}

catch (Exception e) {

log_api.log_write_msg("SPE", "PricingUserExists", 1, "Exception raised");

return null;

}

*******************************************

Please analyze the Code above and let me know your view at the earliest.

Thanks

kamesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kamesh,

It is a little confusing below that you have routine 905 then something totally different for 912? Code looks fine except if its all suppose to be 905.

If you are after the value in the new customer field ZZUNITWGT then you just have to put this in:

item.getItemAttributeValue("ZZUNITWGT")

(Replace Item with header if appropriate)

Cheers

Andrew

Answers (0)