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.

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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.

  • 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

  • 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

  • DRQ: down payments & sales analysis per sales employee

    Our client sells projects which last from 2 to 8 weeks. A down payment invoice is issued before the start of the project and the remaining amount is invoiced upon completion. Sometimes due to the fast pace of the project and the payment terms, the down payment invoice payment has not been received before issuing the final invoice. In SAP Business One this results in a problem as only paid down payment invoices can be drawn from the final invoice (this is by system definition). To make matters worse the only workaround seems to be (correct me if I am wrong) to amend this with manual journal entries. However, sales employee field cannot be activated in a manual journal entry. Hence, the sales analysis report per sales employee does not reflect true sales figures. Our suggestion is to develop the down payment functionality so that it can detect issued down payment invoices when putting the final invoice into the system, to make the whole process run smoothly.

    Hi Ajo,
    the comming version 8.8 includes the functionality which in the following scenario:
    1) Create Sales Order
    2) Create DP Invoice based on Sales Order from point 1
    3) Record payment of the DP Invoice
    4) Create Final Invoice based on Sales order from point 1
    proposing ther DP Invoices created based on the Sales Order from point 1 for the Final Invoice (when the Final Invoice is created).
    User can check and adjust (if necessary) the DP Invoices automatically linked to the Final Invoice.
    Hopefully this would help in your customer business process.
    Best Regards,
    Martin Slavik
    SAP Business One Solution Manager

  • Sales Analysis by Item Group (Monthly) - To include Sales Employee Name

    Hi,
    I have added Sales Employee Name in the Sales Analysis by Item Group (Monthly) report by A/R Invoices. I have added this under Repetitve Area Header0. However, the sales employee name showed in the preview is different than the criteria entered.  It seems that the report only the first Sales Employee Name in the report.
    Anyone have any idea? Thanks in advance
    Regards,
    MH

    That is a good question.  You have to find out any unique relationships between your Sales Employee and your sales analysis data if there is. Hope the help below can assist you:
    Relate to
    This option is relevant for special scenarios only and requires knowledge of SQL.
    This field is used for retrieving data related to key records found in tables other than the table linked as default to the current print template.
    A key record is a field used as a primary key in a certain table. This key record functions as the identifier of the record, and, therefore, it is required to retrieve any additional data related to it.
    Following is an example:
    e.g.If you need to print the name of a certain bank, which is not linked to the table used in the current print template, you must first create a Text field of Database source type using the required table and select a key record, such as Bank Code.
    Then, you need to create an additional Text field of Database source type. Select the table again, select the required column (such as Bank Name), and enter the unique ID of the field with the key record in the Relate to field.
    There might be two or more key records in the same table. In such a case, these two key records are both required for retrieving the data.
    Identical bank codes are used in many countries. If you need to print the name of a specific bank, you need to link it to a relevant country, in addition to its relevant bank code.
    You are currently working on a print template for Incoming Payments. However, you need to retrieve data (such as the business partner's bank name) linked to the key record Bank Code from the Bill of Exchange for Payment table, rather than from the Incoming Payments table.
    In the Relate to field, select the unique ID of the field containing the required key record. In this example, this is a Text field of Database source type containing Bill of Exchange for Payment in the Table field and BP Bank Country in the Column field. The drop-down list contains the unique IDs of all the fields that are situated in the same area as the current field.
    This link makes the system retrieve the Bank Code linked to the BP Bank Country field found in the Bill of Exchange for Payment table.

  • Sales Employee wise comission report

    Hi all
    please guide me how to get the report of sales employee commission
    after setting nth initial setting related to Commission group & comission
    how i can view the report
    samir

    Samir,
    If you go to Query manager..Under System Reports you can see it
    SP Commission by Invoices in Posting Date Cross-Section
    Suda

  • Customer Recievables Ageing by Sales Employee showing No Sales Employee

    Dear Sir(s),
    We are on SAP Business One 8.81 PL04.
    The customer recievables Ageing by Sales Employee report shows "No Sales Employee". when we group by sales employee on the selection criteria.
    We have setup all our Customers with sales employees in the Business Partner Master Data.
    Please advise on what could be the cause of this.
    Kind Regards,
    Asif M.

    Hi Rahul,
    Yes, the sales employee details are captured on the invoice.
    Infact, on the "No sales employee" Group, only the Incoming Payments (Type : RC) show for the diferent customers and yet these incoming payments were paid based on the invoices which have the sales employees captured.
    The customers appear both on the "No Sales Employee" Group as negative balances as well as its correct "Sales Employee' group as positve balance. The report shows correctly when we select the group by as  "customer" in the selection criteria.
    Regards,
    Asif

Maybe you are looking for

  • N-Queens Problem Using Stacks Help

    I'm trying to solve the N-Queens problem using Stacks. Quite frankly, I'm completely lost. Here's the pseudocode from the book: "Push information onto the stack indicating the first choice is a queen in row 1, column 1. success = false; while(!succes

  • In pdf, title in document properties showing "Untitled"

    Hi, I generated a pdf file using Adobe FrameMaker 11. After the pdf is generated, the title field in the Document Properties window (File > Properties) displays as "Untitled" instead of the original file name. How do i retain the same title name as t

  • Creating a pop window in smart forms runtime with text entry

    Dear Experts, I Need to Create a pop window ( in run time of smart forms ) in which the user can enter some text and that text needs to be populated in the smart forms ouput. i know that I can write code inside smart forms to do it. I dont know when

  • How to make the default shutdown operation to be a forced one?

    Just recently I clicked on shut down and went with my business, only to find out on return that OS X didn't shutdown the laptopt because "firefox prevented" it from doing so. What a BS. Is there a way to change the default parameters for the shutdown

  • Getting code into CS3/CS4 default include path

    Hello! I have a series of AS3 classes that I want to install into the default directory that Flash looks for when, in code, one writes: import com.flashsim.FStEng.Three.*; In AS2, there is the Classes/ directory within the Configuration folder.  Very