Sales order and incoming payment query

Hi experts,
                 I jus need a query that contains sales order doc num, date, cust name item description doc total and how much he paid towards the document and what is the balance due....pls help me...
regards,
Vignesh.R

Hi Vignesh.......
Are you using AR Downpayment based on Sales Order?
If yes then try this.....
SELECT T0.[DocNum], T0.[DocDate], T0.[CardName], T0.[DocTotal], T0.[DpmAppl] FROM ORDR T0
Regards,
Rahul

Similar Messages

  • Can We enter Sales Invoice and Incoming Payment VIA SDK

    Dear Experts
    We have to develop an integration bridge with retrieve data from excel sheet and upload in SAP , i want to clear is it possible to enter sales invoices and incoming payment via SDK?. If it is possible please guide me about objects name and any reading material for SDK development.
    Thanks

    Hello,
    Yes it is possible with 2 steps:
    1. you post the invoice
    2. you post the payment
    I have already posted into the forum several examples, you may check them:
    For invoice + payment
    for payment only:
    Regards
    János

  • Sales Return and Incoming Payments

    Hi,  I have worked with SAP Business One for a long time, but as an end user.  Now I am employed as SAP Support for my new employer.  I have a couple of questions:
    1. My past experience with SAP is that a Return is a function created through a credit memo.  My new company has a Return AND Credit memo in AR.  I understand why this is needed, but when a return is used instead of a credit memo, the invoice is not linked to the return, nor is closed by the return.  Is this because of the way the system was initially set up through SDK?  Can this be corrected/reconstructed to do Sales Order -> Delivery -> Invoice -> Return -> Credit Memo.  And have all the reconciliations done internally by SAP?
    2.  SAP was working on an issue but then stumbled upon another issue that they wanted me to look into from our database.
    Here is a copy of their response:
    In the course of our investigation for message 1065121 2010, for the database of (Customer 1127763), we noted that this is also affected by the scenario described in Note 1026115 - Invoice does not appear on Incoming/Outgoing Payment. I have attached the said Note for your reference. We have created this message on your behalf to pro-actively create a fix for the issue.
    What I found out: My past experience with Incoming payments was that in the incoming payment screen, you could easily reconcile/click on the credit memo and the invoice and add it just fine.  But in my new company, we are not allowed to add an incoming payment without entering a payment in the 'money bag', which is impossible because it's a credit memo against an invoice.  We have to do an internal reconciliation, therefore the invoices do not show up in the incoming payments table.  I know there is not a validation created to validate an incoming payment because I did not create a validated function to do so.  How is this possible?
    Your response is kindly appreciated.

    Hi Marianne,
    I think this is more a Business Process issue than an SAP issue.
    If you have delivered goods, but not invoiced them, the correct document is a return. If you have delivered and also onvoiced, the correct document is a credit memo, not a return.
    The return is drawn from the delivery, which creates the required links, and the credit from the invoice, also creating the links.
    Creating a return where the goods have been invoiced is a redundant step and will break the links, as you point out, and requires additional reconciliations.
    The credit memo based on an invoice will create all the accounting and stock entries you need. Perhaps some testing & training will convince them to change their processes?
    PS if you do use internal reconcilation to close an invoice, you can find the applied transactions by using right click on the invoice

  • Difference between sales orders and incoming orders? ????

    Hi all,
    Does anyone know what difference between incoming order and sales order? Thank you.
    Koala

    I think they are the same.

  • Rounding method in sales document and incoming payments in SBO2005,PL39

    While making an A/R invoice I wish the amount in the invoice to get rounded. Where is the setting or what is the process to do this? Is it possible in SAP B1?
    For example:- I make an Invoice of amount Rs.7000.36 and I want the amount recievable to be Rs.7000 only and the invoice should also carry this value. The rounded off amount Rs.00.36 may move to a offset account.
    Edited by: debraj bhattacharyya on Apr 15, 2008 7:20 AM

    Hi,
    if you want to allow over & underpayment, you can set ip up quite easily in the document settings -> per document tab -> overpayment/underpayment amount allowed for incoming & outgoing payments.
    For the 0.36 to be allowed off in the incoming payment you would have to allow an amount for 0.36 or more. Please see note 1089652 for an explanation regarding the tax implications of the functionality.
    If, on the other hand you wish to work without decimal places, just define the currency as having no decimals. You can also set it to be automatically rounded to the five hundredth, ten hundredth, to one or to ten. If the rounding is applicable to payments as well, put a tick in the appropriate column.
    Note: In order to set rounding at the currency level, the method under document settings -> general tab must be set to rounding by currency, otherwise the columns are not available in the currency definition window.
    Cheers,
    kerstin

  • Joining Sales Orders and Delivery Notes in Query

    Hi Experts
    Please could someone provide me with the correct SQL syntax for joining tables ORDR, RDR1, ODLN and DLN1 in a query?
    I need to show a list of the (rows of all open sales orders) and (closed sales order (which have a delivery note) between certain dates).
    Thanks
    Jon

    Hi Gordon
    Thanks for your help.  Could you help me a little further?  I am writing the query to show me a mixture of (Open Order rows which contain item code 'C&P') and (closed orders between 2 dates which also contain C&P) - both need to have the customer having property 54 set as 'Y'
    Working with what you sent me it almost works but for some reason I cannt fathom it won't show the open orders only the closed.  I think it may have some do with my last JOIN
    This is what I have:
    SELECT T0.DocNum 'Delivery No', T0.DocDate 'Delivery Date',  T3.Quantity 'Delivery Quantity', T1.DocNum 'S/O No', T1.DocDate 'SO Date', T1.DocStatus, T3.ItemCode, T3.Dscription, T2.Quantity 'SO Quantity', T2.Quantity-T3.Quantity 'Balance Quantity', T2.LineTotal'C&P Price After Discount', T2.DiscPrcnt, T2.Project, T4.QryGroup54'Carriage Deal', t2.freetxt, t1.comments
    FROM DBO.DLN1 T3
    INNER JOIN DBO.ODLN T0 ON T3.DOCENTRY = T0.DOCENTRY LEFT JOIN DBO.RDR1 T2 ON T3.BaseENTRY = T2.DOCENTRY AND T2.ItemCode = T3.ItemCode LEFT JOIN DBO.ORDR T1 ON T2.DOCENTRY = T1.DOCENTRY INNER JOIN OCRD T4 ON T0.CardCode = T4.CardCode
    WHERE (T2.ItemCode LIKE 'C&P%%' AND T1.DocStatus='O' and t4.qrygroup54='Y')  or (T2.[ItemCode] LIKE 'C&P%%' AND T1.[DocStatus] = 'C' and T4.QryGroup54='Y' and (T0.DocDate Between '[%0]' and '[%1]'))
    Thanks
    Jon

  • How to make payment terms as disable in sales order and quotation

    My requirement is to make payment terms(vbkd-zterm)  as display in sales order and quotation at overview ,header data and item data.
    Regards
    Edited by: vijay vijay on Jun 29, 2010 7:43 AM

    Using user exit USEREXIT_FIELD_MODIFICATION in MV45AFZZ, use it when you are going for particular case.
    Or you can go for or screen variant, use it when you are going for all cases
    Hope this can assist you.
    Thanks & Regards
    JP

  • How to block sales order and Delivery order based on payment terms ?

    Hi  experts ,
    I have an sceneria to block the sales order and delivery based on payment terms ?
        For eg )  Customer payment terms  is Z001 which is 5 % discount within 30 days , No discount within 60 days.
                        My requirement here is a)   if open item exceeds 30 days , delivery to be blocked
                                                               b)  if open item exceeds 60 days , Sales order to be blocked..
    Pls give me a solution....

    HI Kakas,
    If possible in configuration , pls let me know .
    payment terms is     5 % within 30 days if customer pays
                                     No discount  within 30 to 60 days if customer pays.   
    Here , i need to control , sales order to be allowed and delivery not to be allowed  for a customer if any open invoice within 30 to 60 days and sales order to be blocked if  open invoice exceeds 60 days..
    Is this possible in Credit management ?.. 
    pls let me know...
    with Regards
    S.Siva

  • Sales Orders And Downpayment Invoices

    Hi,
    I am trying to get a link between the Sales Order and the Downpayment Invoices.
    As I open a Sales Order I cannot directly figure out weather it has a down payment
    invoice or not. (DP Invoices will not show on Target Document Button on the tool bar)
    Is there a way to Find it out??
    When I am going through the ORDR Table I have noticed DpmDrawn, DpmPrcnt, DpmAmnt, DpmAmntFC, DpmAmntSC, Columns.
    DpmDrawn Shows Values 'Y' or 'N' but rest of the fields are just showing default values (null or 0.00)  for every Sales order.
    Is there any setting I have to set up to fill those fields?
    or is there a better way to check that Sales Order has a Downpayment Invoice??
    Thank you very much for your help.

    Hi Suda,
    Thanks for the quick answer. True, that is the way I use to find the DP invoices.
    Problem is no one check it before they generate a new DP invoice for the Sales Order.
    We end up creating few DP invoices for the same Sales order.
    I just want to stop that. Thats why i am trying find out a link between sales order and the
    DP invoice and show it with the Sales order or give a rule.
    Thank you very much for the help.
    Kind Regards
    Sanjaya

  • Sales order and Delivery difference

    I Am trying to write a query to produce totals of items ordered by customers compared to deliveries made. However there may be 3 deliveries made to one sales order and so my sales order total for an item is getting multiplied by 3 and showing a difference compared to the amount delivered where in fact the whole order has been delivered. How do I hold the sales order total per item once but then compare with the total delivery per item over multiple deliveries?

    Hi,
    Try this query for cost difference
    SELECT T0.ItemCode, T0.Dscription, Sum(T0.LineTotal) AS 'Order Value', ISNULL(Sum(T1.LineTotal),0) AS 'Delivered Value', Sum(T0.LineTotal) - ISNULL(Sum(T1.LineTotal),0) AS 'Lost Sales'
    FROM RDR1 T0 LEFT OUTER JOIN DLN1 t1 ON  T0.DocEntry = T1.BaseEntry AND T0.LineNum = T1.BaseLine and T1. BaseType = 17
    GROUP BY T0.ItemCode, T0.Dscription
    ORDER BY T0.ItemCode
    Replace my query with below query
    SELECT T1.[CardName]'CustName',T1.DocNum 'SOOrder',T1.[DocStatus]'SOStatus',T0.[Project]'JobNo', T0.ItemCode,T0.Quantity 'SOQty',T2.Quantity 'Delivered QTY',T0.OpenQty 'BalQty', T3.DocNum 'Delivery#',T3.[DocDueDate]'DelDate'
    From RDR1 T0 inner join ORDR T1 on T0.DocEntry=T1.DocEntry
       left join DLN1 T2 on T2.Basetype=17 and T2.BaseEntry=T0.DocEntry and T2.BaseLine=T0.LineNum
       left join ODLN T3 on T2.DocEntry=T3.DocEntry
    Thanks & Regards,
    Nagarajan

  • How to assign version in sales order and transfer to PP module

    Hi all
    Users say that customer will require to produce/deliver old goods (we active revision level. The newest material version is D. But customer want version B). How to assign version in sales order and let PP user know the version customer want (MRP run and production order must use version B's BOM)?
    Regards,
    Rita

    Hi,
    i have a query if you have implimented ECM this will serve the purpose but it also depends on how good the planning is, in ur client site ( out of SAP ) where planner will plan according to the customer requirement as to which version to be kept active for a date range.The ECO analysts(functional) or consultants will make the ECO changes for those dates.
    In general for those type of customers (who needs old version) a different SO created under different document type which will create a production orders with specific order type depending on the assignment of requirement type and requirement class.
    those specific production ordertypes can be inturn assigned to either different plant where your old version BOM's will be active.
    You need to look into the custom settings in SAP to design the larchitecture to allign with other requirements.What i explained u is common methodology used.
    Hope this is clear..
    Prakash
    Message was edited by:
            prakash Uddagatti

  • Automatic credit release of blocked Sales orders with pre payment

    Hi ,
    We have a requirement as given below.Please suggest a better solution for this.
    The customers have the 'prepayment ' payment terms with different percentages of the sales order
    value to be paid before the delivery creation.
    When the sales orders are created, they are blocked for delivery by some credit block.
    The business use VKM1 transaction to view these blocked orders and release them manually for
    delivery creation after checking if the customer has made the prepayment.This is a tedious work
    (since there are too many sales orders )for the credit manager who dont have the complete
    visibility of how much prepayment the customer has made and need to manually check if the
    payment made covers the sales order prepayment amount to be paid.
    1. How can we do a automatic release of these blocked sales orders?
    2. Is there any program(which can be setup as batch job) to do a credit recheck and release the order
        automatically?
    3. Will Milestone billing plan functionality satisfy this requirement?If so how?
    We are using SAP version 4.7 without Project System.
    Thanks in advance.
    Regards,
    Ragesh

    Hello,
    This is not possible because when you created the sales order it has checked the credit limit for that credit limit and if you increase also now that block cant go automatically.
    Go to VA02 i.e change mode of sales order and change something and enter may be if you created a order for 2 quantity then go to VA02 and remove the quantity 2 and again type 2 then system will again check for credit and now that is increased so the order will not block..
    If this is for many order then you can run changes sales order  BAPI for mass update. Take help from ABAP guys.
    Cheers
    Say

  • Inconsistent updation of sales group in Sales order and invoice

    Dear all,
        The sales office and sales group is properly updated in the specific sales area master data of the customer but not flowing in the sales order and subsquently in the invoice. For some documents it gets updated and for others the filed is blank.
    I have checked the master data and also the documents and found no errors. Please help in how to solve the issue. I need 100% updation of sales office and sales group in the order and invoice. Please advice how to solve the issue.
    Regards,
    Parthasarathy.R

    Dear Parthasarathy,
    Request You to post the same query in SD Forum
    You will get quick response there
    this is PP forum
    Hope You Understand
    Regards
    kumar

  • MRP type for two different types requirments( Sale order and PIRs)

    Dear All,
    We have requirment  some materials we have sales order and PIRs. For sales order we want to consider with "MRP type" as PD and PIR we want to consider "MRP type" as VB manual reorder point planning.
    Is there any stadard  solution.
    If standard solution not possible also poivde some inputs on enhancement.
    Regards
    Sailendra
    Edited by: nivedita yadav on May 7, 2010 2:31 PM

    Sailendra,
    your post is confusing, how you want to different MRP type for same material?
    and why its needed?
    1) you can use MRP type PD , and incoming sales order will search in existing stock or will create procurement proposal ( depends upon what strategy you are using)
    2) If you  are using VB then when ever you stock will fall below the reorder point you maintained in material master , system will create new procurement proposal, here the manual means the value you need to maintained manualy for reorder point and safety stock.
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    hope it will help you.
    Regards
    Ritesh

  • Different tax codes for a Sales order and Credit memo

    Dear All,
    We have created a sales order and in the invoice some X Tax code is determined in the Account document.
    But when we created a Credit memo request with reference to the same Sales order, we are getting different tax code in the Accounting document of Credit Memo.
    Kindly clarify how is it possible.
    Regards,
    Mullairaja

    HI
    Credit memo request with reference to the same Sales order
    Because Suppose 
    Case 1 : you created Sale order 100 PC & Delivery  50 PC, Invoice raised 50 PC
    In that above case if you take Sale order reference system will take 100 PC , but logically you need to raise Credit memo for 50 PC
    Like that we can create Some cases , so try to create credit memo request based on Invoice not for based on Sale order number
    Coming to you Query , try to check the Ship to party for that line item and also check the master data's once
    I hope you understand
    Regards,
    Prasanna

Maybe you are looking for