How to  find the Open sale orders till date for  given plant and material ?

Hi experts,
                 I have a requirement to calculate the open sale orders for a given plant and material. I have tried in VA05 wherein i can get only for the material and sales area combination. From the document nos obtained from VA05 i can then find the plant. But my question is how do i get the output of VA05 into my progra. (can i use submit for a module pool report ).
Also if ther is some other standard table or Function module to find the open sale orders till a given date ,it will be even more helpful....in which case i can drop the VA05 route.
Kindly help
Thanks in advance
Ashwin

Hi Ashwin,
    You can use SAP Tables VBAK and VBUP to get to know if the document is complete or not.
   VBUK-GBSTK is the field that will give you the status of the Sales Order .
  VBUK is used at header level , whereas VBUP is used for Item level.
  So in your case what I would do is :
  Get the Sales Orders that satisy the plant and material criteria from VBAP table , take this Sales Document numbers and go to VBUK or VBUP table to get the Sales Order Status. 
   If I need to find the open quantity as well I will link to VBFA table based on the document number.
  Reward if helpful.
Thanks,
Imran

Similar Messages

  • How to find the obsolete sales order

    Hi Gurus,
    how can we find out the obsolete sales order in the system, in our situation these orders consuming the forecast now and causing problems..how to find these and delete..please share your ideas

    Hi
    Please go to Se38 and execute /SAPAPO/SDORDER_DEL report. You can execute the report for respective location by using different flags. I hope this will provide you the required information.
    Thanks and Information.
    Amol

  • How to find the open purchase order qunatity

    hello Friends ,
    i have a requirement like below.
    If there is any receipt posted for the PO line item but if this is reversed then the new receipt should be permitted for posting. If there is any partial quantity reversal done then further receipt should not be allowed.
    Eg. If PO is for 100 qty, receipt is for 50 qty and reversal is done for 50 qty then new receipt posting should be allowed.
    If PO is for 100 qty, receipt is for 50 qty and reversal is for 40 qty then new receipt posting should not be allowed.
    please tell me how i can solve the problem.
    please tell me the logic in data base table level .
    thanks
    Anant
    Edited by: anudeepmca on Feb 26, 2010 12:38 PM

    You can get all postings relating PO in EKBE table, this is the base for you to add validation logic if there are any partial reversals occurred.

  • How can i get the open sale orders for given material no and plant

    Hi,
    I have to retrieve the open sale orders depending on the material number and plant.
    For only open sale orders at header level and item level.
    I want to use VBUK-GBSTK to find open sale order at header level and
                          VBUP-GBSTA at item level.
    Can any one suggest me the best logic as performance is concerned?           
    Thanks,
    Kumar.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • 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

  • 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

  • Join MARA-MATNR to SALES ORDER and find ONLY open sales orders?

    I want to join selected MARA-MATNR number to find ONLY the open Sales Orders. VBAP does not identify the status of the order line...
    If I have one MARA-MATNR and join to VBAP ot VBAP-VAPMA I may find thousands of entries there. Then I have to join to VBUP to find the Status of the sales order line.
    How can I do this join in one step? 
    Thanks Bernard

    Hi,
    For joining diffrent tables you have to create LOGICAL DATABASE,
    and on this logical database you can write ABAP query and execute report.
    Kapil

  • How to find that a sales order for which there is  delivery but no goods

    Hi
    How to find that a sales order for which there is  delivery but no goods issue has been done i.e we have an open delivery for a sales order.
    How in VBUK table can we find  out with the sales order no .
    Thanks in advance

    make use of table VBFA.
    Regards
    Peram

  • How to get all open sales orders of a customer and also account group

    I want to know the logic to find all open sales orders of a customer and also account group

    Hi,
    You can check the status weather a Sales order is Open or not by checking its billing status form the following:
    Check table VBUK and VBUP for delivery status "LFSTK" and billing status "FKSTK".
    Rward points if helpful answer.
    Ashven

  • How to find the open PR in SAP

    how to find the open PR list in SAP

    HI,
    Using T-code ME5A - List Display of Purchase Requisitions and give input data's are as follows.
    Plant                :  _______
    Scope of List  : ALV
    Tick Mark of the below options :
           Assign Purchase Requisition to be tick
           "Partial Ordered" Requisitions to be tick
            Released Requisitions Only to be tick
            Requisition for overall Release to be tick
    After that, execute the report shown only released and Open  purchase requisition(PR) details.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • How to find who deletes sales order?

    Dear All:
    how to find who deleltes sales order ?and When ?
    Anyhelp will be appreciated!
    CynthiaYu
    20081221
    Edited by: yu Cynthia on Dec 21, 2008 4:19 AM

    Hi Cynthia
            Check in VA05 or VA05N list of sales orders  also where you can see the status of the sales document
           Apart from the above this standard  report will help you to some extent
            VEXP -Expiring SD Documents
        Regards
        Srinath
    Edited by: sri nath on Dec 21, 2008 11:34 AM

  • Getting the open sales orders and open deliveries valies

    Hi SDNs,
    I have a requirement that i need to get the all sales orders open values and delivery values. I need to build a logic for this scenario. could you please provide the logic for getting the open sales order values for respective customer.
    Please provide logic instead of standard reports. That would be very useful
    Thanks in advance
    Regards,
    K

    Please provide logic instead of standard reports.
    Really surprising !!!!!!!!!
    But still I would like you to have a look at VA05 where both open quantity and open order value will flow.  If you still feel to get the related tables, you can consider VBBE where you can get open order quantity
    thanks
    G. Lakshmipathi

  • Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished

    Muse Accordion widgit, I need to know how I find the  (Open Closed )  link it seems to have vanished all I can find is ( Expand  behavior and Overlap Items Below.)

    If I got your query right, do you mean you don't have all the options in the Accordion Options panel as pictured below?
    If the above is true, can you try re-inserting the Accordion panel and check if the options then become available for you. Also, please check if you're running the latest version of Muse i.e. 4.1.8 as on today.
    If the problem persists, please try creating a new Muse project and see if you are able to replicate the behaviour on a fresh Muse site as well.
    Thanks,
    Vinayak

  • Anyone knows how to find the mac-adress on an Ipad(for network)

    anyone knows how to find the mac-adress on an Ipad(for network connection)

    chose settings - general- about...and there it is  , the wi-fi-adress :-)

  • Close the open Sales Orders.

    Dear All,
    We have created Sales Order against FGO Scheme for 76 Pkts and FGO material 3 Pkts, out of that we have despatched 50 Pkts only. Now we want to close open order, but field of order quantity is made gray hence we are unable to update the quantity.
    Please suggest us, how order quantity field will open for updation.
    Thanks
    Prashant

    Hi,
    Goto sales order item data and enter a reason for rejection for the open items.
    The sales order will be closed and no subsequent delivery can be created against it.
    Regards,
    Amit
    Edited by: Amit Iyer on Jun 24, 2011 2:46 PM

