Open Orders (Confirmed and Un-Confirmed)

Hello BW Gurus,
I am looking for Standard BCT that can give me True Open Order "quantities" and "Amounts". The extractor 2LIS_11_V_SCL seems to give open order qty for "Confirmed" Schedules only. I am looking to get the "Net Open Orders" based on "Planned Goods Issue Date".
Any ideas on how to achieve this?
Thanks in advance.
Srini

Hi Lily,
But these extractors comprises of all orders thus, it means open orders,confirmed and not confirmed, delivered and not delivered, and orders that are already invoiced.
In my case, we need to have an open orders report meaning confirmed and not confirmed and where invoiced orders, delivered, and etc should not be included at all.
Any idea?
Thanks
Sheila

Similar Messages

  • Order qty and total confirmed qty in PI sheets

    Dear Experts,
    Kindly suggest the possibility of appearing total order qty and already confirmed qty in the PI sheet, system useually provides the same while performing confirmation through co11n or cor6.
    Thanks in advance for your help..
    Regards,
    Nitish

    Hi Srini,
    The following details are available in the table AFVV,
    Standard value, operation qty & Base qty.
    With this values create a formula Standard value * operation qty/ Base qty , this will equal to the planned hours for that particular activity type. Similarlt planned hours for other activities can be calculated.
    The actual/confirmed hours are available in the table AFRU.
    Regards,
    Senthilkumar

  • Open order value and credit limit used are -ve

    Hi,
    We are running into the problem  where there is a negative open order value and orders are bypassing credit hold.
    The values are incorrect in the open order value and in the credit limit used.  These both show as negative values, which  is bad. 
    We have made settings in OVA8 correctly. Is there any other setting should be made in order to block the open order value and credit limit used ????
    Thanks in advance. Appreciate if it is replied immediately.
    Sankar

    Hello,
    Please take the help of the SD consultant in this regard. Because open orders means there are many like invoiced and not yet delivered. And the credit limit is also part of the SD to check. 
    Please check in the T.code FD32 to find out the credit limit detials of the customer.
    If helpful pls assign points.
    Rams

  • SIS- Updating- Open Orders value and quantity not updated after delivery

    Dear Guru's
    in the SIS transaction MCTA
    when i create the sales order the values in the fields
    incoming sales ,sales,credit memo,open orders ,open orders etc
    are getting updated correctly
    but after creating the delivery,pgi and billing these values are not getting updated .like the reduce in the open order,open oerder qty they same as earlier afer creating sales order.
    if i cancel the order then the values are again updated accordingly
    can you please suggest me a solution for this problem,why this is happening of not geting updated after doing delivery and pgi
    waiting for the reply
    thanks in advance
    ramana

    Hi,
    Your query revolve's around LIS reporting. For any reporting, SAP recommended solution is SAP BI
    FYI SAP is not going to continue Support for LIS Based reporting.Developement on LIS based reporting is already stopped.
    Companies still use this tool to manage their reporting.
    Not all the key figures are updated by default. In your case you will have to carry out the enhancement.
    Please go through the following path:
    SPRO - Logistics General - Logistics Information System --- Check Help on Data Enhancement.
    Rgds

  • Order confirmation and email confirmation not have same information?!?

    I just place an order online, I don't know why the order confirmation email does not have the same information as the original order confirmation.  
    After I hit the button to place the order, the order confirmation page clearly showed:
    -  the installation appt on July 23, 2015 8:00 AM - 9:00 AM in green color
    -  the order summary include "$350 Visa prepaid card" in green color
    -  the estimate bill is 154.92
    But in the email confirmation, it provided  total different thing:
    - no where on the email order confirmation  said about $350 Visa prepaid card.
    - the installation appt somehow change to July 28, 2015 8:00AM - 5:00 PM (<- move to 5 days later with an 8 hours window to expect people to take whole day off  from work to get installation?)
    - the estimate bill become 241.22 (<- move up 86.3)
    Does the email confirmation have the wrong information or Is it normal that Verizon automatically make change to the order after it submitted? Bill increase, date install change and no more prepaid card?

    Note the bill estimate on the email may have certain extra charges, hopefully all correct.  You will need to check when you get actual bill.  Things like install fee (if not waived) and partial month charges.  I don't remember if other taxes and fees are also included on one but not the other. YOU ARE NOT TALKING TO VERIZON ON THESE FORUMES.  The forums are mostly peer to peer.

  • Working with Confirmed and Non Confirmed Dimensions

    The actual need for my situation is I have two facts F1 and F2 and Four Dimensions D1, D2, D3, D4
    D1 is a confirmed Dimension
    D2, D3 are joined to F1 and D4 to F2 according to the star schema . I need a report which has D1, D2, D3, D4 , F1. Is this possible ?
    Method applied : I added a new logical table source to F1 and pointed it to F2. I pulled in all the required dimensions and created a new logical folder with F1, D1,D2,D3,d4 . I created a logical join from D4 to F1 in BMM layer . The rest of dimensions are already connected to F1.
    Now when i run the report the i get null values when i pull in D4 and F1 which is logically correct but when i try to run the report D1,D2,D3,D4,F1 it returns an error ? Should i need to include even F2 in my report ?

    I actually have an out of box RPD which has defined hierarchies only for certain dimensions. Is it a good practice to define hierarchies for all the dimensions ?
    can't we establish the report D1,D2,D3,D4,F1 without the hierarchies ?
    For the present RPD we have hierarchy defined only for D3 . Reports running on the present subject areas are working perfectly fine even without the hierarchies. Only when i am trying to span across different subject areas i get errors.
    Could you throw more light on the difference it would make if i defined hierarchies for all the dimensions.

  • Re: Working with Confirmed and Non Confirmed Dimensions

    I want to make a report with columns from Lot_D, Lot_Grade_D dimensions and measures from Lot_Quantity_F and Stock_F facts, did the following steps but unable to get the required result
    - two facts Stock_F and Lot_Quantity_F, Lot_D dimension is conformed whereas Lot_Grade_D is connected with Lot_Quantity_F only.
    - made the joins on physical layer between Stock_F and Lot_D and than among Lot_Quantity_F, Lot_D and Lot_Grade_D.
    - dragged all the four objects in BMM (now four BMM objects with relevant source in physical)
    - created level-based hierarchies for Lot_D and Lot_Grade_D in BMM
    - set the Stock_F measure column under Levels tab to Total level for Lot_Grade_D dimension
    - set the Logical Level in the Content tab of Stock_F to Detail level for Lot_D dimension
    - set the Logical Level in the Content tab of Lot_Quantity_F to Detail level for Lot_D and Lot_Grade_D dimensions
    - dragged all the BMM objects in presentation layer
    created the report based on flat dimensions (not Hierarchical dimensions)
    Looking for a quick response
    regards
    Farooq

    Follow The Below Steps
    1) Add the Stcok_F and LOT_Q_F as LTS in BMM .
    2) Join this LTS to both the dimensnons Lot_d and Lot_Grade_D
    3)Open the Stock_F in LTS and go to Content tab.Set the Lot_Grade_d to total and Lot_d to Detail
    4)Open the LOT_Q_F LTS and set the levels to detail.
    5)Open the Individual columns coming from Stock_F and set the level for lot_grade_d to Detail.

  • Need of Tables names that link Purchase Order and the Confirmation Number

    Hi All,
    Can any one help me please regarding EBP tables. I am new to EBP so not aware of data flow in the EBP data dictionary.
      Please can anyone explain the tables which link the Purchase order number and the Confirmation(Goods Receipt).
    Please do the needful.
    Thanks in advance.

    Hi,
      You can query the tables BBP_PDHGP and BBP_PDIGP to get teh refernce doc no for PO and then use FM BBP_PD_CONF_GETDETAIL to get the details fo a particular confirmation.ALso you can search confirmations by "Reference Document", use BBP_PD_CONF_GETLIST, with parameter I_REF_DOC_NO, and then use BBP_PD_CONF_GETDETAIL for the found confirmations.
    HTH.
    BR,
    Disha.
    PLs reward points for helpful answers

  • Sequential confirmation and restricting over confirmation - Process orders

    Hi,
    We have a process orders with phaes 20,40 and 60. Order qty = 100 pc
    1. We would like to have sequenstial confirmations from 20->40->60.
    2. When we confirmation phase 40 , quantity should not exceed the confirmed quantity of phase 20. ( Example , if 20 is confirmed for , say , 10 pc , then user trying to confirm 11pc in phase 40 , should result in an error )
    3.When we enter confirmations in COR6N , we would like to have the previous confirmed quantity to appear as default and if user changes to a higer quantity than the previous confirmation quantity , it should give an error message.
    ( for example , here when user confirms phase 20 - order qty less previously confirmed qty = 100-10=90 pc should come as default ;   for phase 40 , default confirmation qty should appear as 10 pc and user trying to change it to 11pc, shoudl result in an error)
    In order confirmation parameters , we have chosen " error when operation sequences are not adhereed to ".
    and in over delivery tolerance , we have chosen " wanring message"
    How can we achieve this modifitcation?
    Thanks and regards,
    Manohar

    HI,
    In the confirmation parameters OPK4(Customizing for Shop Floor Control, choose Operations -Confirmation -Define Confirmation Parameters) you set the Propose indicator in the quantities area, to stipulate that quantities should be proposed when confirmations are entered under "Operation Individual entry using Indv. scren" tab Page. and test
    If this is not working out
    Check
    Control key for operations (in Customizing for Shop Floor Control by choosing Master Data -Routing Data - Define Control Key), you stipulate whether an operation can or must be confirmed (Confirmations key).
    Checking the Quantity to be Confirmed (Confirmations key).
    If the operation sequence is checked for confirmations, then the following quantity check takes place: If you want to enter a confirmation in which the sum of the yield, rework quantity and scrap is larger than the yield of the predecessor, then the system issues an appropriate message (for example, an error message). The predecessor is determined exactly as described in the graphic.
    Irrespective of whether the operation sequence is adhered to, the quantity is checked against the quantity of the predecessor operation (= expected quantity) and a message is issued (the category is set in Customizing). The following cases can occur:
    The confirmed quantity is larger than the expected quantity.
    You are entering a final confirmation and the confirmed quantity is smaller than the expected quantity.
    The message category determines your next entry option:
    After acknowledging a warning, you can continue entering.
    In the case of an error message, the system terminates the input dialog.

  • Open orders and Shipped not billed orders

    Hi All,
                     What is the fastest way to calculate the open orders amount and shipped not billed amount for a given customer.
    Thanks
    Venugopal Reddy

    Can u try this option and see if this is increasin your performance.
    For the billing documents ...
    Goto table VBUK and check the fields LFSTK = 'C' " Delivery completed and
                                                            FKSTK NE 'C' . "billing open
    At header level check that GBSTK ne C "over all processing status is open .
    This will yield you the list of open Invoices ..
    You need to bring in the select query with a join on VBRK and VBUK ..
    once u get the list of open invoices  then calculate the open qty from VBRP and VBUP where VBUP-GBSTA ne 'C'.
    here pick the qty from vbrp and sum it up to check the open qty.
    just like this ..
    SELECT vbeln
             fkart
             kunag
             gbstk
             INTO TABLE it_billing_h
             FROM vbrkuk                       "VBRKUK is a DB view " VBAK+VBUK
             WHERE vkorg IN so_vkorg
             AND vtweg IN so_vtweg
              AND spart IN so_spart
             AND kunag IN so_kunnr
             AND gbstk NE 'C'.
        IF NOT it_billing_h[] IS INITIAL.
          SELECT c~vbeln
                 c~posnr
                 c~matnr
                 c~fkimg      "---->open qty
                 d~fksta
                 d~fksaa
                 d~uvfak
                 d~fkivp
                 d~fssta
                 d~gbsta
                 INTO TABLE it_billing_items
                 FROM vbrp AS c JOIN vbup AS d
                 ON dvbeln EQ cvbeln
                 AND dposnr EQ cposnr
                 FOR ALL ENTRIES IN it_billing_h
                 WHERE d~vbeln EQ it_billing_h-vbeln
                 AND d~gbsta NE 'C'.
    use control break and sum the qty ..
    hope this helps ,
    Regards,
    Vijay

  • Family share isn't working - we set it up and it was working fine for a few weeks then in the last few days it's stopped, we can't see the other members in our family share and it says we aren't set up but it doesn't allow us to confirm and reset up

    Help!  We set up family share a few weeks ago, and it was working fine with the organizer and two additional members.  The three of us could see each other on app and iTunes stores and could view each other's purchased items.  Then ... All of that disappeared.  We cant see each other's profiles any more and we definitely can't view any purchased items.  In addition, when we try to go in and jump start by downloading a free app or logging out and back of itunes, nothing works.  It seems to show we have family sharing in the iCloud settings, and when we click the Apple ID it asks us to confirm, and we confirm, and are asked if we want to change accounts because then we trigger the 90 day freeze period.  And we aren't changing any accounts - just trying to confirm the same accounts to get family share to work!  We are all on the same ios 8.1.3 and os, so I don't know what else to try! 

    No, I am a media professional who uses his MacBook Pro to connect to external monitors, and needs to continue to do so.  I don't want Apple TV.  I want my laptop to work again, like it's supposed to.  Like it used to. 
    I have a demonstration this week at work that requires me to plug into an LCD screen and I am hoping to have this resolved by then.  I am trying to convince my department to buy a Retina Mac and thousands of dollars worth of video software for live shows, and if I can't make it work, then I can't exactly convince them (or myself) to buy what I have been researching.
    Again, I don't want wireless video or Apple TV.  I don't want to buy any more stuff.  I want to know why my Thunderbolt to HDMI cable stopped working after my update, and how to fix it...preferably before this meeting. 

  • Purchase orders and their open order quantity with their due dates.

    hi friends
    i need to build  a query  where i can see the purchase orders and their open order quantity and their respective due delivery dates.i have never done  this.
    ME2M serves my requirement  upto little but i cannot see the delivery dates in that report.
    please help mein finding the steps involved in building the query.
    Thanks
    Alahari

    Use the table EKPO and EKKO
    adhoc querry is a tool in which we can create report
    to get report we have to use three t. codes
    1.sq03-->is for to create user group
    2.sq02--.is for infoset Querry
    3.Sq01-->for exact querry
    try with these codes or revert with ur response
    follow the link for query creation
    First check this link,
    SAP Query Creation
    SAP Query -A Reporting Tool for Functional Consultants(Part 2)
    SAP Query 1
    SAP Query -A Reporting Tool for Functional Consultants (Part 1)
    Always after going to SQ02 or SQ01 T Code ,first click on Environment in the menu ->Query Areas-->
    Standard Area Client specific and then start creating the Infoset or else the query.
    Still if you are not satisfied means,please revert back.

  • Purchase orders and their open order quantity with their due delivery date

    hi friends
    i need to build a query where i can see the purchase orders and their open order quantity and their respective due delivery dates.i have never done this.
    ME2M serves my requirement upto little but i cannot see the delivery dates in that report.
    please help mein finding the steps involved in building the query.
    Thanks
    Alahari

    Deliver date is available in table EKET field EINDT.
    Use table : EKKO ,EKPO, EKET.

  • Retrive open order and open delivery value x custome

    Hi,
    how can i obtain a list of open order value and open delivery value per customer?
    10x
    bye

    Check the following code which give details of pending orders & values and it can be modified as per ur requirement.
    REPORT  ZPEND_ORDER no standard page heading line-size 255.
    *& Purpose : Details of Sale order having pending deliveries           *
    *&           ( For Rake order handling )                               *
    tables : vbak, vbap, likp, lips, kna1, vbuk, vbpa, vepvg, vbfa, vbup.
    data : pend_qty like  vbap-kwmeng,
           dlv_qty like  vbap-kwmeng,
           ord_qty like vbap-kwmeng.
    data: begin of itab_vbak occurs 0,
          vbeln like vbak-vbeln,           "sales order no
          audat like vbak-audat,           " created date
          auart like vbak-auart,           " Sales Document Type
          vkorg like vbak-vkorg,           "Sales Organization
          vtweg like vbak-vtweg,           " distribution channel
          spart like vbak-spart,           " Division
          vkgrp like vbak-vkgrp,           " Sales group
          vkbur like vbak-vkbur,           " Sales office
          kunnr like vbak-kunnr,           " sold to party
          kunag like vbak-kunnr,           " ship to party
          cust like vbak-kunnr,            " sold to party
          ship like kna1-name1,            " ship to party
          city like kna1-ort01,            " ship to party location
          deliv like likp-vbeln,           " delivery
          matnr like vbap-matnr,
          arktx like vbap-arktx,           " mat description
          kwmeng like vbap-kwmeng,
          kbmeng like vbap-kbmeng,
          fkrel like vbap-matnr,
          vstel like vbap-vstel,
          route like vbap-route,
          chln_no like likp-xabln,
          grn_no like likp-bolnr,
          truck_no like likp-traid,
          dlv_dt like vbfa-erdat,           "dlvy date
          ord_qty like vbap-kwmeng,
          dlvd_qty like vbap-kwmeng,
          pend_qty like vbap-kwmeng,
          kzwi5 like vbap-kzwi5,
          posnr like vbap-posnr,
    end of itab_vbak.
    data  posnr like vbap-posnr.
    *FOR ALV DISPLAY
    type-pools: slis.
    constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    *Data Decelararion for alv display
    data: i_fieldtab type slis_t_fieldcat_alv,
          i_heading  type slis_t_listheader,
          i_layout   type slis_layout_alv,
          i_sort     type slis_t_sortinfo_alv,
          i_print    type slis_print_alv,
          i_events   type slis_t_event,
          i_repname  like sy-repid,
          f2code   like sy-ucomm value  '&ETA',
          i_save(1) type c,
          i_exit(1) type c,
          i_variant like disvariant,
          h_text(50).
    start-of-selection.
      selection-screen skip 1.
      selection-screen begin of block v1 with frame title text-001.
      selection-screen skip 1.
      select-options:
                     ord_no for vepvg-vbeln,
                     audat for vbak-audat obligatory,
                     matnr for vbap-matnr,
                     spart for vbap-spart obligatory,
                     vstel for vepvg-vstel obligatory,
                     sale_org for vbak-vkorg obligatory,
                     sale_off for vbak-vkbur.
      selection-screen skip 1.
    check box for ALV display
      parameters p_alv as checkbox.
      selection-screen end of block v1.
      selection-screen skip 1.
      data:   ftab(72) occurs 5 with header line.
      refresh ftab.
      ftab = 'VBELN'. append ftab.
      refresh itab_vbak.
    initialization.
      i_repname = sy-repid.
    start-of-selection.
      select vbeln audat vkorg vtweg spart vkbur kunnr from vbak
           into
           (itab_vbak-vbeln, itab_vbak-audat,
            vbak-vkorg, vbak-vtweg, vbak-spart,
            itab_vbak-vkbur, itab_vbak-kunnr)
           where vbeln in ord_no
           and audat in audat
           and vbtyp = 'C'
           and vkorg in sale_org
           and spart in spart
           and vkbur in sale_off.
        if sy-subrc = 0.
          select posnr kwmeng kbmeng matnr arktx  "added for mat description
                   fkrel vstel route kzwi5 spart
                   from vbap into corresponding fields of itab_vbak
                   where vbeln = itab_vbak-vbeln .
            check ( itab_vbak-fkrel = 'A' or  "Delivery-related billing document
                    itab_vbak-fkrel = 'D' )   "Relevant for pro forma
              and itab_vbak-vstel in vstel
              and itab_vbak-matnr in matnr
              and itab_vbak-spart in spart.
            select single * from vbup where vbeln = itab_vbak-vbeln
                                        and posnr = itab_vbak-posnr.
            check vbup-gbsta ne 'C'.
            dlv_qty = 0.
            select single kunnr from vbpa into itab_vbak-kunnr
                   where vbeln = itab_vbak-vbeln
                   and parvw = 'WE'.
            select single name1 ort01 from kna1 into
                   (itab_vbak-cust, itab_vbak-city)
                    where kunnr = itab_vbak-kunnr.
          in case of partially processed sale order get delivery details
            clear : dlv_qty, itab_vbak-dlv_dt, itab_vbak-dlvd_qty, itab_vbak-chln_no,
                    itab_vbak-grn_no, itab_vbak-truck_no.
            if vbup-gbsta eq 'B'. "partially processed
              dlv_qty = 0.
            get details from delivery
              select vbfavbeln vbfarfmng vbfavbtyp_n vbfaerdat
                 into (vbfa-vbeln, vbfa-rfmng, vbfa-vbtyp_n, vbfa-erdat)
                 from vbfa
                 where vbelv = itab_vbak-vbeln
                   and posnv = itab_vbak-posnr.
                check vbfa-vbtyp_n = 'J'.
                clear : dlv_qty, itab_vbak-dlv_dt, itab_vbak-dlvd_qty, itab_vbak-chln_no,
                        itab_vbak-grn_no, itab_vbak-truck_no.
                select single erdat xabln bolnr traid kunag
                   into (itab_vbak-dlv_dt, itab_vbak-chln_no, itab_vbak-grn_no,
                         itab_vbak-truck_no, itab_vbak-kunag)
                   from likp
                   where vbeln = vbfa-vbeln.
                if sy-subrc = 0.
                  dlv_qty = dlv_qty + vbfa-rfmng.
                  itab_vbak-dlv_dt = vbfa-erdat.
                  itab_vbak-dlvd_qty = dlv_qty.
                  itab_vbak-deliv = vbfa-vbeln.
                endif.
                append itab_vbak.
              endselect.
            elseif vbup-gbsta eq 'A'.
            for unprocessed sale order
            ship to party details
              itab_vbak-kunag = itab_vbak-kunnr.
              itab_vbak-ship = itab_vbak-cust.
              append itab_vbak.
            endif.
          endselect.
        endif.
        clear itab_vbak.
      endselect.
      loop at itab_vbak.
      clear with change in document / item no
        on change of itab_vbak-vbeln or itab_vbak-posnr.
          clear: dlv_qty,ord_qty,pend_qty.
        endon.
        at new posnr.
        In case full qty not delivered
          if itab_vbak-kwmeng > itab_vbak-dlvd_qty.
            select single vbpa~kunnr into vbpa-kunnr
               from vbpa
               where vbeln = itab_vbak-vbeln
                and  posnr = itab_vbak-posnr
                and  parvw = 'WE'.
            if sy-subrc eq 0.
              itab_vbak-kunag = vbpa-kunnr.
              select single name1 ort01 from kna1 into
                    (itab_vbak-ship, itab_vbak-city)
                     where kunnr = itab_vbak-kunag.
              if sy-subrc ne 0.
                select single vbpa~kunnr into vbpa-kunnr
                   from vbpa
                   where vbeln = itab_vbak-vbeln
                   and parvw = 'WE'.
                itab_vbak-kunag = vbpa-kunnr.
                if sy-subrc ne 0 and p_alv ne 'X'.
                  write :/ 'vbpadetls' , itab_vbak-vbeln, itab_vbak-posnr, itab_vbak-vbeln.
                endif.
              endif.
            endif.
          endif.
          itab_vbak-ord_qty = itab_vbak-kwmeng.
        Delivered Qty & Pending qty
          dlv_qty = dlv_qty + itab_vbak-dlvd_qty.
          itab_vbak-pend_qty = itab_vbak-kwmeng - dlv_qty.
          modify itab_vbak transporting kunag ship city dlvd_qty ord_qty pend_qty .
        endat.
      endloop.
    end-of-selection.
      sort itab_vbak by vbeln posnr audat kunnr matnr.
      if p_alv ne 'X'.
        loop at itab_vbak.
          select single kna1name1 kna1ort01
                 into
                 (kna1-name1, kna1-ort01)
                 from kna1
                 where kunnr = itab_vbak-kunnr.
          pend_qty = itab_vbak-ord_qty - itab_vbak-dlvd_qty.
          format color col_normal.
          write : /01(10) itab_vbak-vbeln,
                  12(10)  itab_vbak-audat,
                  24(8)  itab_vbak-kunag no-zero,
                  34(6)  itab_vbak-posnr no-zero,
                  42(10) itab_vbak-matnr no-zero,
                  54(15) itab_vbak-arktx,
                  72(25) itab_vbak-ship,
                  100(15) itab_vbak-city,
                  118(8)  itab_vbak-ord_qty,
                  128(10) itab_vbak-route,
                  140(10) itab_vbak-dlv_dt,
                  152(10) itab_vbak-dlvd_qty,
                  164(10)  itab_vbak-chln_no,
                  176(10)  itab_vbak-grn_no,
                  188(10)  itab_vbak-truck_no,
                  200(10) itab_vbak-pend_qty,
                  218(15) itab_vbak-kzwi5 left-justified.
          format reset.
          at end of audat.
            sum.
            pend_qty = itab_vbak-ord_qty - itab_vbak-dlvd_qty.
            format color col_background.
            write: /118(8) itab_vbak-ord_qty,
                   152(10) itab_vbak-dlvd_qty,
                   200(10) pend_qty,
                   218 itab_vbak-kzwi5 left-justified.
            format reset.
          endat.
          at last.
            sum.
            pend_qty = itab_vbak-ord_qty - itab_vbak-dlvd_qty.
            format color col_total.
            write : /5 'Grand Total : '.
            write: /118(8) itab_vbak-ord_qty,
                  152(10) itab_vbak-dlvd_qty,
                  200(10) pend_qty,
                  218 itab_vbak-kzwi5 left-justified.
            format reset.
          endat.
        endloop.
      else.
      for ALV Display
        i_repname = sy-repid.
        perform fieldcat using i_fieldtab[].
        perform eventtab using i_events[].
        perform comment using i_heading[].
        perform call_alv.
        perform build_layout using i_layout.
      endif.
    top-of-page.
      if p_alv ne 'X'.
        format color col_heading.
        write: /01 'Ord No',
                12 'Ord Date',
                24 'Sold to Party',
                34 'Item No',
                42 'Mat No',
                54 'Mat Descp',
                72 'Ship to Party',
                100 'City',
                118 'Qty',
                128 'Route',
                140 'Dlv Date',
                152 'Dlv Qty',
                164 'Challan No',
                176 'GRN No',
                188 'Truck No',
                200 'Pend Qty',
                218 'Total Value'.
        format reset.
      endif.
    *&      Form  fieldcat
          text
         -->P_I_FIELDTAB[]  text
    form fieldcat using p_fieldtab type slis_t_fieldcat_alv.
      data: l_fieldcat type slis_fieldcat_alv.
      clear l_fieldcat.
      l_fieldcat-tabname    = 'ITAB_VBAK'.
      l_fieldcat-fix_column = 'X'.
      l_fieldcat-no_out     = ' '.
      l_fieldcat-fieldname  = 'VKBUR'.
      l_fieldcat-outputlen  = 6.
      l_fieldcat-seltext_l  = 'Sales Office'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'VSTEL'.
      l_fieldcat-outputlen  = 5.
      l_fieldcat-seltext_l  = 'Shipping Point'.
      l_fieldcat-no_zero = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'VBELN'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Order No.'.
      l_fieldcat-no_zero = 'X'.
      l_fieldcat-hotspot = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'AUDAT'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Doc Date'.
      l_fieldcat-hotspot = ''.
      l_fieldcat-no_zero = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'POSNR'.
      l_fieldcat-outputlen  = 5.
      l_fieldcat-seltext_l  = 'Item'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'MATNR'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Material No'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'ARKTX'.
      l_fieldcat-outputlen  = 15.
      l_fieldcat-seltext_l  = 'Mat. Description'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'KUNNR'.
      l_fieldcat-outputlen  = 8.
      l_fieldcat-seltext_l  = 'Sold to Party'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'CUST'.
      l_fieldcat-outputlen  = 15.
      l_fieldcat-seltext_l  = 'Sold to Party Descp.'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'KUNAG'.
      l_fieldcat-outputlen  = 8.
      l_fieldcat-seltext_l  = 'Ship to Party'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'SHIP'.
      l_fieldcat-outputlen  = 15.
      l_fieldcat-seltext_l  = 'Ship to Party Descp'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'CITY'.
      l_fieldcat-outputlen  = 13.
      l_fieldcat-seltext_l  = 'City'.
      l_fieldcat-no_zero = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'DELIV'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Delivery No.'.
      l_fieldcat-no_zero = 'X'.
      l_fieldcat-hotspot = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'ORD_QTY'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Qty'.
      l_fieldcat-no_zero = ' '.
      l_fieldcat-hotspot = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'ROUTE'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Route'.
      l_fieldcat-no_zero = 'X'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'DLV_DT'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Delivered date'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'DLVD_QTY'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Delivered Qty'.
      l_fieldcat-no_zero = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'CHLN_NO'.
      l_fieldcat-outputlen  = 15.
      l_fieldcat-seltext_l  = 'Challan No'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'GRN_NO'.
      l_fieldcat-outputlen  = 15.
      l_fieldcat-seltext_l  = 'GR Number'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'TRUCK_NO'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Truck No'.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'PEND_QTY'.
      l_fieldcat-outputlen  = 10.
      l_fieldcat-seltext_l  = 'Pending Qty'.
      l_fieldcat-no_zero = ' '.
      append l_fieldcat to p_fieldtab.
      l_fieldcat-fieldname  = 'KZWI5'.
      l_fieldcat-outputlen  = 13.
      l_fieldcat-seltext_l  = 'Value'.
      append l_fieldcat to p_fieldtab.
      clear l_fieldcat.
    endform.                    " FIELDCAT
    *&      Form  EVENTTAB
          text
         -->P_I_EVENTS[]  text
    form eventtab using p_events type slis_t_event.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type = 0
        importing
          et_events   = p_events.
      read table p_events with key name = slis_ev_top_of_page
                               into ls_event.
      if sy-subrc = 0.
        move formname_top_of_page to ls_event-form.
        append ls_event to p_events.
      endif.
    endform.                    " EVENTTAB
    *&      Form  BUILD_LAYOUT
          text
         -->P_LAYOUT   text
    form build_layout using p_layout type slis_layout_alv.
      p_layout-f2code       = f2code.
      p_layout-zebra        = 'X'.
      p_layout-detail_popup = 'X'.
    endform.                    " BUILD_LAYOUT
    *&      Form  COMMENT
          text
         -->P_I_HEADING[]  text
    form comment  using    p_i_heading type slis_t_listheader.
      data: hline type slis_listheader,
            text(60) type c,
            sep(20) type c.
      clear: hline, text.
      hline-typ  = 'H'.
      write : 'Pending Sale Order Details' to hline-info.
      append hline to i_heading.
    endform.                    " COMMENT
    *&      Form  TOP_OF_PAGE
          text
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = i_heading
          i_logo             = 'ALV_REPORT'.
    endform.                    " TOP_OF_PAGE
    *&      Form  call_alv
          text
    -->  p1        text
    <--  p2        text
    form call_alv .
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_interface_check        = ' '
          i_buffer_active          = ' '
          i_callback_program       = i_repname
          i_callback_pf_status_set = ' '
          i_callback_user_command  = 'FRM_ALV_USER_COMMAND'
          i_structure_name         = 'ITAB_VBAK'
          i_background_id          = ' '
          is_layout                = i_layout
          it_fieldcat              = i_fieldtab
          it_sort                  = i_sort[]
          i_default                = 'X'
          i_save                   = 'A'
          is_variant               = i_variant
          it_events                = i_events[]
          is_print                 = i_print
        tables
          t_outtab                 = itab_vbak.
      if sy-subrc <> 0.
        write: 'SY-SUBRC: ', sy-subrc, 'REUSE_ALV_LIST_DISPLAY'.
      endif.
    endform.                    " call_alv
    *&      Form  frm_alv_user_command
          text
         -->UCOMM      text
         -->SELFIELD   text
    form frm_alv_user_command using ucomm like sy-ucomm
                  selfield type slis_selfield.
      case ucomm.
        when '&IC1'.
          if selfield-tabname = 'ITAB_VBAK'.
            if selfield-fieldname = 'VBELN'.
              read table itab_vbak index selfield-tabindex.
              if sy-subrc = 0.
                set parameter id 'AUN' field itab_vbak-vbeln.
                call transaction 'VA03' and skip first screen.
              endif.
            elseif selfield-fieldname = 'DELIV'.
              read table itab_vbak index selfield-tabindex.
              if sy-subrc = 0.
                set parameter id 'VL' field itab_vbak-deliv.
                call transaction 'VL03N' and skip first screen.
              endif.
            endif.
          endif.
      endcase.
    endform.                    "frm_alv_user_command

  • I want to run an open order report with no goods receipt

    I'm looking to run an open order report with no confirmations(i.e.the order must have no status like LA,Z4,Z5,Z6)and no goods receipt.
    ME80FN is still giving me orders that have no confirmations but closed.
    I tried using a logical database but no luck.
    What can i use to achieve this open order report?

    Hi,
    You can write a small report for this requirement:
    Just select all the PO's from EKKO and EKPO table into an internal table(ITAB) with the given where condition.
    Write a select statement for the MSEG for all entries in ITAB into an seperate internal Table(ITABM).(nothing but all GR's entries)
    Compare Both internal tables and delete all entries which are present in second Int table ITABM from the first.
    That's all.
    The remaining entries are nothing but the OPEN PO's without any Goods Receipt.
    Regards,
    Anji

Maybe you are looking for

  • Creating new source system in bw

    hi all i have got one problem with creating source system to bw from r/3,i have created RFC connection to bw and r/3 and i was trying to create source system manually and automated but it is not activating i'm getting fallowing error ...the fallowing

  • Bug in Nokia Lumia 720

    Bug in Nokia Lumia 720" which i was using,After completion of my downloaded app"Java Tutorial" & i started to open this suddenly, my Wi-Fi connection got problem & i have been found a bug on it. Attachments: Nokia Lumia 720 with issue 20131130_0001.j

  • Jsp:include issues

    I have been scouring the internet trying to find the answer to this. I am trying to impliment jsp:include in one of my assignments for school, and the only problems I have with it is that when looking at references, nobody tells you how to access the

  • Help! I have an imac m6498 question(s) need help on the following ASAP thanx

    i found an imac m6498 at my grandmas's, its working smooth and great. However, i have these problems: idont have admin (she doesnt remember the password nor how to remove it) i dont have the cd repair and backup etc, nor does she cd drive works well

  • Old Address Book Cards into New Address Book

    Okay, so here's the problem: I had the first IMac with the Isight camera and the CPU died. So, I had the data backed up to an external hard drive. So now I have the new Imac and I still have the external hard drive and I've put MOST of my old data on