Current month open sales orders

Hello Experts,
I have requirement to build a custom report to calculate open sales order quantity and its count for current month. I know we can use VBBE for open quantity and VBUP for the status to capture the count, however how can i add the logic to get the required information for the current month. Is there a function module or BAPI available which can be of any help, i have to consider the performance issue too, if i were to use multiple tables. Please advise
Thanks
Rahul

HI Rahul,
There is a standard BAPI available for listing Sales Orders.
<b>BAPI_SALESORDER_GETLIST</b>
However to meet your requirement of <b>OPEN sales orders</b>, you will have to modify this BAPI to suit your purpose. You can give appropriate logic to you ABAPer with reference to tables VBUK,VBUP, etc. This means that you will have to create a new Z-BAPI, keeping the above BAPI as the core.
Once this is done you can wrap Z-BAPI in a transaction code or a program/ report, so that it is ready to use by business.
Selection Variants can be used to default the date range as 01/MM/XXXXX to 31/MM/XXXX.
Hope this will prove of some help to you..
if yes then ..pls reward liberally
Sachin Bhonsle

Similar Messages

  • MRP not considering open purchase orders when planning for open sales order

    Dear Experts,
        1.I have open sales orders as well as planned Independent requirements for finished goods for the current month. Also I have open puchase orders for raw materials which is part of the Bill of material of the finished goods for the current month.
    Please what do i need to do to make MRP consider my open purchase orders when the system is planning for the open sales orders.
    2 what tcode can I use to delete all purchase reuisitions in the sytem

    There was no response to these questions so i had to close it to make space for another

  • Open Sales Orders Backlog Report

    Hi All: I have been asked to create Backlog reports for Open Sales Orders and the revenue amounts for the next 15days, one month, 2 months, 3 months 6 months etc etc. Does anyone know of a standard report that covers that and the business content and cues that go with it?
    Thanks in advance
    Bobby

    I haven't seen any standard content for it, with my client, we actually developed the open order report from Item extractor and status extractor. And compare the created on date to the system data to see how long it has been opened for and put it in different buckets.
    Hopes that help.
    thanks.
    Wond.

  • SQL Open Sales Orders Value using today's currency rates

    Hi experts,
    I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which the currency field is blank (Don't understand why this happens in SAP). Do you have other ideas?
    Thanks & Regards,
    IC
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name",  T1.ItemCode, 
    T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM',  T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)", T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod, ORTT T4 WHERE T0.DocCur <> 'GBP' AND T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T1.OpenQty > 0
    UNION ALL
    SELECT
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date", T0.CardCode as "Cust Code", T0.CardName as "Customer Name", T1.ItemCode, T1.Dscription, T3.ItmsGrpNam, T1.U_SU, T1.U_SULEN, T1.U_SUQTY, T2.InvntryUom as 'Stock UOM', T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered", T1.OpenQty as 'Bal Qty', T1.LineTotal AS "Ord Value (GBP)", T1.LineTotal/T1.Quantity*T1.OpenQty AS "Open Qty Val (GBP)", T1.LineTotal/T1.Quantity AS "Price (GBP)", T1.Price*T1.OpenQty as "Ord Value (BP Currency)",T1.Price as 'Price (BP Curr)', T1.Currency as 'Cur Ind', T1.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date", T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod WHERE T0.DocCur = 'GBP'  AND T1.OpenQty > 0 ORDER BY 2,1

    Hi,
    Try:
    SELECT 
    T0.DocNum as 'Sales Ord No', T0.DocDate as "Ord Date",  T0.CardCode as "Cust Code",  T0.CardName as "Customer Name", 
    T1.ItemCode,  T1.Dscription,  T3.ItmsGrpNam,  T1.U_SU,  T1.U_SULEN,  T1.U_SUQTY,  T2.InvntryUom as 'Stock UOM', 
    T1.Quantity as 'Ord Qty', T1.Quantity*T2.U_ITWTSTU as 'Weight (KG)', T1.Quantity-T1.OpenQty as "Qty Delivered",
    T1.OpenQty as 'Bal Qty', T1.Price*T1.Quantity/T4.Rate AS "Ord Value (GBP)",
    T1.Price*T1.OpenQty/T4.Rate  AS "Open Qty Val (GBP)", T1.Price/T4.Rate  AS "Price (GBP)",
    T1.Price*T1.OpenQty as "Ord Value (BP Currency)", T1.Price as 'Price (BP Curr)',
    T1.Currency as 'Cur Ind', T4.[Rate] AS 'Curr Rate', T0.DocDueDate as "Due Date",  T1.WhsCode as 'Del WHG'
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    LEFT JOIN ORTT T4 ON T1.Currency=T4.Currency AND T4.[RateDate] = [%0] AND T4.Rate != 0
    WHERE T0.DocCur != 'GBP' AND AND T1.OpenQty > 0
    Thanks,
    Gordon

  • Open sales orders key figure in APO

    HI Gurus,
    Can anyone please throw some light as to where i need to be looking in this scenario. Our BW resource extracts open sales order quantity from ECC and loads into APO DP. The issue that i'm seeing is the open sales order quantity key figure is not getting updated properly in APO. For example to begin with we have a quantity of 800 EA in the period of 12/2014 (we go by fiscal period and in this case 12 would represent September 2014), 01/2015(October 2014), 02/2015(November 2014). The customer service group has deleted the quantity completely from period 12/2014 (September 2014) in ECC. But when i look in the planning book in APO, i can still see the quantities in the periods of 12/2014, 01/2015 and 02/2015. I was expecting the quantity from the period of 12/2014 to not showup in APO as it has been deleted in ECC. Our BW resource also confirms that he has loaded it properly in APO. Where can i start looking to resolve this issue.
    Thanks
    Ravi

    Dear Subhash, Thanks for your reply and i apologize as APO DP is new to me and i'm picking up things, can you please guide me to which tcode should i be going and checking this. Also reloading the planning area can you xplain a little more please
    Okay i have checked in the tcode /SAPAPO/TSCUBE and this is setup in the process chain for us which runs once a month on the opening day of the period. I hope this is what you were referring to?
    Under the key figure assignment in TSCUBE tcode, i see that the 'Add data" check box is not checked under Target area.

  • Open Sales Order quantity & value

    Hi,
    We have a requirement here of report to show open sales order quantity & value for any month (monthend). There is a datasource 2LIS_11_V_ITM which gives Open order quantity. I have created an ODS with 2LIS_11_VAITM & 2LIS_11_V_ITM which can give me desired qty & value, but only for date of last data upload and not for date in the past.(and to get that, I have to sumup all open orders quantity without using any date filter)
    I am thinking of creating a Infocube over this ODS to update the Open Order qty & value at the monthend (Snapshot scenario). But to update this, I am not able to get the logic for date to be used in time dimension.
    If anyone can think of the solution or any alternate way to develop this kind of report, your help/suggestions are most welcome.
    Thanks,
    Vikram.

    Hi Vikram,
    Find the link, which solves u r requirement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/arobustdesignofopensalesorderdataflow
    Thanks & Regards
    Ramakrishna Kamurthy

  • Open sales order, Invoice.......

    Hi
      Is there any standard report where i can see all the open order for sales organisation level. similarly i want see all the invoice created on a particular month at sales organisation level.
    I know we can see at VA05 Open sales orders but this is for Customer or material specific..
    VF05 For payer and material Specific... here i cannot see for sales organisation level..
    I want this report at sales organisation level.. can any body guide me in this regard.
    Regards
    MBS

    Hi
    One way of getting the open sales order report at sales org level is the "Backorder Report" - try using transaction V_RA
    For Billing info at sales org level, an easy way is to get the information at the table level - please use transaction SE16 and table VBRK to get the relevant information
    Reward points if this helps you
    Rgds

  • Open Sales order is Consumed and after it shipped it Unconsumed

    Hi All
    apprcate you help on the issue bellow :
    we manage the forecast Via Oracle forecast set Form name is : MRPFFDIF
    we set the prpfile MRP:Consume Fcst Set Summary to Yes
    Customer expectation is that when running consumption only open sales orders will be consumed
    but when sales order has been consumed and day after shipped and close
    sales order consumed data will be save and not unconsumed when consumption is running again
    the bellow scenario example the issue :
    Day 1
    Forecast Origin Qty = 10
    Open So = 5
    when running consumption forecast current qty will be 5
    On Day 2 we shipped the So qty (5) and it become close
    when running consumption the Origin Qty become 10 and this is not reasonable
    the expectation is that Current Qty will be remain 5 as it was on day1
    Thanks in Advance          

    Hi All
    apprcate you help on the issue bellow :
    we manage the forecast Via Oracle forecast set Form name is : MRPFFDIF
    we set the prpfile MRP:Consume Fcst Set Summary to Yes
    Customer expectation is that when running consumption only open sales orders will be consumed
    but when sales order has been consumed and day after shipped and close
    sales order consumed data will be save and not unconsumed when consumption is running again
    the bellow scenario example the issue :
    Day 1
    Forecast Origin Qty = 10
    Open So = 5
    when running consumption forecast current qty will be 5
    On Day 2 we shipped the So qty (5) and it become close
    when running consumption the Origin Qty become 10 and this is not reasonable
    the expectation is that Current Qty will be remain 5 as it was on day1
    Thanks in Advance          

  • Deleting a Contact on Customer Master with that Contact on Open Sale Orders

    Our current SAP system ECC 6.0 allows a user to delete a Contact from the Customer Master where that Contact is also on Open Sales Orders. 
    Then when our create delivery job runs, it abends saying Contact record not found.
    How is this normally handled ?  Are users not suppose to delete Contacts from the Customer Master if they are attached to an Sales Order ?  Is there some config to turn on in SAP that checks for Open Sales Orders before deleting a Contact in the Customer Master ?  Do I code this check in User Exit on the Save in the Customer Master and not let user delete the Contact if it's attached to Open Sales orders ?
    Would appreciate any help on this.
    Thanks,
    David

    Hi David,
    Try this user exit.
    RFDRRANZ  User exits: Accounts Receivable Information System
    Regards,
    Vijay

  • How to count List of open sales orders?

    HI Gurus,
    Client requ: List of no of open sales orders?
    I used T.code: VA05, given date range as desired and selected radio button as OPEN SALES ORDERS. I got huge list of sales orders with line item wise. say for example in a sales order 100 line items, in the report i got line item wise. But client wants no of open sales orders ony, not by line item wise. So I converted into XLS and did it.
    Is there any way to find out no of open sales orders thru Table. (Like sales orders created - go to SE 16 (VBAK) , you get no of sales orders created)
    Please suggest me way out to find the same.
    Thanks a lot in advance.
    Regards,
    Vamsi.

    Hi,
    I can recommend you another solution (is what I'm doing usually ...) - I'm extracting the data in Excel and here I can do anything anything I want with the data (in your case I will run a pivot table on the resulting table with the sales orders no)
    In this case (transaction VA05) option to extract data using XXL Viewer from ALV grid was deactivated; I really don't know what was the reason ...
    You can still use the second option - to use Excel In-place. For this, after running your report go to Settings -> Layouts -> Current ... (in the menu).
    Go to "View" page.
    Here select "Excel" option.
    A list of available excel templates should be displayed (if they are made available by your basis).
    Select one of them and press OK.
    If everything is OK you should see your report open directly in your GUI as Excel.
    I hope this will help you,
    Valentin

  • Closing open sales order

    hi
    i want to close all the open sales orders at the end of every month in a single strech
    regards
    ramana

    Ramana,
       You can do this. Before doing this may i know why you want close. Generally, we won't do this. This should be done by the SAP system based on the system. if you want to do it only once for missing materials, you do this. Download all the Open Sales Orders into CSV file. Change the Status of the Orders to Closed (for all open orders). Upload data from Flat file. Then system will take it as closed. Consider the subsequent documents values for the sales orders.
    this will help you. other wise you need to request from SAP (If all sales orders already closed, that missed in delta request). You can do the Repair full request.
    all the best.
    Regards,
    Nagesh Ganisetti.

  • Regarding All open sales order & want to close them

    Hi All,
    My client want the list of all open & partially open sales order in the time period excluding cureent & previous months & want to close all those sales order with partally open & fully open status
    Regards,
    Rohan

    Rohan in t-code mass find the reason for rejection and also try and block the sales order if you find it useful.
    Steps are below:
    First have those open order references in an excel sheet.
    Go to MASS, input Object Type BUS2032 and execute. There block "Sales order header data" and click on "Fields". There select the field "MASSSDHEAD_S-LIFSK" and execute.
    Now click on "Multiple selection" (right arrow), copy those order references and press "Shift+F12" and execute. There on top, assign some block and execute. All your sale orders will be blocked.
    On the other hand, you can also change the status of those sale orders by assigning "Reason of Rejection" in mass. To achieve this, go to TCode MASS, input Object Type BUS2032 and execute. There block on "Sales Order Item Data" and click on "Fields". There block the field "MASSVBAP-ABGRU" and execute. Follow the same procedure as explained above.
    Now see the document flow of those sale orders.
    Edited by: Muhammad Ali Lozada on Dec 28, 2010 12:32 PM

  • List of open sales order deliveries

    Hi Gurus
    I'm trying to fetch the list of open sales order relevant deliveries in the system. Is there any standard report to fetch the same?
    In the current requirement, we have tried the below logic:
    Join table VLPMA & VBUK at VBELN
    VLPMA u2013 Pass MATNR(Material) & LFART(Delivery Type) and fetch VBELN values
    VBUK u2013 VBELN values from above with WBSTK(Goods Movement status) Not Equal to C {open deliveries}
    LIPS u2013 Pass VBELN from above and MATNR & WERKS to fetch open sales order relevant deliveries for a material in a plant.
    The above logic takes a lot of time to execute and hence the report has performance issue. Is there any other means to link the multiple fields in the Deliveries to fetch, only sales order deliveries that are still open?
    Regards
    Deepak Prasanna S

    Hi
    You can also enhance tcode VA05 and create your variants to filter these SO. See these notes
    SAP Note 37871 - List display of open sales documents
    SAP Note 350068 - Additionl fields in VA05:Customer material number as example
    So, you'd have a list with the pending orders.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Mar 6, 2012 10:01 AM

  • 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

  • Logic for Open Sales order qty

    What should be the logic given to determine "open sales order qty" during designing a report.
    Note the criterias are as under:
    1) Open sales order qty is the confirmed qty less the delivery qty.
    2) The delivery qty should be delivery order qty (The delivery should not necessarily be pick, packed & PGI)

    sorry it doesn't work for services, since they do not create requirements.
    in this case you can use VBFA table, subracting all the delivered quantities VBFA-RFMNG with VBFA-VBTYP_N = J and VBFA-VBELV/VBFA-POSNV = to your order/item from the ordered quantities
    hope  this help you.
    Roberto

Maybe you are looking for

  • Nokia c5-03 touch not work sometimes

    Hi everyone, I an facing a major problem in my Nokia c5-03. Since last week, my phone touchscreen stops responding sometimes for 3-4 hours, then again it works normally. Sometimes the screen just moves up & down when I touch on any specific area. I h

  • Can i use 2 itunes accounts on an imac

    Can my wife and i use our seperate itunes account on the one imac ? how would icloud etc work ?

  • Combining Spry elements

    My situation is this: I am creating a photo gallery page, with 5 galleries. Each gallery's thumbnails are displayed in a Spry panel (Tabbed Panels) on the right side of the page. The full size image will be displayed in another div on the left side o

  • Selecting the data without considering any case sensitives

    Moderator message: please do not post the same question more than once Hi, I need to select the data without considering any case sensitives. Eg: If i enter ***JoHn****, then system need to select all currencies or amount depending on the this name.

  • VMware Fusion 6 vs Parallel desktop 9? Which is better?

    I am planning to install Windows in my Mac. Can anyone suggest which one is better between VMWare Fusion 6 and Parallel Desktop 9. I use the window only for running the internet explorer and plan to setup Windows 7 Home. Thanks