Date of First Sale

Hi Friends,
I need the date of first sale of the material. Please let me know which table i can find this.
Thanks,
Rajesh.

Hi,
Try table VBAP.
rgds,
Paras

Similar Messages

  • Need to Create Customer Master Data under Multiple Sales Areas

    Hi Gurus,
             My requirement is to create a customer under multiple sales areas by processing the Inbound Idoc function module "IDOC_INPUT_DEBITOR"( After generating Outbound Idoc and outbound is processed successfully).
             But, when I am trying to send the multiple sales areas information in segment "E1KNVVM". It is creating the customer under first sales area filled in first E1KNVVM segment and it is giving error that "Fill all required fields SAPMF02D 0111 ADDR1_DATA-NAME1" and it is not creating the customer under other sales areas.
            Following are the details of the Outbound Idoc which I have processed.
            Idoc Basic type : DEBMAS06
            Message          : DEBMAS
            I have filled required fields in E1KNA1M and E1KNVVM segments. But filled E1KNVVM segments  twice with different sales area data.
          Please help in solving this problem?

    is it really just one IDOC?
    I have never seen that SAP just does a part of one IDOC.
    the structure of DEBMAS ist like this:
    E1KNA1M
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNB1M
    which means for your example it should be like this
    E1KNA1M
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNB1M
    and in this case I am very certain that it would never just process and create the part for one sales area.
    Maybe your customer already exists from ealier tests with just one sales area.
    Display your IDOC in WE02 or WE05 and make sure you have a value in name1 field

  • APPENDING data into the sales text header of a sales order

    Hi,
      I need to write data into the sales text of a SALES ORDER. My problem is that if i use SAVE_TEXT it writes the new text and erases the old text.Is there any function module to append the data into the sales text or any setting in the function module which allows me to do so.
    Regards

    Hello Pankaj,
    First using FM read_text and read the text.
    Then Using the fm Edit_text edit the text as u want.
    If useful reward .
    Vasanth

  • MDX Query for Average customer first sale amount for each year

    Hello,
    I new to MDX, and I am looking to build a query that would get all the first sale amount for the customes and average that.  The intent is to use find an average each year.   I am looking to use this against the adventure works database.   
    I am not sure exatcly how to start this .  Any help is much appreciated.
    J

    Hi,
    I'll do it in several stages.
    let's first define an ordered set of date/sale to one customer over all periods:
    SELECT
    {[Measures].[Internet Sales Amount]} ON 0
    NonEmpty
    [Date].[Calendar].[Date]
    [Customer].[Customer].&[15561]
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customter].&[15561]
    ) ON 1
    FROM [Adventure Works];
    we retain the first line of the result set  with item(0):
    SELECT
    {[Measures].[Internet Sales Amount]} ON 0
    NonEmpty
    [Date].[Calendar].[Date]
    [Customer].[Customer].&[15561]
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].&[15561]
    ).Item(0) ON 1
    FROM [Adventure Works];
    next, for each year we define a measure that will retain the first sale for each customer
    (I  limit the customer set to the first 2000)
    WITH
    MEMBER [Measures].[Mymeasure 2006] AS
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2006]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    MEMBER [Measures].[Mymeasure 2007] AS
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2007]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    SELECT
    [Measures].[Mymeasure 2006]
    ,[Measures].[Mymeasure 2007]
    } ON 0
    ,NON EMPTY
    Head
    [Customer].[Customer].[Customer]
    ,2000
    ) ON 1
    FROM [Adventure Works];
    We then take the average for each year:
    WITH
    MEMBER [Measures].[AVG cust first sale 2006] AS
    Avg
    Head
    [Customer].[Customer].[Customer]
    ,2000
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2006]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    MEMBER [Measures].[AVG cust first sale 2007] AS
    Avg
    Head
    [Customer].[Customer].[Customer]
    ,2000
    NonEmpty
    Exists
    [Date].[Calendar].[Date].MEMBERS
    ,[Date].[Calendar].[Calendar Year].&[2007]
    [Customer].[Customer].CurrentMember
    ,[Measures].[Internet Sales Amount]
    ,[Customer].[Customer].CurrentMember
    ).Item(0)
    ,[Measures].[Internet Sales Amount]
    SELECT
    [Measures].[AVG cust first sale 2006]
    ,[Measures].[AVG cust first sale 2007]
    } ON 0
    FROM [Adventure Works];
    Philip,

  • Third Party process - billing date change in Sales order / Customer Invoice

    Dear Friends,
    In Third Party Sales Process , as we are aware  billing is order related billing and it will become due only after vendor invoice is received.
                   My situation is in the original sales order billing date is eg: 01.02.2009 . The subsequent vendor invoice ( Invoice receipt done based on PR --> and PO)  has a later date eg: 05.02.2009 .
    This means that the customer biling can be done only after this date.  
    How the system behaves in this case wrt to the billing date ( 01/02/2009) of the original sales order.
    Regards
    Mahesh
    Edited by: Mahesh sap on Feb 4, 2009 8:55 AM

    Hi all ,
             Thanx all for your responses . But my case is a bit peculiar . Here the vendor invoice is coming by IDoc through EDI . When EDI flow is confirmed, the billing date is pushed ahead. As per billing calendar  in CMR the customer can be invoiced only on the last date of the month. 
    As a result if the original billing date in the sales order is Feb end, when vendor invoice received through EDI , the billing date is shifting to march end .
    Is it because the date of vendor invoice is causing this?  Obviously the customer billing date falls only after vendor invoice date.
    Regards
    Mahesh

  • Adding Data Field to Sales Analysis Report

    Does anyone know how to add data fields to Sales Analysis Reports, either in PLD or CR?  On Sales Analysis by Customer, I need to add the total quantities for all items sold for the sales included in the report, excluding negative quantities.
    Thank you,
    Avraham

    Hi Avraham.......
    You can create your own Query Report for getting all the desired outputs and it will be easy to show in reports also.....
    Regards,
    Rahul

  • Meet a problem of data exchange for sale order from CRM to R3.

    Dear Friends:
          I do the data exchange for sale oder from to R3 today , the problem's detail is as follows:
          When i save a sale order in CRM (Version is 5.0) . it can automatically generate a bdoc which bdoc type is BUS_TRANS_MSG. but the bdoc status alway is "Sent to receivers (not all have confirmed)". and the original order in CRM can not be change .it quote that "Document is being distributed - changes are not possible",  so i check the order status analysis in detail .it presents two error messages ," Event 'BEFORE_CHANGE', attribute '     FINI': Error code for function module 'CRM_STATUS_BEFORE_COMPLETED_EC' , "Item is not yet completed in OLTP system".  so i check  the order in R/3 ,it has already been create and without any error messages.
       Would like to tell me how to solve it . thanks your any idear..

    Hi Benjamin,
    When performing uploads to R/3 from CRM there is a response from the OTLP system that is sent back to the CRM Middleware to confirm that the data records were received and processed correctly. 
    Here is a checklist you can run through to verfiy that the connections, systems and objects that are needed are all in place:
    <b>On R/3 system:</b>
    - Check R/3 outbound queue (transaction SMQ1) for any entries that are not reaching CRM.
    - Check that all RFC destinations on R/3 are defined correctly and are pointing to CRM
    - Check the CRMCONSUM table in R/3 to ensure CRM is registered as a consumer
    - Check the CRMRFCPAR table in R/3 to ensure that order objects are valid for exchange between R/3 and CRM
    - Check for any short dumps in R/3 (ST22/ST21)
    <b>On CRM:</b>
    - Are there entries stuck in the inbound queue (SMQ2) with R3AU* names?
    - What does the CRM Middleware Trace show (SMWT)?  Sometimes this has more detail than the specific BDoc overview (SMW01)
    - Check for short dums in CRM (ST22)
    Let us know what else you uncover and we can work from there.
    Brad

  • Unable to change requested delivery date in the sales order at item level.

    The issue is when I create order with one material (linked to network and project is created automatically in the background), I am able to change (in change mode) req delivery date for an item, but when I create order with 2 materials (linked to network and project is created automatically in the background), I can not change (in change mode) the req delivery date of any item. Req delivery date is then copied from the header req delivery date.
    Is this a standard SAP functionality or a defect?

    Req del date is the date requested by customer and  can be changed at item level. Probably the confirmed date in the schedule line is derived from the network scheduling after ATP check. (ATP check is not activated in this case)
    I am able to change the req del date at item level if there is only one item (Linked to network) and not when there are two line items (Both are linked to 2 diff networks belonging to same project)
    I tried to change the date in the network, scheduled and saved but that didnt change the date in the sales order. On the contrary, if I run ATP check, netowrk dates get back to original dates derived from sales order.

  • Requirement to print data of first and second report of an ALV at once

    Hi,
    I have an interactive ALV report in which on double click of any of the record on first report, its details get displayed in second report. My requirement is to print all the data (of first and second report) at once.
    Kindly tell me how can I achieve this functionality.
    Regards,
    Seema Naharia

    Hi Seema,
    Try with this FM 'REUSE_ALV_HIERARCHICAL_LIST_DISPLAY'.   
    Regards,
    Sujatha B.

  • I want to pick up Schedule line Delivery date based on Sales Order of Mater

    Hi Experts,
    I have one scenario like,
    I want to pick up Schedule line Delivery date based on Sales Order of Material.
    For example :
    Go to va03
    Give the order no
    Press the enter
    Double click on material.
    Go to Schedule line Tab
    Then we can find out the Delivery date .
    I want to pick up the that Delivery date. Could you please help on that.
    Thanks,
    Amjad.

    Hi,
    schedule line dates are available in VBEP.
    VBEP-VBELN = sales order number.
    VBEP-EDATU = schedule line date.
    REgards,
    Raghavendra

  • How to get the date of first day of a week for a given date

    Hi gurus
    can any one say me how to get the date of first day(date of Sunday) of a week for a given date in a BW transformations. For example for 02/23/2012 in source i need to get 02/19/2012(Sunday`s date) date in the result. I can get that start date of a week using  BWSO_DATE_GET_FIRST_WEEKDAY function module. But this function module retrieves me the  start date as weeks monday(02/20/2012) date. But i need sundays(02/19/2012) date as the start date. So it would be really great if anyone sends me the solution.
    Thanks
    Rav

    Hi,
    The simplest way would be to subtract 1 from the date date which you are already getting in transformation routine, but instead of doing that subtraction manually which might need bit of errort, you can simply use another FM to subtract 1 from given date.
    RP_CALC_DATE_IN_INTERVAL
    Regards,
    Durgesh.

  • Date for first day of current month

    How can i get the date for first day of current month ?

    select trunc(sysdate,'MM'),to_char(trunc(sysdate,'MM'),'DD'),to_char(trunc(sysdate,'MM'),'Day') from dual;

  • Replacement of FORECAST DELIVERY DATE with DATE OF FIRST RECEIPT

    Please help me in my scenario below and post your valuable comments-
    My Scenario is like -
    For example, In REPORT, For the item 10 of the order 4700035361 our FIRST RECEIPT DATE is in march (14/03/2011) and FORECAST DELIVERY DATE is in december (30/12/2011). This purchase order item was completely received.
    Requirement is like---
    Associated cube is ZCUIMP01.
    (1) The evolution will consist of replace the FORECAST DELIVERY DATE with FIRST RECEIPT DATE of the item.
    (2) The period (Fiscper and Fiscyear) will also be modified.
    (3) Hence the calculation of the YTD will take into account the order and its receipt date.
    (4) The adjustment of the history will be necessary for the year 2011.
    Can anyone suggest, from where i should start my analysis (Should it be Infocube level??).
    What will be the approach to fulfill all the above mentioned requirement (Should we think about Remodeling concept for creating new data model, if yes then how to do?).
    Please reply asap, it will be great help for me.
    My advance thanks to you.
    Thanks & Regards
    Rupali Singh

    Hi Rupali,
    As I understand there is a business change that you need to justify in our report. Unfortunately your explanation of the design has a considerable gap to visualize. In any case, if you need help on to how to approach such a change -
    1. Understand the business change, its purpose and its imapct on your current design and the report.
    2. Understanding the purpose is very important since you will then be able to find workarounds, redesign as per the change required.
    3. Start from the query and check if your replacement of characterisitics with new characteristics can be obtained using functions like Replacement path, attributes, customer exits, etc. Changing a query/creating a new report on the existing model is the most feasible option.
    4. If not, try exploring option to keep the design untouched, and creating a new InfoObject/DSO like structure to capture the date modifications, etc which then can be used on a MultiProvider.
    Hope the above helps!
    Regards,
    Kunal Gandhi

  • Material Availabilty Date Determination in Sales Order

    Hi Gurus,
    When creating the sales order, if stock is not available then how the material availability date is determined.
    What are the inputs the system consider for calculating the material availability date.
    Even though I am giving the total replenishment leadtime, Inhouse processing time(Lot size independent), GR processing time and even the planned delivery time, the system proposing the current date as material availability date irrespective of the sales order quantity.
    All responses will be rewarded suitably.
    Thanks and Regards,
    Jejesh.
    Edited by: jejesh yal on Sep 12, 2008 6:33 PM

    Available checking rule in SD.
    It depends on the Availability group you have maintained in material master.
    The checking rule specifies the scope of the availability check for the respective transactions in sales and distribution by specifying precisely which stocks, receipt and issue elements should be taken into account during the availability check.
    Every checking rule is allocated to a checking group: together these two elements determine the final inspection requirements. In addition, the checking rule includes a specification whether or not an availability check should take into account the replenishment lead time ( i.e. Total time for the in-house production or for the external procurement of a product. In in-house production the replenishment lead time is determined to cover all BOM levels.)
    Items for which the delivery date falls within the replenishment lead time, but for which there is no inventory, are confirmed for delivery after the replenishment lead time. In the case of items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be confirmed.
    If you want the system to check the replenishment lead time, you should make sure that you have entered a value in at least one of the following three fields in the material master:
    GR (goods receipt) processing time (Purchasing view)
    Planned delivery time (MRP I view)
    GR processing time (MRP II view)
    Otherwise, the system confirms every requirement.
    Ava checking group what you have maintained in material master and the checking rule  for SD (in std system is A)
    --combination of above will decide how the ava check to be carried out and decide the delivery date. This sitting is available in SPRO in OVZ9.
    If you carry out the availability check using the replenishment lead time, you should plan ahead in regular intervals (on a daily basis for individual and daily requirements, on a weekly basis for weekly requirements) to prevent a shortage and therefore a possible delivery block. This shortage could occur if the delivery date of a sales order, which was confirmed the previous day for the replenishment lead time, is already within the replenishment period on the current day and therefore results in a shortage.
    Hence,
    1. Check the configurations for the checking groups which are contained in the standard SAP R/3 System.
    2. Make sure that the checking group is maintained in the material master records. Depending on the plant, you can specify a checking group for each material type
    3. Select the individual stock elements as well as the receipts and issues which should be taken into account during the availability check.
    4. Select the field for replenishment lead time if you do NOT want to take the replenishment lead time into account.
    Depending on above setting delivery date will e determined or delivery block in case no qty available can be designed.

  • Scehdule Line Date getting change to future date once the Sales Order is saved

    Hello Experts,
    Good Morning to you all,
    This is with respect to the Issue we are facing for the Orders having Product Allocation on multiple materials. Please find enclosed the detials below.
    Issue : Scehdule Line Date getting change to future date once the Sales Order is saved. These Order's are having Product Allocation on multiple materials.
    Description:
    We have implemented Product Allocation few months back.
    We have Product Allocation on multiple materials which are in demand and has been reserved for the Customers of different PA behaviors.
    When we are trying to create the Sales Orders for the normal customer who is not on Product Allocation. The Order Schedule Line is getting changed to future date once the Sales Order is saved after initial creation.
    These Order's are having materials of Product Allocation.
    I have enclosed the sample screen shot of the error we are getting which saving the Sales Order and also the Order Schedule Line screen shot showing future date.
    Error Message : There may be Product Over Allocation in Delivery Group 001.
    Message No : VV023
    This is a random behavior we are coming across and out of 10 Order 2 or 3 Orders is getting this Issue.
    Please share your inputs how to rack this Issue.
    Your suggestions will be highly appreciated.
    I am unable to upload the attacments dont know what the reason.
    Thanks,
    Farhan.

    Check whether you need to carry out the coding corrections as recommended in the following note:-
    Note 52067 - Message VV023/VV024, but no prod.alloc.processing    
    But I wonder this is for older versions and not sure whether this would help you to overcome from the issue.
    G. Lakshmipathi

Maybe you are looking for