Filter BP based on Sales Employee using Navigation as well.

Hi All,
We have a requirement where we want to restrict/filter BP Master Data to be available only to a particular Sales Employee.
I have managed to do this on Find Mode and Choose from List.
One of the requirement is also that while the Navigation Buttons are used to go to Next, Prev, First or Last BP Master Data that should only display the BP Master Data that is linked to a Sales Employee (Linked through a UDT).
It would be of great help if someone would explain how to control the BP Master Data when Navigation buttons are used.
I tried using Forms.DataSources, Forms.DataBrowser tapping into the MenuEvents and capturing the events of the Navigation buttons but can't get it to work.
I found a lot of threads in this relation but all end up saying USING SDK but none explains the procedure.
If someone could please provide some direction (sample code) on how to either populate the value of CardCod BP Master Data Form or if there is a way to filter the Form's Datasource to only include the Sales Employee will be much appreciated.
I am new to SAP B1 and this forum so if you find my thread repeatative then please forward me the thread which explains the procedure.
Any help,advice or even point to the direction is very well appreciated.
Many Thanks,
Regards
Sameer Shingala.

Hi Shanker,
First of all thanks for your reply as I am still struggling with this and was hoping for someone to shade some light.
I am already capturing the Menu Events for First,Last, Prev and Next as follows:
        private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
            BubbleEvent = true;
            if (pVal.BeforeAction == false)
                oOrderForm = SBO_Application.Forms.ActiveForm;
                if ((oOrderForm.TypeEx == "134"))
                        if (pVal.MenuUID == TB_NEW)
                            SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
                        else if (pVal.MenuUID == TB_FIRST)
                            SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
                        else if (pVal.MenuUID == TB_LAST)
                            SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
                            oRecordSet.MoveLast();
                        else if (pVal.MenuUID == TB_NEXT)
                            SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
                        else if (pVal.MenuUID == TB_PREV)
                            SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
                            oRecordSet.MovePrevious();
            else
                SBO_Application.SetStatusBarMessage("Menu item: " + pVal.MenuUID + " sent an event AFTER SAP Business One processes it.", SAPbouiCOM.BoMessageTime.bmt_Long, true);
My Problem is after capturing this events and checking whether the BP belongs to the Sales Employee or not how to either move to next, prev, first or last BP record that belongs to the Sales Employee and display it on the BP Form. Can you please post some code to help me with this. For me this might only work 2 ways to either populate the CardCode Item on BP Form with Next, Prev, First or Last Record from Recordset or some how to Filter The datasource of the view. I tried both and does not want to work. When i try to populate the CardCode Item on the BP Form it gives me the error saying the Item is not User Defined etc. Please post some code sample if you can to overcome this proble. Thanks in advance.
Regards
Sameer
Edited by: Sameer Shingala on Aug 17, 2010 9:30 AM
Edited by: Sameer Shingala on Aug 17, 2010 9:31 AM

