Open Purchase Orders and Open Sales Orders

Hi,
Please let me know the table names for open purchase orders and sales orders.
Regards,
Prii

HI Priti,
EKPO-ELIKZ  "Delivery completed" indicator, This tell if the given PO line items has any open quantity or not.
Logic to find out if a given PO has Open Quantity or not is do the following:
    " select the PO Qunatity.
    SELECT SINGLE MENGE FROM EKPO INTO PO_QTY WHERE
    EBELN = ITAB_PO_LN-EBELN AND
    EBELP = ITAB_PO_LN-EBELP.
    " select the GR qunatity which has been received.
    SELECT SUM( MENGE ) FROM EKBE INTO GR_QTY WHERE
    EBELN = ITAB_PO_LN-EBELN AND
    EBELP = ITAB_PO_LN-EBELP AND
    BWART = '101'.
    " select GR Quantity which has been reversed.
    SELECT SUM( MENGE ) FROM EKBE INTO GR_REV_QTY WHERE
    EBELN = ITAB_PO_LN-EBELN  AND
    EBELP = ITAB_PO_LN-EBELP AND
    BWART = '102'.
    POSTED_QTY =   GR_QTY - GR_REV_QTY .
    OPEN_QTY = PO_QTY - POSTED_QTY.
Regards,
-Venkat.

