Skip to Content
author's profile photo Former Member
Former Member

how to find sales division of teh user logged into web shop

Hi Experts,

we have a requirement to find out the 'Sales Division' of the user who has logged into E-Commerce web shop.

It would be very helpful if someone can throw light on how to find out this.

Thanks,

Satish.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2009 at 02:58 PM

    Hi Satish,

    In ISA Internet User connected to Contact Person and Contact Person connected to Customer. Some time customer has more then 1 sales area.

    If you are interested to get information about Customer Sales Org, Division and Distributor ch. then you can use method readSalesAreas(getDefaultJCoConnection(),customer) of class RFCWrapperBusinessPartnerR3 it returns set of associated sales area of Customer.

    As you know that Customer can login to the webshop whose sales Org, Division and Distributor chl. same as define in web shop. So you can get Sales Org, Distributor chl and Division information from selected shop.

    You can get it as below.

    
    UserSessionData ShopName = UserSessionData.getUserSessionData(request.getSession());
    BusinessObjectManager bShop = (BusinessObjectManager)ShopName.getBOM(BusinessObjectManager.ISACORE_BOM);
    
    String s_org = (String)bShop.getShop().getSalesOrganisation();  // This is Sales Org or Web Shop
    String distc = (String)bShop.getShop().getDistributionChannel();  // This is Distributor Chl. Of Web Shop
    String divisoin = (String)bShop.getShop().getDivision();  // This is Division of Web shop
    
    

    I hope this information will help you.

    eCommerce Developer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Satish,

      I gave you answer which you asked for Sales org, Division etc... If it is answered properly then close it and I really appreciate if you open other thread for other question so other member can see and give you proper answer.

      Thanks for your understanding.

      eCommerce Developer

      Edited by: Ecommerce Developer on Sep 25, 2009 7:26 PM

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2009 at 06:17 AM

    Answered

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.