Select sales orders from a list of order type

I have about 20 customed order types, Z001 to Z020, and I want to select about 8-9 out of the 20 order types.
Currently, I am using
SELECT VBELN ...
INTO CORRESPONDING FIELDS OF TABLE IT_SO
FROM VBAK
WHERE AUART IN
('Z001', 'Z003', 'Z004', 'Z007', 'Z011', 'Z015', 'Z016', 'Z017', 'Z020').
Is there any better ways (considering performance) except builing an index to write the above SQL statement?
Thanks!

Hi. Gundam.
From performance side,
I think that best way is index creation.
But, if you are not want index creation,
another condition must be added to WHERE clause.
Currently, VBAK have two indexes. 
VBAK-AUDAT - order date
VBAK-ERDAT - ordet entry date.
so, you can try the followings.
WHERE erdat between '20050101' and '20051231'
   AND auart IN ....
Good Luck.

Similar Messages

  • Query:Dispatch selective process orders from a list available

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

  • How to update value stored in a table when we select a value from a list

    In my jsp page i have given
    <html:select property="function" >
         <html:option value="select">Select Actions</html:option>
    <html:option value="open">Marks as open</html:option>
    <html:option value="closed">Marks as closed</html:option>
    </html:select>
    I am using lookup dispatch action in action class
    public class LoginAction extends LookupDispatchAction{
    protected Map getKeyMethodMap() {
              Map map=new HashMap ();
              map.put("open","open");
              map.put("closed","closed");
              return map;
    public ActionForward open(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
         public ActionForward closed(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
    but when i select a value from the list,the corresponding action is not occuring.What should i put in my code??

    Put your code between the code tags, it makes it so much easier to read.
    To do that, just highlight your code and click on the "code" found between " and the circled ?.
    From what I can read of your code I don't even see a table or a list, so i have no idea what you are trying to do. You probably need to show more code.
    JSG

  • After selecting the value from the list box, want to disable checkbox

    hi guru,
    After selecting the value from the list box, want to disable checkbox and custom control textbox(container) in module pool.
    so please help me on this.
    thanx,
    man

    in PBO,
    loop at screen.
      if screen-name = your textbox's name.
        screen-input = 0.
        modify screen.
      endif.
    endloop.

  • Selecting a Role from dropdown list throws error

    Hi,
    I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
    Kindly help.
    Regards,
    Shaili

    Hi,
    Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
    Did someone face similar issue and how was it solved?
    Regards,
    Shikha

  • My MacBook Pro recognizes which of my three printers is plugged in (USB), but can it automatically use that printer or do I have to select that printer from the list each time I switch between printers?

    My MacBook Pro recognizes which of my three printers is plugged in (USB), but can it automatically use that printer or do I have to select that printer from the list each time I switch between printers?

    My MacBook Pro recognizes which of my three printers is plugged in (USB), but can it automatically use that printer or do I have to select that printer from the list each time I switch between printers?

  • I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale ! . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?

    I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale !" . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?
    and if you cam Help Me I'll Copy the Invoice or Order number .. !

    While I am no fan of Best Buy and would not buy a lightbulb from them I doubt you issues have anything to do with your iMac and more to do with your lack of experience and simply getting bad advice. Judging by you post I suspect you have loaded your computer down with a lot of crapware and that  has caused it's problems. For example running antivirus apps on a Mac not only is a waste of time, it's a waste of money, system resources and will eventually create more problems that it solves. Please begin educating yourself on the subject by reading Thomas Reeds articles on the subject, Thomas is a frequent and knowledgeable contributor to these forums. You can find his webpage at http://www.reedcorner.net/tech-guides/
    The good news is here are absolutely no, zero, zippo viruses for OS X. There are other types of malware available (for example trojans) however they differ greatly from viruses in that the use has to download and install them, whereas viruses do not work that way. OS X is not like MS Windows and is extremely secure.
    My suggestion at this point would be to clean your computer of the crapware (including antivirus apps) however before doing so please download and install EtreCheck and post its report. Then we can see how your computer has been configured and begin to give you some advice on the next steps.

  • How can I select an item from a list component with a seperate button

    This is a repost, I decided it'd probably be better here than
    in the general discussion board. I will try to delete the other
    one.
    Hello Everyone,
    This is my first post here. I am trying to figure out how to
    select an item within a list component with a button. This button
    is calling a function. I have searched for the past 3 hours online
    and I can't find anything about it. I thought perhaps I could set
    the selectedItem parameter, but that is read only, and I believe it
    returns an object reference rather than something like a number so
    even if i could set it, it would be pointless. I also found a get
    focus button, thought that may lead me somewhere, but I think that
    is for setting which component has focus currently as far as typing
    in and things like that. I am lost.
    Basically I am looking for a way to type this
    myList.setSelected(5); where 5 is the 5th item in the list.
    Any help would be much appreciated.

    Never mind found it. It is the property called selectedIndex
    and it is writable

  • How to exclude certain operations in PM order from task list?

    Hi Experts,
    we have number of operations in task list and being attached to in maintenace plan. While scheduling Miantenance Plan system is creating order as per requirement with set of all operations present in the task list. we would like to restrict certain operations needs to be appeared in the maintenance order? any enhancement will work for this kind of user requirements?
    suppose if task list is having 100 opeartions. when we do scheduling by using this task list through maintenance plan system is defaulting 100 opreations in the order as per standard. we would like to restict certain operations not to appear in the order, even it is present in the task list!
    Thanks in advance
    Regards,
    Krishna

    Hi ,
    If you could convert this order type as Service order you will get a field called Service Product. Then you can use Classification and Characteritics for the service product and the Tasklist to choose the required operation in the service order created by the system. You need to use the techniques of varinat config to achieve this functionality.
    AlexPr

  • Automatic creation of NB purch.order from UB re-stock order

    Hi SAP gurus,
    we have the following business case (we operate in an R/3 4.6C version): we purchase goods from an Intercompany/3rd party vendor (e.g in US) which are imported in a different EU country (e.g. BE) before being physically received in the final destination country (e.g. ES).
    If the user places the PO (NB order) with receiving plant directly the ES plant, this will generate wrong reporting in Intrastat and eventually in VAT (e.g. if Tax code determination is automated on the basis of the receiving country).
    From our understanding for getting the right Legal reporting (Intrastat/VAT) a 2 steps process is needed:
    1) create the PO (NB order type) with receiving plant a "virtual" plant in the country of importation (e.g. BE)
    2) create a subsequent re-stock order (UB order type) from the "virtual" plant in the country of importation (e.g. BE) into the real final destination plant (e.g. ES)
    Does anybody know if it's possible to have the automatic generation (material master settings via the MRP run in R/3 or APO) of the purchase order (NB order type) as a result of a lack of stock in the supplying plant (the 'virtual' BE one in our example) of a re-stock order (UB order type)?
    If so, could you please provide some hints?
    Thanks in advance for your help
    Regards
    Michael

    Michael,
    From a planning perspective, use Stock Transport orders:
    Set up STO BE>ES (Normally, type of sto is dependent on company codes, but I will assume you want UB)
    Setup STO US>BE (again, type of sto is determined by business requirements, but I will assume your selection of NB)
    You will need a plant in BE.  All the standard STO configuration and master data for both legs of the journey would have to be created.  
    You will need to perform receipt transactions in the BE plant, as well as issue transactions to the UB order.  One would normally think that the goods must physically move through belgium, and that an importer of record would need to take possession of them at the border.  If you use MTO, the two orders (NB/UB) can be account assigned to the same sales order and therefore linked.
    Planning would be satisfied by the two step jump.  Other business requirements would have to be worked out.
    Rgds,
    DB49
    Edited by: Dogboy49 on Mar 22, 2010 10:13 AM

  • Creating Purchase Requisition/Order from a CRM Service Order

    Hello,
    My client is using CRM 4.0 with Service Industry add-on.
    I am trying to kick out a purchase requisition from a service order, but does not go through.
    The Service Order is released in CRM and an internal order does get created in R/3. The material that I am using is a service product (defined in R/3 and used in CRM) and I trying to procure External services.
    All the requisite configuration in CRM and R/3 have been done.
    I get an error message E06 436 (In case of account assignment, please enter account assignment data for Item).
    Would appreciate any feedback in this regard.

    Hi,
    I am working on the some scenario. Based on the limited documentation, it appears that you have to create a service master in R/3 that is than replicated to CRM (object SERVICE_MASTER). I did this, and this works. However, I am facing the issue that there is no sales data assigned to the service product in CRM, while you do need this (service order is not complete).
    I hope that I will have an answer for this, and then I think that it should work.
    The PO that is created in R/3 will contain an item with item category D and account assignment F (in our case, as we work with internal orders as account assignment object).
    The receipt of the service provided will then be posted by means of a service entry sheet in R/3.

  • BB Z10 STL1 has a problem when sending broadcast after select 100 contact from contact list

    Hi
    Actually I've got this problem after updating my bbm, from 10.3.34.20 to the newst one then i have waited for the next update and its still there and then i hop[ed the version 10.5.5.38 will fix this but its still remain there so please try to send broadcast through the contact list select up to 50 or 100 and tray to past the it will hang out and you can't go to the message box to right thing otherwise the you can make a broadcast by normal way by making past in the first time and then select the contacts you want but this will take a time we need the normal way.
    I'v tried this on Q10 and they don't have this problem even with the new BBM
    please check it on BB Z10 STL1 that what i have
    now Im trying to find the old OS Software to return to old bbm
    Best regards
    DubaiShark

    Anybody

  • Free goods based on selecting 5 material from a list of material

    Is there a way this can be done.
    I know FG cannot be done with 1:2 or 2:1, but if there was a way the list of material can be a selection list or something..Thanks

    first maintain material determination for freegood with multiple options of 5 products.. and then give maintain the freegoods record in CS01...
    Example  for X .. Y free good...
    material determination for Y... 1,2,3,4,5, products...
    so when ever you enter x you will get 1,2,3,4,5 options..
    Try with these.. hope you get your desired solution...
    reward if it helps
    Ramki

  • Select multiple items from a list box as values for a parameter of crystal report and Oracle procedure

    -  I have a  Product list box (asp.net) used as multiple selected values for  a parameter. 
    - The Product ID is defined in the Oracle procedure as NUMBER data type. 
    -  In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number.  This is the code in my Record Selection Formula for the report:
    ({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
    -  In C#, this is my code
    List<decimal?> productUnit = new List<decimal?>();
    int counter = 0;
    decimal prod;
    for (int i = 0; i < lstProducts.Items.Count; i++)
                  if (lstProducts.Items[i].Selected)
                                if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
                                    productUnit.Add((decimal?)prod);                              
                                    counter++;
           if (counter == 0)
                       productUnit.Add(-1);                      
    ReportingDAO rDataFactory = new ReportingDAO();
    retVal = rDataFactory.GetProductReport(productUnit);
    public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
              CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
              ReportLogon rptLog = new ReportLogon();
             rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
             retVal.SetParameterValue("p_product_id", productUnit); 
    I keep having the "Value does not fall within the expected range" when I debug.  My question is, is the data type I used for procedure/Crystal report/ and C# correct ?  I always have problem with the data type.  Any help would be
    appreciated
    Thank you

    Hi progGirl,
    Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thank you for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

Maybe you are looking for

  • MacBook Pro 17" Early 2011 Model: Auto Shutdown/Restart Problem

    Hey guys! This is my first time to sign in, join the community, and ask a question or create a discussion. FYI, I really have little knowledge on tech stuff so please bear with me. Here's my problem, and I hope you can give out your suggestions: I ha

  • R/3 APO Integration: Enhanced Fields not transferred

    Hi, My requirement is when I change the value of an enhanced field in a material in MM02 in R/3, the change should be reflected in the corresponding product in APO. I want to enhance the Material Master in R/3 and APO with a Z field. I have done this

  • Selectable items within an image that has links to other pages

    Hello All, I have recently started to learn Dreamweaver CS5 and need some help.  I have a jpeg of a floor plan and want the user to be able to click on the different rooms within the floor plan.  Once you click on the room it would take the user to a

  • Dynamically appending records to an existing cursor---URGENT !!!

    Hi all, I'm right now creating dynamic statistical reports in Oracle 8.1.6 on Win NT. My query is as below: select      TO_CHAR(a.jobpostingdate,'MM-DD-YYYY') jobpostingdate ,count(a.jobpostingid) no_jobs FROM      JOBPOSTING a, EMPLOYEE f WHERE     

  • How to recover songs that were deleted

    How do I recover songs that were deleted from itunes library and itunes acount and coputuer.