Error in discount amount  in Purchase order PLD

Hi Experts,
My client requirement is that they want to have the discount in amount wise like for eg  i am giving discount 10% on 1000 rupees product where as SAP gives the value as Total before discount is 900 where as my requirement is to have 100 rs as discount amount.
So what i was doing like unit price(-)amount so this gives me the exact value. Now they problem is that when i am doing for any multi currency the discount amount is coming in ****** astrks, so when i have checked  the problem is the Unit price is in multi currency and the amount is coming in INR the system is unable to calculate so how to resolve this issue. Please help me out waiting for your reply.

Hi,
I would do the following - create a formula field: ("Price before discount (var 81)"/100)*POR1.DiscPrcnt
This will give you the discount amount in the currency of Unit price field.
BR,
Marina.

Similar Messages

  • Re: Error in submitting Import Standard Purchase orders from Pl/Sql

    Hi All,
    Iam using the following code to submit a concurret program
    "Import Standard Purchase orders" from pl/sql
    Program is sucessfully submittted but it is Completing in error status i am stuck there please help me in resolving this
    My instance R12
    My Code
    ======
    DECLARE
    v_request_id VARCHAR2 (100);
    BEGIN
    mo_global.set_policy_context ('S', 204); --org_id for the operating unit which the purchase order records belong too
    mo_global.init ('PO'); -- sets the application
    FND_GLOBAL.APPS_INITIALIZE (1013436, 50578, 201); --Consists of the user_id, responsibility_id, responsibility_application_id which is 201 for purchasing
    v_request_id :=
    fnd_request.submit_request (application => 'PO',
    program => 'POXPOPDOI',
    description => NULL,
    start_time => NULL, -- To start immediately
    sub_request => FALSE,
    argument1 => '31348', -- Buyer_ID
    argument2 => 'STANDARD', -- Doc Type
    argument3 => '', -- doc subtype
    argument4 => 'N', -- update items
    argument5 => '', -- create sourcing rules not used
    argument6 => 'INCOMPLETE', -- Approval status
    argument7 => '', -- release generation method
    argument8 => '1021387', -- batch_id
    argument9 => '', -- operating unit null
    argument10 => '', -- global agreement null
    argument11 => '', -- enable sourcing null
    argument12 => '', -- sourcing level null
    argument13 => '', -- inv org enabled null
    argument14 => '' -- inv org null
    DBMS_OUTPUT.put_line ('Request submitted. ID = ' || v_request_id);
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line (
    'Request set submission failed - unknown error: ' || SQLERRM
    END;
    output
    =====
    when i check output i am getting the follwing error
    DECLARE
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at line 133
    Log message
    ==========
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    31348
    STANDARD
    N
    INCOMPLETE
    1021387
    Start of log messages from FND_FILE
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 945297
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    End of log messages from FND_FILE
    Thanks
    Manoj kumar

    Pass NULL instead of ''
    Check the flag
    SELECT multi_org_category
      FROM fnd_concurrent_programs
    WHERE concurrent_program_name = 'POXPOPDOI'Update it as per the below MOS Doc
    R12 / POXPOPDOI - 'ORA-01422' Error While Running 'Import Standard Purchase Orders' [ID 457628.1]
    Otherwise,
    Follow the below doc and insert values to the interface tables (headers, lines and distribution) and run the Import Standard Purchase Orders from the front end.
    How To Diagnose Problems With Importing Standard Purchase Orders [ID 781351.1]
    HTH
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • Cash Discount in a purchase order

    Hi,
    I have a problem with Cash Discount in a purchase order .
    When I create a purchase order in ME21N , and I need to put a cash discount in the condition of the header of the purchase order or  in item detail, the line cash discount appears automatically when I create a new purchase order with the same material.
    Anybody could tell me why the Cash Discount  appears automatically?
    Thanks a lot
    Kari

    Hi,
    There is a diference between cash discount and discount. Cash disocunt will never come in PO. It comes only during inoice.
    The discount in PO is based on quantity. In your case it may ot be cash discount but a discount. It may come automatically because of one of the below reason.
    1. If you create a PO wih reference to the PO, which is having discount.
    2. If you maintain in Inforecord.
    Regards,
    Prabu

  • Standalone Scenario - Error during Creation of Local Purchase Order

    Hi All,
         I am trying to setup Standalone Scenario, i have created all the master data locally, i am able to Order SC, but after workflow approval SC goes into error 'Error during creation of local purchase order from shopping cart XXXXXXXXX'
         I have created following configuration setting for local PO number
    1) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Number rang. for Schopping Carts and Follow-on Doc. --- i have number ranges for PO follow-on doc. i.e.
    inrerval No = PO, from number = 0004000000, to number = 0004999999, ext. = unchecked
    2) In SPRO -> Cross-Application Basic Settings -> Number Ranges -> Define Ranges per backend system for follow-on documents PO, PR etc
    3) In sourcing (SPRO -> Cross-Application Basic Settings -> Sourcing -> Define Interactive Sourcing for product categories) ---  sourcing is never carried out.
    Can anybody help?
    Regards,
    SAP Guy.
    Edited by: SAP Guy on Apr 23, 2008 2:32 AM

    Hi SAP Guy,
    Following steps are must for Local number range
    1) Create number range for local PO
    2) Maintain your logical system in 'Define number range per backend system for follow on document'
    3) Define Transaction Type for BUS2201, define document type (e.g. EC1)
    4) Assign Document type (EC1) in Org attribute BSA.
    Hope this helps.
    Regards,
    Manish.

  • Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]

    We are trying to create Invoices using the SDK tool for a clients interface. Everything goes ok, except at the point where we add the document, we get the following message:
    Error -5002, Update quantities in purchase order? (INV1.Quantity) Line[2]
    Any ideas? We have searched the SAP notes, but nothing is available. Are we missing anything?
    We are running on Version 6.50.098
    Thanks
    Marios

    Hello Marios,
    This error occurs because the last line you are trying to add to the Marketing Document is an empty line. It is a new functionality in Version 6.5 that the document object automatically comes with one document line so if you are adding just one line you do not need to use oDocument.Lines.Add,                                           
    It is only for the second and subsequent lines of marketing documents that you require the method oDocument.Lines.Add. Note 722693 describes the issue.                 
    Regards,
    Lisa

  • Regarding Linking Customer Name in Purchase Order PLD

    Dear Experts,
    I need to show the Customer Name in Purchase Order PLD. Purchase Order's base document is Sales Order.  Eventhough i mapped the sales order table and customer name in the Purchase PLD, the system is hanging and coming slowly like some 1234 blank pages.
    How to show the same ?
    Pl help, Thanks
    Regards
    Sundaram

    Hi Sunrag......
    If your PO is linked with SO. Then you can fetch customer name easily by FMS in PO.
    From there you ca gte the Customer Name into your PLD and it wont hang also.....
    Regards,
    Rahul

  • Message change for invoice amount against Purchase order

    Hi Experts ,
    In MIRO , While invoice posting against a purchase order , when enter is pressed after supplying posting date amount
    Purchase order no and line item no , a message appears : downpayments against vendor xxx exists giving total amount against the vendor indicated in purchase order .
    Can message be changed and amount against that particular purchase order only be displayed instead of against vendor , because same vendor can have multiple purchase order by using any enhancement .
    Thanks
    SA

    Hi SA ,
    i think u are getting this from from ur User Exits only , trace this message based on the message No.
    in standard MIRO u wont get this kind of messages.
    regards
    Prabhu

  • Invoice non deductible tax amount vs Purchase order

    In the purchase order the tax amount is calculated item by item (ME21N). In the invoice (MIRO) when we select flag “Calculate tax” the system calculates the tax amount for the total of all the items. Because of this system behaviour in the invoice verification sometimes we obtain small differences.
    These differences should not exist specially when we are using a non deductible tax that affects the material valuation with the goods receipt and has to be corrected in the moment of the invoice verification.
    Why does the system have a different behaviour from the purchase order to the invoice?
    What can be done?
    Best regards

    Dear Biju K
    Whatever you mentioned about condition NAVS is there in system.
    I am not adding tax code in PO, referring your earlier email I am asking that.
    For adding other element I have not asked anything here, only to clarify your statement
    You need to cross check why non-deductible tax amount needed in your PO with NAVS condition type and its purpose.
    I explained this.
    My question is simple that in one PO I am getting non-deductible tax but if I change vendor for the same material I am not getting non-deductible tax in condition tab ? I am not able to understand why its happened ? If one PO shows means there are chances that basic configuration is correct but may be somewhere something is wrong, I want to find out that.  If you can throw some light on that its helpful for me.
    regards
    Nitin

  • Error in Standard Program for Purchase Order

    Hello Everyone,
    I am getting an ABAP Dump Error while Displaying & Printing Purchase Order using TCODE : ME9F & ME23N.
    We have applied new Patches.
    for Logistics it is 26 & ABAP it is 58.
    I am getting Error in standard INCLUDE
    Program : LMEDRUCKF1K at line 64.
    The Error is :- "Field "ENJPREVIEW" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."
    Declaration for "ENJPREVIEW" is also available in
    include LMEDRUCKTOP. still it gives an error.
    These lines of code is included by SAP note 855263.
    Before applying these Patches it was working properly, but now it gives an error.
    Please , Can anyone give solution for this.
    Regard's
    Archana.

    Hi Archana ,
    Check is there any Inactive Versions in ur Systems ?
    useful tcodes are SPAU /SPDD for tables
    Regards
    prabhu

  • Error While submitting Import Standard Purchase Order Concurrent Program

    Hello All,
    When I am trying to submit Import Standard Purchase Order Concurrent Program from front end, it gets submitted properly.
    and from backend,I am getting Following error.
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 27810853
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
    ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
    When I looked in Parameters in both program(manually submitted and called from backend) I found a difference.
    difference is Parameter Operating Unit. It not get submitted while program calling from backend.
    Please anybody tell me solution for this. for setting this parameter.
    (Also I have applied for patch 13001705 as per Metalink suggested).
    Thanks in advance.
    Regards
    Ravi Raj.
    Edited by: Ravi Raj on Jan 23, 2013 10:50 PM

    Please paste the code here.. there may be some parameter issue while submission.

  • Error while submitting standard import purchase order program

    Hi,
    iam submitting Standard import purchase order concurrent program, iam getting
    error in view - output like
    Enter value for 12: EXEC FND_CONC_STAT.COLLECT;
    Enter value for 14:
    in view-log like
    To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
    AUDSID = 10451963
    can any one help me?
    Regards
    Bhaskar

    Please paste the code here.. there may be some parameter issue while submission.

  • Error Occurred while saving the purchase order

    Dear Experts,
    While changing PO and Schedule Agreement using T.Code : ME22, ME32 we are facing below error message.
    Problem occurred While altering and saving the purchase order.
    Error message FGV004 - "SYST:date 00.00.0000 is not permitted" is generated
    when modifying an Scheduling Agreement that does not have a Delivery
    Schedule using ME32L.
    Please Kindly help to fix this error as soon as possible.
    Thanks in Advance.
    Prasath Manoharan

    hi,
    In addition to above..
    I also checked for the SAP note...
    It shows only one note regarding MM...
    pls check the sap note 355827..
    As per this note you need to add few corrections...pls take help of basis consultant..
    Regards
    Priyanka.P

  • Error in Email PDF of purchase order

    In the purchase order, we have set up a message(output) type as
    external send for sending the email to the buyer. It has been working
    good for the past 1 year and suddenly for the past few weeks we started
    noticing errors.
    The error is that we cannot see any data in one of the pages of the PO
    output(PDF attachment). For example, if a PO has 5 pages, the 2nd page
    will be blank and all the other pages would have come out fine. This
    does not happen in every PO and also it is not the same page which is
    missing in all the error PO PDFs. But when we print the output with
    the Print medium it always looks fine. Both uses the same smartform
    and the program.
    Even in the same PO, the first time they email it does not work
    correctly and if they repeat the output after a few minutes all pages
    look fine.
    This error happens sporadically and it does not have any connection
    with the number of pages a PO prints or it is not the same page that is
    missing always. I beleive it does not have anything to do with the
    special characters in the PO. The language we are trying to print is
    English.
    We use CONVERT_OTF function module to convert from OTF to PDF. This
    was working good always before and suddenly we see problems every now
    and then. I will also attach a screen shot of the error when the PDF
    is opened(this shows a page in PO which is blank & error of PDF). Can
    you please look into this and direct us in the right path
    to solve the issue?
    Thanks

    Hi,
    As mentioned the pdf missing page error is sporadic, I would recommend you to check the following:
    1. Add a delay 'WAIT' Function Module before 'CONVERT_OTF'. Maybe, due to some change in hardware, patch upgrade or increased user load, the pdf is not getting generated the first time. Hence, it works fine the next time.
    2. Ask your BASIS Team to monitor the dialog processes when you run this activity. You can also use SQL Trace to get any leads with reference to bandwidth issues.
    Regards,
    Pranav.

  • Error while closing the open purchase order for MRP run

    HI expets,
                     We are facing issue while closing the old purchase order(18.12.2007) for MRP run, if we are clicking delivery completed for the particular line item ,system is showing the error NET PRICE MUST BE GREATER THAN ZEROthough we have made GR and IR aganist the line item an value is also showing in the purchase order history tab, but in the condition tab there is no value showing for the particular line item .Kindly suggest the way forward.
    regards
    Karthick sundaram

    one thing for sure, you cannot proceed without maintaining proper conditions in the PO.
    Why they are not there or not anymore there is probably caused by customizing or vendor master data changes.

  • Purchase Order - PLD

    Hello all,
    In SAP B1 2005B
    I am having 2 queries about Print Layout of PO.
    1. In print layout of the Purchase Order .I want have the total of different taxes individually applied in the document.
    E.g. In PO having some rows with VAT@4% ,[email protected]% and some like having tax code BED+VAT @ 4% ,which is a combination of two individual taxes , So in the Summery of the document,  I want to calculate the total of  individual taxes applied in the document ; whether they are applied separately or in combination.
    2. The document total in words shows in the print layout is like e.g.  “One hundred and eleven thousand five hundred thirty six Indian rupee and ninety two paisa” for   Rs.111, 536.92 instead of “One lac eleven thousand five hundred thirty six Indian rupee and ninety two paisa”
    So please help me on these two issues.
    Regards
    Atul Joshi

    Atul,
    The forum that you have posted your question in is for questions with respect to the SAP Business One SDK.  Your question os more of an application question dealing with the PLD and while you may get a response, you should post application type question is the SAP Business One Discussion Forum as you may get a quicker response.
    http://cpsn-channel.sap.com/businessoneforum
    Eddy