Similar Messages

  • WHAT IS SALES ORDER -OENSALES ORDER AND CLOSE SALES ORDER

    HI....
    WHAT IS SALES ORDER -OENSALES ORDER AND CLOSE SALES ORDER
    WHAT IS MB1C AND  MB1B TCODES

    Hi
    If the sales order is made with a Qty of 10 items in it , if the all 10 items are delivered to customer then that is called as Closed Sales order
    Means if Sales order Qty (vbap-kwmeng) = Delivery qty (lips-lfimg) then that is losed other wise out of 10 qty 5 are supllied and 5 are yet to be supplied then that is open sales order
    MB1C = Goods receipt for others
    MB1B = Transfer Posting for Material Moving
    Regards
    Anji

  • Sales order and return sales order in the same field

    Hi Everybody,
        I have sales sales order and return sales order in the same field ,how can i separate these two orders in the report.
    Your suggestions are appreciated
    Warm Regards
    Shreya

    Both are sales documents and should be separated by document type....i assume that all the documents are sotrd in the same infocube and if you have tha document type characteristic you can separated them directly in a report
    Regards

  • New sales order and Change sales order in item level or delete at item leve

    I got one requirement. Daily i have to display one report on new sales orders created on that day and any sales order item is modified or any item is deleted or any item is added.
                      How to get the sales order numbers and position numbers which will follow above creteria. I found one function module but it is not giving position numbers and new sales order details.
             Is there any BAPI for this requirement.

    I am using "CHANGEDOCUMENT_READ" function module to get the new sales orders created and changed sales order items on a particular time. This function module is getting data from CDHDR and CDPOS tables. But only change sales orders is coming. New sales orders which is created on that time is not getting.
              One of my friend is telling like we have to activate one change pointer to retrive new sales orders also. Which is like there will be one check box.
    Is any body having idea on this. Please reply me on briefly with the code to retrive new sales orders and changed sales orders

  • User exit Or Badi for  creating Service order while modifying sales order.

    Hi Experts,
    I am creating Notification using transaction IW51.
    In IW51 there is a button to create a sales order.
    I click on sales order button and create a sales order.
    Now notification and sales order are created.
    Now i go in transaction VA02 and click on avalibility check push button .It gives me some popups in which i select copy all options.Then  i click on save button
    .At this point service order gets created.
    My requirement :
    Before the service order gets created i want to pass the notification data ; for ex- Equnr(Equipment number) to service order.
    Thanks & Regards,
    Chetan

    Hi,
    Are you saying first create notification,then service order
    and then Sales order.
    But the requirement is create notification then sales order and when you go in va02 and while modifying the sales order and create service order.
    Thanks & regards,
    chetan.

  • Open sales orders and open deliveries and open billing doc to sap from legesy

    Dear all
    i have some open sales orders and open deliveries and open billing doc are there in the legesy system
    so i want to know how to transfer the doc to sap by using lsmw plz tell me

    Hi Amith,
    it is always good to search in Google before posting .LSMW is very old topic and i am sure you will get lots of Documents on this .Please go through the below link .you will get some idea on this.
    http://scn.sap.com/thread/1012472
    there are 14 steps in LSMW and it is same for all (master data and Transaction Data)
    Pls practice this in your sand box or quality system before working it in the client requirement.
    Hope this helps to you
    Regards
    Sundar

  • Open order and Open delivery in Credit Exposure FD32

    Hello Guys,
    I am now trying to include Open order and Open delivery values in Credit Exposure FD32. I have configured the following settings, but the Open order and Open delivery values still cannot show in Sales value under Credit Exposure FD32. Can anyone here advise me what i missed?
    1) In OVA8 --> 01 Credit Group for Sales Order, I have selected Static Checks and includes Open Orders and Open deliveries.
    2) In V/08 --> Pricing Procedure --> Control , I also put "A" in PR00 Sub Total field.
    3) In OB45 --> Credit Control Area, I put Update = 000012.
    4) In OMO1 --> S066 , Period Split = Day and Updating = "Synchronous update (1)".
    Thank you,
    Benny

    Hello Mrunal and GSL, 
    Thanks for your paticipation. I found my configurations are correct. I just haven't trigger the update program to update the S066 (Sales value in FD32). To trigger the update program I need to try to create delivery. If I just create a Sales Order and press Save, the PR00 value will not go to S066.
    Hope that can help someone else .
    Benny

  • How to bring in the Open Sales Orders while performing Sales Order Conv

    Hi,
    Could you give some suggestions on the below:
    How to bring in the Open Sales Orders while performing Sales Order Conversion in R12.
    Thanks
    Pravin

    See http://ramugvs.wordpress.com/2011/08/27/how-to-stage-and-import-an-order-using-order-import-api-apps-wms-ebiz-11i-r12/
    Sandeep Gandhi

  • Planned Order creation for Sales Order and Purchase Order

    Hi
    We have a following requirement.
    In normal scenario when we have demand for material  which was created by MD61 and in addition to that if there is Sales Order the 1st planned order gets revised.To better expalin this consider possible scenario
    You create plan via MD61 for 200 qty .The system creates Planned Order for 200.
    Now there is Sales Order for 150 peices.Then what happens is original  Planed Order of 200 is changed to 50 and another planned order is created for 150 peices.The requirement is not summed.
    Now in new scenario instead of Sales Order there is Intercompany Purchase Order of 150 peices.
    Now the system is not changing original Planned Order of 200,but it created another planned order of 150.So now there are 2 Planned Orders of 150 and 200.
    What I want to know is there any way wherein the system will reduce the original planned order (similar to Sales Order scenario)
    Regards

    Hi,
    Use Strategy 52 in urs case.
    PIR witll be created .
    None convertable planned order will be created.
    Once you get sales order for that material.
    New planned order will be created which will consume PIR( planned order ).
    Eg.
    PIR 10.
    Planned order 10 qty.
    Sales oder 6
    Planned order for SO 6 qty
    Planned order through pir will become 4 qty.
    Regards,
    Vishal

  • Open PIR quantity, unconverted Pld orders and open Prod/ STO orders

    Dear all,
    How to deal with open PIR quantity, unconverted planned orders and open production/ STO orders in the next MRP run? Do we need to delete/ reduce them manually?
    Thanks and Regards,
    Raghu

    Hi Shiva,
    Thanks for your immediate response. I have still some confusion.
    Last month, I have material A with Production order quantity of 30000.
    'A' has a component 'B' which is an in-house produced material. Three planned orders each of 10000 were generated for B. Of these two planned orders were converted to production orders. One is still in planned order form.
    This month I am not going to use this planned order of B. I get new requirement for A. So during MRP run I get the planned orders for B also.
    For the last month requirement, as I have not converted one planned order of B to prod order, there will an open quantity of A prod order in this plant and open STO quantity in another plant. Again the PIR will also be not reduced to the same extent. If I reduce the PIR manually or through some reorganization, what about the open quantity of prod order and STO
    I think I can TECO the prod order of A. Is there any such thing for STO also?
    Thanks and Regards,
    Raghu

  • Purchase order to create sales order and delivery

    Hello all,
    I am planning to create sales order and since i require customer Purchase order to create sales order, i am also planning to create purchase order.
    My question is who should i mention as vendor or who would be the vendor when i create a purchase order that would be used to create sales order.
    should it be the customer who orders the material or should it be the plant from which the material is going to be supplied.
    and also in the line item for the field "plant", should i enter the supplying plant or should i enter the ship to plant.
    Thanks,
    Maxx

    The moment you mention 'Vendor', the SAP synonym for it is 'Supplier' hence it would be the supplier (and not customer), that is the plant from which the marerial is supplied. Hence your vendor in customer PO will be the supplying plant.
    The 'Plant' in the line item in case of PO will be the receiving plant (the customer's Plant).
    I hope this answers your doubt.
    Amit G

  • Archiving open maintenance order and open PR

    Dear sir,
    what are steps to archiving open maintenance order and open PR .pls help
    Regards,
    P.Jeevanantham

    Not possible to archive REL status orders. Order should have CLSD status.
    There is no relation between closing the order & period lock. What is the error you are getting while closing the order?? Post that error.
    Hope, confirmations or goods movements might have been done for those PM orders. As settlement have not been done, Closing of order might have given the error.
    If so, open FICO periods as per the order periods & do the settlement. Then close the order. Then try archival.
    Note: As much as information you give, as fast as you will get proper responses. Keep more information in your thread always.

  • Sales order with reference to Contract and another sales order

    Hi Gurus,
    I would like your suggestions on one of the business requirement i have.
    We are creating a new EDI interface with few of our customers to create sales orders. While creating sales orders, it should validate if there are any open contracts available and if yes, then the sales order should be created with reference to it. so far good but there are chances that sold to party on the contract could be different from sold to party on the EDI order sent by customer (customer can have more than one sold to party on their system). IDOC's are failing in this scenario and not able to create a sales order since sold to partys are not matching. I need your help.
    Can we do some thing in customer master to handle this scenario?
    or
    Create a new sales doc type (YEDI or some thing) and create sales order from IDOC without reference to contract. Business will look into all YEDI order and create the actual sales order out of it but the challenge here is i cannot refer contract to the actual sales order or YEDI order.
    Is it possible to create sales order with ref to a contract and another sales order?
    Please help
    Thanks
    Venkat

    Hello Venkat
    What is the linkage between sold to party of contract and sold to party of order..If customer has more than one sold to party.
    Why don't you use customer hierarchy....link all sold to party of a customer to hierarchy node.for example...you create a hierarchy  node 1000 and assigned customers 2000 and 3000 to it.you have contract for 2000..so when you create a sales order for 3000 check in knvh table it's customer hierarchy 1000 and get all sold tos assigned to hierarchy...which is 2000....check if contract exist for sold to's..If yes then create order with reference.
    Let us know if it works for you.
    Thanks
    Amit Gupta

  • Purchase items report for sales orders - very important

    Hi Folks,
    Could you please guide me on how to create a report of "items purchased" for a particular "sales order". if i am able to include various fields of items purchased, like....quantity, item description, vendor name, item price, etc., it will be very useful.
    This report is required for a client, who assembles machines in a "make to order" scenario, and most of the BOM child items are "purchase items".

    Hello Krishna,
    Few things to note:
    Is the PO created from the SO.  Is YES, then you could use the base document ref at the POR1 table.
    OR
    Are the BOM components defined with a default vendor in the Item Master and if YES are the components always purchased from the same vendor.
    I am trying to see how to establish the relationship of the items between the PO and SO.
    Please give me the details and I could guide you further
    Thanks
    Suda

  • Link a Purchase order to a sales order

    I am looking for a way to link a specific Purchase order to a Sales Order so that when the Purchase Order is received the items are allocated to that specific Sales Order and another sales person cannot sell the murchasedise.  I know you can create a po from a sales order but it seems like when the po is copied to a goods receipt, anyone can invoice those items on a different sales order/ a/r invoice?
    Thanks,
    Don Shields

    Hi Don,
    What you are looking for is more of a hard allocation of Items to a SO.  This functionality does not exist in B1 today.
    If you want to manually create some processes and validation for this, it could be done. 
    1.  Use Batch numbers management for items and linking a Batch to a SO and use the same Batch number in the Goods Receipt.
    I have provided an ellaborate solution for this on this forum last year
    You may check this thread in the meanwhile
    Suda! Again to restriction of items from PO based on SO

  • Purchase order based on Sales order

    Hi,
    I try to create Purchase order based on Sales order.
    The error message :
    "Base document card and target document card do not match"
    My code:
    oPurOrder.Lines.BaseEntry=oSalesOrder.DocEntry
    oPurOrder.Lines.BaseLine=oSalesOrder.Lines.Linenum
    oPurOrder.Lines.BaseType=17
    Could you help me please ?
    Tks.
    Laetitia

    Hi,
    Looking at your code I will check how you fill the fields in the oPurOrder object because the code you copied is only for the document lines and the error refers to the document itself (maybe you forgot to assign the cardcode property).
    If you are basing the document, a good and reliable method is to export the base to a xml file and load the target using this file. This way you garantee that all the info of the document is copied. After that you could use your code to update the info you want to change the same way you pasted it in your post.
    Hope it helps,
    -M

Maybe you are looking for

  • Importing videos to Itunes (can't see "Video" on Itunes sidebar)

    Guess that's a basic question: When I drag a video file to Itunes, it doesn't get added to my library...could that be related to the fact that there isn't a " Video" topic under " Library"? How can I fix this?

  • How to convert a optionset into multi selection picklist in crm 2011 using javasacript??

    hi, where user want to select not only one but multiple value from a pick list. I tried  examples but it shows some errors. How  to do it??

  • Online Number: Individual vs. Skype Business Manag...

    I am the president of a small, non-profit professional organization who are experimenting with holding their board meetings via phone conference.  I am wondering if it will be less expensive for me to get an online number as an individual or for me t

  • User exit or Badi For MBRL

    Hi all, I am using a y program which call MBRL t-code in back ground . I need  to restrict the t-code MBRL to all user and allow only to use Y program. I can not remove the authorization for MBRL. I found user exit for MBRL but it is in saving time.

  • To handle dump while displaying the data

    hi, I have a requirement in which i have created a assignment block which fetches some data after confirming an account. But sometimes if the number of rows of data fetched are more than 1000 then it gives dump. Can anyone suggest how to handle  this