Extra Discount in Marketing Documents - Formatted Search

Hello All,
I am trying to add a UDF for "Extra Discount" in the marketing documents. I have tried to attach a formatted search on the document total to calculate the final value after this extra discount has been specified. However, the formatted search doesnt work and I get an "Internal Error".
The scenario mentioned underneath will explain the requirement:
<b>Default Option in SAP:</b>
Customer                               C0001
Item        |       Price     |        Discount       |      Tax      |     Total
I0001      |       100         |        10%           |       VAT@4   |   90
Total                                    90
Discount                     5%    4.5
Tax Amount                         3.42
Doc Total                             88.92 
<b>Requirement:</b>
Customer                               C0001
Item        |       Price    |         Discount     |        Tax        |   Total
I0001       |      100      |           10%           |       VAT@4  |    90
Total                                    90
Discount                     5%    4.5
<u>Extra Discount            2%    1.8</u>
<b>Tax Amount                         3.348
Doc Total                             87.048</b>
Is it possible to have this scenario mapped in SAP Business One using formatted search without using SDK/Customization?
Regards,
Gyanesh Rupani

Hello Jimmy,
The client wants the extra cash discount to be visible on the invoice itself. I have tried creating the UDFs and assigned appropriate FS to them to change the document total. However, the issue is that the moment the document total is affected, the discount (available by default in marketing documents footer) automatically gets changed proportionally!
So, for eg. if an invoice is for 1000 USD and I give a discount (system field) of <b>10%</b> to a customer and 5% as cash discount (UDF), with the help of FS, the invoice amt automatically gets changed to 850 USD but the discount field also automatically gets changed to <b>15%</b>!
This is the inbuilt functionality of SBO - so if someone can help me overcome this, I will be very grateful.
Regards,
Gyanesh