Maybe you are looking for

  • Error message when publishing to Flickr through Lightroom 3

    When I update one of my collections in Lightroom and then directly  publish into my Flickr account, I often get the following error message:   Flickr API returned an error message (function upload, message  Filesize was zero).  Does anyone know why I

  • Problem getting images in ePub to appear correctly for Nook

    I have been working on a book that is about 250 pages long in print format, with about 350 photographs that illustrate the text, which is a guide to the use of a particular digital camera model. After watching Anne-Marie Concepcion's course at Lynda.

  • Flash Builder 4 unloadStyleDeclarations

    Hi: I am working on an app that has 4 style sheets.  The style sheets are complied to .swf's.  I am doing an unloadStyleDeclartion on the style sheet in memory and then a loadStlyeDeclartion hooked into a changeHandler when selecting a style sheet fr

  • HT1551 Apple tv connected but cannot link iPad to play movies through it, why?

    Just moved house so am in the process of setting up my apple tv and it will not allow my iPad to play movies onto my tv as before. They are both connected to the same wifi network. Any ideas? Thanks

  • Using ant with ejbjar

    I am trying to specify a manifest file in the <ejbjar> element, and it appears that weblogic.ejbc is overwriting the manifest (ant does find the MF, but weblogic seems to be clobbering it) has anybody run into this before? thanks