Similar Messages

  • Can we restrict Customer list filter based on Sales Employee

    Dear All,
    One of my client is having sales offices through out india with sales employees working at each locations. Client wants that whenever any sales employees access SAP business One and enter Leads in CRM, that sales employees should not be displayed other customer except the customer he has been assigned. May i know is this possible ?
    For Ex...
    I have 2 Sales person by the name Samir & Atul
    Now Samir has been allotted following customer
    --  XYZ Ltd
    --  LMN Ltd..
    Atul has been allotted following customer
    -- ABC Ltd.
    -- GHI Ltd
    Now Whenever Samir wants to enter data in CRM, he should only be displayed the customer list he has been allotted ie XYZ Ltd & LMN Ltd.... and not other sales person customer. Is this possible ? If yes then how ?

    Possible but would have to be done through Custom Code (SDK)
    Suda

  • How to Create RMA Based on Sales order using OE_ORDER_PUB api

    Hi,
    Can any one pls help me how to create a RMA based on the sales order using oe_order_pub.process_order APi.
    Thanks.

    Creating RMA is very similar to creating an Order. You need to make sure you're passing the correct order_type, line_type which'll be setup as 'RETURN' (or 'MIXED') category in transaction type definition.
    For the API to automatically create a reference on your RMA lines to the original Order lines, you need to pass the following
    l_line_tbl (l_line_tbl.COUNT).return_reason_code := 'RETURN'; -- Mandatory for RMA
    l_line_tbl (l_line_tbl.COUNT).reference_line_id := v_ref_line_id; -- Original order line_id
    l_line_tbl (l_line_tbl.COUNT).reference_header_id := v_ref_header_id; -- Original order header_id
    l_line_tbl (l_line_tbl.COUNT).return_context := 'ORDER';
    l_line_tbl (l_line_tbl.COUNT).return_attribute1 := v_ref_header_id; -- Original order header_id
    l_line_tbl (l_line_tbl.COUNT).return_attribute2 := v_ref_line_id; -- Original order line_id
    Once the RMA gets created, query the order and navigate to Lines>Returns tab. You can see the original order number and line number.
    Thanks
    Gopal

  • Sales Employee wise Profitability in COPA

    Experts,
    Below mentioned are COPA characteristics in current structure. Mentioned in RED are characteristics based on Derivation Logic.
    Company Code
    Plant
    Sales Org.
    Distr. Channel
    Division
    Customer
    Product
    Sales employee
    Supervisor
    Manager
    Segment
    I am able to run COPA Assessment cycle for all other segmental level characteristics maintained in KEQ3, But for Sales Employee my logic failed i Have searched for some SAP notes in which SAP mentioned that Sales employee as a receiver characteristic  we can not run assessment cycle.
    SAP Note : 74399
    But in this case my derivation logic is failed as
    Supervisor
    Manager
    Segment
    Are based on Sales Employee based derivation logic.
    In this case how to run KEU5 with Sales employee as a receiver characteristic or else any work around is available for the same.
    Thanks
    Sagar C'kar

    Sir,
    Near to Resolve....
    Need your Approval & expert comments... :-)
    I have maintained 4 Custom Characteristic
    WW010 Sales employee
    WW011 Supervisor
    WW012 Manager
    WW013 Segment
    KEDR with Move Concept from(Std characteristic) KMVTNR to WW010 (Custom Characteristic)
    KEDR Maintained for Supervisor and manager based on Sales Employee (WW010) to flow Revenue & Cogs
    similarly KEDR maintained for Segment on different combination like customer grouping
    Now system has revenue posted with 
    WW011 Supervisor
    WW012 Manager
    WW013 Segment
    and the same can be used in Assessment cycle for OH allocation.
    But if i keep (Std characteristic) KMVTNR for assessment i am unable to allocate OH to this due to system constraints.
    So i am having WW010 (Custom Characteristic) with flow Revenue & Cogs and i am planning to allocate OH to this through COPA Assessment cycle..... And display only this characteristic in the COPA reports.
    Is it fine.... May i proceed with this which will resolve my issue for Sales Employee based profitability...
    Thanks
    Sagar C'kar

  • Sales Report query by Sales Employee

    Hi All
    I need your help I have a problem with a custom report I created based on a query.
    Here is the query.
    SELECT T4.[SlpName], T3.[ItmsGrpNam], sum(T0.[LineTotal]) AS 'Line Total' FROM [dbo].[INV1]  T0 INNER JOIN [dbo].[OINV]  T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.[DocDate] >=[%0] AND  T1.[DocDate] <=[%1] GROUP BY T4.[SlpName], T3.[ItmsGrpNam] ORDER BY T4.[SlpName], T3.[ItmsGrpNam]
    This report is must show the same info. as the sales analysis report based on sales employee and gropued by item group.
    Hope this is clear thanks
    Bongani

    create crystal report using query
    SELECT  T1.DocDate, T4.SlpName, T3.ItmsGrpNam, sum(T0.LineTotal) AS 'Line Total' FROM dbo.INV1 T0 INNER JOIN dbo.OINV T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode  GROUP BY T4.SlpName, T3.ItmsGrpNam ORDER BY T4.SlpName, T3.ItmsGrpNam
    and pass doc date as parameter in crystal report.
    you cant pass parameters directly in query to use in crystal report.
    you you want to pass parameter s in query create the stored procedue in sql.
    other wise pass the parameters in crystal report.
    hope this will help you
    regards,
    neetu

  • Creating Excise Invoice from Sales Delivery using DI API.

    Hi Experts,
    I have been searching a lot for any Business Object for creating Excise Invoice base on Sales Delivery using DI API.. But have not yet found any one.
    I want to create Invoice for excisable items from Sales Delivery using DI API.,for Excisable items we cannot create standalone A/R Invoice . We need to create Excise Invoice also . But How to create Excise Invoice based on Sales Delivery using DI API. Is there any Business Object for that.
    Please suggest me.
    Thanks and Regards,
    Pooja Singh.

    Hi all,
    I have not received any reply for this thread. Does this mean that there is no provision for creating Excise Invoice from Sales Delivery ? Actually I was asked to create sales delivery and then Outgoing Excise Invoice and then Sales Invoice using DI API.
    But I don't find any Business Object for this in SDK ? Is it really not possible to create Outgoing Excise Invoice from Sales Delivery using DI API.? If possible then how?
    Please reply me if anyone has got any idea in this regard.
    Thanks and Regards,
    Pooja Singh.

  • Orders list -Sales employees

    Dear All,
    how to get the list of orders report based on sales employees or some other partner function.
    Regards,
    shekar

    Hi
    SHEKAR
             Please go to SPRO - S&DSALESLIST--
    set updating of partner index  and add the sales employee.
    Transaction group -
    0
    Function -
    PE save.
    Go to VA05 partner function there u will find your entry.
    Hope this will help you. 
    Reward Point is Expected.

  • Use of Sales Employee in HR and SD

    Hi
    We have this scenario in our company.
    1.A Employee is hired using the HR module and h gets a personnel number.2.we maintain infotype 0900 "Sales Data" for this employee here we
    select his Sales Org , Sales Office , Sales Group.
    3.We want to send some samples to this employee on his communication
    address maintained in HR by creating a sales order in the SD module.
    4.i tried various search in this site and other forums to find out how
    a employee can be used as a customer but was not able to find much.
    5.Request your help to tell me how to use a employee hired thru HR in
    the SD module for order creation etc.Please send/direct me to documents if
    available.
    regards
    Pravin

    Hi Everyone
    Thanks for your replies but i am still confused as to why i have to create a customer again for this sales employee whom i hired in HR . I mean cant i create a sales order directly against this sales employee ?.
    You see if i have to create a customer again then i have to put in all the details again. I am trying to eliminate the need of typing in the communication address etc from HR again. We found people make mistakes during data entry and then there is inconsistency between data in HR and data in SD.
    Like I want to be able to create a sales order on a sales employeei hired in HR and any changes done in HR should flow seamlessly to SD for these guys as after all both these moduls SD and HR are said to b integrated ?
    Waiting for your inputs
    Regards
    Pravin

  • Sales Employee Details Based on Invoice

    Hi,
    Based on Invoices i need to bring the sales employee details.
    sales employee is present in Sales Order as Partner Function.
    can any one help me on this.

    Hi
    Presuming that u are looking at a report, I am suggesting this solution.
    The billing document will have the sales order number, and based on that go to the partner functions and pull in the sales employee.
    Hope this helps.
    Kind Regards
    Chakradhar

  • Employee Sales by cpoy HR information (Use Sales Employee withou HR)

    Correct me if I'm wrong. I'm trying to copy the employee tables that will be used as a partner function ER in a specific customer. I know that this functionality is availible but I dont know how I can copy it. HR and SD are on 2 diffrent clients. I want to know if something must happen in HR, and what, and what do I have to do in SD inorder to copy this information.
    Thank you.

    Check following link,
    Re: fail to create sales employee without HR
    I hope it can assist you.
    Thanks & Regards
    JP

  • Difference between drill down and filter using navigation attributes?

    hi all,
    can anyone let me know the difference between filter and drilldown options using navigational attributes. pls explain with examples for filter and drill down and how it varies.
    thanxs
    haritha

    Jst to add up with an example :
    Say you have a cost center variance analysis report with cost elements in the filter. ( not present in the default report result )
    Filter - You can right click on a particular cost center & say " Keep Filter Value " - it will result in only showing that cost center & you can wish to select other filter value doing " Select Filter Value ".
    Drill Down - If u wish to see the cost elements associated with cost centers you can right click on Cost Center & do " Drill Down To - Cost Element " or Drill Across.

  • Sales Employee based on Ship to party

    Hi ,
    We have a scenario where one sold to party is having multiple ship to parties... and each ship to party is catered by one sales employeee.
    Can we get sales employee number determined in sales order based on ship to party if yes how.
    please help.
    regards,
    Kiran.

    In the partner determination procedure of the Ship to party - add the Sales Employee partner. So when ever ship to is created, the sales employee can be added to the ship to master.
    In the Sales order Header Partner Determination, add the sales employee partner and in the Source column give SH - ship to . So the sales employee in the order is derived from the ship to.
    Partner Determination T code VOPAN.
    Hope this helps
    Regards
    Sai

  • Use the sales employee, you need an HR master record

    hi:
      when I  do vpe1 in sd model ,it prompt two transport   request . 
       In order to use the sales employee, you need an HR master record. If you do not use the Human Resources application component (HR), you can transport the HR tables that you need for creating, changing  or displaying a sales employee from client 000 into the target client.
    How should i do?

    I'm moving this thread to the SD forum.... This is a funtional issue not a technical one.
    Regards
    Juan

  • Tables used for relationship between BP customer and BP Sales employee

    Can annybody tell me what tables contain the relationship between customers and sales employee.
    Or what tables are used by the BDOC BUPA_REL ?
    Thanks for your input.

    In table BUT050 you can find relationships between business partners.

  • Can a Content Query Web Part (CQWP) be used to filter content based upon a substring of a variable

    Folks, I'm a newbie to this forum and to SHarepoint in general - so please be gentle :-)
    I'm using Sharepoint 2010 and have content in lists which I want to display based upon certain user attribtes. For example I have a sharepoint LINKS list which contains entries for vaious applications (I'm using the LINKS list as an example, however I'd
    like to apply it to many libraries/lists).
    Name:UK Intranet - URL:http:UKintranet.com - Description: UK
    Name:USA Intranet - http:USintranet.com - Description: USA
    Name:UK Contacts list - http:UKPhones.com - Description: UK
    Name:USA Contacts list - http:USAPhones.com - Description: USA
    My users are split accross AD domains, one for each called UK and others in a domain called USA 
    What I would like to do in a content query is display items where the users domain (ie UK or USA) is contained in the Description field.
    So a CQWP which includes something like "filter when Decription = &userdomian"
    I should also add that I am only using basic page editing in a browser and have no access to Sharepoint Designer
    Can this be done?
    BTW - I know this is a little like Audience Targetting, however I don't have rights to setup audiences and as the information about the audience is already available in the users domain I simply wanted to reuse that.

    Hi Peter,
    According to your description, my understanding is that you want to filter items based on the current user’s domain.
    Whether you could access Central Administrator, and create a new user property in User Profile Service Application->Manage User Properties. If yes, create a new user property (assuming it is called ‘Domain’)to store the users’ domain information. If not,
    please choice a existing user property that you don’t use to store the domain information, like Department.
    Then do as the followings:
    Open the page that you want to display the list.
    Eidt the page and insert the list into the page.
    Insert a Current User Filter web part(Insert->Web Part->Filters->Current User Filter) into the page.
    Then edit the Current User Filter web part, and select value to provide: SharePoint profile value for current user: Department(or Doamin).
    Connect the Current User Filter web part to the list: Connections->Set filter values to->the list.
    Connection Type: Get Filter Values from, click Configure.
    Consumer Field Name:Description, click Finish.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • How to frame a SQL for the below Query

    i have a SQL query select x,y from table1 where x=1 output x y 1 a 1 b where a means alpha and b means beta select x,z from table2 where x=1 Output x z 1 B How do i build a query to achieve a following output x z y1 y2 1 b alpha beta Please noete : I

  • How do I connect content in a movie with an action outside of it?

    I have a movie clip of scrolling pictures that moves by way of the user moving a scroll bar. I want to have a row of the same but much smaller pictures underneath the movie that, when one image is clicked, it will make the movie scroll to that image.

  • Updating to 1.1.3

    When I try to update my software to 1.1.3 I get a message stating 'iTunes could not contact the iPhone software update server because you are not connected to the internet' but I am connected to the net via a wireless BT connection. The iTunes store

  • How can I set the foreground/background color after using CSPickColor()?

    Hello all, Is there any one who has experience on changing foreground or background color using Photoshop Plug-in SDK? Currently I can get a returned color from CSPickColor(), but have no idea how to use it. Thanks!

  • Dreamweaver CS6 free trial?

    Where can I download a free trial of dreamweaver cs6 (the NON-cloud edition?) thanks!