Finding open sales order line items

Hello,
First time poster and new to SAP so here goes:
I am trying to find a better method for finding our open sales order line items.
So far I am joining VBAK-VBUP-VBAP in that order and my scan logic is for sales document type (vbak-auart) of ZOR and ZDEW with an overall status (vbup-gbsta) of A or B.
This logic use to work but now all it does is timeout after 60 minutes.
VBAK has 6,766,828 total records in it
VBUP has 16,431,117 total records in it
VBAP has 12.9 million total records
Thanks,
Randy

Hi Randy,
For your requirement VBAK&VBUPtables are enough.
Firstly you can read the table VBAK where AUART = 'ZOR' or 'ZDEW'.
After this you will get all the sales orders with the order types ZOR or ZDEW.
For these sales orders you can read VBUP tables.
In this table there is a field <i><b>delivery status</b></i>.
If this filed value is <i><b>C</b></i> then that line item delivery is completed.
if it is not equal to <i><b>C</b></i> then those line items are open sales order line
items.
Thanks,
shyla

Similar Messages

  • Re-Cost (CK55) Marked Sales Order Line Items

    My current client resets standards each quarter. They have requested to re-cost open CTO Sales Order line items and update the valuated sales order cost (EK01). I have reviewed the options available in CK55 - Mass Costing and find the processing log retrurns the following message:
       Cost estimate with status VO exists. See long text
       Message no. CK_MCSO014
       Diagnosis
       A cost estimate with the status VO already exists. This cost estimate will not be overwritten.
       System Response
       Processing continues with the next item.
       Note
       You can remove this message from the log with the customizing transaction User-Defined Error Management for Mass Costing of
       Sales Documents. The item will still not be costed, however.
    Short of manually re-costing each open sales order line item. Is there a way to re-cost open CTO Sales Order Line items?
    Regards,
    Dewayne Wesley

    I didn't realize there was a MASS Cost transaction.
    Is there a MASS delete Sales order Cost estimat transaction? That would help.

  • How to Find Out The Production Order Number For The Sales Order Line Items

    Hi All,
    I want to know the number of production orders for each sales order line item. I know the sales order number .Can anyone tell me how the tables can be linked to get all the production order numbers for each sales order line item.

    I think it depends on your configuration. But check fields KDAUF and KDPOS in table AUFK.  or in table AFPO.
    Regards,
    Rich HEilman

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Sales Order Line item status with Resource Related Billing

    Hi
    The Resource related billing is done based on the costs accumulated on account assigned WBS Element. The WBS Element system status is set 'Finally Billed'. The overall status of Sales Order line item is still 'open' and does show up in 'Open Order' reports.
    SAP vide their note 439288 recommends running report SDVBUK00 to correct the sales Order item status. However this note is applicable only upto 4.6C. Our system in ECC 6.0. We tried running this report and did not get desired results. We checked the program and discovered that the corrections suggested as per above note, are not available.
    Is there any new SAP note applicable for ECC 6.0 needs to be applied ? Or is there any other report needs to be run in case of ECC6.0?
    Thanks in advance
    with regards

    HI,
    Please raise message to SAP through service marketplace.
    Thanks,
    Vrajesh

  • Create purchase order with reference to Sales order Line item

    Hi All,
    i had a requirement that i need to create the Purchase order with reference to sales order line item...
    In T.code me27 client requied a input field for sales order no and with that order reference he want the data of line item to PO creation line item screen.....
    please sujjust......how to proceed......
    regards,
    Ravi Nemani

    Hi
    Go to SPRO->Logistic general->Tax on goods movement->India->Movement types.
    Here you will find the group of movement types check which movement types is mantained for the out side movement groups or inward movement.
    also check the Material Master in MRP view if the collective requirements (02) is mantained.
    Regards
    Sri

  • Not able to re-atp 1of the sales order line item

    Hi SAP PP Gurus,
    When I tried to re-atp 1 of the sales order line item it is giving error as mentioned below. Please let me know where this fix qty indicator in the sales order and how can I de-activate the same.  Thanks in advance....
    Item has no open quantity - Check fixed quantity ID
         Message no. V1 601
    Diagnosis
         The item does not have any open, confirmed quantities and the "fix
         quantity" indicator is activated. This means that the customer has
         agreed on a zero quantity and nothing is delivered.
    System Response
         The system issues a corresponding message.
    Procedure
         If you want the item to receive a confirmed quantity after all which can
         be delivered later, you should de-activate the fix quantity indicator.

    Hi Ritish,
    Strategy is MTO..
    I have triied to perform atp by using fix qty/date but still system in not proposing MAD. And it is giving below error screen.
    No. of components checked:                1
    Missing parts:                            1
    Overall confirmation date could not be determined
    Order : 1104739992
      Material           Plnt SLoc Reqmts q     Requirements  ATP/avai     Committ. d Material description M Bl
      NH524AA@@          32F2 F2WH   1.000      03.08.2009      0.000      99.99.9999 HP gt7725 PCI Expres X
    Thanks and Regards,
    SHARAN.

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

  • How to set Confrimed quantity as 0 in the sales order line item

    hi all
    i have a requirement that my user dont want to see confirmed quantity in the sales order line item.
    scenario is make to order.
    i have set strategy group is 20 -make to order
                                            MRP Type is PD
                                           Lot size -
    EX , still its showing confirmed quantity.
    could pls any one tell me how to set 0 quantity in the sales order line item
    thnx

    Dear Sateesh,
    If the availability check is carried out and stock is not there in our plant, then it will show the confirmed quantity as Zero.
    If you don't want to carry out the availability check,
    To achieve this,
    1. Remove the availability check in the transaction OVZG against your requirement class.
    You can find the requirement type assigned to the sale order in the procurement tab.
    In OVZH transaction, you can find the requirement class assigned to your requirement type.
    2. Remove the availability check for your schedule line category in VOV6.
    In the material master MRP3 view, you ll be having Availability check, there you need to specify the availability check..
    If you specify it as KP(No check), then it will confirm the qty, though the stock is not there in our plant..
    To meet your requirement, you have to prefer user exit.(Correct me if I am wrong)
    Thanks,
    Venkatesh.S.P

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • Sales Order line item confirmed?

    Hi,
    Is there any table / field to which we can refer to for knowing whether the sales order line item's open quantity has been confirmed or not.
    I see the line entries in table VBEP, but, in that I guess I'll have to do calculations to check whether the line item open qty is equal to the confirmed qty.
    Please let me know if there is any other method.
    Thanks

    Hello Yusuf,
    Try with the table
    VBBE- MENG - Open Qty
    VBBE- VMENG - Confirmed quantity.
    or
    VBEP- WMENG - order quantity
    VBEP-BMENG   - Confirmed quantity
    or
    VBAP- KWMENG --Total Quantiy
    VBAP-KBMENG-- Confirmed Quantiy
    Regards,
    Thanga

  • Replicate the Sales order Line Item Text to Production Order

    I want to replicate the Sales Order Line Item Text to Production Order? Please tell me if this is Functional job or a Developers Job?
    I believe this can be achieved by customization and doesnot need any programming and I am trying hard to gather relevant posts for this, but didnt find any.
    Please help me with some information if some body encountered this earlier.
    Regards,
    Jessica Sam.

    Hey Jay, thanks for your reply.
    Please confirm me if this is a developers job or a functional job?
    Do i need to do some programming to achive this?
    I checked with couple of my collegues and friends and 90% people say it can be achieved throug functional configuration.
    can thorugh some light on this as i had been researching on this seriously and still have mixed opinions .
    Thanks,
    Jessica

