Sapscript PO MEDRUCK total amount including condition charges

Hie gurus , i need your help with  a sapscript  Purchase order  Medruck, i can't find
the variable which contains PO total that includes condition charges, (e.g Freight charge , discount and customs).
i am just getting an amount that does not include those . does anyone know where to get the total amount which includes
those ?

In M/06, we have Octroi (Amt) with Condition type ZOC2.
Now what should be check there..
Plz guide..

Similar Messages

  • Example query for po headers total amount(including tax amount) from po_headers_all table in  r12

    HI
    there is no such column like po_amount in po_headers_all table then how can i get po total amount(including tax amount) from po_headers_all table  or else tell me how to get data from views  in R12
    As we are using sql developer tool to build queries in our project
    With regards
    siva

    PO line total is not included the tax, to View the tax amount (N) Action-> manage tax
    1) You have to sum up the lines to get the PO total,
      select ph.segment1 po_num, sum ( (pl.unit_price * pl.quantity)) price
        from po_lines_all pl, po_headers_all ph
       where     pl.po_header_id = ph.po_header_id
             and ph.type_lookup_code in ('STANDARD', 'BLANKET')   --Add as per your requirement
    --          and ph.segment1 = '2017'
    --          and ph.org_id = 7852        --Use when you have multiple OU
    group by ph.segment1
    2) To get the tax
    SELECT *
        FROM (  SELECT lines.line_num line_number,
                       lines.item_description line_description,
                       dist.distribution_num dist_number,
                       dist.code_combination_id dist_code_combination_id,
                       NVL (dist.nonrecoverable_tax, 0) nonrecoverable_tax,
                       NVL (dist.recoverable_tax, 0) recoverable_tax,
                         NVL (dist.nonrecoverable_tax, 0)
                       + NVL (dist.recoverable_tax, 0)
                          total_tax,
                       (NVL (dist.req_line_quantity, 0) * NVL (lines.unit_price, 0))
                          amount,
                       dist.org_id,
                       dist.DISTRIBUTION_ID
                  FROM po_requisition_lines_all lines, po_req_distributions_all dist
                 WHERE     lines.requisition_line_id = dist.requisition_line_id
                       AND NVL (lines.cancel_flag, 'N') <> 'Y'
                       AND NVL (lines.modified_by_agent_flag, 'N') = 'N'
    --                   AND lines.requisition_header_id = :1
              ORDER BY lines.line_num, dist.distribution_num) QRSLT
    ORDER BY LINE_NUMBER, DIST_NUMBER
    Join the po_distributions_all, po_lines_all & po_headers_all tables to get the specific value.
    Thanks

  • PO Condition type to be included in the total amount of PO

    Hi,
    I have a PO conditiont type configured with the ff. attributes:
    1. Condition Class is Discount or surcharge.
    2. Calculation type is percentage.
    3. Cond. category is delivery costs.
    I want to include the additional cost of this condition in the total amount of the PO. How will I configure the condition type to behave this way?

    Hi,
    Go to SPRO- MM - Purchasing - Conditions - Define Price determination Process - Define calculation schema
    Select the pricing procedure and go to the control data add the new condition type that you have configured as an additional step in the pricing procedure before the total amount.
    Regards
    Merwyn

  • Payment Card - To Be Authorised Amount  does not include Shippig Charges

    Hi Guys,
    In the Payment cards tab SAP as a standard calculates Total "TO BE Authorised" amount as NET pr + Taxes (Screen field: FPLAA-ENDWR).
    It does not include shipping charges. I would like to include the same. I guess there is no customization available for this. Is there a way out...
    Thanks and Best Regards,
    Jay Enn

    Hi Jay,
    You can assign pricing procedure in delivery to calculate Shipping costs and then
    so that you will be able to capture entire cost and bill customer accordingly
    Why not you set the period in Customizing for Sales and Distribution by choosing Billing -> Payment cards -> Authorization and settlement -> Specify authorization validity periods.                                                     
    Regards
    Srini

  • Amount in LC included freight charges

    Dear all,
    I crate a PO with price 5 qty 100 Net value=500 then added the FRA1 charges price 10 in conditions of PO and STAT check has activated already,
    now I post the migo Net price 500 and freight 10 both posted in separete G/L account.... But problem is that in migo 'Amount in LC' show 6.58 which would be 5 (actual price) and should not be included freight charges.
    Regards,
    Ali Makki

    hi,
    Check whether accrual indicator is ticked for condition FRA1
    if it is checked,it will post the same entries as you got.
    so untick the check box and try again
    Thanks

  • How to stop non statistical condition type value from updating total amount

    Gurus,
    Can any body explain me how to do following setting,
    How to Stop non statistical condition type value from updating Total Amount
    Regards,
    Sai

    Dear Sai,
    You need to make that condition type as Statistical one
    Go to SPRO - Sales and Distr. - Basic Functions - Pricing - Define and Assign Pricing Proc - Maintain Pricing Proc - Control Date
    Select the proc. - select the condition type and activate the  check box Statistical
    This will show the amount of the condition but will not consider for the net value calculation
    Hope this will help you
    regards,
    Sagar

  • How to add pack charges in purchaseorder total amount befor BED Calculation

    Dear All,
             My supplier will also charge packing charges for  raw material
    It should be add with the total amount
    For Ex,
            Quantity = 10
            Unit Price = 1000
            Packing Charge = 300
            Total = (Quantity*Unit price)+Packing charge
             Total after packing = 10300
              Then i want to calculate the BED for the total after packing 10300 amount
    How can i add these packing charge with total amount
    Regrads,
    Vijay
    Edited by: Vijay Guru on Oct 14, 2008 7:32 AM

    Thank u Gordon but my P&F Amount is changable
    Following solution may suitable for this problem
    *What we do as a workaround is create a UDF called 'Packing & Forwarding Charges' in Rowlevel and Write a Formatted Search Query to Add this value of 'Packing & Forwarding Charges' with unitprice * Quantity and assign this to Assessble Value of an Item.*
    *Assessable Value = unitprice * Quantity + Packing & Forwarding Charges*
    Now calculate the BED, CEss, CEHH HE, VAT for this Assable value.
    But how can i create the formatted search for adding the value of pack& forward with assessable value
    Help me out
    Regads,
    Vijay

  • Purchase Order Total Amount at Header level and Report Execution

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?
    Edited by: Kiran Mujumdar on Feb 23, 2009 7:08 PM

  • How to display total amount field in PO layout

    Dear All,
    I have a query related to Purchase Order Printing.
    I copied the standard programme SAPFM06P as ZSAPFM06P. I didn't make any changes to standard program.
    I copied the standard layout MEDRUCK as ZMEDRUCK.
    I am able to display all the data of PO but I am facing problem in displaying <b>Total Amount</b> field (i.e sum of amount and tax value).
    How can we display the Total Amount in the layout without changing the Standard program. I want to make the changes only in ZMEDRUCK for this field.
    My main window details are as follows :
    MatNo MatDesc Uom Quantity rate amount <b>Total amount</b>
    Here I am not able to print Total amount(amount + tax value)
    Please help me on this .
    Thanks & Regards
    Rajvinder

    Hi Rajvinder,
    u need not be so much against changing the program.. infact it s the best way to get the desired output if its done properly...to be completely safe,wat u can do is insert a subroutine somewhere after the values have been populated in the program n then add these inside the subroutine to get the total in a different variable..in this way ur original data s intact n u can use ur new variable in the script as total..
    neways if u dont want to change ur program, then u need to keep these things in mind..
    the value of total & tax shud be available at the point of calling the perform from the sapscript so that u can pass those to a new program for addition.
    eg :
    while writing this in script
    :/ perform add in program znew using &total& &tax& changing &final&
    before this command u need to make sure that total & tax values r ther to pass to the program..
    then u can write a FORM in ur znew to add these two n pass to final..
    in sapscript u can then print &final&
    Hope it helps,
    Regards,
    Bikash

  • Calculate 3% revenue on total amount in SO

    Hi
    I have a scenerio in pricing which I want to charge a customer with 3% -5% on the total amount of invoice as we have helped him to achieve his goal by fulfulling his order.
    So we are charging the customer as he uses our services and at the same time we want to charge him extra 3-5% as we have helped thme to achiev the goal.
    Please explain in detail would really appreciate
    Thanks In Advance

    Hi,
    From what you have asked, I think you are charging Commission Charges from your customer. Do you have to show the rate at which you are charging him extra or is it only for statistical purpose?
    You can create a new Condition Type ZXXX which will be of Type- Discount or Surcharge and Category-Value.
    If you want to maintain Condition Record, you can create the Access Sequence based on the Sales org+Customer.
    In Pricing Procedure it will be placed below the Tax Total and will be calculated as Total of Base Total and Tax as I suppose you are going to calculate your Commission on total value i.e. the Invoice Value inclusive of Tax.
    Hope this should solve your problem.
    Regards,
    Karthik

  • How to include Freight charges and unloading charges in Material price.

    Hi All,
    Can you pls. advice how we can include freight charges & unloading charges in Material price (MAP) when receive in system.
    Current Situation :
    We buy Switchgears from vendor, which transported with special vehicle arrangement from different service provider and gets unloaded at warehouse by another service provider. Currently business create seperate PO for Material vendor, Freight Vendor and for unloading service provider. But MAP is only updated with Material cost only. How can I include delivery cost and unloading cost in MAP thro standard SAP process.
    Your solution will help business heaps.
    Regards,

    Hi,
    Create three condition types namely basic material price, freight charges & unloading charges.
    For  basic material price , you can copy PB00 and rename your basic material price condition type.Now freight charges & unloading charges condition type in M/06 , do not maintain condition category ( keep it blank ), so that it will added to inventory cost .For freight charges & unloading charges do not maintain account key & accrual key in Pricing procedure.
    Cretae PO , now you will see all cost added to NET price in PO and you can for doing GR where all cost are inventoried as materisl cost.
    Regards,
    Biju K

  • Discount in pricing for total amount sales order

    Hi developpers,
    You know a standard procedure for calculate, a particular discount for sold to party, with relation to the total amount of sales order.
    Thanks in advance
    Domenico

    Dear Manti,
    -->Create condition table with the field Slod-to-party
    -->Put that field in to access sequence
    -->You define the the discount condition type in the transaction V/06 or you copy standard discount condition type.
    (Based on the % or Value or Fixed)
    -->Assign acces sequence to that condition type.
    -->Put that condition type in your pricing procedure after gross price total.
    -->Calculate that discount condition type from gross value.
    -->Put net value after deduction of the Discount in the pricing procedure.
    -->Maintain the condition record for that discount in the VK11 transactio.
    Now you create sales order discount will come in the sales order.
    I hope it will help you
    Regards,
    Murali.

  • Why net discount base is amount included tax in t-code F-53 but not in FBZ2

    dear all expert SAP consultant
    i am here need your help..i have case where the discount amount in F-53 is different with FBZ2. but all the configuration and amount in the both transaction are the same even the currency. for the detail here is scenario. hope you can help me solve this problem.
    i set the configuration for discount base amount is net procedure. where it means that the discount amount is taken from invoice amount not included tax. e.g. invoice amount 909, tax amount 10% =91, and total to be paid before tax is 1000. if the discount is 10%, therefore its amount should be 91 too. but when i run the transaction (f-53) the discount is 10 not 91.so the base amount for discount 10 is 1000(total to be paid where is included tax) not 909( not included tax).
    just a note : this configuration takes a right effect if you do the transaction in fbz2(outgoing payment with PO). why this configuration doesn't take effect in transaction outgoing payment without PO (f-53).
    i really hope your help.
    anyone who can help me is so appreciated.
    warm regard
    land lord

    thank a lot chandra..but the discount is still taken from amount included tax. eventhough i have set discount base amount is net procedure. where the discount amount should be taken from amount exclude tax.
    but thank you for your help...
    warm regard,
    land lord

  • LST and CST amount from condition.

    Hi experts,
            I am an abaper making a report on purchase register without any functional consultant , So,
    i have a limited knowledge abt FI. Please help me with this problem regarding LST and CST amount from condition ie kschl.
    now i am taking the total amount and lst /cst amount from me23n, I can find the total amount from rseg but i cant seem to find  cst or lst amount or % from any tables. i can find the tatal tax ie jvxs but
    I am trying to find the taxes with conditions jvcs and jvrd.
           Please help me find the tables and fields useful for this situation.
    Regards,
    Ashesh

    Just go through the konp table.This is for all condition types.Stil i am not clear with u r question,we are also working for purchase register along with abaper.
    If its a sevice tax pls check zst1 and zst2 condition types aslo.

  • Total amount info

    Hi All,
    How can I get the total amount (Net amount + Tax) of the sales order at the header and item level?
    In Quotation and inquiry documents, there is a field called Total amount (ENDBK) at the header level.
    That’s what I want; I want to have this field in the sales order at both header and item level.
    How can I do this?
    Regards,
    Ahmed

    Hi Ahmed,
    for adding functionality from your side ,  you can do as follows:
    1.    Use USEREXIT_MOVE_FIELD_TO_VBAK  to add a new field say Total Value.
    2.  Use USEREXIT_READ_DOCUMENT to read value ( net + tax) in this new field.
    3. Use USEREXIT_SAVE_DOCUMENT to save data when document is saved.
    Similarly,
    For Item level,  use USEREXIT_MOVE_FIELD_TO_VBAP instead of  USEREXIT_MOVE_FIELD_TO_VBAK.
    All these userexits are present in include MV45AFZZ.
    Hope this help you.
    Reward if it helps.
    Regards,
    Gaurav Raghav.

Maybe you are looking for

  • How to call a web Service from Oracle Applications?

    Hi friends, I've posted this question on OA Framework forum , but may be it's more appropiated put it here. Sorry for do it again: It's about how to call a web service from a Form or a .sql (via Request) in Oracle Applications: Could you please expla

  • How to publish WSDL as Webservice in XI 3.0

    Hello, My Scenario is  SOAP --XI -- R/3(Proxy). XI version is XI 3.0 and SAP R/3 4.7 Generated a WSDL for SOAP Sender(ID>Tools>Define webservice) I want to know  how can i publish this  WSDL as webservice. Appericiate your help. Srinivas Edited by: S

  • How to email a pdf file (attachment with password) using ABAP?

    Hi Colleagues, I n abap, how do you email a pdf file that contains password? (pdf with password, not the whole email). A custom program is created. Inside this program, it retrieves the spool number and converts it to a pdf file (using function modul

  • Comparision on row level

    Hi, There is a table containing 3 columns where roll_No is unique Roll_no |col1 | col2 | col3 1 12 20 16 2 10 9 25 3 15 18 10 I want to do is to take out 2 max values from a row & divide the sum of that by 2. just like below Roll_no | col1 | col2 | c

  • Not receiving texts

    Since update some texts aren't being received