Prevent marketing document entry if BP has past due invoices

Does anyone know a way to prevent users from entering a marketing document if the BP has past due invoices? Only solution I can come up with is to create code in the Transactions Notifications stored procedure. But is there a way to do this in B1?
Thanks

Hello Friend,
May be SP_Notification is the best option but think about your user will fill all the invoice data including with batch info and UDF info now he will goto add then SAP show error that Customer have open balance ,means users have spend about 5 min every day for invoice.
SAP has  another option make FMS(Formatted search) and set in A/P invoice(CardName field or Name field) ,from where user will select customer list.FMS logic depend on party balace
And train user accordingly so now whenever user will select FMS option it will show only those customer who have no balance.
One more think some time our management say dispatch the materails i have discussed for balance then user select tab option in the same field.
Or if you are using SP then first you goto SQL then Alter the Procedure.
So I think FMS is the best option.
Thanks
Manvendra Singh Niranjan

Similar Messages

  • Customize Approval Procedure for Past Due Invoice don't work !

    Hi all,
    Below is the query written to trigger the approval procedure if past due invoice happen
    Select 'true'
    from OINV
    where DocDuedate < Getdate() and DocStatus='O' and DocTotal >
    PaidTODate
    However, it will not trigger, can someone please help on this?
    Thanks

    Hi,
    Try this:
    SELECT distinct 'true' FROM OINV T0 INNER JOIN OCRD T1 ON
    T0.CardCode = T1.CardCode WHERE T0.CardCode = $[$4.0.0] AND
    DateDiff(dd,T0.[DocDueDate],Getdate())>30 and T0.DocStatus='O'
    Thanks & Regards,
    Nagarajan

  • List of invoices past due per sales order

    Hello community,
    I am working on a report which is supposed to give me the following data:
    Invoices which are past due (invoice #), corresponding sales order # and the consulting manager (CEM) for that sales order. The CEMs are maintained in table VAKPA.
    I use table BSID and function module DETERMINE_DUE_DATE to get the invoice numbers, which works fine. However, I can't figure out how to make the connection to the SD side, especially to VAKPA.
    There is a sales order number in BSEG for each invoice, but then again I can't join BSEG since it is a cluster table. I can do several nested selects over BSEG to get to the data from VAKPA, but the performance impact is too heavy.
    I would think there is a better way to do this. Any suggestions?
    Regards,
    Eric

    Hi
    The bill number is in the header data:
    BKPF-AWKEY (and perhaps in BKPF-XBLNR),
    Here you can pick up sale order number from item data of bill: VBRP-AUGBEL
    So you can pick up your partner from VBPA
    Max

  • IReceivables past due amount difference between forms

    In iReceivables(11.5.10.2) ,past due amounts differ from Account Summary form to Account Details form.
    For example, Customer ABC Overdue Invoices shows amount of 100K in Account Summary form. When I click on the amount it takes me to the Account details form and Overdue invoices shows amount other than 100K. Interstingly it get fixed with in 1-2 days.
    Any help will be appreciated.
    Thanks in Advance.
    Ashish

    Hi Ashish,
    Can you provide following additional information :
    (a) Is the amount on Account Summary screen greater or less than the amount on Account Details page ?
    (b) Can you try to do some investigation from your side, by changing the search filters on Account Details page, to find which transaction is getting missed on Account Details page.
    The possible reasons could be, (i ) the Account Details page is showing only past-due invoices, but Summary page may be showing total of all transactions ( including Debit Memos ).
    Or this could also be a bug, where one of the Account Summary ( or Account Details page) is not picking the transaction which becomes past due on the current date. This explains why it automatically gets fixed in 1-2 days.
    thanks,
    Hikumar

  • How to update UDF from marketing documents to Journal Entry UDF

    Hi Experts,
    I have a UDF in the marketing documents and I want to save the value to Journal Entry UDF.
    Regards,
    Jummie

    Hello Jummie,
    If I understand correctly, the scenario is that copy the value of UDF from marketing document to the UDF its target JE from when the marketing document is created.
    if so, just listen to FormDataAdd Event for the marketing document, copy the value of udf when document is created.
    Here is the sample code.
    Private Sub FormDataEventHandler( _
        ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
        ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
            'You may add the target documents, 133 - A/R invoice.
            'Before action = true, start the transation
            If BusinessObjectInfo.FormTypeEx = "133" _
                    And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
                    And BusinessObjectInfo.BeforeAction = True Then
                oCompany.StartTransaction()
                'BubbleEvent = False
            End If
            'Before Action = false,
            'Update product item tree
            'Succeed, commit, otherwise rollback
            If BusinessObjectInfo.FormTypeEx = "133" _
            And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Then
                If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
                    Dim objectKey As String = String.Empty
                    oCompany.GetNewObjectCode(objectKey)
                    MsgBox(BusinessObjectInfo.Type)
                    Dim oInvoice As SAPbobsCOM.Documents = Nothing
                    oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    If oInvoice.GetByKey(CInt(objectKey)) Then
                        'Retrieve the UDF value in documents
                        Dim udfValueInDoc As String = oInvoice.UserFields.Fields.Item("***").Value
                        Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                        'Retrieve the JE for the document
                        oJE.GetByKey(CInt(oInvoice.JournalMemo))
                        Dim succeeded = True
                        'add you code to copy the UDF from document into JE
                        If succeeded Then
                            'update the production tree succesfully,
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                        Else
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                        End If
                    End If
                End If
            End If
        End Sub
    Regards, Yatsea

  • SAP B1 purchase document entry

    Hi All,
    Please advice me regarding purchase document entry in my client place which entails the following scenario. My client's A/P invoice is having Total material value + C.S.T = Net amount payable. In total material value Excise duty(10% + 2% +1%) is included. Here the excise duty is not calculated on Total material value, rather it is being calculated on an Assessable value and also a separate Excise invoice is given for the same. How to handle this in SAP B1?
    Regards,
    Rupa Sarkar

    Hi Rupa........
    You problem is with how to define tax code right?
    SAP Has given tax combination for BEDCessHSCess+VAT by default
    You need to define only BEDCessHSCess+CST
    So you want how to create above tax code am I Right?
    Go to Administration > Setup> Financials> Tax> Tax Formula
    Now Give tax code and tax name.
    Select CST as tax type
    Now copy this and paste it to your right side
    BaseAmt=Total+BED_TaxAmt+Cess_TaxAmt+HSCess_TaxAmt
    TaxAmt=BaseAmt*Rate
    Then once this is defined. Go to Administration > Setup> Financials> Tax> Tax Type Combination
    And give code and decsription.
    Below at first row drop down and select BED and in next respective column press Tab and select BED formula.
    Same thing in the next line drop down and select Cess and in next respective column press Tab and select Cess formula.
    and again in next line drop down and select HSCess and in next respective column press Tab and select HScess formula.
    and again in next line drop down and select CST and in next respective column press Tab and select This recently define formula in tax formula window.
    Now go to again Administration > Setup> Financials> Tax> Tax Code
    Define code and its description and select this recently define tax type combination.
    The combination will appear at row level below and press tab at next column and select relevant rate applicable for your tax combination.
    Hope this helps you........
    Regards,
    Rahul

  • Error: A previous document of this type has been created with later date

    hi
    when i am adding invoice with a particular date.
    and if i am adding  another invoice for same customer with date previous to the first one i am getting this error
    pls tell the error were i have made and how to slove the error

    Om,
    Pleae check the following ...
    Marketing document with earlier posting date not added
    Symptom
    Error message: 'A previous document of this type has been created with a later date.' and the document is not added.
    Other terms
    AR, AP, invoice, credit memo, reserve invoice, wizard, document, generation, past, previous, posting date, settings, initialisation, SAP Business One
    Reason and Prerequisites
    Business requirement that marketing documents with an earlier date than the current system date are entered.
    Solution
    Under Administration -> System Initialisation -> Document Settings -> Tab 'General' is a tickbox 'Block Documents with Earlier Date'.
    If this box is ticked, the error message 'A previous document of this type has been created with a later date.' is received and the document cannot be added. This affects the following documents:
    AR and AP Invoice
    AR and AP Credit Memo
    AR and AP Reserve Invoice
    If the box is unticked, the system displays the message: 'A previous document of this type has been created with a later date. CONTINUE or CANCEL.' If 'Continue' is chosen, the document can be added.
    This setting will also affect documents to be processed by the 'Automatic Summary Wizard'.
    HTH,
    Eddy

  • Image UDF on Marketing Documents for Signature

    Hi,
    I'm using SAP B1 2007A (PL48) with B1DE 1.4
    SCENARIO:
    For certain Marketing Document Forms (AR Invoice, Sales Order etc) , I need to capture a physical signature via an ePad and save the resulting jpeg with the Marketing Document.
    I've created a UDF on the Marketing Documents Title of type Image.
    I've added a button to the form (for example AR Invoice) which lets the user capture a signature and saves it to a file.
    QUESTION:
    How can I programatically load the saved jpg file to the Image UDF?
    Please advise.

    Hi Ben,
    Unfortunately, because you are doing this on a system form it isn't easy. The PictureBox control is what you need to set the picture but I gave it a quick test and although I can create an instance of the PictureBox control and set it to an image UDF field, any value I set to the Picture property is not saved to the UDF.
    An alternative approach:
    1) Create a separate UDT. In this table you'll need columns for DocType and DocEntry (so you can link a record back to a marketing document) and an Image UDF.
    2) Create a simple form that just has a PictureBox control on it. Bind the control to the image UDF on your table.
    3) Add a button (in the form load event) to each of the marketing documents that need a signature.
    4) Trap the event of the user clicking on the button in the marketing document form and open your new form. Use conditions in the DBDataSource to show the correct signature image.
    To import the scanned image you'll need to do the following:
    1) Copy the image file to the Pictures folder (as set in the General Settings path tab).
    2) Add an entry to the UDT for the correct document type and entry. For the image UDF you should set just the image file name and not the full path.
    Hope that all makes sense!
    Kind Regards,
    Owen

  • Get error when preview marketing documents by using crystal report layout

    Hi experts,
    I want to switch to using Crystal Report for marketing documents layout.  I have import Sales Quotation u2013 Generic (CR) layout which provided by XX-1.2.b1p package. I can preview added records but it doesn't work on drafting documents and saved drafts. The system prompt u201CThe system cannot find the path specifiedu201D and u201CObject reference not set to an instance of an objectu201D. On the same server, it was working fine in our other company database. I don't think this is the problem of database location setting in Crystal Report.  Can anyone give me advices, thanks!
    Regards,
    Ivan

    Hi! Rahul,
    Thank you for your reply first. Your method doesn't work in my case.  Can you tell me the steps of creating a new layout for added records and draft documents.  I have created a quotation layout which work with added records only, the steps has been show below and please comments, thanks.
    1. In Crystal Report > new blank report > create new connection > Choose "SAP Business One" > Select OQUT under "B1 Tables".
    2. Insert "CardName" field to report > Create DocKey@ parameter and  set it equal to DocEntry in select expert record function
    3. Click Add-ins > SAP Business One > Save > Choose company database and input manager password.
    Regards,
    Ivan

  • Length of amount field in New GL at the document entry

    Hi,
    1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done).
    2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount field length as 23 digit.
    3) When I am trying to enter any FI Document in SAP, using transaction code F-02 or FB60 etc, the length of amount field is coming as 13 digit. I am not able to enter higher value
    Question:-
    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    Thanking you in advance
    Santosh Agarwal

    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    No, it is not.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    No, there isn't.  The field length that is appearing during document entry is really dictated by the data type of fields such as DMBTR, WRBTR in table BSEG; which is CURR (13,2).  Although the GL view (FAGLFLEX* tables) have longer length, the limitation in entry view (BSEG, etc.) stays as 13,2.

  • Trade discount in marketing document

    Dear SAP Prod. Dev.Col. Teams,
    Currently trade discount in marketing document is not posted to journal entry. The customer want it because they want to have the discount is applied in the marketing document rather than in the payment document.
    Manual journal entry is not acceptable since it will add new effort meanwhile the software like SAP B1 is intended to ease the daily working and make their working time efficient and effectively.
    Please give a concern to this request.
    Thanks and Rgds,

    I managed to solve it using WA

  • Line items in a document entry

    Hi,
    there is restriction on line items for per document entry - i.e. 999.
    i would like to know if there is any update on the restriction in the enhancement packs.. or is it still 999.
    thank you
    - Vedavatee

    Check WIKI http://wiki.sdn.sap.com/wiki/display/ERPFI/Systemlimitationof999lineitemsperFIdocument
    Which Says
    Purpose
    The purpose of this WIKI is to explain a system limitation which does not allow you to have more than 999 line items per FI document, and also provide you with workarounds you can use to post your document.
    Overview
    When you are posting an FI document which has more than 999 line items, the system will issue an error message. This is due to the fact that the line item number field (BUZEI) in the BSEG table consists of 3 characters only and therefore the system cannot read more than 999 line items in the FI document.  There are some workarounds which can be done so that your document will be successfully posted in the system.
    System Limitation
    The FI document has more than 999 lines, the system issues error F5 807 ("Number of items in document is too large") or F5 727 ("Maximum number of items in FI reached"), and posting is not possible.
    There are no immediate plans to expand the number of line items beyond the current limit (999 lines per document). This is because the line item number (BSEG-BUZEI) field length is defined as 3 numeric positions (leading to a maximum possible number of 999 line items). The SAP development group is aware of this functionality change request, but the change is significant since BSEG is a cluster table which is used in numerous R/3 programs.
    Srinivas

  • Remove or Hiding Marketing Documents from SAP Business One.

    Hi Everyone,
    Is there any way by which a marketing document in SAP Business One can be deleted or be hidden. For example in a Sales A/R module the the client does not want to use or also view the AR downpayment request or AR down payment invoice as it is not required for his business. What is the way to hide or remove it from the user point also during authorization.
    I am also seeing that when in the user autorization I am giving full authorization for e.g in Purchase A/P Module - Purchase Order and Good Reciept PO only and when logging in by that assigned user I am only seeing the Purchase Order and Good Reciept PO that's absolutely fine but when I am going in Form Settings and and selecting visible for all the modules then all the marketing documents are coming back which should not come. Is there any way to block the form settings in this moment and when using the tab apply authorization in forms settings the defined authorized documents are comming but if one again clicks on form settings and make all the marketing document visible then again all the marketing documents are comming back which I don't want.
    Please let me know your valuable comments in this regard.
    Thanks and Regards

    Kawish,
    <Font Color="Blue" Size=3> To Hide the module from the User Main Menu
    </Font>
    Login as that user and click Form settings and Uncheck Visible for the
    Using Authorization > General >  Document Settings (change this to No Authorization) 
    This would prevent the user access to Form Settings.
    <Font Color="Blue" Size=3> To Disable access to a Module
    </Font>
    Use Administration > System Initialization > Authorizations > Additional authorization creator.  chose a name and in the Form ID area add the Form number. ( you can get the form number when you open the module and from the View menu enable system information, you can see the Forum number on the Task Bar)
    Suda

  • Send a Change Document entry when an equipment change its status (IE02)

    Hello experts,
    In the transaction IE02 (Change Equipment), when a user changes the equipment status, for instance, from Active (ACTV) -> Inactive (INAC) when the SAVE button is pressed I need to post a Change Document entry (CDHDR and CDPOS).
    I've already identified the user exit EXIT_SAPMIEQ0_002 which is triggered when the SAVE button is pressed in IE02 transaction. I cannot read the new status value.
    At that moment I can read the old status (which has been change until the user exit finalized) but I don't find a way to check if that old_value <> new_value.
    Does anybody knows a way to achieve this?
    Thanks in advance,
    CL

    Stauts changes are tracked in the table JCDS and not in CDHDR and CDPOS.
    You will have to check the box for Change documents in the configuration for equipment status ( this is done on equipment type's status profile ). The status change tracking will not happen until it has been set there.
    Thanks,
    Srihari

  • How can I lock the NumAtCard field in the marketing document screen

    Dear Experts,
    Is there any way I can lock the marketing documents' (say Goods Receipt PO) BP Ref Number field? meaning if there are already values in the field, I do not want any users to change it.
    Please help!
    Warmest Regards,
    Chinho

    Hi Chin,
    There are two options to resolve your problem i.e. using DI SDK code and SP_TN.
    if you want to to use SDK code, it requires big effort except you have a good programmer.
    if you using SP_TN, you could use this following sample:
    if @transaction_Type in ('A','U') and @object_type in ('20')
    begin
            if exists (
                    select a.DocEntry
                    from OPDN a inner join OPDN b on a.numatcard=b.numatcard and
                                            a.DocEntry<>b.DocEntry
                    where @object_type = '20' and (coalesce(a.numatcard,'')<>'' and (year(a.docdate) =
    year(getdate()) and year(b.docdate) =year(getdate())))
                            and a.DocEntry = @list_of_cols_val_tab_del
            begin
                    set @error = -1
                    set @error_message = 'BP ref no. has been used'
            end
    End
    The above query SP is to block the use of last year BP ref no. I also have modified so that not only last year but even yesterday.
    You can modify it by your own way.
    Rgds,
    JimM

Maybe you are looking for