FM in CRM to get sales orders based on a date range(created_at)...

Hello Experts,
Is there a function module to get the sales orders from CRM based on a given date range which
is for the field created_at? Also, is the field OBJECTID in table CRMD_ORDERADM_H can
be compared against VBAK-VBELN? Thank you guys and take care!

Hi,
You can create your own function module for this. You can fetch sales order from table crmd_orderadm_h, put input data as date, and two conditions for sales order should be object type = 'BUS2000115' and PROCESS TYPE = 'TA' if you are looking for standard order.
You have to fetch object id from this table to get your order number.
Thanks,
Shweta
Message was edited by:
        Shweta Verma

Similar Messages

  • How to List Sales Orders based on Creation Date and Delivery Priority

    Dear all,
    How can we list Sales Orders based on creation date and delivery priority.
    I tried using vl10a transaction code, but there we can see sales order based on delivery date.
    we need to list all sales order based on delivery priority and sales order creation date.
    can any one of you tell me which standard report gives such kind of report. Your suggestions will be highly appreciated.
    Thank you
    Raghu Ram

    Hi Raghu,
    There is no st report available as per your req.
    Using SQVI, you develope one report that is list of sales orders based on your req.
    SQVI is used to convert a Quick View into a query.
    Quick Viewer:
    The Quick Viewer allows you to define reports without having to program yourself. The Quick
    Viewer is especially useful for new users and occasional use.
    Quick Viewer is a tool for generating reports. SAP Query offers the user a whole range of options for defining reports. SAP Query also supports different kinds of reports such as basic lists, statistics, and ranked lists. Quick Viewer, on the other hand, is a tool that allows even relatively inexperienced users to create basic lists.
    Quick View definitions are user-dependent. You can transfer a Quick View into SAP Query in order to make reports, for example, accessible to additional users, or to use the other functions available in SAP Query.
    The following is a comparison of Quick Views and queries:
    Quick Views possess the same functional attributes as queries. However, only basic lists may be defined with Quick Views.
    In contrast to queries, no user group assignment is necessary with Quick Views. Each user has his/her own personal list of Quick Views. Quick Views cannot be exchanged between users. Quick Views may, however, be converted to queries and then be made available to other users in a specific user group.
    Info Sets are not required for Quick View definition. Whenever you define a Quick View, you can specify its data source explicitly. Tables, database views, table joins, logical databases, and even Info Sets, can all serve as data sources for a Quick View. You can only use additional tables and additional fields if you use an Info Set as a data source.
    The Quick Viewer uses various controls. Certain hardware and software requirements must also be fulfilled before you can use the Quick Viewer.
    To define a Quick View, you select certain fields according to your data source that determine the structure of your report. The report can be executed in basis mode with standard layout or may be edited using drag and drop and the other toolbox functions available in WYSIWYG mode.
    Reports created using the Quick Viewer may also be passed to external programs (Excel, for example).
    Call the Quick Viewer using System -> Services -> Quick Viewer (or transaction SQVI).
    Enter the name of the Quick View. Quick View names can contain a maximum of 14 characters.
    Choose Create.
    Enter a title for the Quick View and remarks, if you think they are relevant.
    If you do not want to base your list on a table, use the possible entries pushbutton in the Data source field to select another data source. You can choose logical databases or Info Sets. In addition, you may also create table joins. For further information, see Selecting a Data Source.
    Choose Basis mode if you want to create the list directly with no list design. Choose Layout mode if you want to define the layout of your list yourself.
    SQVI Table Quick viewer – Used to created quick client dependent reports
    Probably the easiest and most flexible way to do this is thru one of the ABAP query transactions.
    Transaction SQVI can do this and it has a very good help function that explains how it works... the drawback is that it is only for one user.
    You can play around with it and see if it meets your needs...
    The query results will come back in an ALV Grid or Excel... you can select what fields are returned, and have a selection screen to enter the search criteria.
    You can get the report by joining the tables VBAK and VBAP.
    If you have any queries, i will forward screen shots to your id.
    Reward points pls.
    Regards,
    Govind.

  • Alert for orders based on due date

    Hi All
    I need to query to get sales order based on tomorrow date.
    scenario:
    Sales orders are imported using DTW and due date is put in as tomorrow , so i need a query to show me all the imported orders based on due date.
    check below the query i'm using
    SELECT T0.DocNum, T0.DocDueDate, T0.CardCode, T0.CardName, T0.DocTotal, T0.U_ROUTEMARKTN, T0.U_ROUNDS, T0.U_DAYOFWEEK
    FROM [dbo].[ORDR] T0
    WHERE DATEDIFF(Day, T0.DocDUEDate, GETDATE()) = 0
    ORDER BY T0.U_ROUTEMARKTN, T0.U_ROUNDS, T0.U_DAYOFWEEK, T0.DocDueDate
    thanks

    Hi Bongani,
    Change your query condition to:
    WHERE DATEDIFF(Day, T0.DocDUEDate, GETDATE(), T0.DocDUEDate) = 1
    Gordon

  • Create CRM sales Order based on contracts

    Hi Experts,
    Could you please guide me how to create sales order based on contract from CRM 5.0? What are customizing settings and coding to be in CRM to enable this?
    The requirement is to display the list of sales contracts of type A&B from R3 to CRM system.  If the customer selects contract type A, sales order X should be created from CRM. If the customers select contract type B, sales order Y should be created from CRM. Also, if the order is created based on Contract, will the document flow will be mapped to contract etc.
    Regards,
    Ronit

    Start here with this SAP Help documentation.
    [Contract processing in CRM Web Channel|http://help.sap.com/saphelp_crm52sp01/helpdata/EN/d2/650e26a21fe04bba5298afd089b9dd/content.htm] - link.
    You can either create the contracts in CRM or download it from your ECC backend using middleware.
    The scenario and especially the user interface is predefined in the application. Contract Item selection and transfer to basket is provided in the Catalog and not directly in the basket. Most customers want the contract item selection from the basket, and this will be an enhancement.
    If you want the UI navigation to match what happens in SAPGUI will require custom development.

  • Get a Sales order based on delivery

    Hi,
    Is this the way to get a Sales order based on a delivery ?
    if(Delivery.GetByKey(DeliveryDocEntry))
        Delivery.Lines.SetCurrentLine(1);
        if (SalesOrder.GetByKey(Delivery.Lines.BaseEntry))
            //TODO: Do your job here !

    If you want to see how the multiple so's connected to one DN works,  go into test and create 2 sales orders for the same customer.  Then go into Delivery notes, key in that customer code & hit copy from, then select sales order.  Both those orders will pop up in a matrix & you can select them both at once.  After that the line items from both orders will be in your dn.  If you select a line from the first order & hit the source document icon on the tool bar (even in add mode) it will take you to that order and selecting a line item from the second order & clicking the source button will take you to it's based-on document.
    If you're lucky, your organization never does that, (but "never say never", right?

  • How to get  sales order data in R/3. Any FM?

    Hi ,
    Is there any FM in R/3 to get sales order data.
    In CRM we use CRM_ORDER_READ to get the Header and Item details. Like wise FM in R/3 is required.
    Actually I have to test 'Usage' in sales tab of VA01/VA02/VA03.
    How to get the order details? what is the user exit for ORDER save?
    If any body knows please do let me know.
    Thanks and Regards
    Harish

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

  • Minimum Quantity in Sale Order based on Ship To Party city

    Dear Experts
    It is possine in Std SAP to get information or error message based on Minimum Quantity in Sale Order based on Ship To Party city??
    Thanks
    Krishna

    No it is not possible.  You have to go for sale order User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE
    thanks
    G. Lakshmipathi

  • SALES ORDER BASED  STOCK TRANSFER ISSUE

    Sales order based planning
                                                 A
                                B                              C
               D                        E
    In this A (header material) is sales order item and B is sub assembly. D, E, and C are raw materials.
    I am having four company codes 1000 , 2000, 3000, 4000 with plants one in each as 1010, 2010, 3010, and 4010 respectively.
    Always sub assembly B will be manufactured by 4010 plant. The sales orders for material A will be received by 1010, 2010 and 3010 independently.
    When i run MRP in 1010, 2010, 3010 for there respective sales order for the material A
    The material B will be always planned in 4010 basing on the special procurement key as stock transfer for the material B maintained in the respective sales order plant.
    My requirement is that for manufacturing B  i require material D and E .these raw materials  always has to be supplied from the parent sales order plant.
    Example :
    If material B is manufactured for 1010 plant the raw materials D and E have to be planned in 1010.
      If material B is manufactured for 2010 plant the raw materials D and E have to be planned in 2010.
      If material B is manufactured for 3010 plant the raw materials D and E have to be planned in 3010
    For this I have different special procurement key 45 as stock transfer from plant to MRP AREA ( in stand SAP). This will work if I am using in the same company code.
    Can I use this as inter company code also?
    REGARDS
    MADAN MOHAN

    Hi,
    i think BOM did not get copied correctly.
    the bom is like this
       A header material  and B and C are components for A . B is sub assembly with D abd E as child raw materials
    regards
    madan

  • Which table I can get sales order no from delivery numbar.

    Hi,
    I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
    Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
    Thanks,

    hi,
    sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
    sales doc item table ( VBAP) copy to Delivery item table( LIPS)
    you can see this in copy control VTLA ,
    now u want slaes doc no. from dilv doc. no.
    so go to t-code se11.....
    fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
    so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
    i hope it will help u.

  • Can we take standard report for all sales orders based on the condition typ

    Hi all,
    Based on the condition type, we need to take a report for sales orders on the particular date.
    Thanks and Regards.....VM

    Hello again.
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]

  • Sytem should not allow to save the sales order based on risk category

    Hi,
    My user want to control the creation of sales orders based on risk category in credit control area.
    We created a new risk category - 30 Not authorized.
    And we made necessary configs also , like assignment of risk category and company code in OVFL.
    We assigned 30 risk category in FD32 for customers also.
    But while creation of sales order system is allowing to save the order.
    My user requirement system shoud not allow to save the sales orders for those are customers belongs to 30 risk category.
    How can we config. this
    thanks
    Sateesh

    hi,
    dont want to save the sales order if the credit limit exist ?
    then maintain block in OVA8
    choose
    your credit control area         risk categories             credit group
    1000                                        30 Not authorized           01
    checks tab
    choose static and maintain B
    this will give you error message and it will not allow you to save the sales order
    regards
    senya
    Edited by: senya_1111 on Oct 1, 2009 2:26 PM

  • Process Sales Order based on minimum order

    Hi Sap gurus,
    Can any one Help me Out regarding How the System should have capability to process Sales Order based on minimum order quantity and minimum order value and How we will map In sap
    Thanks
    Points will rewards
    Regards
    Rajesh

    Hi,
    We can set the control for Min order quantity in the Sales org1 view. Like wise we can control min order value also.
    For that we have to use two condition types AMIW & AMIZ.
    AMIW is min order value, where as AMIZ is min ord surcharge
    Let's say AMIW value is 50,000.If the order value is less than 50,000 then AMIZ comes into picture.Amiz compares the automatically determined order value and AMIW value.The difference of those two values Amiz takes as surcharge and it overwrites the automatically determined order value with this value.
    Like wise we can maintain min order value also by using this two cond types.
    In the pricing procedure
                            subtotal      req   Altcal   Altcond+bv
    AMIW                D
    AMIZ                                  2         13
    Award me points if u satisfy
    Thanks,
    Sudheer

  • Creating sales order based on store numbers in IS retail

    Hi ,
         I want create a sales order based on the PO received from the customer in the IS Retail system. The purchase order will be sent in a EDI file.
    a single line item in the PO will have multiple store locations where we need to ship materials. for example.
    Let us take an example
    PO will have an item "Shampoo"  quantity  - 1000, this 1000 has to be shipped to diffrenet stores like 0001 - 100, 0002 - 100 , 003 - 200 etc. Based on this PO we need to create a sales order.
    Is there any way we can handle in SAP IS retail to create sales order & save the customer store number in the sales order for that item
    With Regards
    K.Varadharajan

    Hi Varadarajan,
    For one Sales Order only one Sold to Party and one Ship to Party are possible as they are header data.
    You can have individual Sales Order for each outlet and one delivery can be made for several Sales Order for single Ship to Party.
    Hope this clarifies you.
    Regards,
    ManiKumaar

  • Sales order based on prod order

    Hello,
    There is a sales order based on production order (one item).
    I just want to know what happens in CO once sales orde is posted?
    How many doc are created and of which record type?
    What kind of changes happens after the settlement of the order?
    Thanks

    no answer

  • To Default Warehouse In Sales Order Based On GOP Results

    Hi
    The Business requirements are
    During the import or manual entry of sales order,based on customer ship to address the warehouse field in the sales order should default from gop results.
    Gop can show you the availability from the ATP inquiry form attached to sales order.But how to default or populate the warehouse field automatically.
    No standard functionality is there.Enhancement request has been raised.Can anybody suggest any workaroounds.
    Thanks

    Take out the defaulting rules for Sales Order Line and the regular gop setups,the during scheduling it calls for the assignment set specified.and the warehouse field is populated.
    by the rank one warehouse in the sourcing rule.

Maybe you are looking for

  • Hp Photosmart digital camera

    HP Photosmart 967 digital camera keeps giving error message of unsupported card and switces on but wont take photos

  • GDM does not allow resolution while Gnome does

    My xorg.conf is set to default resolution 1024x768, and when I get into gnome I have 1152x864 set up and it works fine. If I set my default xorg.conf resolution to 1152x864 like my gnome, GDM isn't displayed and I have to login blindly. This would no

  • Show Parenth description on Excel input report

    Hi experts, i build a drag and drop input report to show 2 dimension (Entity and Account) x 1 dimension (time). Well i need to show before to the columns of identity (i show description of the basmembers) parenth assigned to each member of entity. it

  • External procedure call for cobol programs

    I'm trying to call cobol programs using external procedure calls. I followed metalink doc#119543.1 but when the cobol shared library is called from PL/SQL, the session hangs. I'm running Oracle 9.2.0.4 EE, Microfocus Server Express 2.2, C for AIX v6,

  • Getting the Entity Implementation class on Table Selection Event...

    Hi to all !. I made an ADF application where I have two entities... "User" and "Products"... One user have many products... I would like to know what code to use in order that, when the user of my application selects a row, I can get the Java Class I