Similar Messages

  • 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 Discounts on Sales Documents

    Hi All,
    On a current implementation, our client offers a standard discount to each of his customers. This discount is across all items but will differ for each customer. I have set this up in the OCRD.Discount field against the BP. This works fine but only calculates at document total level, not at line level.
    The client needs to show their clients a list price, item discount and net price, so this solution is not acceptable.
    Without using any coding, the only solution I can think of is to set up BP Special Prices for each client, but this seem like a huge overkill?
    Is there a way of coding to pick up a discount from a UDF in the client record to populate the line discount field on the marketing document, unless there is already a BP Special Price in existance for the client / product?
    Any help would be appreciated.
    Kind regards,
    Ian

    Hi Dave & Suda,
    Thanks for your input. To clarify, the client has a number of standard discounts raising in 2.5% from 25% to 60%, so by my calcualtion, this would require 14 different price lists.
    Whilst this is acheivable and has the benefit of rolling any price increases / decreases through from the master price list, it will not deliver the required information at item line level.
    The sales document will show the list price as the discounted price from the price list, not he list price from the matser price list and the discount.
    i.e. if PART A has a list price of £10.00 and is on 'discount price list 20%' @ £8.00 when the item is drawn down for a client assocuated to this price list, it will show as a price of £8.00 not £10.00 less 20% giving a net price of £8.00.
    For this reason, it will not work in this instance.
    This leaves one option using the standard system functionallity, as far as I can see, which is to generate a customer special price list for each client, holding all stock records at their relevant discount %.
    Based on the fact they have approx 1500 client & 1500 stock records this would equate to 22,500,000 records, and this worries me!
    Also, the mechanisam for copying these is obly viable by customer group (already used for somthing else) or properties, which would mean reserving 14 for this reason alone.
    I am sure the better solution would be to use a UDF on the customer record card to contain their discount% and use a formatted search to populate this into the discount field at line level, if there is nothing there already.
    I just don't have the coding skills to do this and wondered if anyone could give me a head start.
    Many thanks,
    Ian

  • Formatted Search - Using field index to refer to UDF in many documents

    I have some UDFs in my marketing documents - say U_VALUE
    I want to write a fairly complicated formatted search and use it for the same thing across all my marketing documents.
    I don't want to use
    $[ORDR.U_VALUE]
    in my formatted search as this will only work in the sales order document.
    I want to use something like
    $[$4.0.0]
    which brings back the cardcode independant of the form we are looking at. However
    $[$U_VALUE.0.0]
    will not work!
    Hoping someone can help!
    Edited by: Daniel Abbatt on Apr 10, 2008 6:16 PM

    Yes you would have to have a UDF called VALUE on the marketing document for this example to run and even then it will error!
    That's the point, the code above will not work, SBO only seems to be able to know about ORDR in a sales order and OINV in an invoice. So if I am in a sales order, it errors on the reference to OINV, even though the code that uses the
    $[OINV.U_VALUE]
    is never actually accessed by the SQL. I guess this is because SBO does the substitutions before it executes the code.
    All I am basically trying to do is create a generic formatted search that will perform an action using the value of a UDF, say some formatting, the problem is I want it to work with any marketing document.
    The only way I can find to access a UDF though is by having to use the
    $[TABLE.U_FIELDNAME]
    way, which seems to mean by definition I can only create a formatted search to access a header UDF for a single type of document. I cannot create a generic formatted search, that reverses the string for example, and use that formatted search across all marketing documents.
    I know you can access normal fields also by their item reference, i.e.
    $[$4.0.0]
    , but this syntax does not seem to work with UDF, even though the system information shows the item reference as U_VALUE, I cannot use the
    $[$U_VALUE.0.0]
    which would be ideal...
    Edited by: Daniel Abbatt on Apr 14, 2008 12:05 PM

  • Searching DI API Property for column text in marketing document

    Hi,
    I am searching the property for entering information into the column rdr1.text.
    I found the following information in the help file:
    ItemDetails Sets or returns the item details in the marketing document line.
    Field name: Text.
    Length: 16 characters.
    Text Returns the text property.
    Field name: text.
    Both properties are not working because the second one is a read only field.
    Thanks and Regards Chris

    Hello Chris,
    you may try the property "FreeText" of DocumentLines.
    Cheers,
    Roland
    PS.:
    You can switch on the system-information (CtrlShiftD).
    Then in the bottom of B1 the propertys of a form-field are shown on mouseover. This helps often to find the right keyword for the SDK-Help.
    In this case it shows the column name in DB: "FreeTxt"
    Edited by: Roland Toschek on Mar 10, 2009 3:07 PM

  • How do I add extra pages to template documents in the new version of pages which carry over the same formatting, borders etc?

    Hi,
    Does anyone know how how to add extra pages to template documents in the new version of Pages which carry over the same formatting, borders, styles etc? In iWorks09, all styles, borders etc just used to carry over to the next page. In the new Pages, this doesn't seem to happen. Unless I'm missing something.
    Any help would be appreciated.

    Everything is a matter of degree! (Speaking for myself).
    Review and rate Pages 5 in the App Store and if you are interested check out all the changes here:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
    Peter

  • Formatted search to update item description in Purchase order document

    Hello Everyone,
       Has anyone developed a formated search to update the item description field on the PO or SO document?  I need to change the  standard Item Description  based on the BP catalog number but cannot seem to get it to work.  I know to change it using the screens you need to enter CTRL+TAB to move from the field without triggering a lookup process but do not know how to do this in a formatted search.  Has anyone tried this?

    Hi,
    You may check this :
    BP Catalog Number in 8.8
    Thanks,
    Joseph

  • Formatted search Auto update based on copy to next document

    Hi all,
    I have a formatted search on Sales Order. I want this formatted search to update/trigger when a Sales Quotation is copied to a Sales Order. Is this possible. I tried using Sales order document number but under auto refresh when field change but didn't work. Looks like it's not possible to trigger a FS simple by opening a new document creation screen. In this scenario using sales order due date is not ideal.
    Thanks all

    Hi Nagarajan,
    I don't think the code of the FS matter. Its about whether a FS can be triggered without doing anything more once a quotation is copied to sales order.
    Thanks

  • Formatted Search Document Numbering

    Dear Experts,
    I am trying to place a formatted search in the document number series of PO to change it to a particular numbering series whenever the supplier code starts with '0'.
    This is the query i have tried.
    SELECT CASE WHEN T0.[CardCode] Like '0%%'  THEN 'Comms'
    It just seems to come back with an internal error, is this possilbe? if so how?

    Hi,
    Please check this :
    SELECT CASE WHEN T0.CardCode Like '0%%' THEN 'Comms' END FROM Table Name
    Table Name =  from where the cardcode field is selected.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Using a formatted search which incorporates copying data from base document

    Hi
    I have a user selling tiles.  They sell by sq meter but will only sell whole boxes.  I have a formatted search on the quantity field to calculate the number of sq meters in a box.  They also sell indivudual units and will key this value directly into the quantity field.  All this works fine.
    However if I enter this as a sales order and copy to a delivery, then the formatted search fires and the quantity field gets refreshed.  This results in the incorrect value where the user had keyed data directly into the qty field in the base document.
    Therefore I need to incorporate my base document values into my query where by if there is a base document, the query will pull the quantity data from the base document.  My query so far is as follows
    SELECT (CAST($[$38.U_ActMtr.0] AS DECIMAL(10, 2))*CAST(T0.U_SqmBox AS DECIMAL(10, 2))) FROM OITM T0 WHERE T0.ItemCode = $[$38.1.0]
    Any suggestions?
    David

    If I understand your requirements well, you want to save the base quantity, when the delivery is based upon a SO, and to compute it when the DLN is not copied.
    Try to use this modified FS:
    declare @q dec(19,6)
    set @q=$[$38.11]
    If $[$38.43]<>-1
    Select @q
    Else
    SELECT (CAST($[$38.U_ActMtr.0] AS DECIMAL(10, 2))*CAST(T0.U_SqmBox AS DECIMAL(10, 2)))
    FROM OITM T0 WHERE T0.ItemCode = $[$38.1.0]

  • Formatted Search on Document Tax.

    Hello All,
    Can I assign a Formatted Search on the Document Tax(That field is always Diabled).
    If there is a way to do it please let me know.
    Thanks in Advance
    Manish Chaudhary

    Hi Manish,
                  U can assign formatted search for any field in B1 system. If u want to disable that field, u have to goto form settings and select table format Tab, select Tax field and then selct the check box Visible and uncheck the Active.
    Thanks,
    Suresh Yerra.

  • I have this formatted search for WharHouse Code in Document

    Hello Experts,
    I have this formatted search for WharHouse Code in Document
    declare @WhsCode char(8)
    if $[ODLN.Series] = '1077' set @WhsCode = '970'
    else set @WhsCode = '01'
    select @WhsCode
    and i would like to add to it:
    If an item has a default warehouse so it is to appear in a row (when not '1077' series) and if the item does not has a default warehouse then the  warehouse  eill be 01.
    Your Help Please!
    Thank You
    Meital

    Hi Meital,
    Try this:
    SELECT CASE WHEN $[ODLN.Series\] = '1077' THEN '970' ELSE ISNULL(T0.DfltWH,'01')
    FROM dbo.OITM T0 WHERE T0.ItemCode = $[$38.1.0\]
    Thanks,
    Gordon

  • Extra Formatted Search per field?

    Hi Experts,
    Currently we have a formatted search on Sales Orders which runs if you press SHIFT+F2 when in the item code field (or press the magnifying glass).
    It shows us the most recent items that the customer has purchased.
    Is it possible to add another formatted search to that field which will run if we use a different shortcut (i.e. SHIFT+F3)?
    Thanks
    Greig

    Hi Greig,
    A nice feature from you post.  However, one UDF can only assigned one FMS for current B1 design.  You probably need to create another UDF if you have another logic.
    Thanks,
    Gordon

  • Formatted search can we use current records values ?

    Hi.. to all,
    I have a need to get tax amount from current document at the time of entry before updating the entry by using Formatted search through saved query.
    Can any body help me to resolve it ?
    Regards..
    Chintesh Soni

    Hi,
    You can get the value at entry time (for example on an invoice) by creating a search define query such as:
    [code]SELECT $[OINV.VatSum][/code]
    Then add the search define to a UDF that gets 'Auto Refresh When Field Changes', and select an option like 'Document Total' and 'Display Saved Values'. This way the search define query will refresh the tax value in the UDF when ever the total value changes i.e qty, unit cost, discounts get altered...
    You'll need to alter the query to match different marketing documents and set the search defines on each one.
    Hope this is of help
    Kind Regards
    Matthew

  • Auto-refresh formatted search is not working properly...

    I have created a User Defined Field in Item Master named: FLD1 (Alphanumeric 30)
    Then I have created a User Defined Field in Marketing Documents Row: FLD1 (Alphanumeric 30)
    Now I want as follows u2013
    In Marketing Documents if I select any Item, the value saved in FLD1 in the Item Master will come automatically in the Field FLD1 of the Marketing Document.
    I did as follows u2013
    I have created a formatted search for the above marketing document (in Sales Quotation) for the field FLD1 as follows u2013
    Option: Search in Existing User-Defined Values according to Saved Query
    Query: GetItemFLD1 (SELECT $[OITM.U_FLD1] )
    Option: Auto Refresh  -
    When Exiting Altered Column
    Field: Item Description
    Option: Display Saved User-Defined Values
    But the above is not working automatically --- after saving the document if I click on the Formatted Search Marker then the value comes otherwise not.
    Can any one please explain the reason behind?
    for SAP B1 2007 B SP0 PL7
    Edited by: Narottam Das on May 5, 2009 1:53 PM

    Check this thread for explanation of Syntax of FMS:
    [Refer to Sales Order From Payment Means;
    Refer Suda Sampath  reply that explains clearly

Maybe you are looking for

  • Regarding open partial PR & PO MIgration

    Hi All, we are doing migration for partial PR & PO. is it possible  to replicate all GR , Invoice in the PO Migration. Please suggest me if there is any better method/idea for Partial PR & PO Migration. Thanks pabi

  • Calling a procedure from HTML website

    Hello I have created a procedure which up dates my database. e.g. http://mydomain.com/apex/ATC01.LOG_PAGE_HTLM?page_no=1&supplier_key=92185&application_no=88 It records hits etc on website. I have tested it from a browser it works fine. Now I wish to

  • Error in installing oracle10g in rhel5

    hi, i am trying to install oracle10g in rhel5 but i m getting the following error while installing, so please help me. Checking Network Configuration requirements ... Check complete. The overall result of this check is: Not executed <<<< Recommendati

  • Settlement of Work Order

    Hi All , Is it possible to settle a work order on WBS Activity Element. I am able to settle it on WBS Activity but not on Activity element. Rahul.

  • The Icon of the Downloads Stack @ Dock changes when I put anything inside.

    I have a problem, on my new iMac, I'm a happy new user of Mac =) By my mistake I throw to the trash the Download shortcut of the Dock (the default icon of the famous Stacks). I went to the Finder to my home folder and took the Download folder and put