Auto fill Sales Order "Sales Employee" with "Owner"

I would like to auto fill the "Sales Employee" in a Sales Order based on the assigned Sales Employee in HR for the user/owner that is logged in.  I would only want this to work on the initiate Add of the document.
Can this be only done with a Stored Procedure based on 'A'dd type? If so can someone provide the programming?
Thanks.

SP is not a proper tool for your goal. You are not allowed to update table through SP.
Only FMS would be the right tool here.
Thanks,
Gordon

Similar Messages

  • COMMISSION TO SALES EMPLOYEE WITH OUT HR MODULE

    Dear all,
    I have senario where i wanted to give a commission to each sales employee. Also i dosenot want to create Sales Employee?bcoz HR module is not implemented?
    Is it possible to give commission to sales employee?
    Plz send what are the customization for the same?

    Sales commissions can be configured frm SD if they are simple in nature. This is done through rebates. If the commission and management is complex in nature then it can be done through ICM ( Incentives and Commissions Management )
    The following procedure details the configuration of the Sales commission for Employee. The problems could e at any one of the following steps.
    You need to create a partner function for sales employee, a copy of the standard partner function available in SAP. Then do the appropriate partner determination, that is assignment to the sales document and item partner determination procedure. Next step is to create master data for all your sales employees as Vendors, assign these masters you created to the sales order at item level.
    We can see the orders sales employee wise in VA05 provided we add the sales employee partner function in the index list under sales and distribution, sales, lists, set updating of partner index.
    In the  pricing procedure, we need to maintain a condition for sales employee commissions and choose whether you want to enter the commissions percentage manually or prefer automatic determination. Here we need to get an input from the client as to whether they have fixed or variable commission percentages.
    Create an accrual account key for this and assign it to the condition type in the pricing procedure and remember that the condition type in the procedure should be statistical and not relevant for printing.
    Next step is to make the settlements after the Invoices have been posted and the relevant commissions accrued to a G/L Account.
    Now settlements could be manual as well as automatic. If you choose to make automatic settlements, there needs to be a ZREPORT which makes a vendor payment posting or if the settlement is manual, you need to might be run a BDC periodically to post the invoices for the so called Vendors (Sales Employee)
    regds
    Jude

  • What is the formatted search to auto display sales employee mobile?

    Hi,
    Customer is using SAP2005A PL23. Each BP master are attached with sales employee. The sales employee is tagged inside Employee Master Data where customer key in mobile number.
    Customer had created a UDF in Sales Quotation. If a Business Partner code is selected in Sales Quotation, sales employee will appear automatically(base on setup in BP master data) and same time sales employee mobile(get from Employee master data) will appear in U_MobileNo.
    May I know how to write the query?
    Regards
    Thomas

    Hi
    Try this Query,
    SELECT T0.[mobile] FROM OHEM T0 where T0.salesprson = $[OQUT.SlpCode]
    Regards,
    Reno

  • Regarding  "Sales Employee" with Activity

    *Is it Possible to create sales Employee as USER and it will be shown in Drop DOWN in"Assigned To" in Activity Windows
    Is there any Problem if we create users as Sales Employee* 
    Regard
    Nishikant S Virkhare

    The sales employee and user are independent entities in the system. But you can make connections e.g. using the user name as the sales employee name. Then the drop down in u2018Assigned tou2019 will allow a choice from the sales employees. If you donu2019t want to choose from all the users, you can differentiate the names belonging to sales employee (e.g. adding the u2018- s.e.u2019 to the name).

  • HP ProtectTools password auto fill in does not work with Firefox 4

    My HP Compaq 6715b has a credential manager called ProtectTools that stores user name and password for favorite websites and auto fills the information when the website is opened up. This worked fine with Firefox 3.x.x but since I upgraded to Firefox 4 it is no longer "syncing". I have checked the program and I am "logged in" which is what is necessary to activate this program. I have tried logging off and then back on without any results. I have tried to go back to the 3.x.x version of Firefox and cannot do that either. Technical support for my computer no longer is available from HP due to it's age (2007). Does anyone know if Firefox 4 and ProtecTools is compatible? What do I need to do to get these two "communicating" again?

    I think I solved the problem. I have CCleaner software and had the clean cookies checked. After unchecking the box and restarting, the auto login works fine. So if anyone has a cleaner program or anti-virus program with clean cookies enabled, auto login for google or yahoo will not work.

  • Sales Analysis Report per Sales Employee with BP Reference No

    Hi All,
    I need your assistance in creating a query that balances back to Sales Analysis Report but I require the BP Reference No to show per row.  I have created 2 queries through Query Generator.  The 1st contains the OINV and OSLP tables with Fields:  DocNum, NumAtCard, SlpName, DocDate, CardCode, CardName, DocTotal
    The 2nd contains the ORIN and OSLP tables withe the same Fields.
    I need to combine these 2 queries and I need assistance with the DocTotal.  I need the amount before tax.
    This report needs to balance back to the SAP B1 Sales Analysis Report.
    Your assistance would be appreciated.
    Regards,
    Desiré Janse van Rensburg

    Thank you for your assistance!  After googling a few pages I came across this query.  I adjusted it to comply to my needs.
    Herewith query if you guys are interested:
    SELECT
    T0.DocNum AS 'Invoice Nr',
    T0.NumAtCard AS 'Customer Ref Nr',
    T1.SlpName AS 'Salesperson',
    --T0.SlpCode AS 'SP Code',
    T0.DocDate AS 'Posting Date',
    T0.CardCode AS 'Customer Code',
    T0.CardName AS 'CustomerName',
    'Credit Memos' AS 'Doc Type',
    ((T0.DocTotal) * -1) AS 'Total Docs',
    (((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1) AS 'Product Sales',
    ((T0.GrosProfit) * -1) AS 'Gross Profit',
    CASE
    WHEN (((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1) = 0.00 THEN 0.00
    ELSE (((T0.GrosProfit) * -1)/(((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1)) * 100
    END AS 'Gross Profit %',
    ((T0.PaidToDate) * -1) AS 'Paid To Date',
    ((T0.DocTotal - T0.PaidToDate) *-1) AS 'Open on Docs'
    FROM ORIN T0
    INNER JOIN OSLP T1
    ON T0.SlpCode = T1.SlpCode
    WHERE
    (T1.SlpName LIKE '%%[%0]%%' OR '[%0]' = ' ')
    AND T0.TaxDate >= '[%1]'
    AND T0.TaxDate <= '[%2]'
    UNION
    SELECT
    T0.DocNum AS 'Invoice Nr',
    T0.NumAtCard AS 'Customer Ref Nr',
    T1.SlpName AS 'Salesperson',
    --T0.SlpCode AS 'SP Code',
    T0.DocDate AS 'Posting Date',
    T0.CardCode AS 'Customer Code',
    T0.CardName AS 'CustomerName',
    'Invoices' AS 'Doc Type',
    (T0.DocTotal) AS 'Total Docs',
    ((T0.DocTotal - T0.VatSum) - T0.TotalExpns) AS 'Product Sales',
    (T0.GrosProfit) AS 'Gross Profit',
    CASE
    WHEN (((T0.DocTotal - T0.VatSum) - T0.TotalExpns)) = 0.00 THEN 0.00
    ELSE ((T0.GrosProfit)/((T0.DocTotal - T0.VatSum) - T0.TotalExpns)) * 100
    END AS 'Gross Profit %',
    (T0.PaidToDate) AS 'Paid To Date',
    (T0.DocTotal - T0.PaidToDate) AS 'Open on Docs'
    FROM OINV T0
    INNER JOIN OSLP T1
    ON T0.SlpCode = T1.SlpCode
    WHERE
    (T1.SlpName LIKE '%%[%0]%%' OR '[%0]' = ' ')
    AND T0.TaxDate >= '[%1]'
    AND T0.TaxDate <= '[%2]'
    Thanks again for the replies!

  • Firefox started, instead of auto filling in the site link with items from history that might be appropriate, trying to search the web instead. How do I go back?

    Before last night, when I typed far I'd get as the top of my list fark.com. Now, instead, it tries to search for Farmers Insurance, Farmville, and Farrah Abraham-- how do I turn that off?

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Sales Employee mandatory field in sales order item level

    Hi all
    I want to do SALES Employee mandatory on sales doc. item level, once i have gone through customization i did it check BOX on but once i save there where no effect, that check BOX still blank
    please provide me how i should do it
    Regards,
    Abhijeet

    hi Cong,
    i earlier i unable to save due to VE and PE confusing partner function but now i have to save the setting means check BOX marked but still there where not effect.
    Again i want to tell you the requirement i have to do Mandatory Partner function (Sales Employee) on sales order item level,may be that will be PE or VE i m not sure....
    Management want to track like who is the owner of this business at the per item level for incentives purpose and after that marketing team can analyze the incentive or commission by the end of the every months from early this practice is going on but every sales order or every line item every time user not used to fill sales employee so that i have to do Mandatory, If any user creating sales order and if in sales order there end of line item means 2-3- 5-10-50...so on....may be every item has different sales employee and all has to be complete or els sales order should be pending or sales order not going to save...
    I hope u understand the requirement and pls provide me solution
    Regards,
    Abhijeet

  • Enhancement of 2lis_11_vaitm with sales employee

    Hi,
    I have a scenario to display the sales employee and execution employee for sales order.
    i am using standard data source 2lis_11_vaitm, which has filed PVRTNR for which in data is coming from VBPA table PERNR filed.
    In cmod, customer exit , code is written to populate the data for this field PVRTNR from table VBPA.
    For every sales document there are two employees -- sales employee with partner function as VE and sales execution employee with partner function ZZ. But both the employee entries are getting stored in same table VBPA.
    But when we write the code in CMOD, the vales for the field PVRTNR, it is taking the values whose partner funtion is VE.
    Now user wants both the employees to be displayed i.e, employee with partner function VE and partner function ZZ.
    How can I do it?

    Hi,
    Check the Code writen in Cmod, select command must have where clause with condition on partner funtion is VE
    so after that add OR operator condition for ZZ
    post you code so I can give the proper solution for that
    Best Regards
    Obaid

  • Sales Employee Description is not following into COPA

    Dear Experts
    I have set sales employee as a characteristic in my operating concern that was triggered from PAPARTNER. From there I developed then run COPA report painter (KE30) for sales employee with ALV display options. In fact the report can only display sales employee code, without the description. I desperately need sales employee description in my report, based on user requirement.
    Here we didn't activate HR module. In the same time SD has defined Sales Employee as Partner Function (SE) in customer master data. The Partner Function is looked up the sales employee name from HR table, PA0001 so that they can display sales employee code and name in the customer master data.
    From the story above I've tried to do some ways, such as:
    Changed display options from ALV to Drilldown -> with this way, sales employee description can appear from the report, but actually I just need the ALV report because of my client didn't accept the report layout except ALV. This is my big problem.
       2.  I found other threads with similar problem with me, then I tried to follow that instructions that will be described below:
    I tried to create new char WW100 with PARVW table for sales employee then follow these steps:
    Create 2 derivation rules in KEDR  using table look up (table VBPA) for the same partner function
    1. In one Der Rule, make the sale order item KDPOS as constant value 0000
    2. In the other one, dont make it a constant....Leave it as it is
    DERIVATION RULE 1
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR = COPA-WW100
    DERIVATION RULE 2
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS  (Click on Magnifying lens.. Specify Constant = 0000)
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR = COPA-WW100
    Unfortunately the ways above still can't solve my problem, the report still only show the sales employee code without description. At the last whether possible if i want sales employee characteristic with origin table coming from PA0001, so that data will derive from HR table? or perhaps any other solution to solve my case?
    Please suggest me in detail..
    Thanks a lot
    Regards,
    Maradona

    Hi Maradona,
    I want a clarification - Does the value flow properly to the value field and only the description is not coming?
    1. If the value flow is proper and only description is a problem, then check whether compunding has been used in KEA5 for the characteristc WW100? If yes, check the text table for WW100 and compare it with the origin table in terms of the fields in both the tables.
    (My guess is that not all the compunding characteristics are available in text table)
    2. If value flow is a problem, then compare SE16 and SE16N for any sales order for the denotion of partner function field PARVW. Sometimes the denotion of partner function (two character code) may vary in SE16 and SE16n.
    Get back for any more query
    BR
    Abhi

  • Require Sales Employee Name when creating SO or AR Invoice

    Hi everyone,
    I would like to set up my Sales Orders and AR Invoices so that it is required to enter a Sales Employee Name.  Is there a way to make it so that if no Sales Employee name is entered, a pop up will require you to go back and enter one in the same manner it does for Posting Date.
    Thanks,
    Hayden

    Hello,
    Add this code in SQL .
    Open SQL>Select your Database(Comapny DataBAse)>Programbility>Find([dbo].[SBO_SP_TransactionNotification] ) >right click and modify it.
    and paste the code at that place between dot dot line.
    This Code for Invoice Docuement.
    if (@object_type = '13' and @transaction_type = 'A' )
    BEGIN
    IF exists ((SELECT     OINV.DocEntry
    FROM   OINV   where slpcode = -1 and OINV.Docentry = @list_of_cols_val_tab_del ))
    Begin
    select @error =@object_type
    select @error_message = N'Please fill Sales Employee in Business Partner master Data'
    End
    END
    This Code for SAles OrderDocuement.
    if (@object_type = '17' and @transaction_type = 'A' )
    BEGIN
    IF exists ((SELECT     OINV.DocEntry
    FROM   OINV   where slpcode = -1 and OINV.Docentry = @list_of_cols_val_tab_del ))
    Begin
    select @error =@object_type
    select @error_message = N'Please fill Sales Employee in Business Partner master Data'
    End
    END
    If you got any issue revert same.
    Thanks
    Manvendra Singh Niranjan

  • Partner type PE for sales employee

    Hi,
         I have created new Partner function and assigned PE partner type to it and done all assignments to creates sales employee. while i am creating sales employee with VD01with external no 200 but in partner functions tab in sales area, system is not automatically taking external no. Asking to key in PE(personnel no) instead. Can anybody help me to create sales employee so that i can use him for rebates.
    Regards

    Deeraj,
    Thanks for your reply, but PE partner function has partner type AU(contanct person). While creating sales order system is not accepting sales employee no which was created with PA30. i want sales employee should get commission on his customers sales order. I have been searching for this setting and posing questions in this form. Unfortunately i couldnot get proper answers. Can you tell me the configuration steps in detail.
    rEGARDS

  • Sales employee partner function

    hi all,
    In our system, it was mandatory to enter sales employee in sales header.
    now the sales employee id is 0.
    to remove this, I have gone to spro and
    Sales & Dist - Basic Functions - Partner Det- Set up Partner Det - and clicked on Set up PArt Det for sales employee and unticked it.
    After this, I tried to make a sales order (TA) and it's again asking for sales employee
    as mandatory. do I wanted to change anywhere other than there ????
    Again I tried with IMG -->Sales and distribution -->Master data -->Business partners --> Use sales employee with out HR .
    It wont reflect in the system.
    Can anyone tell me the method to enter sales employee master details or to avoid as mandatory ?
    anyone can help ??
    Regards
    Jose

    Hi Prach,
    You can add one sales employee per line item. In one line item you cannot add morethan one sales employee however.
    If you want to include morethan  one sales employee to EVERY LINE ITEM, then
    1. Create some PFs like Salesperson1, Salesperson2 etc, say upto 5.
    2. Now assign this PF to the sales document header and item category,
    3. For all the PFs, you can have the same account group.
    4. Now you can create customer master for all these sales person.
    5. Once this is done, you can link multiple sales persons for each line item.
    Hope thsi helps you
    Pls reward if thsi helps you

  • Creation of sales employee without HR...?

    Dear Gurus,
    I have confusion in creating a sales employee without HR..
    I need  your suggestions and inputs on this issue..
    Note-I have thoroughly searched all the forums before posting it here .I am abit confused now going through all those ..
    In some forum  suggested to use V+23 to create sales employee with PE partner function with account group: 0007 and some forums people are saying use PA30 OR VEP1?
    Can you guide me which transaaction code  i should use for sales employee creation.
    For your valuable inputs will be reward and will great help  for me.
    Regards
    Venkat

    Hello,
    You can create Sales Exployee with T-Codes VPE1 or PA30 only if you have implemented HR Module.
    To create Sales Employee without HR, refer this IMG Link (& the F1 help there):
    IMG - Sales and Distribution - Master Data - Business Partners - Use Sales Employee Without HR
    Also refer the blow link for detailed information:
    Sales employee without HR
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • You are not authorized to change the sales employee

    Hi everyone ,
    when I add an new bussiness partner not with the default sales employee ,I can't finish adding except  loging on the system using manager or superuser before. the system tells that "You are not authorized to change the sales employee". This problem had been raised by someone else already,But It still confused me .I have explored the problem in b1 system and has got these results like following:
    first ,there are three places where we can set default Salse mployee.        
               Path1     Administation/Setup/General/Sales Employees
            or  Path2   Human Resources/Employee Master Data/Sales Employee
            or   Path3  Administation/Setup/General/Users/Defaults/New/Defaults/Sales Employee
    If you add a new BP , the default Sales Employee will get the value from Path3 .
    If it is empty from Path3 ,it will get the value from Path2.
    If it is also empty from Path2,then it will get the value from Path1.
    There is Only one conditon that In Employee Master Data ,the employee is related with User and Sales Employee.
    My question is that since I connected employee with User I can't change the sales employee when adding a new BP.
    Another question is that since I connnected sales employee(Mike) with employee(Jone) I can't select the sales employee (Mike) as a sales employee when adding a new BP using other user loging on the system.
    There Is no problem if I  connect no employee with User.But If I do so ,How Can I do the Data Ownership Authorization.
    Edited by: Li Mishan on Apr 17, 2008 9:40 AM
    Edited by: Susanne Klemm on May 7, 2008 2:00 PM
    Edited by: Philip Eller on May 21, 2008 9:02 AM

    I forget to say that I had already give the user all Authorizations.I have copy the authorization from manager.
    One thing I am sure that :
    If you connet the sales employee with one employee,that means that sales employee can be only used by the user connected to the employee at the same time.others can't use it.
    If you connet the user with employee,that means ,when log on the system with the user,you can only use the sales employee that you connected with employee at the same time.you can't use others
    Edited by: Li Mishan on Apr 17, 2008 10:55 AM

Maybe you are looking for

  • Use airplay from my screen to apple TV?

    My computer is Macbook pro mid 2010, i can use the airplay only from iTunes, is there any chance i can use airplay from my screen to apple TV by adding parts or driver? Thanks

  • How do i get ringtones on my phones?

    how do i get ringtones on my iphone?

  • Skype and Mumble problem

    Hello, When I open mumble  skype goes to  the "not responding state". When mumble is still running and I start running skype , there is no window, When I exit mumble and start skype the window is opening. I'm sure I did not have this problem before j

  • Une erreur est survenue dans l'app store

    Bonjour, Il m'est impossible d'acheter la moindre application payante dans app store. Après avoir creer un compte, dans un premier temps la transaction bancaire fut refusée, j'ai vérifié la justesse de mes coordonnées bancaire sans résultat. Puis mai

  • Winblows user getting pummeled by old mac..  Printer install question

    Hello All, Forgive my stupidity, I`m researching how to do this without much luck, so I thought this would be a good place for help.. Trying to print files off an old Mac quadra 840av.. Can someone tell me what printers are natively supported or how