Maybe you are looking for

  • Can I use the black ink cartridge only, & quit replacing the color cartridge when it's empty?

    I have an HP Officejet 6210 all in one printer that takes color ink (#95) and black ink (#94).   I only want to print in black and white.   The color cartridges are more expensive and since I don't want to use them, I don't want to replace it.  Can I

  • ITunes v. 7.x scrolls more slowly than iTunes 6.x?

    This is a minor question compared to some of the issues I've seen here (crashes, loss of music, etc.) but it's still rather annoying to me. I upgraded to iTunes 7.0.2 about a week back and while I like the new sorting options and a few of the other n

  • Vendor "SAPGUI" Portal?

    The business would like to grant a Vendor access to our system via SAP GUI so they can monitor inventory, PO's and the like.  Think of Vendor Portal without the Portal. The challenge is limiting their access to only their "vendor" information (PO's,

  • HP LP3065 - problems selecting input

    Dear people, Quite some time ago I purchased the LP3065 monitor, it has always worked perfectly well. Until recently II had only one PV with DVI output. No matter which of the inputs on the monitor I connected the cable to, it worked perfectly well.

  • ITunes Freezes when transfering a CD

    As soon as I upgraded to iTunes 6 it freezes when I try to transfer songs from my CD. I spent 3 hours with a genius at the Apple Store to no avail. The phone tech guy had no clue and never heard of iTunes freezing, I think they all need to start read