Maybe you are looking for

  • Internet Sharing won't work, greyed out... but not on! Suggestions?

    I'm trying to start internet sharing on my MacBookPro (13-inch, Mid 2012). I'm running Mac OS X Lion 10.7.4 (11E2617). Ethernet is on and connected. Wifi is on and connected to a created network (which I created to share out my internet). Why are the

  • Good applications Made...

    Hi, ive been making a drawing application and i wanted the communities Thoughs of how i could make it better.. Or You can post your own App here is a video link to my app preview.. all of it is made in Air 2.6 and Flash CS5.5 AS3 http://www.youtube.c

  • Power Saving "Exclusion" Collection

    Hello. I've implemented power saving settings on a query based collection which dynamically updates itself so right now there are over 600 PC's within it. I'm starting to get calls from users who want to be excluded from the plan for one reason or an

  • Technology for ABAPer

    Hi all, I am an abaper with around 1year of experience.I will be thankful if somebody can  guide me choose between XMII,XI,CRM marketwise as well as onsite opportunitywise and at the same time my abap experience is utilised.I would also like to know

  • Exchange 2007 and the Drafts folder

    My company uses Exchange for email, and I access it via my iPhone and the mail app. No problems - until we upgraded to Exchange 2007. Now, drafts saved on my macbook are accessible to my other macs and the web interface - but not to my iPhone. And vi