cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to capture field values in Master agreement Line Items

Former Member
0 Kudos

I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->

agreementBean = doc.getRootParentIBean();

lineItemCollection = agreementBean.getLineItems();

collectionsize = lineItemCollection.size();

for(i=0;i<collectionsize;i++){

collectionbean = lineItemCollection.get(i);

partNum = ""+collectionbean.getPartNumber() ;

Quantity = ""+collectionbean.getQuantity();

throw doc.createApplicationException(null,partNum + " , " + Quantity );

}

Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.

1. Price Unit

2. Unit Price

3. Product Category

4. Plant

Please help me to find the values.

Thankx in Advance.

Su

Edited by: subrataindra on Aug 10, 2010 11:11 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This will return the name of the plant.

.getExtensionField("PLANT").get().getDisplayName(session);

Check if this returns the product category

collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();

This will Return the Price

collectionbean.getExtensionField("PRICE").get().getPrice();

(return type :BigDecimal)

This will return the currency

collectionbean.getExtensionField("PRICE").get().getCurrency;

(Return type:String)

Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")

Hope this helps

Regards,

Immanuel

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you very much Immanuel for your great help.

Now, I can get the PLANT and currency.

But,

1. PRICE_UNIT = collectionbean.getExtensionField("PRICE").get().getPrice();

is returing null though there is value in Price Unit. [currency is returning perfectly.]

2. ITEM_CAT = ""+collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();

is also returning null. I need to capture product category.