Skip to Content
avatar image
Former Member

How to get ITM_TYPE field value from IPricingDocumentUserExit java class

Dear Experts,

Can please help me in fetching ITM_TYPE field value from IPricingDocumentUserExit / IPricingItemUserExit java class.

I am working on Internet Pricing configuration (Java).

Plese share the piece of Java code to fetch 'ITM_TYPE' value.

Thanks in advnace,

Abdul Gafar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 02, 2008 at 05:18 PM

    Hello Abdul,

    Try this out...

    
    String itemType= "default";
    try {
    itemType= prItem.getHeaderAttributeValue("ITM_TYPE").getValue();
    } catch (UnsuppliedAttributeException e) {
    e.printStackTrace();
    } 
    
    

    Easwar Ram

    http://www.parxlns.com

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2008 at 06:35 AM

    Dear Eswar,

    Thank you for your information.

    However I have not found the method

    getHeaderAttributeValue() in IPricingDocumentUserExit / IPricingItemUserExit java classes.

    Could you please check it once and let me know the class name on which the above method is invoked.

    ITM_TYPE field is available in the structure CRMT_ACS_I_COM in crm.

    Thanks

    Abdul Gafar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Eswer,

      The code mentioned by you is the correct solution.

      The configuration at CRM side is not done properly. So the ITEM_TYPE value is not fetched. After setting the configuration at CRM side, it is working fine.

      Thanks for your input.

      Abdul Gafar