Modify Sales Employee in AR Invoice

Dear experts,
I have to modified the Sales Employee in some AR Invoice but in some cases this is impossible, because SAP B1 give me an errore (this enty already exsists).
What is the problem?
Thanks.
Paolo Orlando

Dear Paolo Orlando,
Sales Order and in Delivery are not financial transactions so that you could change sales employee freely.  As for the invoices, so many possibility that may already tight them up.  Do you have any FMS on this field?
Thanks,
Gordon

Similar Messages

  • Update Sales Employee on AR/Invoice

    hello, is there a way of updating the sales employee on the sales invoice using DTW?
    Thanks in advance, Janice

    I found the DTW template that worked for the update of the sales employee on the AR Invoice, thank you

  • Rights to modify sales employee on sales opportunities

    Is there a way on sales opportunities to prevent users changing the sales employee field?
    "Change sales employee" in  general authorizations is working only for documents, but not for sales opportunities.
    May it be done for example with a stored procedure comparing the actual and the previous value of the field before an update?

    You may post it here in order to become a candidate for next B1 version:
    /community [original link is broken]
    Thanks,
    Gordon

  • Invoice split due to different Sales employee/person (Partner Fn. VE (SE))

    Hi All,
    Invoice split happens due to different sales person in sales order line items.
    Example  for SO:
    1st line item -  XXX sales employee
    2nd line item - YYY sales employee
    3rd line item - ZZZ sales employee
    then 3 invoice's are getting created.
    Any suitable way to avoid this.
    I have tried changing copy routine in VTFL. but its of no use.
    I am an ABAP'er. So if there is any user exit to achieve this please let me know.
    Thanks,
    Ajeeth

    Dear Ram,
    Based on your requirement create new copy control routine and assigned these routine to Data VBRK/VBRP field in copy control(VTFL).
    Hope this will help you.
    Regards,
    Manoranjan.

  • Multiple Sales Employee in Projects

    Dear All.
    Can someone explain how to assign multiple sales employee in the project sales order against a single project.
    EX:
    Project - ABC-12
    Sales Employee- A,B
    Is there any special settings to be made in SPRO
    Thanking you
    Regards,
    Mercy

    Dear Mr.Virendar
    Thank you for your reply,
    can you please tell me the reason as to why
    if I create two project sales order  for the same project ,each  sales order having different partners
    and I run the Settlement ,in the ZSA01 report the revenue is reflected only against one of the partners and against only one sales order number.BOTH the sales order numbers and both the sales employee are not reflecting in this report.However the reveue is reflected against the project.
    Example:
    Project : AEEEEE-1
    SALES ORDER : A - INVOICED VALUE  - AED 50000   SALES EMPLOYEE - BOB
                               B -  INVOICED VALUE - AED 25000   SALES EMPLOYEE - TOM
    IN THE ZSA01 REPORT
    IT IS REFLECTED AS
    WBS
    AEEEEE-1 - 75000
    SALES ORDER  - B - 75000
    SALES EMPLOYEE - TOM
    HERE iF you see the order no A and employee no BOB is not reflecting.
    Can you please help me on this issue
    Thanking you,
    Regards,
    Mercy

  • Showing Monthly Sales Analysis for Sales Employees (including credit notes)

    Hi Experts,
    I want to show a report for my director so we can accurately decide upon sales targets for each sales employee for 2012.
    The Monthly Report > Invoices by posting date in the Sales Analysis module is not ideal because it does not appear to include credit notes so the totals are incorrect.
    How could I create a query which gave me a total for each month of 2011 for every sales employee which includes invoice minus credit notes.
    Unfortunately my SQL is not great but I started something which might help - this is only for first 2 months of the year.   I presume I would need a select statement for each month if I wanted to have the sales employee name followed by a total for each month.    Maybe this is too intensive a query to run anyway.  
    SELECT T1.[SlpName],
    (select(sum(t2.doctotal)-(t3.doctotal)) where (Month(t2.docdate)=1 and t3.docdate=1) FROM OCRD T0  INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode INNER JOIN OINV T2 ON T0.CardCode = T2.CardCode INNER JOIN ORIN T3 ON T0.CardCode = T3.CardCode)
    (select(sum(t2.doctotal)-(t3.doctotal)) where (Month(t2.docdate)=2 and t3.docdate=1) FROM OCRD T0  INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode INNER JOIN OINV T2 ON T0.CardCode = T2.CardCode INNER JOIN ORIN T3 ON T0.CardCode = T3.CardCode)

    Hi,
    I have moved your posting here because it belongs here.
    You may check this first: Re: Top Customers report
    Thanks,
    Gordon

  • How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice

    Hi,
    Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
    Regards,
    Rajeev.

    Follow this step..
    1. In SQL Server, go to the SAP B1 Database you're using. 
    2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
    3.  Try to paste this -> and click F5
    If
    @object_type ='13' and @transaction_type in ('A','U')
    Begin
    If EXISTS
    select DocEntry from ONIV
    Where DocEntry = @list_of_cols_val_tab_del
    and  SlpCode<>'-1'
    Begin
    set @error_message = 'Please select the Sales Employee'
    set @error = 1
    END
    END
    Regards
    Kennedy

  • 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

  • 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

  • Help for Alert once AR Invoice booked to sales employees

    Hi all,
    I have made an alert in which when a sales invoice is added to the system an automayic alert goes to the sales employee but the problem is that when the sales employee logs in, he get the complete full as on date ar invoices which are been made into the system which includes old invoices.
    SELECT T0.[DocNum], T0.DocDate,T0.[CardCode], T0.[CardName], T0.[OwnerCode], T0.SlpCode,T1.[lastName]' 'T1.[firstName] as Creater
    FROM OINV T0 INNER JOIN OHEM T1 ON T0.OwnerCode = T1.empID
    WHERE T0.[SlpCode] =1
    I want that in the alert invoices should come from e.g 01/02/2009 onwards. Also when the sales employee gets and sees the alert, it should automatically get removed from the alert list of the sales employee.
    How to achive this...Kindly help please
    Regards
    Kamlesh

    Hi Kamlesh,
    Datediff(yy,T0.DocDate,getdate()) = 0
    Datediff calculate the different between 2 dates. With a normal math function you are not able to calculate a different between dates. So the part in the brackets are the statement.
    yy means display / use year, the last 2 numbers
    T0.DocDate is the first date from your table
    getdate() get the actual date from the system
    =0 is the condition.
    So in with it means, check / calculate if the date differenz  between the date from T0.DocDate and the actual system date is equal 0.
    Regards Steffen
    P.S. i hope i explained it well

  • Sales employee in A/R invoice

    I am entering A/R invoices using DI/API.I am using the following code -
      objDoc = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                        objDoc.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
                        objDoc.CardCode = objDTHeader.Rows(intI).Item("CardCode")
                        objDoc.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                        objDoc.DocDate = objDTHeader.Rows(intI).Item("DocDate")
    I want to set Sales Employee as  -No SE - .I tried the code
    objDoc.SalesPersonCode = -1
    But any random sales person is getting set.The code for setting owner is working properly bu the code for setting sales employee is not working.

    What ur doing is fine. Just make sure that ur using the correct SLPCODE from table OSLP
    Vasu Natari.

  • Update A/R Invoice Sales Employee

    Hi everybody, i hope you can help me, I'm trying to update the sales employee value using dtw, but even appears succes in log summary, the value doesn't change.
    RecordKey     DocEntry     HandWritten     slpcode     
    RecordKey     DocEntry     HandWritten     slpcode     
    1     15704     tYES     25     
    thanks in advance for your help

    Hello Alberto,
    Which version and patch level are you using. Are you filling both the header and line template or just the header.
    The Sales Employee information (ID) could be updated in both thre header and rows.  For the rows to be updated you need to flll the template for the lines and the update the SlpCode there.
    Try this ......On Step 3 of DTW ......click on the Target data tab...and check the box Add all Item into Schema......... and then press NEXT to proceed.
    Suda

  • Query help for sales employee sales

    Hi....
    How can we have a query for
    Name of sales employee
    Item group
    Item name
    Total selling amount
    Total sales order
    Total delivery
    Total AR invoice
    Please help
    Thanks a lot

    Hi,
    What Total selling amount do you need? Invoice - Credit Memo?
    How about the other Total, total count or total amount?
    Thanks,
    Gordon

  • Update sales employee for Portugal

    This functionality is available for Spain and this request is for Portugal as this is not available for that localization.
    Functionality requeted consisted on updating sales employee data for Portugal,  so you can change the sales employee or buyer data for all the documents listed  below at any time (including after the document is closed), at both document and row level.
    Documents:
    A/R Invoice & A/P Invoice
    A/R Down Payment Request & A/P Down Payment Request
    A/R Down Payment Invoice & A/P Down Payment Invoice
    A/R Reserve Invoice & A/P Reserve Invoice
    A/R Credit Memo & A/P Credit Memo
    Delivery & Goods Receipt PO
    Return & Goods Return
    If the change is done at the document level, a message asking the user whether to apply the change on the rows should appear.

    Hola Carmen,
    That functionality is available since B1 2007A SP01 PL07. Please check SAP Note 1369615 for more information.
    Please visited the LEGAL REQUIREMENTS AND IMPORTANT CORRECTIONS Channel Portal page regularly to check for important changes.
    ¿Vale?
    Regards,
    Vítor Vieira

  • Error in saving sales employee

    Hi Experts,
    I am trying to save sales employees in sap business one through DI API.  However, after calling the Add method, it gives me this error: "Data is not available; modify selection criteria and re-enter:.
    What does this mean?
    Thanks.
    Melvin Balingit

    Sorry Guys,
    I have tested the following code, and working perfect. So no problem with the usersfields.
    Dim oSP As SAPbobsCOM.SalesPersons = oCompany.GetBusinessObject(BoObjectTypes.oSalesPersons)
            oSP.SalesEmployeeName = "DEMO Sales Person2"
            oSP.UserFields.Fields.Item("U_TEST").Value = "TEST"
            If oSP.Add <> 0 Then
                sbo_application.MessageBox(oCompany.GetLastErrorDescription)
            End If
    I have version 2007 SP 01 PL 09.
    You may check what Vasu suggested....
    regards
    János

Maybe you are looking for